update index (don't fail to linkify 'Ox.$')

This commit is contained in:
rolux 2012-04-11 22:38:16 +02:00
parent 1d9bf5aacd
commit 27113d2462
2 changed files with 9 additions and 3 deletions

View file

@ -11,7 +11,9 @@ body {
text-decoration: underline; text-decoration: underline;
} }
.OxComment .doclink { .OxComment .doclink {
font-size: 12px; padding: 1px 3px 1px 3px;
border-radius: 2px;
font-size: 11px;
text-decoration: none; text-decoration: none;
} }
.OxComment .doclink:hover { .OxComment .doclink:hover {
@ -107,9 +109,11 @@ body.OxThemeModern,
background-color: rgb(16, 16, 16); background-color: rgb(16, 16, 16);
} }
.OxThemeClassic .OxComment .doclink,
.OxThemeClassic .page { .OxThemeClassic .page {
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
} }
.OxThemeModern .OxComment .doclink,
.OxThemeModern .page { .OxThemeModern .page {
background-color: rgb(0, 0, 0); background-color: rgb(0, 0, 0);
} }
@ -121,11 +125,13 @@ body.OxThemeModern,
background: rgb(32, 32, 32); background: rgb(32, 32, 32);
} }
.OxThemeClassic .OxComment .doclink,
.OxThemeClassic .logo, .OxThemeClassic .logo,
.OxThemeClassic .page, .OxThemeClassic .page,
.OxThemeClassic .readme .OxSyntaxHighlighter { .OxThemeClassic .readme .OxSyntaxHighlighter {
box-shadow: 0 0 1px rgb(160, 160, 160) box-shadow: 0 0 1px rgb(160, 160, 160)
} }
.OxThemeModern .OxComment .doclink,
.OxThemeModern .logo, .OxThemeModern .logo,
.OxThemeModern .page, .OxThemeModern .page,
.OxThemeModern .readme .OxSyntaxHighlighter { .OxThemeModern .readme .OxSyntaxHighlighter {

View file

@ -273,7 +273,7 @@ Ox.load(function() {
} }
], ],
comment: [ comment: [
/\b(Ox\.\w+)\b/g, /\b(Ox\.[\w\$_]+)/g,
'<a href="#doc/$1" class="OxMonospace doclink">$1</a>' '<a href="#doc/$1" class="OxMonospace doclink">$1</a>'
], ],
version: [ version: [