highlight.less
112 lines
| 2.8 KiB
| text/x-less
|
LessCssLexer
MinRK
|
r10541 | /* | ||
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org> | ||||
Adapted from GitHub theme | ||||
*/ | ||||
Nicholas Bollweg (Nick)
|
r19287 | @import (reference) "highlight-refs.less"; | ||
@highlight-base: #000; | ||||
.highlight-base{ | ||||
color: @highlight-base; | ||||
} | ||||
.highlight-variable{ | ||||
.highlight-base(); | ||||
} | ||||
.highlight-variable-2{ | ||||
color: lighten(@highlight-base, 10%); | ||||
MinRK
|
r10541 | } | ||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-variable-3{ | ||
color: lighten(@highlight-base, 20%); | ||||
MinRK
|
r10541 | } | ||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-string{ | ||
MinRK
|
r10541 | color: #BA2121; | ||
} | ||||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-comment{ | ||
MinRK
|
r10541 | color: #408080; | ||
font-style: italic; | ||||
} | ||||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-number{ | ||
MinRK
|
r10541 | color: #080; | ||
} | ||||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-atom{ | ||
color: #88F; | ||||
MinRK
|
r10541 | } | ||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-keyword{ | ||
MinRK
|
r10541 | color: #008000; | ||
font-weight: bold; | ||||
} | ||||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-builtin{ | ||
MinRK
|
r10541 | color: #008000; | ||
} | ||||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-error{ | ||
color: #f00; | ||||
MinRK
|
r10541 | } | ||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-operator{ | ||
color: #AA22FF; | ||||
font-weight: bold; | ||||
MinRK
|
r10541 | } | ||
Nicholas Bollweg (Nick)
|
r19287 | .highlight-meta{ | ||
color: #AA22FF; | ||||
MinRK
|
r10541 | } | ||
Nicholas Bollweg (Nick)
|
r19287 | /* previously not defined, copying from default codemirror */ | ||
.highlight-def{ .cm-s-default.cm-def() } | ||||
.highlight-punctuation{ .cm-s-default.cm-punctuation() } | ||||
.highlight-property{ .cm-s-default.cm-property() } | ||||
.highlight-string-2{ .cm-s-default.cm-string-2() } | ||||
.highlight-qualifier{ .cm-s-default.cm-qualifier() } | ||||
.highlight-bracket{ .cm-s-default.cm-bracket() } | ||||
.highlight-tag{ .cm-s-default.cm-tag() } | ||||
.highlight-attribute{ .cm-s-default.cm-attribute() } | ||||
.highlight-header{ .cm-s-default.cm-header() } | ||||
.highlight-quote{ .cm-s-default.cm-quote() } | ||||
.highlight-link{ .cm-s-default.cm-link() } | ||||
MinRK
|
r10541 | /* apply the same style to codemirror */ | ||
Nicholas Bollweg (Nick)
|
r19287 | .cm-s-ipython span { | ||
&.cm-keyword { .highlight-keyword() } | ||||
&.cm-atom { .highlight-atom() } | ||||
&.cm-number { .highlight-number() } | ||||
&.cm-def { .highlight-def() } | ||||
&.cm-variable { .highlight-variable() } | ||||
&.cm-punctuation { .highlight-punctuation() } | ||||
&.cm-property { .highlight-property() } | ||||
&.cm-operator { .highlight-operator() } | ||||
&.cm-variable-2 { .highlight-variable-2() } | ||||
&.cm-variable-3 { .highlight-variable-3() } | ||||
&.cm-comment { .highlight-comment() } | ||||
&.cm-string { .highlight-string() } | ||||
&.cm-string-2 { .highlight-string-2() } | ||||
&.cm-meta { .highlight-meta() } | ||||
&.cm-qualifier { .highlight-qualifier() } | ||||
&.cm-builtin { .highlight-builtin() } | ||||
&.cm-bracket { .highlight-bracket() } | ||||
&.cm-tag { .highlight-tag() } | ||||
&.cm-attribute { .highlight-attribute() } | ||||
&.cm-header { .highlight-header() } | ||||
&.cm-quote { .highlight-quote() } | ||||
&.cm-link { .highlight-link() } | ||||
&.cm-error { .highlight-error() } | ||||
&.cm-tab { | ||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=); | ||||
background-position: right; | ||||
background-repeat: no-repeat; | ||||
} | ||||
Bussonnier Matthias
|
r12112 | } | ||