From 27113d246207a98637ddfcc89bc53bd677550803 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 11 Apr 2012 22:38:16 +0200 Subject: [PATCH] update index (don't fail to linkify 'Ox.$') --- index.css | 10 ++++++++-- index.js | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/index.css b/index.css index d39e7a39..3e41ea35 100644 --- a/index.css +++ b/index.css @@ -11,7 +11,9 @@ body { text-decoration: underline; } .OxComment .doclink { - font-size: 12px; + padding: 1px 3px 1px 3px; + border-radius: 2px; + font-size: 11px; text-decoration: none; } .OxComment .doclink:hover { @@ -107,9 +109,11 @@ body.OxThemeModern, background-color: rgb(16, 16, 16); } +.OxThemeClassic .OxComment .doclink, .OxThemeClassic .page { background-color: rgb(255, 255, 255); } +.OxThemeModern .OxComment .doclink, .OxThemeModern .page { background-color: rgb(0, 0, 0); } @@ -121,13 +125,15 @@ body.OxThemeModern, background: rgb(32, 32, 32); } +.OxThemeClassic .OxComment .doclink, .OxThemeClassic .logo, .OxThemeClassic .page, .OxThemeClassic .readme .OxSyntaxHighlighter { box-shadow: 0 0 1px rgb(160, 160, 160) } +.OxThemeModern .OxComment .doclink, .OxThemeModern .logo, .OxThemeModern .page, .OxThemeModern .readme .OxSyntaxHighlighter { box-shadow: 0 0 1px rgb(96, 96, 96) -} +} \ No newline at end of file diff --git a/index.js b/index.js index 2f9e2f47..9bbab353 100644 --- a/index.js +++ b/index.js @@ -273,7 +273,7 @@ Ox.load(function() { } ], comment: [ - /\b(Ox\.\w+)\b/g, + /\b(Ox\.[\w\$_]+)/g, '$1' ], version: [