mirror of
https://github.com/snachodog/just-the-docs.git
synced 2026-06-04 00:28:11 -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:
-207
@@ -109,213 +109,6 @@ figure.highlight {
|
||||
}
|
||||
}
|
||||
|
||||
.highlight .c {
|
||||
color: #586e75;
|
||||
} // comment //
|
||||
.highlight .err {
|
||||
color: #93a1a1;
|
||||
} // error //
|
||||
.highlight .g {
|
||||
color: #93a1a1;
|
||||
} // generic //
|
||||
.highlight .k {
|
||||
color: #859900;
|
||||
} // keyword //
|
||||
.highlight .l {
|
||||
color: #93a1a1;
|
||||
} // literal //
|
||||
.highlight .n {
|
||||
color: #93a1a1;
|
||||
} // name //
|
||||
.highlight .o {
|
||||
color: #859900;
|
||||
} // operator //
|
||||
.highlight .x {
|
||||
color: #cb4b16;
|
||||
} // other //
|
||||
.highlight .p {
|
||||
color: #93a1a1;
|
||||
} // punctuation //
|
||||
.highlight .cm {
|
||||
color: #586e75;
|
||||
} // comment.multiline //
|
||||
.highlight .cp {
|
||||
color: #859900;
|
||||
} // comment.preproc //
|
||||
.highlight .c1 {
|
||||
color: #586e75;
|
||||
} // comment.single //
|
||||
.highlight .cs {
|
||||
color: #859900;
|
||||
} // comment.special //
|
||||
.highlight .gd {
|
||||
color: #2aa198;
|
||||
} // generic.deleted //
|
||||
.highlight .ge {
|
||||
font-style: italic;
|
||||
color: #93a1a1;
|
||||
} // generic.emph //
|
||||
.highlight .gr {
|
||||
color: #dc322f;
|
||||
} // generic.error //
|
||||
.highlight .gh {
|
||||
color: #cb4b16;
|
||||
} // generic.heading //
|
||||
.highlight .gi {
|
||||
color: #859900;
|
||||
} // generic.inserted //
|
||||
.highlight .go {
|
||||
color: #93a1a1;
|
||||
} // generic.output //
|
||||
.highlight .gp {
|
||||
color: #93a1a1;
|
||||
} // generic.prompt //
|
||||
.highlight .gs {
|
||||
font-weight: bold;
|
||||
color: #93a1a1;
|
||||
} // generic.strong //
|
||||
.highlight .gu {
|
||||
color: #cb4b16;
|
||||
} // generic.subheading //
|
||||
.highlight .gt {
|
||||
color: #93a1a1;
|
||||
} // generic.traceback //
|
||||
.highlight .kc {
|
||||
color: #cb4b16;
|
||||
} // keyword.constant //
|
||||
.highlight .kd {
|
||||
color: #268bd2;
|
||||
} // keyword.declaration //
|
||||
.highlight .kn {
|
||||
color: #859900;
|
||||
} // keyword.namespace //
|
||||
.highlight .kp {
|
||||
color: #859900;
|
||||
} // keyword.pseudo //
|
||||
.highlight .kr {
|
||||
color: #268bd2;
|
||||
} // keyword.reserved //
|
||||
.highlight .kt {
|
||||
color: #dc322f;
|
||||
} // keyword.type //
|
||||
.highlight .ld {
|
||||
color: #93a1a1;
|
||||
} // literal.date //
|
||||
.highlight .m {
|
||||
color: #2aa198;
|
||||
} // literal.number //
|
||||
.highlight .s {
|
||||
color: #2aa198;
|
||||
} // literal.string //
|
||||
.highlight .na {
|
||||
color: #555;
|
||||
} // name.attribute //
|
||||
.highlight .nb {
|
||||
color: #b58900;
|
||||
} // name.builtin //
|
||||
.highlight .nc {
|
||||
color: #268bd2;
|
||||
} // name.class //
|
||||
.highlight .no {
|
||||
color: #cb4b16;
|
||||
} // name.constant //
|
||||
.highlight .nd {
|
||||
color: #268bd2;
|
||||
} // name.decorator //
|
||||
.highlight .ni {
|
||||
color: #cb4b16;
|
||||
} // name.entity //
|
||||
.highlight .ne {
|
||||
color: #cb4b16;
|
||||
} // name.exception //
|
||||
.highlight .nf {
|
||||
color: #268bd2;
|
||||
} // name.function //
|
||||
.highlight .nl {
|
||||
color: #555;
|
||||
} // name.label //
|
||||
.highlight .nn {
|
||||
color: #93a1a1;
|
||||
} // name.namespace //
|
||||
.highlight .nx {
|
||||
color: #555;
|
||||
} // name.other //
|
||||
.highlight .py {
|
||||
color: #93a1a1;
|
||||
} // name.property //
|
||||
.highlight .nt {
|
||||
color: #268bd2;
|
||||
} // name.tag //
|
||||
.highlight .nv {
|
||||
color: #268bd2;
|
||||
} // name.variable //
|
||||
.highlight .ow {
|
||||
color: #859900;
|
||||
} // operator.word //
|
||||
.highlight .w {
|
||||
color: #93a1a1;
|
||||
} // text.whitespace //
|
||||
.highlight .mf {
|
||||
color: #2aa198;
|
||||
} // literal.number.float //
|
||||
.highlight .mh {
|
||||
color: #2aa198;
|
||||
} // literal.number.hex //
|
||||
.highlight .mi {
|
||||
color: #2aa198;
|
||||
} // literal.number.integer //
|
||||
.highlight .mo {
|
||||
color: #2aa198;
|
||||
} // literal.number.oct //
|
||||
.highlight .sb {
|
||||
color: #586e75;
|
||||
} // literal.string.backtick //
|
||||
.highlight .sc {
|
||||
color: #2aa198;
|
||||
} // literal.string.char //
|
||||
.highlight .sd {
|
||||
color: #93a1a1;
|
||||
} // literal.string.doc //
|
||||
.highlight .s2 {
|
||||
color: #2aa198;
|
||||
} // literal.string.double //
|
||||
.highlight .se {
|
||||
color: #cb4b16;
|
||||
} // literal.string.escape //
|
||||
.highlight .sh {
|
||||
color: #93a1a1;
|
||||
} // literal.string.heredoc //
|
||||
.highlight .si {
|
||||
color: #2aa198;
|
||||
} // literal.string.interpol //
|
||||
.highlight .sx {
|
||||
color: #2aa198;
|
||||
} // literal.string.other //
|
||||
.highlight .sr {
|
||||
color: #dc322f;
|
||||
} // literal.string.regex //
|
||||
.highlight .s1 {
|
||||
color: #2aa198;
|
||||
} // literal.string.single //
|
||||
.highlight .ss {
|
||||
color: #2aa198;
|
||||
} // literal.string.symbol //
|
||||
.highlight .bp {
|
||||
color: #268bd2;
|
||||
} // name.builtin.pseudo //
|
||||
.highlight .vc {
|
||||
color: #268bd2;
|
||||
} // name.variable.class //
|
||||
.highlight .vg {
|
||||
color: #268bd2;
|
||||
} // name.variable.global //
|
||||
.highlight .vi {
|
||||
color: #268bd2;
|
||||
} // name.variable.instance //
|
||||
.highlight .il {
|
||||
color: #2aa198;
|
||||
} // literal.number.integer.long //
|
||||
|
||||
//
|
||||
// Code examples (rendered)
|
||||
//
|
||||
|
||||
@@ -11,7 +11,22 @@ $link-color: $blue-000;
|
||||
$btn-primary-color: $blue-200;
|
||||
$base-button-color: $grey-dk-250;
|
||||
|
||||
$code-background-color: $grey-dk-250;
|
||||
$search-background-color: $grey-dk-250;
|
||||
$table-background-color: $grey-dk-250;
|
||||
$feedback-color: darken($sidebar-color, 3%);
|
||||
|
||||
//
|
||||
// The following highlight theme is more legible than that used for the light color scheme
|
||||
//
|
||||
|
||||
// @import "./vendor/OneDarkJekyll/syntax-one-dark";
|
||||
// $code-background-color: #282c34;
|
||||
|
||||
@import "./vendor/OneDarkJekyll/syntax-one-dark-vivid";
|
||||
$code-background-color: #31343f;
|
||||
|
||||
// @import "./vendor/OneDarkJekyll/syntax-firewatch";
|
||||
// $code-background-color: #282c34;
|
||||
|
||||
// @import "./vendor/OneDarkJekyll/syntax-firewatch-green";
|
||||
// $code-background-color: #282c34;
|
||||
|
||||
@@ -0,0 +1,208 @@
|
||||
// Moved from _sass/code.scss
|
||||
|
||||
.highlight .c {
|
||||
color: #586e75;
|
||||
} // comment //
|
||||
.highlight .err {
|
||||
color: #93a1a1;
|
||||
} // error //
|
||||
.highlight .g {
|
||||
color: #93a1a1;
|
||||
} // generic //
|
||||
.highlight .k {
|
||||
color: #859900;
|
||||
} // keyword //
|
||||
.highlight .l {
|
||||
color: #93a1a1;
|
||||
} // literal //
|
||||
.highlight .n {
|
||||
color: #93a1a1;
|
||||
} // name //
|
||||
.highlight .o {
|
||||
color: #859900;
|
||||
} // operator //
|
||||
.highlight .x {
|
||||
color: #cb4b16;
|
||||
} // other //
|
||||
.highlight .p {
|
||||
color: #93a1a1;
|
||||
} // punctuation //
|
||||
.highlight .cm {
|
||||
color: #586e75;
|
||||
} // comment.multiline //
|
||||
.highlight .cp {
|
||||
color: #859900;
|
||||
} // comment.preproc //
|
||||
.highlight .c1 {
|
||||
color: #586e75;
|
||||
} // comment.single //
|
||||
.highlight .cs {
|
||||
color: #859900;
|
||||
} // comment.special //
|
||||
.highlight .gd {
|
||||
color: #2aa198;
|
||||
} // generic.deleted //
|
||||
.highlight .ge {
|
||||
font-style: italic;
|
||||
color: #93a1a1;
|
||||
} // generic.emph //
|
||||
.highlight .gr {
|
||||
color: #dc322f;
|
||||
} // generic.error //
|
||||
.highlight .gh {
|
||||
color: #cb4b16;
|
||||
} // generic.heading //
|
||||
.highlight .gi {
|
||||
color: #859900;
|
||||
} // generic.inserted //
|
||||
.highlight .go {
|
||||
color: #93a1a1;
|
||||
} // generic.output //
|
||||
.highlight .gp {
|
||||
color: #93a1a1;
|
||||
} // generic.prompt //
|
||||
.highlight .gs {
|
||||
font-weight: bold;
|
||||
color: #93a1a1;
|
||||
} // generic.strong //
|
||||
.highlight .gu {
|
||||
color: #cb4b16;
|
||||
} // generic.subheading //
|
||||
.highlight .gt {
|
||||
color: #93a1a1;
|
||||
} // generic.traceback //
|
||||
.highlight .kc {
|
||||
color: #cb4b16;
|
||||
} // keyword.constant //
|
||||
.highlight .kd {
|
||||
color: #268bd2;
|
||||
} // keyword.declaration //
|
||||
.highlight .kn {
|
||||
color: #859900;
|
||||
} // keyword.namespace //
|
||||
.highlight .kp {
|
||||
color: #859900;
|
||||
} // keyword.pseudo //
|
||||
.highlight .kr {
|
||||
color: #268bd2;
|
||||
} // keyword.reserved //
|
||||
.highlight .kt {
|
||||
color: #dc322f;
|
||||
} // keyword.type //
|
||||
.highlight .ld {
|
||||
color: #93a1a1;
|
||||
} // literal.date //
|
||||
.highlight .m {
|
||||
color: #2aa198;
|
||||
} // literal.number //
|
||||
.highlight .s {
|
||||
color: #2aa198;
|
||||
} // literal.string //
|
||||
.highlight .na {
|
||||
color: #555;
|
||||
} // name.attribute //
|
||||
.highlight .nb {
|
||||
color: #b58900;
|
||||
} // name.builtin //
|
||||
.highlight .nc {
|
||||
color: #268bd2;
|
||||
} // name.class //
|
||||
.highlight .no {
|
||||
color: #cb4b16;
|
||||
} // name.constant //
|
||||
.highlight .nd {
|
||||
color: #268bd2;
|
||||
} // name.decorator //
|
||||
.highlight .ni {
|
||||
color: #cb4b16;
|
||||
} // name.entity //
|
||||
.highlight .ne {
|
||||
color: #cb4b16;
|
||||
} // name.exception //
|
||||
.highlight .nf {
|
||||
color: #268bd2;
|
||||
} // name.function //
|
||||
.highlight .nl {
|
||||
color: #555;
|
||||
} // name.label //
|
||||
.highlight .nn {
|
||||
color: #93a1a1;
|
||||
} // name.namespace //
|
||||
.highlight .nx {
|
||||
color: #555;
|
||||
} // name.other //
|
||||
.highlight .py {
|
||||
color: #93a1a1;
|
||||
} // name.property //
|
||||
.highlight .nt {
|
||||
color: #268bd2;
|
||||
} // name.tag //
|
||||
.highlight .nv {
|
||||
color: #268bd2;
|
||||
} // name.variable //
|
||||
.highlight .ow {
|
||||
color: #859900;
|
||||
} // operator.word //
|
||||
.highlight .w {
|
||||
color: #93a1a1;
|
||||
} // text.whitespace //
|
||||
.highlight .mf {
|
||||
color: #2aa198;
|
||||
} // literal.number.float //
|
||||
.highlight .mh {
|
||||
color: #2aa198;
|
||||
} // literal.number.hex //
|
||||
.highlight .mi {
|
||||
color: #2aa198;
|
||||
} // literal.number.integer //
|
||||
.highlight .mo {
|
||||
color: #2aa198;
|
||||
} // literal.number.oct //
|
||||
.highlight .sb {
|
||||
color: #586e75;
|
||||
} // literal.string.backtick //
|
||||
.highlight .sc {
|
||||
color: #2aa198;
|
||||
} // literal.string.char //
|
||||
.highlight .sd {
|
||||
color: #93a1a1;
|
||||
} // literal.string.doc //
|
||||
.highlight .s2 {
|
||||
color: #2aa198;
|
||||
} // literal.string.double //
|
||||
.highlight .se {
|
||||
color: #cb4b16;
|
||||
} // literal.string.escape //
|
||||
.highlight .sh {
|
||||
color: #93a1a1;
|
||||
} // literal.string.heredoc //
|
||||
.highlight .si {
|
||||
color: #2aa198;
|
||||
} // literal.string.interpol //
|
||||
.highlight .sx {
|
||||
color: #2aa198;
|
||||
} // literal.string.other //
|
||||
.highlight .sr {
|
||||
color: #dc322f;
|
||||
} // literal.string.regex //
|
||||
.highlight .s1 {
|
||||
color: #2aa198;
|
||||
} // literal.string.single //
|
||||
.highlight .ss {
|
||||
color: #2aa198;
|
||||
} // literal.string.symbol //
|
||||
.highlight .bp {
|
||||
color: #268bd2;
|
||||
} // name.builtin.pseudo //
|
||||
.highlight .vc {
|
||||
color: #268bd2;
|
||||
} // name.variable.class //
|
||||
.highlight .vg {
|
||||
color: #268bd2;
|
||||
} // name.variable.global //
|
||||
.highlight .vi {
|
||||
color: #268bd2;
|
||||
} // name.variable.instance //
|
||||
.highlight .il {
|
||||
color: #2aa198;
|
||||
} // literal.number.integer.long //
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@
|
||||
ol {
|
||||
counter-reset: sub-counter;
|
||||
|
||||
li {
|
||||
> li {
|
||||
&::before {
|
||||
content: counter(sub-counter, lower-alpha);
|
||||
counter-increment: sub-counter;
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
$pink-000: #f77ef1;
|
||||
$pink-100: #f967f1;
|
||||
$pink-200: #e94ee1;
|
||||
$pink-300: #dd2cd4;
|
||||
|
||||
+21
-1
@@ -137,7 +137,7 @@
|
||||
padding-bottom: $sp-2;
|
||||
padding-left: $gutter-spacing-sm;
|
||||
font-weight: 600;
|
||||
text-align: end;
|
||||
text-align: start;
|
||||
text-transform: uppercase;
|
||||
border-bottom: $border $border-color;
|
||||
@include fs-2;
|
||||
@@ -154,6 +154,26 @@
|
||||
}
|
||||
}
|
||||
|
||||
.nav-list.nav-category-list {
|
||||
> .nav-list-item {
|
||||
margin: 0;
|
||||
|
||||
> .nav-list {
|
||||
padding: 0;
|
||||
|
||||
> .nav-list-item {
|
||||
> .nav-list-link {
|
||||
color: $link-color;
|
||||
}
|
||||
|
||||
> .nav-list-expander {
|
||||
color: $link-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Aux nav
|
||||
|
||||
.aux-nav {
|
||||
|
||||
@@ -34,13 +34,11 @@ h4 code {
|
||||
h5,
|
||||
.text-epsilon {
|
||||
@include fs-3;
|
||||
color: $grey-dk-200;
|
||||
}
|
||||
|
||||
h6,
|
||||
.text-zeta {
|
||||
@include fs-2;
|
||||
color: $grey-dk-200;
|
||||
}
|
||||
|
||||
.text-small {
|
||||
|
||||
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