From 5820120714d8b76ba1f2c4503e3d48bbee8ec294 Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Tue, 19 May 2020 19:34:20 +0100 Subject: [PATCH 1/2] added nnfx theme --- AUTHORS.txt | 1 + CHANGES.md | 5 +++ src/styles/nnfx.css | 106 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 src/styles/nnfx.css diff --git a/AUTHORS.txt b/AUTHORS.txt index 799acc064a..bb8025bd75 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -286,3 +286,4 @@ Contributors: - G8t Guy - Samia Ali - Alexandre Grison +- Jim Mason diff --git a/CHANGES.md b/CHANGES.md index efb45e530b..a41914a177 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ ## Version 10.1.0 (in progress) +New themes: + +- *NNFX* by [Jim Mason][] + Parser Engine: - (parser) Adds `keywords.$pattern` key to grammar definitions (#2519) [Josh Goebel][] @@ -51,6 +55,7 @@ Language Improvements: [Sergey Prokhorov]: https://github.com/seriyps [Nils Knappmeier]: https://github.com/nknapp [Martin (Lhoerion)]: https://github.com/Lhoerion +[Jim Mason]: https://github.com/RocketMan ## Version 10.0.2 diff --git a/src/styles/nnfx.css b/src/styles/nnfx.css new file mode 100644 index 0000000000..07fa78b108 --- /dev/null +++ b/src/styles/nnfx.css @@ -0,0 +1,106 @@ +/** + * nnfx - a theme inspired by Netscape Navigator/Firefox + * + * @version 1.0.0 + * @author (c) 2020 Jim Mason + * @license https://creativecommons.org/licenses/by-sa/4.0 CC BY-SA 4.0 + */ + +.hljs { + display: block; + overflow-x: auto + padding: 0.5em; + background: #fff; + color: #000; +} + +.xml .hljs-meta { + font-weight: bold; + font-style: italic; + color: #48b; +} + +.hljs-comment, +.hljs-quote { + font-style: italic; + color: #070; +} + +.hljs-name, +.hljs-keyword { + color: #808; +} + +.hljs-name, +.hljs-attr { + font-weight: bold; +} + +.hljs-string { + font-weight: normal; +} + +.hljs-variable, +.hljs-template-variable { + color: #477; +} + +.hljs-code, +.hljs-string, +.hljs-meta-string, +.hljs-number, +.hljs-regexp, +.hljs-link { + color: #00f; +} + +.hljs-title, +.hljs-symbol, +.hljs-bullet, +.hljs-built_in, +.hljs-builtin-name { + color: #f40; +} + +.hljs-section, +.hljs-meta { + color: #642; +} + +.hljs-class .hljs-title, +.hljs-type { + color: #639; +} + +.hljs-function .hljs-title, +.hljs-attr, +.hljs-subst { + color: #000; +} + +.hljs-formula { + background-color: #eee; + font-style: italic; +} + +.hljs-addition { + background-color: #beb; +} + +.hljs-deletion { + background-color: #fbb; +} + +.hljs-selector-id, +.hljs-selector-class { + color: #964; +} + +.hljs-doctag, +.hljs-strong { + font-weight: bold; +} + +.hljs-emphasis { + font-style: italic; +} From a2a75bb51b45edf54de7e2d40349d1d04ed1c8fc Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Tue, 19 May 2020 21:34:52 +0100 Subject: [PATCH 2/2] fixed malformed .hljs style --- src/styles/nnfx.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/nnfx.css b/src/styles/nnfx.css index 07fa78b108..e7beaa518a 100644 --- a/src/styles/nnfx.css +++ b/src/styles/nnfx.css @@ -8,7 +8,7 @@ .hljs { display: block; - overflow-x: auto + overflow-x: auto; padding: 0.5em; background: #fff; color: #000;