Skip to content

Commit

Permalink
Define "selector-pseudo" for CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
isagalaev committed Nov 25, 2015
1 parent 23136ba commit b661d7c
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/css-classes-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Stylable classes
+--------------------------+---------------------------------------------------+
| selector-attr | [attr] selector in CSS |
+--------------------------+---------------------------------------------------+
| selector-pseudo | :pseudo selector in CSS |
+--------------------------+---------------------------------------------------+
| **Templates** |
+--------------------------+---------------------------------------------------+
| template-tag | tag of a template language |
Expand Down
2 changes: 1 addition & 1 deletion src/languages/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function(hljs) {
illegal: '$'
},
{
// pseudo element
className: 'selector-pseudo',
begin: /:(:)?[a-zA-Z0-9\_\-\+\(\)"']+/
},
{
Expand Down
1 change: 1 addition & 0 deletions src/styles/darkula.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Darkula color scheme from the JetBrains family of IDEs
.hljs-symbol,
.hljs-selector-id,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-template-tag,
.hljs-template-variable,
.hljs-addition {
Expand Down
3 changes: 2 additions & 1 deletion src/styles/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Original highlight.js style (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
.hljs-variable,
.hljs-template-variable,
.hljs-link,
.hljs-selector-attr {
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #BC6060;
}

Expand Down
3 changes: 2 additions & 1 deletion src/styles/github-gist.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
.hljs-attr,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr {
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #795da3;
}

Expand Down
1 change: 1 addition & 0 deletions src/styles/googlecode.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>

.hljs-string,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-regexp {
color: #080;
}
Expand Down
3 changes: 2 additions & 1 deletion src/styles/hybrid.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ vim-hybrid theme by w0ng (https://github.com/w0ng/vim-hybrid)
.hljs-doctag,
.hljs-addition,
.hljs-regexp,
.hljs-selector-attr {
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #b5bd68;
}

Expand Down
1 change: 1 addition & 0 deletions src/styles/ir-black.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

.hljs-string,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-addition {
color: #a8ff60;
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/monokai-sublime.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
.hljs-builtin-name,
.hljs-selector-id,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-addition,
.hljs-variable,
.hljs-template-variable {
Expand Down
1 change: 1 addition & 0 deletions src/styles/monokai.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Monokai style - ported by Luigi Maselli - http://grigio.org
.hljs-built_in,
.hljs-builtin-name,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
Expand Down
1 change: 1 addition & 0 deletions src/styles/obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
.hljs-type,
.hljs-built_in,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
Expand Down
3 changes: 2 additions & 1 deletion src/styles/rainbow.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ Style with support for rainbow parens
}

.hljs-number,
.hljs-selector-attr {
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #f99157;
}

Expand Down
1 change: 1 addition & 0 deletions src/styles/solarized-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmai
.hljs-subst,
.hljs-meta .hljs-keyword,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-link {
color: #cb4b16;
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/solarized-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmai
.hljs-subst,
.hljs-meta .hljs-keyword,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-link {
color: #cb4b16;
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/vs.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Visual Studio-like style based on original C# coloring by Jason Diamond <jason@d

.hljs-deletion,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-meta {
color: #2b91af;
}
Expand Down

0 comments on commit b661d7c

Please sign in to comment.