Skip to content

Commit 6e182e0

Browse files
authored
(chore) updates nnfx theme for v11 (#3187)
1 parent 3749c1a commit 6e182e0

File tree

3 files changed

+67
-46
lines changed

3 files changed

+67
-46
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Themes:
3434
- `github` updated to better match modern GitHub (#1616) [Jan Pilzer][]
3535
- `github-gist` has been removed in favor of `github` [Jan Pilzer][]
3636
- Base16 named themes have been updated to their "canonical" versions
37+
- `nnfx` updated for v11 xml styles and improved css support
3738

3839
Language Grammars:
3940

src/styles/nnfx-dark.css

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
/**
2-
* nnfx dark - a theme inspired by Netscape Navigator/Firefox
3-
*
4-
* @version 1.0.0
5-
* @author (c) 2020 Jim Mason <[email protected]>
6-
* @license https://creativecommons.org/licenses/by-sa/4.0 CC BY-SA 4.0
7-
*/
1+
/*!
2+
Theme: nnfx dark
3+
Description: a theme inspired by Netscape Navigator/Firefox
4+
Author: (c) 2020-2021 Jim Mason <[email protected]>
5+
Maintainer: @RocketMan
6+
License: https://creativecommons.org/licenses/by-sa/4.0 CC BY-SA 4.0
7+
Updated: 2021-05-17
8+
9+
@version 1.1.0
10+
*/
811

912
.hljs {
1013
background: #333;
1114
color: #fff;
1215
}
1316

14-
.xml .hljs-meta {
17+
.language-xml .hljs-meta,
18+
.language-xml .hljs-meta-string {
1519
font-weight: bold;
1620
font-style: italic;
1721
color: #69f;
@@ -24,7 +28,8 @@
2428
}
2529

2630
.hljs-name,
27-
.hljs-keyword {
31+
.hljs-keyword,
32+
.hljs-built_in {
2833
color: #a7a;
2934
}
3035

@@ -37,11 +42,6 @@
3742
font-weight: normal;
3843
}
3944

40-
.hljs-variable,
41-
.hljs-template-variable {
42-
color: #588;
43-
}
44-
4545
.hljs-code,
4646
.hljs-string,
4747
.hljs-meta .hljs-string,
@@ -54,25 +54,23 @@
5454
.hljs-title,
5555
.hljs-symbol,
5656
.hljs-bullet,
57-
.hljs-built_in {
57+
.hljs-variable,
58+
.hljs-template-variable {
5859
color: #d40;
5960
}
6061

61-
.hljs-section,
62-
.hljs-meta {
63-
color: #a85;
64-
}
65-
6662
.hljs-title.class_,
6763
.hljs-class .hljs-title,
6864
.hljs-type {
65+
font-weight: bold;
6966
color: #96c;
7067
}
7168

7269
.hljs-title.function_,
7370
.hljs-function .hljs-title,
7471
.hljs-attr,
75-
.hljs-subst {
72+
.hljs-subst,
73+
.hljs-tag {
7674
color: #fff;
7775
}
7876

@@ -89,9 +87,21 @@
8987
background-color: #c99;
9088
}
9189

90+
.hljs-meta {
91+
color: #69f;
92+
}
93+
94+
.hljs-section,
9295
.hljs-selector-id,
93-
.hljs-selector-class {
94-
color: #964;
96+
.hljs-selector-class,
97+
.hljs-selector-pseudo,
98+
.hljs-selector-tag {
99+
font-weight: bold;
100+
color: #69f;
101+
}
102+
103+
.hljs-selector-pseudo {
104+
font-style: italic;
95105
}
96106

97107
.hljs-doctag,

src/styles/nnfx-light.css

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
/**
2-
* nnfx - a theme inspired by Netscape Navigator/Firefox
3-
*
4-
* @version 1.0.0
5-
* @author (c) 2020 Jim Mason <[email protected]>
6-
* @license https://creativecommons.org/licenses/by-sa/4.0 CC BY-SA 4.0
7-
*/
1+
/*!
2+
Theme: nnfx light
3+
Description: a theme inspired by Netscape Navigator/Firefox
4+
Author: (c) 2020-2021 Jim Mason <[email protected]>
5+
Maintainer: @RocketMan
6+
License: https://creativecommons.org/licenses/by-sa/4.0 CC BY-SA 4.0
7+
Updated: 2021-05-17
8+
9+
@version 1.1.0
10+
*/
811

912
.hljs {
1013
background: #fff;
1114
color: #000;
1215
}
1316

14-
.xml .hljs-meta {
17+
.language-xml .hljs-meta,
18+
.language-xml .hljs-meta-string {
1519
font-weight: bold;
1620
font-style: italic;
1721
color: #48b;
@@ -24,7 +28,8 @@
2428
}
2529

2630
.hljs-name,
27-
.hljs-keyword {
31+
.hljs-keyword,
32+
.hljs-built_in {
2833
color: #808;
2934
}
3035

@@ -37,11 +42,6 @@
3742
font-weight: normal;
3843
}
3944

40-
.hljs-variable,
41-
.hljs-template-variable {
42-
color: #477;
43-
}
44-
4545
.hljs-code,
4646
.hljs-string,
4747
.hljs-meta .hljs-string,
@@ -54,25 +54,23 @@
5454
.hljs-title,
5555
.hljs-symbol,
5656
.hljs-bullet,
57-
.hljs-built_in {
57+
.hljs-variable,
58+
.hljs-template-variable {
5859
color: #f40;
5960
}
6061

61-
.hljs-section,
62-
.hljs-meta {
63-
color: #642;
64-
}
65-
6662
.hljs-title.class_,
6763
.hljs-class .hljs-title,
6864
.hljs-type {
65+
font-weight: bold;
6966
color: #639;
7067
}
7168

7269
.hljs-title.function_,
7370
.hljs-function .hljs-title,
7471
.hljs-attr,
75-
.hljs-subst {
72+
.hljs-subst,
73+
.hljs-tag {
7674
color: #000;
7775
}
7876

@@ -89,9 +87,21 @@
8987
background-color: #fbb;
9088
}
9189

90+
.hljs-meta {
91+
color: #269;
92+
}
93+
94+
.hljs-section,
9295
.hljs-selector-id,
93-
.hljs-selector-class {
94-
color: #964;
96+
.hljs-selector-class,
97+
.hljs-selector-pseudo,
98+
.hljs-selector-tag {
99+
font-weight: bold;
100+
color: #48b;
101+
}
102+
103+
.hljs-selector-pseudo {
104+
font-style: italic;
95105
}
96106

97107
.hljs-doctag,

0 commit comments

Comments
 (0)