mirror of
https://github.com/snachodog/just-the-docs.git
synced 2026-06-04 03:19:45 -06:00
Combination (#578)
This PR combines (and resolves conflicts between) #448, #463, #466, #494, #495, #496, #498, and #572. The main aim is to facilitate use of several of the implemented features _together_, when using the fork as a remote theme. It should also simplify merging the included PRs into a future release. The branch [combination-rec-nav](https://github.com/pdmosses/just-the-docs/tree/combination-rec-nav) adds [multi-level navigation](https://github.com/pmarsceill/just-the-docs/pull/462) and (NEW:) [sibling links](https://github.com/pmarsceill/just-the-docs/pull/394) to the branch used for this PR. It includes updated [documentation for the navigation structure](https://pdmosses.github.io/just-the-docs/docs/navigation-structure/), and reorganised and extended [navigation tests](https://pdmosses.github.io/just-the-docs/tests/navigation/). The documentation and the tests can be browsed at the (temporary) [website published from the combination-rec-nav branch](https://pdmosses.github.io/just-the-docs/). _Caveat:_ The changes to v0.3.3 in this PR and #462 have not yet been reviewed or approved, and may need updating before merging into a release of the theme. If you use a branch from a PR as a remote theme, there is a risk of such updates affecting your website. Moreover, these branches are likely to be deleted after they have been merged. To avoid such problems, you could copy the branch that you want to use to your own fork of the theme. Co-authored-by: Matt Wang <matt@matthewwang.me>
This commit is contained in:
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2016 Mihály Gyöngyösi
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
# OneDarkJekyll
|
||||
|
||||
*Use Atom's One Dark syntax colors in your Jekyll powered blog!*
|
||||
|
||||
It's LESS file which can be compiled to a - Pygments, Rouge compatible - stylesheet from Atom editor's One Dark syntax theme (and any theme based on it, for example One Dark Vivid, Firewatch, etc.).
|
||||
|
||||
Download the stylesheet files or compile a new one from any Atom syntax theme which based on One Dark (the variable names in `colors.less` must match with One Dark's)
|
||||
|
||||
## Create a new syntax stylesheet
|
||||
|
||||
1. `npm install -g less less-plugin-clean-css`
|
||||
2. Clone this repository
|
||||
3. Download the `colors.css` file from the syntax theme's repository (for example https://github.com/atom/one-dark-syntax/blob/master/styles/colors.less in case of One-Dark)
|
||||
4. Put the previously downloaded file next to `syntax.less`
|
||||
5. Run `lessc syntax.less syntax.css --clean-css`
|
||||
6. Use the `syntax.css`
|
||||
|
||||
It's not final and in case you find any error/improvement feel free to create a PR. :)
|
||||
|
||||
----
|
||||
|
||||
# UPDATES FOR USE IN JUST-THE-DOCS:
|
||||
|
||||
1. Layout added in `*.css`
|
||||
2. Renamed `*.css` to `*.scss`
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
// Config -----------------------------------
|
||||
@syntax-hue: 220;
|
||||
@syntax-saturation: 13%;
|
||||
@syntax-brightness: 18%;
|
||||
|
||||
|
||||
// Monochrome -----------------------------------
|
||||
@mono-1: hsl(@syntax-hue, 14%, 71%); // default text
|
||||
@mono-2: hsl(@syntax-hue, 9%, 55%);
|
||||
@mono-3: hsl(@syntax-hue, 10%, 40%);
|
||||
|
||||
// Colors -----------------------------------
|
||||
@hue-1: hsl(187, 47%, 55%); // <-cyan
|
||||
@hue-2: hsl(207, 82%, 66%); // <-blue
|
||||
@hue-3: hsl(286, 60%, 67%); // <-purple
|
||||
@hue-4: hsl( 95, 38%, 62%); // <-green
|
||||
|
||||
@hue-5: hsl(355, 65%, 65%); // <-red 1
|
||||
@hue-5-2: hsl( 5, 48%, 51%); // <-red 2
|
||||
|
||||
@hue-6: hsl( 29, 54%, 61%); // <-orange 1
|
||||
@hue-6-2: hsl( 39, 67%, 69%); // <-orange 2
|
||||
|
||||
|
||||
// Base colors -----------------------------------
|
||||
@syntax-fg: @mono-1;
|
||||
@syntax-bg: hsl(@syntax-hue, @syntax-saturation, @syntax-brightness);
|
||||
@syntax-gutter: darken(@syntax-fg, 26%);
|
||||
@syntax-guide: fade(@syntax-fg, 15%);
|
||||
@syntax-accent: hsl(@syntax-hue, 100%, 66% );
|
||||
@@ -0,0 +1,65 @@
|
||||
|
||||
.highlight, pre.highlight{background:#282c34;color:#abb2bf}
|
||||
.highlight pre{background:#282c34}
|
||||
.highlight .hll{background:#282c34}
|
||||
.highlight .c{color:#5c6370;font-style:italic}
|
||||
.highlight .err{color:#960050;background-color:#1e0010}
|
||||
.highlight .k{color:#5ba473}
|
||||
.highlight .l{color:#c8ae9d}
|
||||
.highlight .n{color:#abb2bf}
|
||||
.highlight .o{color:#abb2bf}
|
||||
.highlight .p{color:#abb2bf}
|
||||
.highlight .cm{color:#5c6370;font-style:italic}
|
||||
.highlight .cp{color:#5c6370;font-style:italic}
|
||||
.highlight .c1{color:#5c6370;font-style:italic}
|
||||
.highlight .cs{color:#5c6370;font-style:italic}
|
||||
.highlight .ge{font-style:italic}
|
||||
.highlight .gs{font-weight:700}
|
||||
.highlight .kc{color:#5ba473}
|
||||
.highlight .kd{color:#5ba473}
|
||||
.highlight .kn{color:#5ba473}
|
||||
.highlight .kp{color:#5ba473}
|
||||
.highlight .kr{color:#5ba473}
|
||||
.highlight .kt{color:#5ba473}
|
||||
.highlight .ld{color:#c8ae9d}
|
||||
.highlight .m{color:#d19a66}
|
||||
.highlight .s{color:#c8ae9d}
|
||||
.highlight .na{color:#d19a66}
|
||||
.highlight .nb{color:#e5c07b}
|
||||
.highlight .nc{color:#e5c07b}
|
||||
.highlight .no{color:#e5c07b}
|
||||
.highlight .nd{color:#e5c07b}
|
||||
.highlight .ni{color:#e5c07b}
|
||||
.highlight .ne{color:#e5c07b}
|
||||
.highlight .nf{color:#abb2bf}
|
||||
.highlight .nl{color:#e5c07b}
|
||||
.highlight .nn{color:#abb2bf}
|
||||
.highlight .nx{color:#abb2bf}
|
||||
.highlight .py{color:#e5c07b}
|
||||
.highlight .nt{color:#77b181}
|
||||
.highlight .nv{color:#e5c07b}
|
||||
.highlight .ow{font-weight:700}
|
||||
.highlight .w{color:#f8f8f2}
|
||||
.highlight .mf{color:#d19a66}
|
||||
.highlight .mh{color:#d19a66}
|
||||
.highlight .mi{color:#d19a66}
|
||||
.highlight .mo{color:#d19a66}
|
||||
.highlight .sb{color:#c8ae9d}
|
||||
.highlight .sc{color:#c8ae9d}
|
||||
.highlight .sd{color:#c8ae9d}
|
||||
.highlight .s2{color:#c8ae9d}
|
||||
.highlight .se{color:#c8ae9d}
|
||||
.highlight .sh{color:#c8ae9d}
|
||||
.highlight .si{color:#c8ae9d}
|
||||
.highlight .sx{color:#c8ae9d}
|
||||
.highlight .sr{color:#56b6c2}
|
||||
.highlight .s1{color:#c8ae9d}
|
||||
.highlight .ss{color:#56b6c2}
|
||||
.highlight .bp{color:#e5c07b}
|
||||
.highlight .vc{color:#e5c07b}
|
||||
.highlight .vg{color:#e5c07b}
|
||||
.highlight .vi{color:#77b181}
|
||||
.highlight .il{color:#d19a66}
|
||||
.highlight .gu{color:#75715e}
|
||||
.highlight .gd{color:#f92672}
|
||||
.highlight .gi{color:#a6e22e}
|
||||
@@ -0,0 +1,65 @@
|
||||
|
||||
.highlight, pre.highlight{background:#282c34;color:#abb2bf}
|
||||
.highlight pre{background:#282c34}
|
||||
.highlight .hll{background:#282c34}
|
||||
.highlight .c{color:#5c6370;font-style:italic}
|
||||
.highlight .err{color:#960050;background-color:#1e0010}
|
||||
.highlight .k{color:#dd672c}
|
||||
.highlight .l{color:#c8ae9d}
|
||||
.highlight .n{color:#abb2bf}
|
||||
.highlight .o{color:#abb2bf}
|
||||
.highlight .p{color:#abb2bf}
|
||||
.highlight .cm{color:#5c6370;font-style:italic}
|
||||
.highlight .cp{color:#5c6370;font-style:italic}
|
||||
.highlight .c1{color:#5c6370;font-style:italic}
|
||||
.highlight .cs{color:#5c6370;font-style:italic}
|
||||
.highlight .ge{font-style:italic}
|
||||
.highlight .gs{font-weight:700}
|
||||
.highlight .kc{color:#dd672c}
|
||||
.highlight .kd{color:#dd672c}
|
||||
.highlight .kn{color:#dd672c}
|
||||
.highlight .kp{color:#dd672c}
|
||||
.highlight .kr{color:#dd672c}
|
||||
.highlight .kt{color:#dd672c}
|
||||
.highlight .ld{color:#c8ae9d}
|
||||
.highlight .m{color:#d19a66}
|
||||
.highlight .s{color:#c8ae9d}
|
||||
.highlight .na{color:#d19a66}
|
||||
.highlight .nb{color:#e5c07b}
|
||||
.highlight .nc{color:#e5c07b}
|
||||
.highlight .no{color:#e5c07b}
|
||||
.highlight .nd{color:#e5c07b}
|
||||
.highlight .ni{color:#e5c07b}
|
||||
.highlight .ne{color:#e5c07b}
|
||||
.highlight .nf{color:#abb2bf}
|
||||
.highlight .nl{color:#e5c07b}
|
||||
.highlight .nn{color:#abb2bf}
|
||||
.highlight .nx{color:#abb2bf}
|
||||
.highlight .py{color:#e5c07b}
|
||||
.highlight .nt{color:#e06c75}
|
||||
.highlight .nv{color:#e5c07b}
|
||||
.highlight .ow{font-weight:700}
|
||||
.highlight .w{color:#f8f8f2}
|
||||
.highlight .mf{color:#d19a66}
|
||||
.highlight .mh{color:#d19a66}
|
||||
.highlight .mi{color:#d19a66}
|
||||
.highlight .mo{color:#d19a66}
|
||||
.highlight .sb{color:#c8ae9d}
|
||||
.highlight .sc{color:#c8ae9d}
|
||||
.highlight .sd{color:#c8ae9d}
|
||||
.highlight .s2{color:#c8ae9d}
|
||||
.highlight .se{color:#c8ae9d}
|
||||
.highlight .sh{color:#c8ae9d}
|
||||
.highlight .si{color:#c8ae9d}
|
||||
.highlight .sx{color:#c8ae9d}
|
||||
.highlight .sr{color:#56b6c2}
|
||||
.highlight .s1{color:#c8ae9d}
|
||||
.highlight .ss{color:#56b6c2}
|
||||
.highlight .bp{color:#e5c07b}
|
||||
.highlight .vc{color:#e5c07b}
|
||||
.highlight .vg{color:#e5c07b}
|
||||
.highlight .vi{color:#e06c75}
|
||||
.highlight .il{color:#d19a66}
|
||||
.highlight .gu{color:#75715e}
|
||||
.highlight .gd{color:#f92672}
|
||||
.highlight .gi{color:#a6e22e}
|
||||
@@ -0,0 +1,64 @@
|
||||
.highlight, pre.highlight{background:#31343f;color:#dee2f7}
|
||||
.highlight pre{background:#31343f}
|
||||
.highlight .hll{background:#31343f}
|
||||
.highlight .c{color:#63677e;font-style:italic}
|
||||
.highlight .err{color:#960050;background-color:#1e0010}
|
||||
.highlight .k{color:#e19ef5}
|
||||
.highlight .l{color:#a3eea0}
|
||||
.highlight .n{color:#dee2f7}
|
||||
.highlight .o{color:#dee2f7}
|
||||
.highlight .p{color:#dee2f7}
|
||||
.highlight .cm{color:#63677e;font-style:italic}
|
||||
.highlight .cp{color:#63677e;font-style:italic}
|
||||
.highlight .c1{color:#63677e;font-style:italic}
|
||||
.highlight .cs{color:#63677e;font-style:italic}
|
||||
.highlight .ge{font-style:italic}
|
||||
.highlight .gs{font-weight:700}
|
||||
.highlight .kc{color:#e19ef5}
|
||||
.highlight .kd{color:#e19ef5}
|
||||
.highlight .kn{color:#e19ef5}
|
||||
.highlight .kp{color:#e19ef5}
|
||||
.highlight .kr{color:#e19ef5}
|
||||
.highlight .kt{color:#e19ef5}
|
||||
.highlight .ld{color:#a3eea0}
|
||||
.highlight .m{color:#eddc96}
|
||||
.highlight .s{color:#a3eea0}
|
||||
.highlight .na{color:#eddc96}
|
||||
.highlight .nb{color:#fdce68}
|
||||
.highlight .nc{color:#fdce68}
|
||||
.highlight .no{color:#fdce68}
|
||||
.highlight .nd{color:#fdce68}
|
||||
.highlight .ni{color:#fdce68}
|
||||
.highlight .ne{color:#fdce68}
|
||||
.highlight .nf{color:#dee2f7}
|
||||
.highlight .nl{color:#fdce68}
|
||||
.highlight .nn{color:#dee2f7}
|
||||
.highlight .nx{color:#dee2f7}
|
||||
.highlight .py{color:#fdce68}
|
||||
.highlight .nt{color:#f9867b}
|
||||
.highlight .nv{color:#fdce68}
|
||||
.highlight .ow{font-weight:700}
|
||||
.highlight .w{color:#f8f8f2}
|
||||
.highlight .mf{color:#eddc96}
|
||||
.highlight .mh{color:#eddc96}
|
||||
.highlight .mi{color:#eddc96}
|
||||
.highlight .mo{color:#eddc96}
|
||||
.highlight .sb{color:#a3eea0}
|
||||
.highlight .sc{color:#a3eea0}
|
||||
.highlight .sd{color:#a3eea0}
|
||||
.highlight .s2{color:#a3eea0}
|
||||
.highlight .se{color:#a3eea0}
|
||||
.highlight .sh{color:#a3eea0}
|
||||
.highlight .si{color:#a3eea0}
|
||||
.highlight .sx{color:#a3eea0}
|
||||
.highlight .sr{color:#7be2f9}
|
||||
.highlight .s1{color:#a3eea0}
|
||||
.highlight .ss{color:#7be2f9}
|
||||
.highlight .bp{color:#fdce68}
|
||||
.highlight .vc{color:#fdce68}
|
||||
.highlight .vg{color:#fdce68}
|
||||
.highlight .vi{color:#f9867b}
|
||||
.highlight .il{color:#eddc96}
|
||||
.highlight .gu{color:#75715e}
|
||||
.highlight .gd{color:#f92672}
|
||||
.highlight .gi{color:#a6e22e}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
.highlight, pre.highlight{background:#282c34;color:#abb2bf}
|
||||
.highlight pre{background:#282c34}
|
||||
.highlight .hll{background:#282c34}
|
||||
.highlight .c{color:#5c6370;font-style:italic}
|
||||
.highlight .err{color:#960050;background-color:#1e0010}
|
||||
.highlight .k{color:#c678dd}
|
||||
.highlight .l{color:#98c379}
|
||||
.highlight .n{color:#abb2bf}
|
||||
.highlight .o{color:#abb2bf}
|
||||
.highlight .p{color:#abb2bf}
|
||||
.highlight .cm{color:#5c6370;font-style:italic}
|
||||
.highlight .cp{color:#5c6370;font-style:italic}
|
||||
.highlight .c1{color:#5c6370;font-style:italic}
|
||||
.highlight .cs{color:#5c6370;font-style:italic}
|
||||
.highlight .ge{font-style:italic}
|
||||
.highlight .gs{font-weight:700}
|
||||
.highlight .kc{color:#c678dd}
|
||||
.highlight .kd{color:#c678dd}
|
||||
.highlight .kn{color:#c678dd}
|
||||
.highlight .kp{color:#c678dd}
|
||||
.highlight .kr{color:#c678dd}
|
||||
.highlight .kt{color:#c678dd}
|
||||
.highlight .ld{color:#98c379}
|
||||
.highlight .m{color:#d19a66}
|
||||
.highlight .s{color:#98c379}
|
||||
.highlight .na{color:#d19a66}
|
||||
.highlight .nb{color:#e5c07b}
|
||||
.highlight .nc{color:#e5c07b}
|
||||
.highlight .no{color:#e5c07b}
|
||||
.highlight .nd{color:#e5c07b}
|
||||
.highlight .ni{color:#e5c07b}
|
||||
.highlight .ne{color:#e5c07b}
|
||||
.highlight .nf{color:#abb2bf}
|
||||
.highlight .nl{color:#e5c07b}
|
||||
.highlight .nn{color:#abb2bf}
|
||||
.highlight .nx{color:#abb2bf}
|
||||
.highlight .py{color:#e5c07b}
|
||||
.highlight .nt{color:#e06c75}
|
||||
.highlight .nv{color:#e5c07b}
|
||||
.highlight .ow{font-weight:700}
|
||||
.highlight .w{color:#f8f8f2}
|
||||
.highlight .mf{color:#d19a66}
|
||||
.highlight .mh{color:#d19a66}
|
||||
.highlight .mi{color:#d19a66}
|
||||
.highlight .mo{color:#d19a66}
|
||||
.highlight .sb{color:#98c379}
|
||||
.highlight .sc{color:#98c379}
|
||||
.highlight .sd{color:#98c379}
|
||||
.highlight .s2{color:#98c379}
|
||||
.highlight .se{color:#98c379}
|
||||
.highlight .sh{color:#98c379}
|
||||
.highlight .si{color:#98c379}
|
||||
.highlight .sx{color:#98c379}
|
||||
.highlight .sr{color:#56b6c2}
|
||||
.highlight .s1{color:#98c379}
|
||||
.highlight .ss{color:#56b6c2}
|
||||
.highlight .bp{color:#e5c07b}
|
||||
.highlight .vc{color:#e5c07b}
|
||||
.highlight .vg{color:#e5c07b}
|
||||
.highlight .vi{color:#e06c75}
|
||||
.highlight .il{color:#d19a66}
|
||||
.highlight .gu{color:#75715e}
|
||||
.highlight .gd{color:#f92672}
|
||||
.highlight .gi{color:#a6e22e}
|
||||
@@ -0,0 +1,56 @@
|
||||
@import "colors.less";
|
||||
|
||||
// Official Syntax Variables -----------------------------------
|
||||
|
||||
// General colors
|
||||
@syntax-text-color: @syntax-fg;
|
||||
@syntax-cursor-color: @syntax-accent;
|
||||
@syntax-selection-color: lighten(@syntax-background-color, 10%);
|
||||
@syntax-selection-flash-color: @syntax-accent;
|
||||
@syntax-background-color: @syntax-bg;
|
||||
|
||||
// Guide colors
|
||||
@syntax-wrap-guide-color: @syntax-guide;
|
||||
@syntax-indent-guide-color: @syntax-guide;
|
||||
@syntax-invisible-character-color: @syntax-guide;
|
||||
|
||||
// For find and replace markers
|
||||
@syntax-result-marker-color: fade(@syntax-accent, 24%);
|
||||
@syntax-result-marker-color-selected: @syntax-accent;
|
||||
|
||||
// Gutter colors
|
||||
@syntax-gutter-text-color: @syntax-gutter;
|
||||
@syntax-gutter-text-color-selected: @syntax-fg;
|
||||
@syntax-gutter-background-color: @syntax-bg; // unused
|
||||
@syntax-gutter-background-color-selected: lighten(@syntax-bg, 2%);
|
||||
|
||||
// Git colors - For git diff info. i.e. in the gutter
|
||||
@syntax-color-renamed: hsl(208, 100%, 60%);
|
||||
@syntax-color-added: hsl(150, 60%, 54%);
|
||||
@syntax-color-modified: hsl(40, 60%, 70%);
|
||||
@syntax-color-removed: hsl(0, 70%, 60%);
|
||||
|
||||
// For language entity colors
|
||||
@syntax-color-variable: @hue-5;
|
||||
@syntax-color-constant: @hue-6;
|
||||
@syntax-color-property: @syntax-fg;
|
||||
@syntax-color-value: @syntax-fg;
|
||||
@syntax-color-function: @hue-2;
|
||||
@syntax-color-method: @hue-2;
|
||||
@syntax-color-class: @hue-6-2;
|
||||
@syntax-color-keyword: @hue-3;
|
||||
@syntax-color-tag: @hue-5;
|
||||
@syntax-color-attribute: @hue-6;
|
||||
@syntax-color-import: @hue-3;
|
||||
@syntax-color-snippet: @hue-4;
|
||||
|
||||
|
||||
// Custom Syntax Variables -----------------------------------
|
||||
// Don't use in packages
|
||||
|
||||
@syntax-cursor-line: hsla(@syntax-hue, 100%, 80%, .04); // needs to be semi-transparent to show search results
|
||||
|
||||
@syntax-deprecated-fg: darken(@syntax-color-modified, 50%);
|
||||
@syntax-deprecated-bg: @syntax-color-modified;
|
||||
@syntax-illegal-fg: white;
|
||||
@syntax-illegal-bg: @syntax-color-removed;
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
LESS for Pygments
|
||||
*/
|
||||
|
||||
@import "syntax-variables.less";
|
||||
|
||||
pre.highlight,
|
||||
.highlight {
|
||||
background: @syntax-bg;
|
||||
color: @mono-1;
|
||||
}
|
||||
.highlight {
|
||||
pre { background: @syntax-bg; }
|
||||
.hll { background: @syntax-bg; }
|
||||
.c { color: @mono-3; font-style: italic; } /* Comment */
|
||||
.err { color: @syntax-illegal-fg; background-color: @syntax-illegal-bg; } /* Error */
|
||||
.k { color: @hue-3; } /* Keyword */
|
||||
.l { color: @hue-4; } /* Literal */
|
||||
.n { color: @mono-1; } /* Name */
|
||||
.o { color: @mono-1; } /* Operator */
|
||||
.p { color: @mono-1; } /* Punctuation */
|
||||
.cm { color: @mono-3; font-style: italic; } /* Comment.Multiline */
|
||||
.cp { color: @mono-3; font-style: italic; } /* Comment.Preproc */
|
||||
.c1 { color: @mono-3; font-style: italic; } /* Comment.Single */
|
||||
.cs { color: @mono-3; font-style: italic; } /* Comment.Special */
|
||||
.ge { font-style: italic } /* Generic.Emph */
|
||||
.gs { font-weight: bold } /* Generic.Strong */
|
||||
.kc { color: @hue-3; } /* Keyword.Constant */
|
||||
.kd { color: @hue-3; } /* Keyword.Declaration */
|
||||
.kn { color: @hue-3; } /* Keyword.Namespace */
|
||||
.kp { color: @hue-3; } /* Keyword.Pseudo */
|
||||
.kr { color: @hue-3; } /* Keyword.Reserved */
|
||||
.kt { color: @hue-3; } /* Keyword.Type */
|
||||
.ld { color: @hue-4; } /* Literal.Date */
|
||||
.m { color: @hue-6; } /* Literal.Number */
|
||||
.s { color: @hue-4; } /* Literal.String */
|
||||
.na { color: @hue-6; } /* Name.Attribute */
|
||||
.nb { color: @hue-6-2; } /* Name.Builtin */
|
||||
.nc { color: @hue-6-2; } /* Name.Class */
|
||||
.no { color: @hue-6-2; } /* Name.Constant */
|
||||
.nd { color: @hue-6-2; } /* Name.Decorator */
|
||||
.ni { color: @hue-6-2; } /* Name.Entity */
|
||||
.ne { color: @hue-6-2; } /* Name.Exception */
|
||||
.nf { color: @mono-1; } /* Name.Function */
|
||||
.nl { color: @hue-6-2; } /* Name.Label */
|
||||
.nn { color: @mono-1; } /* Name.Namespace */
|
||||
.nx { color: @mono-1; } /* Name.Other */
|
||||
.py { color: @hue-6-2; } /* Name.Property */
|
||||
.nt { color: @hue-5; } /* Name.Tag */
|
||||
.nv { color: @hue-6-2; } /* Name.Variable */
|
||||
.ow { font-weight: bold; } /* Operator.Word */
|
||||
.w { color: #f8f8f2 } /* Text.Whitespace */
|
||||
.mf { color: @hue-6; } /* Literal.Number.Float */
|
||||
.mh { color: @hue-6; } /* Literal.Number.Hex */
|
||||
.mi { color: @hue-6; } /* Literal.Number.Integer */
|
||||
.mo { color: @hue-6; } /* Literal.Number.Oct */
|
||||
.sb { color: @hue-4; } /* Literal.String.Backtick */
|
||||
.sc { color: @hue-4; } /* Literal.String.Char */
|
||||
.sd { color: @hue-4; } /* Literal.String.Doc */
|
||||
.s2 { color: @hue-4; } /* Literal.String.Double */
|
||||
.se { color: @hue-4; } /* Literal.String.Escape */
|
||||
.sh { color: @hue-4; } /* Literal.String.Heredoc */
|
||||
.si { color: @hue-4; } /* Literal.String.Interpol */
|
||||
.sx { color: @hue-4; } /* Literal.String.Other */
|
||||
.sr { color: @hue-1; } /* Literal.String.Regex */
|
||||
.s1 { color: @hue-4; } /* Literal.String.Single */
|
||||
.ss { color: @hue-1; } /* Literal.String.Symbol */
|
||||
.bp { color: @hue-6-2; } /* Name.Builtin.Pseudo */
|
||||
.vc { color: @hue-6-2; } /* Name.Variable.Class */
|
||||
.vg { color: @hue-6-2; } /* Name.Variable.Global */
|
||||
.vi { color: @hue-5; } /* Name.Variable.Instance */
|
||||
.il { color: @hue-6; } /* Literal.Number.Integer.Long */
|
||||
|
||||
.gh { } /* Generic Heading & Diff Header */
|
||||
.gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
|
||||
.gd { color: @syntax-color-removed; } /* Generic.Deleted & Diff Deleted */
|
||||
.gi { color: @syntax-color-added; } /* Generic.Inserted & Diff Inserted */
|
||||
|
||||
::selection { background-color: @syntax-selection-color; }
|
||||
|
||||
.language-json {
|
||||
.w + .s2 { color: @hue-5; }
|
||||
.kc { color: @hue-1; }
|
||||
}
|
||||
|
||||
.language-python {
|
||||
// python related modifications
|
||||
}
|
||||
|
||||
.language-csharp {
|
||||
// csharp related modifications
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user