`:
39 |
40 | pandoc 2.0–2.0.3:
41 |
42 | ``` html
43 |
44 | ```
45 | pandoc >=2.0.4:
46 |
47 | ``` html
48 |
49 | ```
50 |
51 |
52 |
53 |
56 |
57 | [highlighting-kate]: https://github.com/jgm/highlighting-kate "Visit repository"
58 | [skylighting]: https://github.com/jgm/skylighting "Visit repository"
59 |
60 |
61 |
62 | [version 1.19.2]: https://github.com/jgm/pandoc/releases/tag/1.19.2 "View pandoc 1.19.2 release notes"
63 | [Pandoc 2.0.4]: https://github.com/jgm/pandoc/releases/tag/2.0.4 "View pandoc 2.0.4 release notes"
64 | [v2.7.2]: https://github.com/jgm/pandoc/releases/tag/2.7.2 "View pandoc 2.7.2 release notes"
65 |
66 |
67 |
68 | [built-in syntax highlighter]: #pandocs-syntax-highlighting-engine "jump to section"
69 | [full list]: #pandoc-highlighting-supported-languages "jump to section"
70 |
71 |
72 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/README.md:
--------------------------------------------------------------------------------
1 | # Pandoc Built-in Styles
2 |
3 | pandoc v2.7.2 | v1.19.2
4 |
5 | In this folder you'll find the standalone CSS stylesheets of pandoc eight built-in styles (syntax highlighting themes):
6 |
7 | 1. [`breezedark.css`](./breezedark.css)
8 | 2. [`espresso.css`](./espresso.css)
9 | 3. [`haddock.css`](./haddock.css)
10 | 4. [`kate.css`](./kate.css)
11 | 5. [`monochrome.css`](./monochrome.css)
12 | 6. [`pygments.css`](./pygments.css) (default style)
13 | 7. [`tango.css`](./tango.css)
14 | 8. [`zenburn.css`](./zenburn.css)
15 |
16 | The stylesheets were extracted from standalone HTML5 documents created with pandoc `v2.7.2`, using the `--highlight-style` option. A comment block with extra info was added at the beginning of each stylesheet.
17 |
18 | They are intended as a examples and quick reference when developing custom styles (see [License section] below).
19 |
20 |
21 | > __NOTE__ — pandoc v2.0.4 introduced some breaking changes in the way code is highlighted in html output. (For more info, see [README in parent folder])
22 |
23 |
24 | ## Pandoc v1 Styles
25 |
26 | - [`/pandoc_v1/`](./pandoc_v1/)
27 |
28 | In the "[`/pandoc_v1/`](./pandoc_v1/)" folder you'll find the equivalent files for pandoc v1 — version 2 introduced some changes in syntax highlighting HTML tags and built-in CSS styles, so the old files are kept for projects that still require pandoc `v1.x`.
29 |
30 | From [pandoc v2.0 release notes]:
31 |
32 | > The way highlighted code blocks are formatted in HTML has been changed (David Baynard), in ways that may require changes in hard-coded CSS affecting highlighting. (If you haven't included hard-coded highlighting CSS in your template, you needn't change anything.)
33 |
34 | Most notably, line-numbered code dosen't use HTML tables anymore.
35 |
36 | # About The Styles
37 |
38 | ## Color Themes Inspiration
39 |
40 | Some info about the original themes these pandoc styles are based on (info taken from [skylighting source code] and further research).
41 |
42 | - **breezedark** — Style from the "Breeze Dark" KDE syntax highlighting theme.
43 | - **espresso** — Style based on [ultraviolet] → "[espresso_libre.css]" (dark background)
44 | - **haddock** — Style based on [Haddock]'s source highlighting.
45 | - **kate** — Style based on Kate's default colors.
46 | - **monochrome** — Style with no colors.
47 | - **pygments** — Style based on [Pygments] → [default colors].
48 | - **tango** — Style based on [Pygments] → "[tango]" colors.
49 | - **zenburn** — Style based on the popular "[Zenburn]" Vim color scheme.
50 |
51 |
52 | ## License
53 |
54 | - [LICENSE](./LICENSE) — Pandoc license file.
55 | - [GPL-2.0](./GPL-2.0) — GNU-GPL v2 license file.
56 |
57 | Pandoc built-in styles are dynamically generated by the skylighting library — ie: the actual CSS stylesheets are not present in pandoc nor skylighting source code, but are generated programmatically from a set a hardcoded values. The code that generates them can be seen here:
58 |
59 | - https://github.com/jgm/skylighting/blob/master/skylighting-core/src/Skylighting/Styles.hs
60 |
61 | The CSS stylesheets of the syntax styles (aka "themes") fall under the same license governing pandoc: **GPL v2** (or greater).
62 |
63 | Pandoc built-in default templates are maintained on a repository of their own, and they are dual-licensed — under both the **GPL** (**v2** or higher, same as pandoc) and the **BSD 3-clause** ("New" or "Revised") license:
64 |
65 | - https://github.com/jgm/pandoc-templates
66 |
67 | Even though pandoc templates are dual licensed, the actual CSS styles are not part of the HTML4/HTML5 templates, they are dynamically generated by pandoc and injected into the template when the following is encounterd:
68 |
69 | $if(highlighting-css)$
70 |
73 | $endif$
74 |
75 | It's therefore safer to assume that the introduction of the built-in CSS stylesheets in a template or a final document excludes the **BSD 3-clause** license option, leaving as the only viable choice the **GPL v2** (or greater) license which is common to both templates and stylesheets.
76 |
77 |
78 |
81 |
82 | [README in parent folder]: ../README.md#breaking-changes "Go to parent folder's README file"
83 |
84 | [pandoc v2.0 release notes]: https://github.com/jgm/pandoc/releases/tag/2.0 "View pandoc 2.0 release notes"
85 |
86 | [skylighting source code]: https://github.com/jgm/skylighting/blob/master/skylighting-core/src/Skylighting/Styles.hs
87 |
88 |
89 |
90 | [default colors]: https://bitbucket.org/birkenfeld/pygments-main/src/default/pygments/styles/default.py
91 | [espresso_libre.css]: https://github.com/spox/ultraviolet/blob/master/render/xhtml/files/css/espresso_libre.css
92 | [Haddock]: https://www.haskell.org/haddock/
93 | [Pygments]: http://pygments.org/
94 | [tango]: https://bitbucket.org/birkenfeld/pygments-main/src/default/pygments/styles/tango.py
95 | [ultraviolet]: https://rubygems.org/gems/ultraviolet/versions/0.10.0
96 | [Zenburn]: http://kippura.org/zenburnpage/
97 |
98 |
99 |
100 | [License section]: #license "jump to section"
101 |
102 |
103 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/breezedark.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Breezedark (pandoc built-in style)
3 | ==============================================================================
4 | Style from the "Breeze Dark" KDE syntax highlighting theme.
5 |
6 | This stylesheet was produced using Pandoc v2.7.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | a.sourceLine { display: inline-block; line-height: 1.25; }
13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
14 | a.sourceLine:empty { height: 1.2em; }
15 | .sourceCode { overflow: visible; }
16 | code.sourceCode { white-space: pre; position: relative; }
17 | div.sourceCode { margin: 1em 0; }
18 | pre.sourceCode { margin: 0; }
19 | @media screen {
20 | div.sourceCode { overflow: auto; }
21 | }
22 | @media print {
23 | code.sourceCode { white-space: pre-wrap; }
24 | a.sourceLine { text-indent: -1em; padding-left: 1em; }
25 | }
26 | pre.numberSource a.sourceLine
27 | { position: relative; left: -4em; }
28 | pre.numberSource a.sourceLine::before
29 | { content: attr(title);
30 | position: relative; left: -1em; text-align: right; vertical-align: baseline;
31 | border: none; pointer-events: all; display: inline-block;
32 | -webkit-touch-callout: none; -webkit-user-select: none;
33 | -khtml-user-select: none; -moz-user-select: none;
34 | -ms-user-select: none; user-select: none;
35 | padding: 0 4px; width: 4em;
36 | background-color: #232629;
37 | color: #7a7c7d;
38 | }
39 | pre.numberSource { margin-left: 3em; border-left: 1px solid #7a7c7d; padding-left: 4px; }
40 | div.sourceCode
41 | { color: #cfcfc2; background-color: #232629; }
42 | @media screen {
43 | a.sourceLine::before { text-decoration: underline; }
44 | }
45 | code span. { color: #cfcfc2; } /* Normal */
46 | code span.al { color: #95da4c; } /* Alert */
47 | code span.an { color: #3f8058; } /* Annotation */
48 | code span.at { color: #2980b9; } /* Attribute */
49 | code span.bn { color: #f67400; } /* BaseN */
50 | code span.bu { color: #7f8c8d; } /* BuiltIn */
51 | code span.cf { color: #fdbc4b; } /* ControlFlow */
52 | code span.ch { color: #3daee9; } /* Char */
53 | code span.cn { color: #27aeae; } /* Constant */
54 | code span.co { color: #7a7c7d; } /* Comment */
55 | code span.cv { color: #7f8c8d; } /* CommentVar */
56 | code span.do { color: #a43340; } /* Documentation */
57 | code span.dt { color: #2980b9; } /* DataType */
58 | code span.dv { color: #f67400; } /* DecVal */
59 | code span.er { color: #da4453; } /* Error */
60 | code span.ex { color: #0099ff; } /* Extension */
61 | code span.fl { color: #f67400; } /* Float */
62 | code span.fu { color: #8e44ad; } /* Function */
63 | code span.im { color: #27ae60; } /* Import */
64 | code span.in { color: #c45b00; } /* Information */
65 | code span.kw { color: #cfcfc2; } /* Keyword */
66 | code span.op { color: #cfcfc2; } /* Operator */
67 | code span.ot { color: #27ae60; } /* Other */
68 | code span.pp { color: #27ae60; } /* Preprocessor */
69 | code span.re { color: #2980b9; } /* RegionMarker */
70 | code span.sc { color: #3daee9; } /* SpecialChar */
71 | code span.ss { color: #da4453; } /* SpecialString */
72 | code span.st { color: #f44f4f; } /* String */
73 | code span.va { color: #27aeae; } /* Variable */
74 | code span.vs { color: #da4453; } /* VerbatimString */
75 | code span.wa { color: #da4453; } /* Warning */
76 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/espresso.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Espresso (pandoc built-in style)
3 | ==============================================================================
4 | Style based on ultraviolet's "espresso_libre.css" (dark background):
5 |
6 | https://github.com/spox/ultraviolet/
7 |
8 | This stylesheet was produced using Pandoc v2.7.2.
9 |
10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
11 | Released under the GPL, version 2 or greater.
12 | ------------------------------------------------------------------------------
13 | */
14 | a.sourceLine { display: inline-block; line-height: 1.25; }
15 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
16 | a.sourceLine:empty { height: 1.2em; }
17 | .sourceCode { overflow: visible; }
18 | code.sourceCode { white-space: pre; position: relative; }
19 | div.sourceCode { margin: 1em 0; }
20 | pre.sourceCode { margin: 0; }
21 | @media screen {
22 | div.sourceCode { overflow: auto; }
23 | }
24 | @media print {
25 | code.sourceCode { white-space: pre-wrap; }
26 | a.sourceLine { text-indent: -1em; padding-left: 1em; }
27 | }
28 | pre.numberSource a.sourceLine
29 | { position: relative; left: -4em; }
30 | pre.numberSource a.sourceLine::before
31 | { content: attr(title);
32 | position: relative; left: -1em; text-align: right; vertical-align: baseline;
33 | border: none; pointer-events: all; display: inline-block;
34 | -webkit-touch-callout: none; -webkit-user-select: none;
35 | -khtml-user-select: none; -moz-user-select: none;
36 | -ms-user-select: none; user-select: none;
37 | padding: 0 4px; width: 4em;
38 | background-color: #2a211c;
39 | color: #bdae9d;
40 | }
41 | pre.numberSource { margin-left: 3em; border-left: 1px solid #bdae9d; padding-left: 4px; }
42 | div.sourceCode
43 | { color: #bdae9d; background-color: #2a211c; }
44 | @media screen {
45 | a.sourceLine::before { text-decoration: underline; }
46 | }
47 | code span.al { color: #ffff00; } /* Alert */
48 | code span.an { color: #0066ff; font-weight: bold; font-style: italic; } /* Annotation */
49 | code span.at { } /* Attribute */
50 | code span.bn { color: #44aa43; } /* BaseN */
51 | code span.bu { } /* BuiltIn */
52 | code span.cf { color: #43a8ed; font-weight: bold; } /* ControlFlow */
53 | code span.ch { color: #049b0a; } /* Char */
54 | code span.cn { } /* Constant */
55 | code span.co { color: #0066ff; font-weight: bold; font-style: italic; } /* Comment */
56 | code span.do { color: #0066ff; font-style: italic; } /* Documentation */
57 | code span.dt { text-decoration: underline; } /* DataType */
58 | code span.dv { color: #44aa43; } /* DecVal */
59 | code span.er { color: #ffff00; font-weight: bold; } /* Error */
60 | code span.ex { } /* Extension */
61 | code span.fl { color: #44aa43; } /* Float */
62 | code span.fu { color: #ff9358; font-weight: bold; } /* Function */
63 | code span.im { } /* Import */
64 | code span.in { color: #0066ff; font-weight: bold; font-style: italic; } /* Information */
65 | code span.kw { color: #43a8ed; font-weight: bold; } /* Keyword */
66 | code span.op { } /* Operator */
67 | code span.pp { font-weight: bold; } /* Preprocessor */
68 | code span.sc { color: #049b0a; } /* SpecialChar */
69 | code span.ss { color: #049b0a; } /* SpecialString */
70 | code span.st { color: #049b0a; } /* String */
71 | code span.va { } /* Variable */
72 | code span.vs { color: #049b0a; } /* VerbatimString */
73 | code span.wa { color: #ffff00; font-weight: bold; } /* Warning */
74 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/haddock.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Haddock (pandoc built-in style)
3 | ==============================================================================
4 | Style based on Haddock's source highlighting:
5 |
6 | https://www.haskell.org/haddock/
7 |
8 | This stylesheet was produced using Pandoc v2.7.2.
9 |
10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
11 | Released under the GPL, version 2 or greater.
12 | ------------------------------------------------------------------------------
13 | */
14 | a.sourceLine { display: inline-block; line-height: 1.25; }
15 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
16 | a.sourceLine:empty { height: 1.2em; }
17 | .sourceCode { overflow: visible; }
18 | code.sourceCode { white-space: pre; position: relative; }
19 | div.sourceCode { margin: 1em 0; }
20 | pre.sourceCode { margin: 0; }
21 | @media screen {
22 | div.sourceCode { overflow: auto; }
23 | }
24 | @media print {
25 | code.sourceCode { white-space: pre-wrap; }
26 | a.sourceLine { text-indent: -1em; padding-left: 1em; }
27 | }
28 | pre.numberSource a.sourceLine
29 | { position: relative; left: -4em; }
30 | pre.numberSource a.sourceLine::before
31 | { content: attr(title);
32 | position: relative; left: -1em; text-align: right; vertical-align: baseline;
33 | border: none; pointer-events: all; display: inline-block;
34 | -webkit-touch-callout: none; -webkit-user-select: none;
35 | -khtml-user-select: none; -moz-user-select: none;
36 | -ms-user-select: none; user-select: none;
37 | padding: 0 4px; width: 4em;
38 | color: #aaaaaa;
39 | }
40 | pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
41 | div.sourceCode
42 | { }
43 | @media screen {
44 | a.sourceLine::before { text-decoration: underline; }
45 | }
46 | code span.al { color: #ff0000; } /* Alert */
47 | code span.an { color: #008000; } /* Annotation */
48 | code span.at { } /* Attribute */
49 | code span.bu { } /* BuiltIn */
50 | code span.cf { color: #0000ff; } /* ControlFlow */
51 | code span.ch { color: #008080; } /* Char */
52 | code span.cn { } /* Constant */
53 | code span.co { color: #008000; } /* Comment */
54 | code span.cv { color: #008000; } /* CommentVar */
55 | code span.do { color: #008000; } /* Documentation */
56 | code span.er { color: #ff0000; font-weight: bold; } /* Error */
57 | code span.ex { } /* Extension */
58 | code span.im { } /* Import */
59 | code span.in { color: #008000; } /* Information */
60 | code span.kw { color: #0000ff; } /* Keyword */
61 | code span.op { } /* Operator */
62 | code span.ot { color: #ff4000; } /* Other */
63 | code span.pp { color: #ff4000; } /* Preprocessor */
64 | code span.sc { color: #008080; } /* SpecialChar */
65 | code span.ss { color: #008080; } /* SpecialString */
66 | code span.st { color: #008080; } /* String */
67 | code span.va { } /* Variable */
68 | code span.vs { color: #008080; } /* VerbatimString */
69 | code span.wa { color: #008000; font-weight: bold; } /* Warning */
70 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/kate.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Kate (pandoc built-in style)
3 | ==============================================================================
4 | Style based on Kate's default colors.
5 |
6 | This stylesheet was produced using Pandoc v2.7.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | a.sourceLine { display: inline-block; line-height: 1.25; }
13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
14 | a.sourceLine:empty { height: 1.2em; }
15 | .sourceCode { overflow: visible; }
16 | code.sourceCode { white-space: pre; position: relative; }
17 | div.sourceCode { margin: 1em 0; }
18 | pre.sourceCode { margin: 0; }
19 | @media screen {
20 | div.sourceCode { overflow: auto; }
21 | }
22 | @media print {
23 | code.sourceCode { white-space: pre-wrap; }
24 | a.sourceLine { text-indent: -1em; padding-left: 1em; }
25 | }
26 | pre.numberSource a.sourceLine
27 | { position: relative; left: -4em; }
28 | pre.numberSource a.sourceLine::before
29 | { content: attr(title);
30 | position: relative; left: -1em; text-align: right; vertical-align: baseline;
31 | border: none; pointer-events: all; display: inline-block;
32 | -webkit-touch-callout: none; -webkit-user-select: none;
33 | -khtml-user-select: none; -moz-user-select: none;
34 | -ms-user-select: none; user-select: none;
35 | padding: 0 4px; width: 4em;
36 | background-color: #ffffff;
37 | color: #a0a0a0;
38 | }
39 | pre.numberSource { margin-left: 3em; border-left: 1px solid #a0a0a0; padding-left: 4px; }
40 | div.sourceCode
41 | { color: #1f1c1b; background-color: #ffffff; }
42 | @media screen {
43 | a.sourceLine::before { text-decoration: underline; }
44 | }
45 | code span. { color: #1f1c1b; } /* Normal */
46 | code span.al { color: #bf0303; background-color: #f7e6e6; font-weight: bold; } /* Alert */
47 | code span.an { color: #ca60ca; } /* Annotation */
48 | code span.at { color: #0057ae; } /* Attribute */
49 | code span.bn { color: #b08000; } /* BaseN */
50 | code span.bu { color: #644a9b; font-weight: bold; } /* BuiltIn */
51 | code span.cf { color: #1f1c1b; font-weight: bold; } /* ControlFlow */
52 | code span.ch { color: #924c9d; } /* Char */
53 | code span.cn { color: #aa5500; } /* Constant */
54 | code span.co { color: #898887; } /* Comment */
55 | code span.cv { color: #0095ff; } /* CommentVar */
56 | code span.do { color: #607880; } /* Documentation */
57 | code span.dt { color: #0057ae; } /* DataType */
58 | code span.dv { color: #b08000; } /* DecVal */
59 | code span.er { color: #bf0303; text-decoration: underline; } /* Error */
60 | code span.ex { color: #0095ff; font-weight: bold; } /* Extension */
61 | code span.fl { color: #b08000; } /* Float */
62 | code span.fu { color: #644a9b; } /* Function */
63 | code span.im { color: #ff5500; } /* Import */
64 | code span.in { color: #b08000; } /* Information */
65 | code span.kw { color: #1f1c1b; font-weight: bold; } /* Keyword */
66 | code span.op { color: #1f1c1b; } /* Operator */
67 | code span.ot { color: #006e28; } /* Other */
68 | code span.pp { color: #006e28; } /* Preprocessor */
69 | code span.re { color: #0057ae; background-color: #e0e9f8; } /* RegionMarker */
70 | code span.sc { color: #3daee9; } /* SpecialChar */
71 | code span.ss { color: #ff5500; } /* SpecialString */
72 | code span.st { color: #bf0303; } /* String */
73 | code span.va { color: #0057ae; } /* Variable */
74 | code span.vs { color: #bf0303; } /* VerbatimString */
75 | code span.wa { color: #bf0303; } /* Warning */
76 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/monochrome.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Monochrome (pandoc built-in style)
3 | ==============================================================================
4 | Style with no colors.
5 |
6 | This stylesheet was produced using Pandoc v2.7.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | a.sourceLine { display: inline-block; line-height: 1.25; }
13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
14 | a.sourceLine:empty { height: 1.2em; }
15 | .sourceCode { overflow: visible; }
16 | code.sourceCode { white-space: pre; position: relative; }
17 | div.sourceCode { margin: 1em 0; }
18 | pre.sourceCode { margin: 0; }
19 | @media screen {
20 | div.sourceCode { overflow: auto; }
21 | }
22 | @media print {
23 | code.sourceCode { white-space: pre-wrap; }
24 | a.sourceLine { text-indent: -1em; padding-left: 1em; }
25 | }
26 | pre.numberSource a.sourceLine
27 | { position: relative; left: -4em; }
28 | pre.numberSource a.sourceLine::before
29 | { content: attr(title);
30 | position: relative; left: -1em; text-align: right; vertical-align: baseline;
31 | border: none; pointer-events: all; display: inline-block;
32 | -webkit-touch-callout: none; -webkit-user-select: none;
33 | -khtml-user-select: none; -moz-user-select: none;
34 | -ms-user-select: none; user-select: none;
35 | padding: 0 4px; width: 4em;
36 | }
37 | pre.numberSource { margin-left: 3em; padding-left: 4px; }
38 | div.sourceCode
39 | { }
40 | @media screen {
41 | a.sourceLine::before { text-decoration: underline; }
42 | }
43 | code span.al { font-weight: bold; } /* Alert */
44 | code span.an { font-style: italic; } /* Annotation */
45 | code span.cf { font-weight: bold; } /* ControlFlow */
46 | code span.co { font-style: italic; } /* Comment */
47 | code span.cv { font-style: italic; } /* CommentVar */
48 | code span.do { font-style: italic; } /* Documentation */
49 | code span.dt { text-decoration: underline; } /* DataType */
50 | code span.er { font-weight: bold; } /* Error */
51 | code span.in { font-style: italic; } /* Information */
52 | code span.kw { font-weight: bold; } /* Keyword */
53 | code span.pp { font-weight: bold; } /* Preprocessor */
54 | code span.wa { font-style: italic; } /* Warning */
55 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pandoc_v1/README.md:
--------------------------------------------------------------------------------
1 | # Pandoc v1 Built-in Styles
2 |
3 | This folder contains the standalone CSS stylesheets of the eight built-in styles (syntax highlighting themes) of pandoc v1:
4 |
5 | 1. [`breezedark.css`](./breezedark.css)
6 | 2. [`espresso.css`](./espresso.css)
7 | 3. [`haddock.css`](./haddock.css)
8 | 4. [`kate.css`](./kate.css)
9 | 5. [`monochrome.css`](./monochrome.css)
10 | 6. [`pygments.css`](./pygments.css) (default style)
11 | 7. [`tango.css`](./tango.css)
12 | 8. [`zenburn.css`](./zenburn.css)
13 |
14 | Since pandoc v2 introduced some changes in the CSS themes for syntax higlighting, these old stylesheets are kept for projects that need pandoc v1.
15 |
16 | The stylesheets were extracted from standalone HTML5 documents created with pandoc (`v1.19.2`), using the `--highlight-style` option. A comment block with extra info was added at the beginning of each stylesheet.
17 |
18 | Pandoc v1 ended its life-cycle with [`v1.19.4`](https://github.com/jgm/pandoc/releases/tag/1.19.2.4) (Sep 10, 2017). Therefore, these stylesheet from `v1.19.2` (Sep 8, 2017) represent the most updated version of the pandoc v1 themes.
19 |
20 | ## License
21 |
22 | - [LICENSE](./LICENSE) — Pandoc license file.
23 | - [GPL-2.0](./GPL-2.0) — GNU-GPL v2 license file.
24 |
25 |
26 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pandoc_v1/breezedark.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Breezedark (pandoc built-in style)
3 | ==============================================================================
4 | Style from the "Breeze Dark" KDE syntax highlighting theme.
5 |
6 | This stylesheet was produced using Pandoc v1.19.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | div.sourceCode { overflow-x: auto; }
13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
14 | margin: 0; padding: 0; vertical-align: baseline; border: none; }
15 | table.sourceCode { width: 100%; line-height: 100%; background-color: #232629; color: #cfcfc2; }
16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; background-color: #232629; color: #7a7c7d; border-right: 1px solid #7a7c7d; }
17 | td.sourceCode { padding-left: 5px; }
18 | pre, code { color: #cfcfc2; background-color: #232629; }
19 | code > span.kw { color: #cfcfc2; } /* Keyword */
20 | code > span.dt { color: #2980b9; } /* DataType */
21 | code > span.dv { color: #f67400; } /* DecVal */
22 | code > span.bn { color: #f67400; } /* BaseN */
23 | code > span.fl { color: #f67400; } /* Float */
24 | code > span.cn { color: #27aeae; } /* Constant */
25 | code > span.ch { color: #3daee9; } /* Char */
26 | code > span.sc { color: #3daee9; } /* SpecialChar */
27 | code > span.st { color: #f44f4f; } /* String */
28 | code > span.vs { color: #da4453; } /* VerbatimString */
29 | code > span.ss { color: #da4453; } /* SpecialString */
30 | code > span.im { color: #27ae60; } /* Import */
31 | code > span.co { color: #7a7c7d; } /* Comment */
32 | code > span.do { color: #a43340; } /* Documentation */
33 | code > span.an { color: #3f8058; } /* Annotation */
34 | code > span.cv { color: #7f8c8d; } /* CommentVar */
35 | code > span.ot { color: #27ae60; } /* Other */
36 | code > span.fu { color: #8e44ad; } /* Function */
37 | code > span.va { color: #27aeae; } /* Variable */
38 | code > span.cf { color: #fdbc4b; } /* ControlFlow */
39 | code > span.op { color: #cfcfc2; } /* Operator */
40 | code > span.bu { color: #7f8c8d; } /* BuiltIn */
41 | code > span.ex { color: #0099ff; } /* Extension */
42 | code > span.pp { color: #27ae60; } /* Preprocessor */
43 | code > span.at { color: #2980b9; } /* Attribute */
44 | code > span.re { color: #2980b9; } /* RegionMarker */
45 | code > span.in { color: #c45b00; } /* Information */
46 | code > span.wa { color: #da4453; } /* Warning */
47 | code > span.al { color: #95da4c; } /* Alert */
48 | code > span.er { color: #da4453; } /* Error */
49 | code > span. { color: #cfcfc2; } /* Normal */
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pandoc_v1/espresso.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Espresso (pandoc built-in style)
3 | ==============================================================================
4 | Style based on ultraviolet's "espresso_libre.css" (dark background):
5 |
6 | https://github.com/spox/ultraviolet/
7 |
8 | This stylesheet was produced using Pandoc v1.19.2.
9 |
10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
11 | Released under the GPL, version 2 or greater.
12 | ------------------------------------------------------------------------------
13 | */
14 | div.sourceCode { overflow-x: auto; }
15 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
16 | margin: 0; padding: 0; vertical-align: baseline; border: none; }
17 | table.sourceCode { width: 100%; line-height: 100%; background-color: #2a211c; color: #bdae9d; }
18 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; background-color: #2a211c; color: #bdae9d; border-right: 1px solid #bdae9d; }
19 | td.sourceCode { padding-left: 5px; }
20 | pre, code { color: #bdae9d; background-color: #2a211c; }
21 | code > span.kw { color: #43a8ed; font-weight: bold; } /* Keyword */
22 | code > span.dt { text-decoration: underline; } /* DataType */
23 | code > span.dv { color: #44aa43; } /* DecVal */
24 | code > span.bn { color: #44aa43; } /* BaseN */
25 | code > span.fl { color: #44aa43; } /* Float */
26 | code > span.ch { color: #049b0a; } /* Char */
27 | code > span.st { color: #049b0a; } /* String */
28 | code > span.co { color: #0066ff; font-style: italic; } /* Comment */
29 | code > span.al { color: #ffff00; } /* Alert */
30 | code > span.fu { color: #ff9358; font-weight: bold; } /* Function */
31 | code > span.er { color: #ffff00; font-weight: bold; } /* Error */
32 | code > span.wa { color: #ffff00; font-weight: bold; } /* Warning */
33 | code > span.cn { } /* Constant */
34 | code > span.sc { color: #049b0a; } /* SpecialChar */
35 | code > span.vs { color: #049b0a; } /* VerbatimString */
36 | code > span.ss { color: #049b0a; } /* SpecialString */
37 | code > span.im { } /* Import */
38 | code > span.va { } /* Variable */
39 | code > span.cf { color: #43a8ed; font-weight: bold; } /* ControlFlow */
40 | code > span.op { } /* Operator */
41 | code > span.bu { } /* BuiltIn */
42 | code > span.ex { } /* Extension */
43 | code > span.pp { font-weight: bold; } /* Preprocessor */
44 | code > span.at { } /* Attribute */
45 | code > span.do { color: #0066ff; font-style: italic; } /* Documentation */
46 | code > span.an { color: #0066ff; font-weight: bold; font-style: italic; } /* Annotation */
47 | code > span.co { color: #0066ff; font-weight: bold; font-style: italic; } /* Comment */
48 | code > span.in { color: #0066ff; font-weight: bold; font-style: italic; } /* Information */
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pandoc_v1/haddock.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Haddock (pandoc built-in style)
3 | ==============================================================================
4 | Style based on Haddock's source highlighting:
5 |
6 | https://www.haskell.org/haddock/
7 |
8 | This stylesheet was produced using Pandoc v1.19.2.
9 |
10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
11 | Released under the GPL, version 2 or greater.
12 | ------------------------------------------------------------------------------
13 | */
14 | div.sourceCode { overflow-x: auto; }
15 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
16 | margin: 0; padding: 0; vertical-align: baseline; border: none; }
17 | table.sourceCode { width: 100%; line-height: 100%; }
18 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
19 | td.sourceCode { padding-left: 5px; }
20 | code > span.kw { color: #0000ff; } /* Keyword */
21 | code > span.ch { color: #008080; } /* Char */
22 | code > span.st { color: #008080; } /* String */
23 | code > span.co { color: #008000; } /* Comment */
24 | code > span.ot { color: #ff4000; } /* Other */
25 | code > span.al { color: #ff0000; } /* Alert */
26 | code > span.er { color: #ff0000; font-weight: bold; } /* Error */
27 | code > span.wa { color: #008000; font-weight: bold; } /* Warning */
28 | code > span.cn { } /* Constant */
29 | code > span.sc { color: #008080; } /* SpecialChar */
30 | code > span.vs { color: #008080; } /* VerbatimString */
31 | code > span.ss { color: #008080; } /* SpecialString */
32 | code > span.im { } /* Import */
33 | code > span.va { } /* Variable */
34 | code > span.cf { color: #0000ff; } /* ControlFlow */
35 | code > span.op { } /* Operator */
36 | code > span.bu { } /* BuiltIn */
37 | code > span.ex { } /* Extension */
38 | code > span.pp { color: #ff4000; } /* Preprocessor */
39 | code > span.do { color: #008000; } /* Documentation */
40 | code > span.an { color: #008000; } /* Annotation */
41 | code > span.cv { color: #008000; } /* CommentVar */
42 | code > span.at { } /* Attribute */
43 | code > span.in { color: #008000; } /* Information */
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pandoc_v1/kate.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Kate (pandoc built-in style)
3 | ==============================================================================
4 | Style based on Kate's default colors.
5 |
6 | This stylesheet was produced using Pandoc v1.19.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | div.sourceCode { overflow-x: auto; }
13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
14 | margin: 0; padding: 0; vertical-align: baseline; border: none; }
15 | table.sourceCode { width: 100%; line-height: 100%; background-color: #ffffff; color: #1f1c1b; }
16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; background-color: #ffffff; color: #a0a0a0; border-right: 1px solid #a0a0a0; }
17 | td.sourceCode { padding-left: 5px; }
18 | pre, code { color: #1f1c1b; background-color: #ffffff; }
19 | code > span.kw { color: #1f1c1b; font-weight: bold; } /* Keyword */
20 | code > span.dt { color: #0057ae; } /* DataType */
21 | code > span.dv { color: #b08000; } /* DecVal */
22 | code > span.bn { color: #b08000; } /* BaseN */
23 | code > span.fl { color: #b08000; } /* Float */
24 | code > span.cn { color: #aa5500; } /* Constant */
25 | code > span.ch { color: #924c9d; } /* Char */
26 | code > span.sc { color: #3daee9; } /* SpecialChar */
27 | code > span.st { color: #bf0303; } /* String */
28 | code > span.vs { color: #bf0303; } /* VerbatimString */
29 | code > span.ss { color: #ff5500; } /* SpecialString */
30 | code > span.im { color: #ff5500; } /* Import */
31 | code > span.co { color: #898887; } /* Comment */
32 | code > span.do { color: #607880; } /* Documentation */
33 | code > span.an { color: #ca60ca; } /* Annotation */
34 | code > span.cv { color: #0095ff; } /* CommentVar */
35 | code > span.ot { color: #006e28; } /* Other */
36 | code > span.fu { color: #644a9b; } /* Function */
37 | code > span.va { color: #0057ae; } /* Variable */
38 | code > span.cf { color: #1f1c1b; font-weight: bold; } /* ControlFlow */
39 | code > span.op { color: #1f1c1b; } /* Operator */
40 | code > span.bu { color: #644a9b; font-weight: bold; } /* BuiltIn */
41 | code > span.ex { color: #0095ff; font-weight: bold; } /* Extension */
42 | code > span.pp { color: #006e28; } /* Preprocessor */
43 | code > span.at { color: #0057ae; } /* Attribute */
44 | code > span.re { color: #0057ae; } /* RegionMarker */
45 | code > span.in { color: #b08000; } /* Information */
46 | code > span.wa { color: #bf0303; } /* Warning */
47 | code > span.al { color: #bf0303; font-weight: bold; } /* Alert */
48 | code > span.er { color: #bf0303; text-decoration: underline; } /* Error */
49 | code > span. { color: #1f1c1b; } /* Normal */
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pandoc_v1/monochrome.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Monochrome (pandoc built-in style)
3 | ==============================================================================
4 | Style with no colors.
5 |
6 | This stylesheet was produced using Pandoc v1.19.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | div.sourceCode { overflow-x: auto; }
13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
14 | margin: 0; padding: 0; vertical-align: baseline; border: none; }
15 | table.sourceCode { width: 100%; line-height: 100%; }
16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; }
17 | td.sourceCode { padding-left: 5px; }
18 | code > span.kw { font-weight: bold; } /* Keyword */
19 | code > span.dt { text-decoration: underline; } /* DataType */
20 | code > span.co { font-style: italic; } /* Comment */
21 | code > span.al { font-weight: bold; } /* Alert */
22 | code > span.er { font-weight: bold; } /* Error */
23 | code > span.wa { font-style: italic; } /* Warning */
24 | code > span.cf { font-weight: bold; } /* ControlFlow */
25 | code > span.pp { font-weight: bold; } /* Preprocessor */
26 | code > span.do { font-style: italic; } /* Documentation */
27 | code > span.an { font-style: italic; } /* Annotation */
28 | code > span.cv { font-style: italic; } /* CommentVar */
29 | code > span.in { font-style: italic; } /* Information */
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pandoc_v1/pygments.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Pygments (pandoc built-in style)
3 | ==============================================================================
4 | Style based on Pygments' default colors.
5 |
6 | This stylesheet was produced using Pandoc v1.19.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | div.sourceCode { overflow-x: auto; }
13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
14 | margin: 0; padding: 0; vertical-align: baseline; border: none; }
15 | table.sourceCode { width: 100%; line-height: 100%; }
16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
17 | td.sourceCode { padding-left: 5px; }
18 | code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
19 | code > span.dt { color: #902000; } /* DataType */
20 | code > span.dv { color: #40a070; } /* DecVal */
21 | code > span.bn { color: #40a070; } /* BaseN */
22 | code > span.fl { color: #40a070; } /* Float */
23 | code > span.ch { color: #4070a0; } /* Char */
24 | code > span.st { color: #4070a0; } /* String */
25 | code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
26 | code > span.ot { color: #007020; } /* Other */
27 | code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
28 | code > span.fu { color: #06287e; } /* Function */
29 | code > span.er { color: #ff0000; font-weight: bold; } /* Error */
30 | code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
31 | code > span.cn { color: #880000; } /* Constant */
32 | code > span.sc { color: #4070a0; } /* SpecialChar */
33 | code > span.vs { color: #4070a0; } /* VerbatimString */
34 | code > span.ss { color: #bb6688; } /* SpecialString */
35 | code > span.im { } /* Import */
36 | code > span.va { color: #19177c; } /* Variable */
37 | code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
38 | code > span.op { color: #666666; } /* Operator */
39 | code > span.bu { } /* BuiltIn */
40 | code > span.ex { } /* Extension */
41 | code > span.pp { color: #bc7a00; } /* Preprocessor */
42 | code > span.at { color: #7d9029; } /* Attribute */
43 | code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
44 | code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
45 | code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
46 | code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pandoc_v1/tango.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Tango (pandoc built-in style)
3 | ==============================================================================
4 | Style based on Pygments' "tango" colors.
5 |
6 | This stylesheet was produced using Pandoc v1.19.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | div.sourceCode { overflow-x: auto; }
13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
14 | margin: 0; padding: 0; vertical-align: baseline; border: none; }
15 | table.sourceCode { width: 100%; line-height: 100%; background-color: #f8f8f8; }
16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
17 | td.sourceCode { padding-left: 5px; }
18 | pre, code { background-color: #f8f8f8; }
19 | code > span.kw { color: #204a87; font-weight: bold; } /* Keyword */
20 | code > span.dt { color: #204a87; } /* DataType */
21 | code > span.dv { color: #0000cf; } /* DecVal */
22 | code > span.bn { color: #0000cf; } /* BaseN */
23 | code > span.fl { color: #0000cf; } /* Float */
24 | code > span.ch { color: #4e9a06; } /* Char */
25 | code > span.st { color: #4e9a06; } /* String */
26 | code > span.co { color: #8f5902; font-style: italic; } /* Comment */
27 | code > span.ot { color: #8f5902; } /* Other */
28 | code > span.al { color: #ef2929; } /* Alert */
29 | code > span.fu { color: #000000; } /* Function */
30 | code > span.er { color: #a40000; font-weight: bold; } /* Error */
31 | code > span.wa { color: #8f5902; font-weight: bold; font-style: italic; } /* Warning */
32 | code > span.cn { color: #000000; } /* Constant */
33 | code > span.sc { color: #000000; } /* SpecialChar */
34 | code > span.vs { color: #4e9a06; } /* VerbatimString */
35 | code > span.ss { color: #4e9a06; } /* SpecialString */
36 | code > span.im { } /* Import */
37 | code > span.va { color: #000000; } /* Variable */
38 | code > span.cf { color: #204a87; font-weight: bold; } /* ControlFlow */
39 | code > span.op { color: #ce5c00; font-weight: bold; } /* Operator */
40 | code > span.pp { color: #8f5902; font-style: italic; } /* Preprocessor */
41 | code > span.ex { } /* Extension */
42 | code > span.at { color: #c4a000; } /* Attribute */
43 | code > span.do { color: #8f5902; font-weight: bold; font-style: italic; } /* Documentation */
44 | code > span.an { color: #8f5902; font-weight: bold; font-style: italic; } /* Annotation */
45 | code > span.cv { color: #8f5902; font-weight: bold; font-style: italic; } /* CommentVar */
46 | code > span.in { color: #8f5902; font-weight: bold; font-style: italic; } /* Information */
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pandoc_v1/zenburn.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Zenburn (pandoc built-in style)
3 | ==============================================================================
4 | Style based on the popular "Zenburn" Vim color scheme:
5 |
6 | http://kippura.org/zenburnpage/
7 |
8 | This stylesheet was produced using Pandoc v1.19.2.
9 |
10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
11 | Released under the GPL, version 2 or greater.
12 | ------------------------------------------------------------------------------
13 | */
14 | div.sourceCode { overflow-x: auto; }
15 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
16 | margin: 0; padding: 0; vertical-align: baseline; border: none; }
17 | table.sourceCode { width: 100%; line-height: 100%; background-color: #303030; color: #cccccc; }
18 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; }
19 | td.sourceCode { padding-left: 5px; }
20 | pre, code { color: #cccccc; background-color: #303030; }
21 | code > span.kw { color: #f0dfaf; } /* Keyword */
22 | code > span.dt { color: #dfdfbf; } /* DataType */
23 | code > span.dv { color: #dcdccc; } /* DecVal */
24 | code > span.bn { color: #dca3a3; } /* BaseN */
25 | code > span.fl { color: #c0bed1; } /* Float */
26 | code > span.ch { color: #dca3a3; } /* Char */
27 | code > span.st { color: #cc9393; } /* String */
28 | code > span.co { color: #7f9f7f; } /* Comment */
29 | code > span.ot { color: #efef8f; } /* Other */
30 | code > span.al { color: #ffcfaf; } /* Alert */
31 | code > span.fu { color: #efef8f; } /* Function */
32 | code > span.er { color: #c3bf9f; } /* Error */
33 | code > span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
34 | code > span.cn { color: #dca3a3; font-weight: bold; } /* Constant */
35 | code > span.sc { color: #dca3a3; } /* SpecialChar */
36 | code > span.vs { color: #cc9393; } /* VerbatimString */
37 | code > span.ss { color: #cc9393; } /* SpecialString */
38 | code > span.im { } /* Import */
39 | code > span.va { } /* Variable */
40 | code > span.cf { color: #f0dfaf; } /* ControlFlow */
41 | code > span.op { color: #f0efd0; } /* Operator */
42 | code > span.bu { } /* BuiltIn */
43 | code > span.ex { } /* Extension */
44 | code > span.pp { color: #ffcfaf; font-weight: bold; } /* Preprocessor */
45 | code > span.at { } /* Attribute */
46 | code > span.do { color: #7f9f7f; } /* Documentation */
47 | code > span.an { color: #7f9f7f; font-weight: bold; } /* Annotation */
48 | code > span.cv { color: #7f9f7f; font-weight: bold; } /* CommentVar */
49 | code > span.in { color: #7f9f7f; font-weight: bold; } /* Information */
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/pygments.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Pygments (pandoc built-in style)
3 | ==============================================================================
4 | Style based on Pygments' default colors.
5 |
6 | This stylesheet was produced using Pandoc v2.7.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | a.sourceLine { display: inline-block; line-height: 1.25; }
13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
14 | a.sourceLine:empty { height: 1.2em; }
15 | .sourceCode { overflow: visible; }
16 | code.sourceCode { white-space: pre; position: relative; }
17 | div.sourceCode { margin: 1em 0; }
18 | pre.sourceCode { margin: 0; }
19 | @media screen {
20 | div.sourceCode { overflow: auto; }
21 | }
22 | @media print {
23 | code.sourceCode { white-space: pre-wrap; }
24 | a.sourceLine { text-indent: -1em; padding-left: 1em; }
25 | }
26 | pre.numberSource a.sourceLine
27 | { position: relative; left: -4em; }
28 | pre.numberSource a.sourceLine::before
29 | { content: attr(title);
30 | position: relative; left: -1em; text-align: right; vertical-align: baseline;
31 | border: none; pointer-events: all; display: inline-block;
32 | -webkit-touch-callout: none; -webkit-user-select: none;
33 | -khtml-user-select: none; -moz-user-select: none;
34 | -ms-user-select: none; user-select: none;
35 | padding: 0 4px; width: 4em;
36 | color: #aaaaaa;
37 | }
38 | pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
39 | div.sourceCode
40 | { }
41 | @media screen {
42 | a.sourceLine::before { text-decoration: underline; }
43 | }
44 | code span.al { color: #ff0000; font-weight: bold; } /* Alert */
45 | code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
46 | code span.at { color: #7d9029; } /* Attribute */
47 | code span.bn { color: #40a070; } /* BaseN */
48 | code span.bu { } /* BuiltIn */
49 | code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
50 | code span.ch { color: #4070a0; } /* Char */
51 | code span.cn { color: #880000; } /* Constant */
52 | code span.co { color: #60a0b0; font-style: italic; } /* Comment */
53 | code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
54 | code span.do { color: #ba2121; font-style: italic; } /* Documentation */
55 | code span.dt { color: #902000; } /* DataType */
56 | code span.dv { color: #40a070; } /* DecVal */
57 | code span.er { color: #ff0000; font-weight: bold; } /* Error */
58 | code span.ex { } /* Extension */
59 | code span.fl { color: #40a070; } /* Float */
60 | code span.fu { color: #06287e; } /* Function */
61 | code span.im { } /* Import */
62 | code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
63 | code span.kw { color: #007020; font-weight: bold; } /* Keyword */
64 | code span.op { color: #666666; } /* Operator */
65 | code span.ot { color: #007020; } /* Other */
66 | code span.pp { color: #bc7a00; } /* Preprocessor */
67 | code span.sc { color: #4070a0; } /* SpecialChar */
68 | code span.ss { color: #bb6688; } /* SpecialString */
69 | code span.st { color: #4070a0; } /* String */
70 | code span.va { color: #19177c; } /* Variable */
71 | code span.vs { color: #4070a0; } /* VerbatimString */
72 | code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
73 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/tango.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Tango (pandoc built-in style)
3 | ==============================================================================
4 | Style based on Pygments' "tango" colors.
5 |
6 | This stylesheet was produced using Pandoc v2.7.2.
7 |
8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
9 | Released under the GPL, version 2 or greater.
10 | ------------------------------------------------------------------------------
11 | */
12 | a.sourceLine { display: inline-block; line-height: 1.25; }
13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
14 | a.sourceLine:empty { height: 1.2em; }
15 | .sourceCode { overflow: visible; }
16 | code.sourceCode { white-space: pre; position: relative; }
17 | div.sourceCode { margin: 1em 0; }
18 | pre.sourceCode { margin: 0; }
19 | @media screen {
20 | div.sourceCode { overflow: auto; }
21 | }
22 | @media print {
23 | code.sourceCode { white-space: pre-wrap; }
24 | a.sourceLine { text-indent: -1em; padding-left: 1em; }
25 | }
26 | pre.numberSource a.sourceLine
27 | { position: relative; left: -4em; }
28 | pre.numberSource a.sourceLine::before
29 | { content: attr(title);
30 | position: relative; left: -1em; text-align: right; vertical-align: baseline;
31 | border: none; pointer-events: all; display: inline-block;
32 | -webkit-touch-callout: none; -webkit-user-select: none;
33 | -khtml-user-select: none; -moz-user-select: none;
34 | -ms-user-select: none; user-select: none;
35 | padding: 0 4px; width: 4em;
36 | color: #aaaaaa;
37 | }
38 | pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
39 | div.sourceCode
40 | { background-color: #f8f8f8; }
41 | @media screen {
42 | a.sourceLine::before { text-decoration: underline; }
43 | }
44 | code span.al { color: #ef2929; } /* Alert */
45 | code span.an { color: #8f5902; font-weight: bold; font-style: italic; } /* Annotation */
46 | code span.at { color: #c4a000; } /* Attribute */
47 | code span.bn { color: #0000cf; } /* BaseN */
48 | code span.cf { color: #204a87; font-weight: bold; } /* ControlFlow */
49 | code span.ch { color: #4e9a06; } /* Char */
50 | code span.cn { color: #000000; } /* Constant */
51 | code span.co { color: #8f5902; font-style: italic; } /* Comment */
52 | code span.cv { color: #8f5902; font-weight: bold; font-style: italic; } /* CommentVar */
53 | code span.do { color: #8f5902; font-weight: bold; font-style: italic; } /* Documentation */
54 | code span.dt { color: #204a87; } /* DataType */
55 | code span.dv { color: #0000cf; } /* DecVal */
56 | code span.er { color: #a40000; font-weight: bold; } /* Error */
57 | code span.ex { } /* Extension */
58 | code span.fl { color: #0000cf; } /* Float */
59 | code span.fu { color: #000000; } /* Function */
60 | code span.im { } /* Import */
61 | code span.in { color: #8f5902; font-weight: bold; font-style: italic; } /* Information */
62 | code span.kw { color: #204a87; font-weight: bold; } /* Keyword */
63 | code span.op { color: #ce5c00; font-weight: bold; } /* Operator */
64 | code span.ot { color: #8f5902; } /* Other */
65 | code span.pp { color: #8f5902; font-style: italic; } /* Preprocessor */
66 | code span.sc { color: #000000; } /* SpecialChar */
67 | code span.ss { color: #4e9a06; } /* SpecialString */
68 | code span.st { color: #4e9a06; } /* String */
69 | code span.va { color: #000000; } /* Variable */
70 | code span.vs { color: #4e9a06; } /* VerbatimString */
71 | code span.wa { color: #8f5902; font-weight: bold; font-style: italic; } /* Warning */
72 |
--------------------------------------------------------------------------------
/skylighting/css/built-in-styles/zenburn.css:
--------------------------------------------------------------------------------
1 | /* ==============================================================================
2 | Zenburn (pandoc built-in style)
3 | ==============================================================================
4 | Style based on the popular "Zenburn" Vim color scheme:
5 |
6 | http://kippura.org/zenburnpage/
7 |
8 | This stylesheet was produced using Pandoc v2.7.2.
9 |
10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu).
11 | Released under the GPL, version 2 or greater.
12 | ------------------------------------------------------------------------------
13 | */
14 | a.sourceLine { display: inline-block; line-height: 1.25; }
15 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
16 | a.sourceLine:empty { height: 1.2em; }
17 | .sourceCode { overflow: visible; }
18 | code.sourceCode { white-space: pre; position: relative; }
19 | div.sourceCode { margin: 1em 0; }
20 | pre.sourceCode { margin: 0; }
21 | @media screen {
22 | div.sourceCode { overflow: auto; }
23 | }
24 | @media print {
25 | code.sourceCode { white-space: pre-wrap; }
26 | a.sourceLine { text-indent: -1em; padding-left: 1em; }
27 | }
28 | pre.numberSource a.sourceLine
29 | { position: relative; left: -4em; }
30 | pre.numberSource a.sourceLine::before
31 | { content: attr(title);
32 | position: relative; left: -1em; text-align: right; vertical-align: baseline;
33 | border: none; pointer-events: all; display: inline-block;
34 | -webkit-touch-callout: none; -webkit-user-select: none;
35 | -khtml-user-select: none; -moz-user-select: none;
36 | -ms-user-select: none; user-select: none;
37 | padding: 0 4px; width: 4em;
38 | }
39 | pre.numberSource { margin-left: 3em; padding-left: 4px; }
40 | div.sourceCode
41 | { color: #cccccc; background-color: #303030; }
42 | @media screen {
43 | a.sourceLine::before { text-decoration: underline; }
44 | }
45 | code span.al { color: #ffcfaf; } /* Alert */
46 | code span.an { color: #7f9f7f; font-weight: bold; } /* Annotation */
47 | code span.at { } /* Attribute */
48 | code span.bn { color: #dca3a3; } /* BaseN */
49 | code span.bu { } /* BuiltIn */
50 | code span.cf { color: #f0dfaf; } /* ControlFlow */
51 | code span.ch { color: #dca3a3; } /* Char */
52 | code span.cn { color: #dca3a3; font-weight: bold; } /* Constant */
53 | code span.co { color: #7f9f7f; } /* Comment */
54 | code span.cv { color: #7f9f7f; font-weight: bold; } /* CommentVar */
55 | code span.do { color: #7f9f7f; } /* Documentation */
56 | code span.dt { color: #dfdfbf; } /* DataType */
57 | code span.dv { color: #dcdccc; } /* DecVal */
58 | code span.er { color: #c3bf9f; } /* Error */
59 | code span.ex { } /* Extension */
60 | code span.fl { color: #c0bed1; } /* Float */
61 | code span.fu { color: #efef8f; } /* Function */
62 | code span.im { } /* Import */
63 | code span.in { color: #7f9f7f; font-weight: bold; } /* Information */
64 | code span.kw { color: #f0dfaf; } /* Keyword */
65 | code span.op { color: #f0efd0; } /* Operator */
66 | code span.ot { color: #efef8f; } /* Other */
67 | code span.pp { color: #ffcfaf; font-weight: bold; } /* Preprocessor */
68 | code span.sc { color: #dca3a3; } /* SpecialChar */
69 | code span.ss { color: #cc9393; } /* SpecialString */
70 | code span.st { color: #cc9393; } /* String */
71 | code span.va { } /* Variable */
72 | code span.vs { color: #cc9393; } /* VerbatimString */
73 | code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
74 |
--------------------------------------------------------------------------------
/skylighting/css/sass-templates/README.md:
--------------------------------------------------------------------------------
1 | # Sass Highlighting Templates for Pandoc
2 |
3 | pandoc v2.7.2 | v1.19.2
4 |
5 | Sass/SCSS templates for creating custom syntax highlighting themes for pandoc v2.
6 |
7 | > __WARNING: The current Sass/CSS files in this folder will not work with pandoc `< v2.0.4`!__
8 | >
9 | > Pandoc v2.0.4 introduced some breaking changes in the way code is syntax highlighted in html documents. (For more info, see [README in parent folder])
10 |
11 |
12 | -----
13 |
14 | **Table of Contents**
15 |
16 |
17 |
18 |
19 | - [Resources List](#resources-list)
20 | - [Pandoc v1 Styles](#pandoc-v1-styles)
21 | - [Introduction](#introduction)
22 | - [System Requirements](#system-requirements)
23 | - [Installing Dart Sass](#installing-dart-sass)
24 |
25 |
26 |
27 | -----
28 |
29 |
30 | # Resources List
31 |
32 | - [`bare-bones.scss`](./bare-bones.scss) — Basic Sass/SCSS boilerplate replicating pandoc built-in sytles.
33 | - [`build-n-watch.sh`](./build-n-watch.sh) — Bash script for building and watching SCSS files in this folder.
34 | - [`UNLICENSE`](./UNLICENSE) — The Unlicense terms (pulic domain) for the SCSS files.
35 |
36 | ## Pandoc v1 Styles
37 |
38 | - [`/pandoc_v1/`](./pandoc_v1/)
39 |
40 | In the "[`/pandoc_v1/`](./pandoc_v1/)" folder you'll find the equivalent files for pandoc v1 — version 2 introduced some changes in syntax highlighting HTML tags and built-in CSS styles, so the old files are kept for projects that still require pandoc `v1.x`.
41 |
42 | From [pandoc v2.0 release notes]:
43 |
44 | > The way highlighted code blocks are formatted in HTML has been changed (David Baynard), in ways that may require changes in hard-coded CSS affecting highlighting. (If you haven't included hard-coded highlighting CSS in your template, you needn't change anything.)
45 |
46 | Most notably, line-numbered code dosen't use HTML tables anymore.
47 |
48 | # Introduction
49 |
50 | Sass (syntactically awesome stylesheets) is a great tool for creating CSS stylesheets:
51 |
52 | - http://sass-lang.com
53 |
54 | Especially so if you're planning to create a stylesheet that applies different color themes for each language — then Sass will save you time and let you work with smaller and less entangled source files.
55 |
56 | Here you'll find some ready-made SCSS templates and modules to style pandoc syntax highlighting.
57 |
58 | # System Requirements
59 |
60 | Since June, 2019 this project has switched from using [Ruby Sass] to the newest [Dart Sass] because Ruby Sass reached its end-of-life in March 26, 2019, and is no longer maintained.
61 |
62 | Since Dart Sass behavior is slightly different from Ruby Sass, anyone working on the repository Sass sources must ensure to switch to Dart Sass to avoid creating divergent CSS stylesheets.
63 |
64 | ## Installing Dart Sass
65 |
66 | The easiest way to install Dart Sass on Windows, and keep it always updated, is to install it via Chocolatey:
67 |
68 | - https://chocolatey.org/packages/sass
69 |
70 |
73 |
74 | [README in parent folder]: ../README.md#breaking-changes "Go to parent folder's README file"
75 | [pandoc v2.0 release notes]: https://github.com/jgm/pandoc/releases/tag/2.0 "View pandoc 2.0 release notes"
76 |
77 |
78 |
79 | [Sass]: https://sass-lang.com "Visit Sass website"
80 | [Ruby Sass]: https://github.com/sass/ruby-sass
81 | [Dart Sass]: https://github.com/sass/dart-sass
82 | [Choco Sass]: https://chocolatey.org/packages/sass
83 |
84 |
85 |
--------------------------------------------------------------------------------
/skylighting/css/sass-templates/UNLICENSE:
--------------------------------------------------------------------------------
1 | This is free and unencumbered software released into the public domain.
2 |
3 | Anyone is free to copy, modify, publish, use, compile, sell, or
4 | distribute this software, either in source code form or as a compiled
5 | binary, for any purpose, commercial or non-commercial, and by any
6 | means.
7 |
8 | In jurisdictions that recognize copyright laws, the author or authors
9 | of this software dedicate any and all copyright interest in the
10 | software to the public domain. We make this dedication for the benefit
11 | of the public at large and to the detriment of our heirs and
12 | successors. We intend this dedication to be an overt act of
13 | relinquishment in perpetuity of all present and future rights to this
14 | software under copyright law.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
24 | For more information, please refer to
25 |
--------------------------------------------------------------------------------
/skylighting/css/sass-templates/barebones.scss:
--------------------------------------------------------------------------------
1 | // =============================================================================
2 | // Bare-Bones Pandoc Highlighting Theme
3 | // =============================================================================
4 | // "bare-bones.scss" v2.2 (2019/06/08) | pandoc v2.7.2 | by Tristano Ajmone
5 | //
6 | // This Sass template emulates the definitions and structure of pandoc (v2.x)
7 | // built-in CSS styles (skylighting themes for syntax highlighting).
8 | //
9 | // Based on pandoc built-in style "Breezedark".
10 | //
11 | // All possible syntax tokens covered. Defintions for the "Normal" token were
12 | // removed since pandoc doesn't use it.
13 | //
14 | // Use this file as a starting point for your custom themes: adjust it to your
15 | // needs and delete tokens that don't apply to the target language/syntax.
16 | //
17 | // Released into the public domain according to the Unlicense terms:
18 | //
19 | // http://unlicense.org/
20 | //
21 | // Credits and mentioning are not mandatory -- but they'd be highly appreciated!
22 | // -----------------------------------------------------------------------------
23 | a.sourceLine {
24 | display: inline-block;
25 | line-height: 1.25;
26 | pointer-events: none;
27 | color: inherit;
28 | text-decoration: inherit;
29 |
30 | &:empty {
31 | height: 1.2em;
32 | }
33 | }
34 |
35 | .sourceCode {
36 | overflow: visible;
37 | }
38 |
39 | code.sourceCode {
40 | white-space: pre;
41 | position: relative;
42 | }
43 |
44 | div.sourceCode {
45 | margin: 1em 0;
46 | }
47 |
48 | pre.sourceCode {
49 | margin: 0;
50 | }
51 |
52 | @media screen {
53 |
54 | div.sourceCode {
55 | overflow: auto;
56 | }
57 |
58 | a.sourceLine::before {
59 | text-decoration: underline; // Line Numbers Underlining
60 | }
61 | }
62 |
63 | @media print {
64 |
65 | code.sourceCode {
66 | white-space: pre-wrap;
67 | }
68 | a.sourceLine {
69 | text-indent: -1em;
70 | padding-left: 1em;
71 | }
72 | }
73 |
74 | pre.numberSource a.sourceLine {
75 | position: relative;
76 | left: -4em;
77 |
78 | &::before {
79 | content: attr(title);
80 | position: relative;
81 | left: -1em;
82 | text-align: right;
83 | vertical-align: baseline;
84 | border: none;
85 | pointer-events: all;
86 | display: inline-block;
87 | -webkit-touch-callout: none;
88 | -webkit-user-select: none;
89 | -khtml-user-select: none;
90 | -moz-user-select: none;
91 | -ms-user-select: none;
92 | user-select: none;
93 | padding: 0 4px; width: 4em;
94 | background-color: #232629; // Line Numbers Gutter BG Color
95 | color: #7a7c7d; // Line Numbers Color
96 | }
97 | }
98 |
99 | pre.numberSource {
100 | margin-left: 3em;
101 | border-left: 1px solid #7a7c7d; // Line Numbers Gutter Border
102 | padding-left: 4px;
103 | }
104 |
105 | div.sourceCode {
106 | color: #cfcfc2; // Base Color (ie: "Normal")
107 | background-color: #232629; // Code Block BG Color (ie: Canvas BG)
108 | }
109 |
110 | // ==============================================================================
111 | // Syntax Tokens
112 | // ==============================================================================
113 | code {
114 | & span {
115 | &.al { // Alert
116 | color: #95da4c;
117 | }
118 | &.an { // Annotation
119 | color: #3f8058;
120 | }
121 | &.at { // Attribute
122 | color: #2980b9;
123 | }
124 | &.bn { // BaseN
125 | color: #f67400;
126 | }
127 | &.bu { // BuiltIn
128 | color: #7f8c8d;
129 | }
130 | &.cf { // ControlFlow
131 | color: #fdbc4b;
132 | }
133 | &.ch { // Char
134 | color: #3daee9;
135 | }
136 | &.cn { // Constant
137 | color: #27aeae;
138 | }
139 | &.co { // Comment
140 | color: #7a7c7d;
141 | }
142 | &.cv { // CommentVar
143 | color: #7f8c8d;
144 | }
145 | &.do { // Documentation
146 | color: #a43340;
147 | }
148 | &.dt { // DataType
149 | color: #2980b9;
150 | }
151 | &.dv { // DecVal
152 | color: #f67400;
153 | }
154 | &.er { // Error
155 | color: #da4453;
156 | }
157 | &.ex { // Extension
158 | color: #0099ff;
159 | }
160 | &.fl { // Float
161 | color: #f67400;
162 | }
163 | &.fu { // Function
164 | color: #8e44ad;
165 | }
166 | &.im { // Import
167 | color: #27ae60;
168 | }
169 | &.in { // Information
170 | color: #c45b00;
171 | }
172 | &.kw { // Keyword
173 | color: #cfcfc2;
174 | }
175 | &.op { // Operator
176 | color: #cfcfc2;
177 | }
178 | &.ot { // Other
179 | color: #27ae60;
180 | }
181 | &.pp { // Preprocessor
182 | color: #27ae60;
183 | }
184 | &.re { // RegionMarker
185 | color: #2980b9;
186 | }
187 | &.sc { // SpecialChar
188 | color: #3daee9;
189 | }
190 | &.ss { // SpecialString
191 | color: #da4453;
192 | }
193 | &.st { // String
194 | color: #f44f4f;
195 | }
196 | &.va { // Variable
197 | color: #27aeae;
198 | }
199 | &.vs { // VerbatimString
200 | color: #da4453;
201 | }
202 | &.wa { // Warning
203 | color: #da4453;
204 | }
205 | }
206 | }
207 |
208 |
--------------------------------------------------------------------------------
/skylighting/css/sass-templates/build-n-watch.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # ------------------------------------------------------------------------------
3 | # This script requires Dart Sass to be installed on the system:
4 | # https://github.com/sass/dart-sass
5 | #
6 | # On Windows, you can use Chocolatey to install Dart Sass and keep it updated:
7 | # https://chocolatey.org/packages/sass
8 | # ------------------------------------------------------------------------------
9 | sass --source-map --style=expanded ./:./
10 | sass --source-map --style=expanded --watch ./:./
11 |
--------------------------------------------------------------------------------
/skylighting/css/sass-templates/pandoc_v1/README.md:
--------------------------------------------------------------------------------
1 | # Sass Highlighting Templates for Pandoc v1
2 |
3 | pandoc v1.19.2
4 |
5 | Sass templates for creating custom syntax highlighting themes for pandoc `v1.x`.
6 |
7 | Since pandoc v2 introduced some changes in syntax highlighting HTML tags, these old Sass/CSS files are kept for projects that still require pandoc `v1.x`.
8 |
9 | # Resources List
10 |
11 | - [`bare-bones.scss`](./bare-bones.scss) — Basic Sass/SCSS boilerplate replicating pandoc built-in sytles.
12 | - [`build-n-watch.sh`](./build-n-watch.sh) — Bash script for building and watching SCSS files in this folder.
13 | - [`UNLICENSE`](./UNLICENSE) — The Unlicense terms (pulic domain) for the SCSS files.
14 |
15 |
16 |
--------------------------------------------------------------------------------
/skylighting/css/sass-templates/pandoc_v1/bare-bones.scss:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 | Bare-Bones Pandoc Highlighting Theme
4 | ==============================================================================
5 | "bare-bones.scss" v1.0.1 (2017-11-16) | pandoc v1.19.2 | by Tristano Ajmone.
6 |
7 | This Sass template emulates the definitions and structure of pandoc's (v1.x)
8 | built-in CSS styles (skylighting themes for syntax highlighting).
9 |
10 | All possible syntax tokens are covered.
11 |
12 | Use it as a starting point for your custom themes: adjust it to your needs and
13 | delete tokens that don't apply to the language/syntax you're targeting.
14 |
15 | Released into the public domain according to the Unlicense terms:
16 |
17 | http://unlicense.org/
18 |
19 | Credits and mentioning are not mandatory -- but they'd be highly appreciated!
20 | ------------------------------------------------------------------------------
21 | */
22 | div.sourceCode {
23 | overflow-x: auto;
24 | }
25 |
26 | table.sourceCode,
27 | tr.sourceCode,
28 | td.lineNumbers,
29 | td.sourceCode {
30 | margin: 0;
31 | padding: 0;
32 | vertical-align: baseline;
33 | border: none;
34 | }
35 |
36 | pre,
37 | code,
38 | table.sourceCode {
39 | background-color: #dddddd;
40 | color: #000000;
41 | }
42 |
43 | table.sourceCode {
44 | width: 100%;
45 | line-height: 100%;
46 | }
47 |
48 | td {
49 | &.lineNumbers {
50 | text-align: right;
51 | padding-right: 4px;
52 | padding-left: 4px;
53 | color: #aaaaaa;
54 | border-right: 1px solid #aaaaaa;
55 | }
56 | &.sourceCode {
57 | padding-left: 5px;
58 | }
59 | }
60 |
61 | code {
62 | & > span {
63 | &.al { /* Alert */
64 | color: #000000;
65 | }
66 | &.an { /* Annotation */
67 | color: #000000;
68 | }
69 | &.at { /* Attribute */
70 | color: #000000;
71 | }
72 | &.bn { /* BaseN */
73 | color: #000000;
74 | }
75 | &.bu { /* BuiltIn */
76 | color: #000000;
77 | }
78 | &.cf { /* Control Flow */
79 | color: #000000;
80 | }
81 | &.ch { /* Char */
82 | color: #000000;
83 | }
84 | &.cn { /* Constant */
85 | color: #000000;
86 | }
87 | &.co { /* Comment */
88 | color: #000000;
89 | }
90 | &.cv { /* Comment Var */
91 | color: #000000;
92 | }
93 | &.do { /* Documentation */
94 | color: #000000;
95 | }
96 | &.dt { /* DataType */
97 | color: #000000;
98 | }
99 | &.dv { /* DecVal */
100 | color: #000000;
101 | }
102 | &.er { /* Error */
103 | color: #000000;
104 | }
105 | &.ex { /* Extension */
106 | color: #000000;
107 | }
108 | &.fl { /* Float */
109 | color: #000000;
110 | }
111 | &.fu { /* Function */
112 | color: #000000;
113 | }
114 | &.im { /* Import */
115 | color: #000000;
116 | }
117 | &.in { /* Information */
118 | color: #000000;
119 | }
120 | &.kw { /* Keyword */
121 | color: #000000;
122 | }
123 | &.op { /* Operator */
124 | color: #000000;
125 | }
126 | &.ot { /* Other */
127 | color: #000000;
128 | }
129 | &.pp { /* Preprocessor */
130 | color: #000000;
131 | }
132 | &.re { /* Region Marker */
133 | color: #000000;
134 | }
135 | &.sc { /* Special Char */
136 | color: #000000;
137 | }
138 | &.ss { /* Special String */
139 | color: #000000;
140 | }
141 | &.st { /* String */
142 | color: #000000;
143 | }
144 | &.va { /* Variable */
145 | color: #000000;
146 | }
147 | &.vs { /* Verbatim String */
148 | color: #000000;
149 | }
150 | &.wa { /* Warning */
151 | color: #000000;
152 | }
153 | }
154 | }
155 |
156 |
--------------------------------------------------------------------------------
/skylighting/css/sass-templates/pandoc_v1/build-n-watch.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # ------------------------------------------------------------------------------
3 | # This script requires Dart Sass to be installed on the system:
4 | # https://github.com/sass/dart-sass
5 | #
6 | # On Windows, you can use Chocolatey to install Dart Sass and keep it updated:
7 | # https://chocolatey.org/packages/sass
8 | # ------------------------------------------------------------------------------
9 | sass --source-map --style=expanded ./:./
10 | sass --source-map --style=expanded --watch ./:./
11 |
--------------------------------------------------------------------------------
/skylighting/themes/UNLICENSE:
--------------------------------------------------------------------------------
1 | This is free and unencumbered software released into the public domain.
2 |
3 | Anyone is free to copy, modify, publish, use, compile, sell, or
4 | distribute this software, either in source code form or as a compiled
5 | binary, for any purpose, commercial or non-commercial, and by any
6 | means.
7 |
8 | In jurisdictions that recognize copyright laws, the author or authors
9 | of this software dedicate any and all copyright interest in the
10 | software to the public domain. We make this dedication for the benefit
11 | of the public at large and to the detriment of our heirs and
12 | successors. We intend this dedication to be an overt act of
13 | relinquishment in perpetuity of all present and future rights to this
14 | software under copyright law.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
24 | For more information, please refer to
25 |
--------------------------------------------------------------------------------
/skylighting/themes/boilerplate.theme:
--------------------------------------------------------------------------------
1 | {
2 | "metadata": {
3 | "author": "Tristano Ajmone ",
4 | "license": "Unlicense",
5 | "name": "theme boilerplate",
6 | "revision": 4
7 | },
8 |
9 | "text-color": "#888888",
10 | "background-color": "#666666",
11 | "line-number-color": "#0000ff",
12 | "line-number-background-color": "#00ff00",
13 |
14 | "text-styles": {
15 | "Alert": {
16 | "text-color": "#ffffff",
17 | "background-color": null,
18 | "bold": true,
19 | "italic": true,
20 | "underline": false
21 | },
22 | "Annotation": {
23 | "text-color": "#ffffff",
24 | "background-color": null,
25 | "bold": true,
26 | "italic": true,
27 | "underline": false
28 | },
29 | "Attribute": {
30 | "text-color": "#ffffff",
31 | "background-color": null,
32 | "bold": true,
33 | "italic": true,
34 | "underline": false
35 | },
36 | "BaseN": {
37 | "text-color": "#ffffff",
38 | "background-color": null,
39 | "bold": true,
40 | "italic": true,
41 | "underline": false
42 | },
43 | "BuiltIn": {
44 | "text-color": "#ffffff",
45 | "background-color": null,
46 | "bold": true,
47 | "italic": true,
48 | "underline": false
49 | },
50 | "Char": {
51 | "text-color": "#ffffff",
52 | "background-color": null,
53 | "bold": true,
54 | "italic": true,
55 | "underline": false
56 | },
57 | "Comment": {
58 | "text-color": "#ffffff",
59 | "background-color": null,
60 | "bold": true,
61 | "italic": true,
62 | "underline": false
63 | },
64 | "CommentVar": {
65 | "text-color": "#ffffff",
66 | "background-color": null,
67 | "bold": true,
68 | "italic": true,
69 | "underline": false
70 | },
71 | "Constant": {
72 | "text-color": "#ffffff",
73 | "background-color": null,
74 | "bold": true,
75 | "italic": true,
76 | "underline": false
77 | },
78 | "ControlFlow": {
79 | "text-color": "#ffffff",
80 | "background-color": null,
81 | "bold": true,
82 | "italic": true,
83 | "underline": false
84 | },
85 | "DataType": {
86 | "text-color": "#ffffff",
87 | "background-color": null,
88 | "bold": true,
89 | "italic": true,
90 | "underline": false
91 | },
92 | "DecVal": {
93 | "text-color": "#ffffff",
94 | "background-color": null,
95 | "bold": true,
96 | "italic": true,
97 | "underline": false
98 | },
99 | "Documentation": {
100 | "text-color": "#ffffff",
101 | "background-color": null,
102 | "bold": true,
103 | "italic": true,
104 | "underline": false
105 | },
106 | "Error": {
107 | "text-color": "#ffffff",
108 | "background-color": null,
109 | "bold": true,
110 | "italic": true,
111 | "underline": false
112 | },
113 | "Extension": {
114 | "text-color": "#ffffff",
115 | "background-color": null,
116 | "bold": true,
117 | "italic": true,
118 | "underline": false
119 | },
120 | "Float": {
121 | "text-color": "#ffffff",
122 | "background-color": null,
123 | "bold": true,
124 | "italic": true,
125 | "underline": false
126 | },
127 | "Function": {
128 | "text-color": "#ffffff",
129 | "background-color": null,
130 | "bold": true,
131 | "italic": true,
132 | "underline": false
133 | },
134 | "Import": {
135 | "text-color": null,
136 | "background-color": null,
137 | "bold": null,
138 | "italic": true,
139 | "underline": false
140 | },
141 | "Information": {
142 | "text-color": "#ffffff",
143 | "background-color": null,
144 | "bold": true,
145 | "italic": true,
146 | "underline": false
147 | },
148 | "Keyword": {
149 | "text-color": "#ffffff",
150 | "background-color": null,
151 | "bold": true,
152 | "italic": true,
153 | "underline": false
154 | },
155 | "Operator": {
156 | "text-color": "#ffffff",
157 | "background-color": null,
158 | "bold": true,
159 | "italic": true,
160 | "underline": false
161 | },
162 | "Others": {
163 | "text-color": "#ffffff",
164 | "background-color": null,
165 | "bold": true,
166 | "italic": true,
167 | "underline": false
168 | },
169 | "Preprocessor": {
170 | "text-color": "#ffffff",
171 | "background-color": null,
172 | "bold": true,
173 | "italic": true,
174 | "underline": false
175 | },
176 | "RegionMarker": {
177 | "text-color": "#ffffff",
178 | "background-color": null,
179 | "bold": true,
180 | "italic": true,
181 | "underline": false
182 | },
183 | "SpecialChar": {
184 | "text-color": "#ffffff",
185 | "background-color": null,
186 | "bold": true,
187 | "italic": true,
188 | "underline": false
189 | },
190 | "SpecialString": {
191 | "text-color": "#ffffff",
192 | "background-color": null,
193 | "bold": true,
194 | "italic": true,
195 | "underline": false
196 | },
197 | "String": {
198 | "text-color": "#ffffff",
199 | "background-color": null,
200 | "bold": true,
201 | "italic": true,
202 | "underline": false
203 | },
204 | "Variable": {
205 | "text-color": "#ffffff",
206 | "background-color": null,
207 | "bold": true,
208 | "italic": true,
209 | "underline": false
210 | },
211 | "VerbatimString": {
212 | "text-color": "#ffffff",
213 | "background-color": null,
214 | "bold": true,
215 | "italic": true,
216 | "underline": false
217 | },
218 | "Warning": {
219 | "text-color": "#ffffff",
220 | "background-color": null,
221 | "bold": true,
222 | "italic": true,
223 | "underline": false
224 | }
225 | }
226 | }
--------------------------------------------------------------------------------
/skylighting/themes/builtin-espresso.theme:
--------------------------------------------------------------------------------
1 | {
2 | "text-color": "#bdae9d",
3 | "background-color": "#2a211c",
4 | "line-number-color": "#bdae9d",
5 | "line-number-background-color": "#2a211c",
6 | "text-styles": {
7 | "Attribute": {
8 | "text-color": null,
9 | "background-color": null,
10 | "bold": false,
11 | "italic": false,
12 | "underline": false
13 | },
14 | "SpecialString": {
15 | "text-color": "#049b0a",
16 | "background-color": null,
17 | "bold": false,
18 | "italic": false,
19 | "underline": false
20 | },
21 | "Annotation": {
22 | "text-color": "#0066ff",
23 | "background-color": null,
24 | "bold": true,
25 | "italic": true,
26 | "underline": false
27 | },
28 | "Function": {
29 | "text-color": "#ff9358",
30 | "background-color": null,
31 | "bold": true,
32 | "italic": false,
33 | "underline": false
34 | },
35 | "String": {
36 | "text-color": "#049b0a",
37 | "background-color": null,
38 | "bold": false,
39 | "italic": false,
40 | "underline": false
41 | },
42 | "ControlFlow": {
43 | "text-color": "#43a8ed",
44 | "background-color": null,
45 | "bold": true,
46 | "italic": false,
47 | "underline": false
48 | },
49 | "Operator": {
50 | "text-color": null,
51 | "background-color": null,
52 | "bold": false,
53 | "italic": false,
54 | "underline": false
55 | },
56 | "Error": {
57 | "text-color": "#ffff00",
58 | "background-color": null,
59 | "bold": true,
60 | "italic": false,
61 | "underline": false
62 | },
63 | "BaseN": {
64 | "text-color": "#44aa43",
65 | "background-color": null,
66 | "bold": false,
67 | "italic": false,
68 | "underline": false
69 | },
70 | "Alert": {
71 | "text-color": "#ffff00",
72 | "background-color": null,
73 | "bold": false,
74 | "italic": false,
75 | "underline": false
76 | },
77 | "Variable": {
78 | "text-color": null,
79 | "background-color": null,
80 | "bold": false,
81 | "italic": false,
82 | "underline": false
83 | },
84 | "BuiltIn": {
85 | "text-color": null,
86 | "background-color": null,
87 | "bold": false,
88 | "italic": false,
89 | "underline": false
90 | },
91 | "Extension": {
92 | "text-color": null,
93 | "background-color": null,
94 | "bold": false,
95 | "italic": false,
96 | "underline": false
97 | },
98 | "Preprocessor": {
99 | "text-color": null,
100 | "background-color": null,
101 | "bold": true,
102 | "italic": false,
103 | "underline": false
104 | },
105 | "Information": {
106 | "text-color": "#0066ff",
107 | "background-color": null,
108 | "bold": true,
109 | "italic": true,
110 | "underline": false
111 | },
112 | "VerbatimString": {
113 | "text-color": "#049b0a",
114 | "background-color": null,
115 | "bold": false,
116 | "italic": false,
117 | "underline": false
118 | },
119 | "Warning": {
120 | "text-color": "#ffff00",
121 | "background-color": null,
122 | "bold": true,
123 | "italic": false,
124 | "underline": false
125 | },
126 | "Documentation": {
127 | "text-color": "#0066ff",
128 | "background-color": null,
129 | "bold": false,
130 | "italic": true,
131 | "underline": false
132 | },
133 | "Import": {
134 | "text-color": null,
135 | "background-color": null,
136 | "bold": false,
137 | "italic": false,
138 | "underline": false
139 | },
140 | "Char": {
141 | "text-color": "#049b0a",
142 | "background-color": null,
143 | "bold": false,
144 | "italic": false,
145 | "underline": false
146 | },
147 | "DataType": {
148 | "text-color": null,
149 | "background-color": null,
150 | "bold": false,
151 | "italic": false,
152 | "underline": true
153 | },
154 | "Float": {
155 | "text-color": "#44aa43",
156 | "background-color": null,
157 | "bold": false,
158 | "italic": false,
159 | "underline": false
160 | },
161 | "Comment": {
162 | "text-color": "#0066ff",
163 | "background-color": null,
164 | "bold": true,
165 | "italic": true,
166 | "underline": false
167 | },
168 | "Constant": {
169 | "text-color": null,
170 | "background-color": null,
171 | "bold": false,
172 | "italic": false,
173 | "underline": false
174 | },
175 | "SpecialChar": {
176 | "text-color": "#049b0a",
177 | "background-color": null,
178 | "bold": false,
179 | "italic": false,
180 | "underline": false
181 | },
182 | "DecVal": {
183 | "text-color": "#44aa43",
184 | "background-color": null,
185 | "bold": false,
186 | "italic": false,
187 | "underline": false
188 | },
189 | "Keyword": {
190 | "text-color": "#43a8ed",
191 | "background-color": null,
192 | "bold": true,
193 | "italic": false,
194 | "underline": false
195 | }
196 | }
197 | }
198 |
--------------------------------------------------------------------------------
/skylighting/themes/builtin-haddock.theme:
--------------------------------------------------------------------------------
1 | {
2 | "text-color": null,
3 | "background-color": null,
4 | "line-number-color": "#aaaaaa",
5 | "line-number-background-color": null,
6 | "text-styles": {
7 | "Other": {
8 | "text-color": "#ff4000",
9 | "background-color": null,
10 | "bold": false,
11 | "italic": false,
12 | "underline": false
13 | },
14 | "Attribute": {
15 | "text-color": null,
16 | "background-color": null,
17 | "bold": false,
18 | "italic": false,
19 | "underline": false
20 | },
21 | "SpecialString": {
22 | "text-color": "#008080",
23 | "background-color": null,
24 | "bold": false,
25 | "italic": false,
26 | "underline": false
27 | },
28 | "Annotation": {
29 | "text-color": "#008000",
30 | "background-color": null,
31 | "bold": false,
32 | "italic": false,
33 | "underline": false
34 | },
35 | "String": {
36 | "text-color": "#008080",
37 | "background-color": null,
38 | "bold": false,
39 | "italic": false,
40 | "underline": false
41 | },
42 | "ControlFlow": {
43 | "text-color": "#0000ff",
44 | "background-color": null,
45 | "bold": false,
46 | "italic": false,
47 | "underline": false
48 | },
49 | "Operator": {
50 | "text-color": null,
51 | "background-color": null,
52 | "bold": false,
53 | "italic": false,
54 | "underline": false
55 | },
56 | "Error": {
57 | "text-color": "#ff0000",
58 | "background-color": null,
59 | "bold": true,
60 | "italic": false,
61 | "underline": false
62 | },
63 | "Alert": {
64 | "text-color": "#ff0000",
65 | "background-color": null,
66 | "bold": false,
67 | "italic": false,
68 | "underline": false
69 | },
70 | "Variable": {
71 | "text-color": null,
72 | "background-color": null,
73 | "bold": false,
74 | "italic": false,
75 | "underline": false
76 | },
77 | "BuiltIn": {
78 | "text-color": null,
79 | "background-color": null,
80 | "bold": false,
81 | "italic": false,
82 | "underline": false
83 | },
84 | "Extension": {
85 | "text-color": null,
86 | "background-color": null,
87 | "bold": false,
88 | "italic": false,
89 | "underline": false
90 | },
91 | "Preprocessor": {
92 | "text-color": "#ff4000",
93 | "background-color": null,
94 | "bold": false,
95 | "italic": false,
96 | "underline": false
97 | },
98 | "Information": {
99 | "text-color": "#008000",
100 | "background-color": null,
101 | "bold": false,
102 | "italic": false,
103 | "underline": false
104 | },
105 | "VerbatimString": {
106 | "text-color": "#008080",
107 | "background-color": null,
108 | "bold": false,
109 | "italic": false,
110 | "underline": false
111 | },
112 | "Warning": {
113 | "text-color": "#008000",
114 | "background-color": null,
115 | "bold": true,
116 | "italic": false,
117 | "underline": false
118 | },
119 | "Documentation": {
120 | "text-color": "#008000",
121 | "background-color": null,
122 | "bold": false,
123 | "italic": false,
124 | "underline": false
125 | },
126 | "Import": {
127 | "text-color": null,
128 | "background-color": null,
129 | "bold": false,
130 | "italic": false,
131 | "underline": false
132 | },
133 | "Char": {
134 | "text-color": "#008080",
135 | "background-color": null,
136 | "bold": false,
137 | "italic": false,
138 | "underline": false
139 | },
140 | "Comment": {
141 | "text-color": "#008000",
142 | "background-color": null,
143 | "bold": false,
144 | "italic": false,
145 | "underline": false
146 | },
147 | "CommentVar": {
148 | "text-color": "#008000",
149 | "background-color": null,
150 | "bold": false,
151 | "italic": false,
152 | "underline": false
153 | },
154 | "Constant": {
155 | "text-color": null,
156 | "background-color": null,
157 | "bold": false,
158 | "italic": false,
159 | "underline": false
160 | },
161 | "SpecialChar": {
162 | "text-color": "#008080",
163 | "background-color": null,
164 | "bold": false,
165 | "italic": false,
166 | "underline": false
167 | },
168 | "Keyword": {
169 | "text-color": "#0000ff",
170 | "background-color": null,
171 | "bold": false,
172 | "italic": false,
173 | "underline": false
174 | }
175 | }
176 | }
177 |
--------------------------------------------------------------------------------
/skylighting/themes/builtin-monochrome.theme:
--------------------------------------------------------------------------------
1 | {
2 | "text-color": null,
3 | "background-color": null,
4 | "line-number-color": null,
5 | "line-number-background-color": null,
6 | "text-styles": {
7 | "Annotation": {
8 | "text-color": null,
9 | "background-color": null,
10 | "bold": false,
11 | "italic": true,
12 | "underline": false
13 | },
14 | "ControlFlow": {
15 | "text-color": null,
16 | "background-color": null,
17 | "bold": true,
18 | "italic": false,
19 | "underline": false
20 | },
21 | "Error": {
22 | "text-color": null,
23 | "background-color": null,
24 | "bold": true,
25 | "italic": false,
26 | "underline": false
27 | },
28 | "Alert": {
29 | "text-color": null,
30 | "background-color": null,
31 | "bold": true,
32 | "italic": false,
33 | "underline": false
34 | },
35 | "Preprocessor": {
36 | "text-color": null,
37 | "background-color": null,
38 | "bold": true,
39 | "italic": false,
40 | "underline": false
41 | },
42 | "Information": {
43 | "text-color": null,
44 | "background-color": null,
45 | "bold": false,
46 | "italic": true,
47 | "underline": false
48 | },
49 | "Warning": {
50 | "text-color": null,
51 | "background-color": null,
52 | "bold": false,
53 | "italic": true,
54 | "underline": false
55 | },
56 | "Documentation": {
57 | "text-color": null,
58 | "background-color": null,
59 | "bold": false,
60 | "italic": true,
61 | "underline": false
62 | },
63 | "DataType": {
64 | "text-color": null,
65 | "background-color": null,
66 | "bold": false,
67 | "italic": false,
68 | "underline": true
69 | },
70 | "Comment": {
71 | "text-color": null,
72 | "background-color": null,
73 | "bold": false,
74 | "italic": true,
75 | "underline": false
76 | },
77 | "CommentVar": {
78 | "text-color": null,
79 | "background-color": null,
80 | "bold": false,
81 | "italic": true,
82 | "underline": false
83 | },
84 | "Keyword": {
85 | "text-color": null,
86 | "background-color": null,
87 | "bold": true,
88 | "italic": false,
89 | "underline": false
90 | }
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/skylighting/themes/builtin-pygments.theme:
--------------------------------------------------------------------------------
1 | {
2 | "text-color": null,
3 | "background-color": null,
4 | "line-number-color": "#aaaaaa",
5 | "line-number-background-color": null,
6 | "text-styles": {
7 | "Other": {
8 | "text-color": "#007020",
9 | "background-color": null,
10 | "bold": false,
11 | "italic": false,
12 | "underline": false
13 | },
14 | "Attribute": {
15 | "text-color": "#7d9029",
16 | "background-color": null,
17 | "bold": false,
18 | "italic": false,
19 | "underline": false
20 | },
21 | "SpecialString": {
22 | "text-color": "#bb6688",
23 | "background-color": null,
24 | "bold": false,
25 | "italic": false,
26 | "underline": false
27 | },
28 | "Annotation": {
29 | "text-color": "#60a0b0",
30 | "background-color": null,
31 | "bold": true,
32 | "italic": true,
33 | "underline": false
34 | },
35 | "Function": {
36 | "text-color": "#06287e",
37 | "background-color": null,
38 | "bold": false,
39 | "italic": false,
40 | "underline": false
41 | },
42 | "String": {
43 | "text-color": "#4070a0",
44 | "background-color": null,
45 | "bold": false,
46 | "italic": false,
47 | "underline": false
48 | },
49 | "ControlFlow": {
50 | "text-color": "#007020",
51 | "background-color": null,
52 | "bold": true,
53 | "italic": false,
54 | "underline": false
55 | },
56 | "Operator": {
57 | "text-color": "#666666",
58 | "background-color": null,
59 | "bold": false,
60 | "italic": false,
61 | "underline": false
62 | },
63 | "Error": {
64 | "text-color": "#ff0000",
65 | "background-color": null,
66 | "bold": true,
67 | "italic": false,
68 | "underline": false
69 | },
70 | "BaseN": {
71 | "text-color": "#40a070",
72 | "background-color": null,
73 | "bold": false,
74 | "italic": false,
75 | "underline": false
76 | },
77 | "Alert": {
78 | "text-color": "#ff0000",
79 | "background-color": null,
80 | "bold": true,
81 | "italic": false,
82 | "underline": false
83 | },
84 | "Variable": {
85 | "text-color": "#19177c",
86 | "background-color": null,
87 | "bold": false,
88 | "italic": false,
89 | "underline": false
90 | },
91 | "BuiltIn": {
92 | "text-color": null,
93 | "background-color": null,
94 | "bold": false,
95 | "italic": false,
96 | "underline": false
97 | },
98 | "Extension": {
99 | "text-color": null,
100 | "background-color": null,
101 | "bold": false,
102 | "italic": false,
103 | "underline": false
104 | },
105 | "Preprocessor": {
106 | "text-color": "#bc7a00",
107 | "background-color": null,
108 | "bold": false,
109 | "italic": false,
110 | "underline": false
111 | },
112 | "Information": {
113 | "text-color": "#60a0b0",
114 | "background-color": null,
115 | "bold": true,
116 | "italic": true,
117 | "underline": false
118 | },
119 | "VerbatimString": {
120 | "text-color": "#4070a0",
121 | "background-color": null,
122 | "bold": false,
123 | "italic": false,
124 | "underline": false
125 | },
126 | "Warning": {
127 | "text-color": "#60a0b0",
128 | "background-color": null,
129 | "bold": true,
130 | "italic": true,
131 | "underline": false
132 | },
133 | "Documentation": {
134 | "text-color": "#ba2121",
135 | "background-color": null,
136 | "bold": false,
137 | "italic": true,
138 | "underline": false
139 | },
140 | "Import": {
141 | "text-color": null,
142 | "background-color": null,
143 | "bold": false,
144 | "italic": false,
145 | "underline": false
146 | },
147 | "Char": {
148 | "text-color": "#4070a0",
149 | "background-color": null,
150 | "bold": false,
151 | "italic": false,
152 | "underline": false
153 | },
154 | "DataType": {
155 | "text-color": "#902000",
156 | "background-color": null,
157 | "bold": false,
158 | "italic": false,
159 | "underline": false
160 | },
161 | "Float": {
162 | "text-color": "#40a070",
163 | "background-color": null,
164 | "bold": false,
165 | "italic": false,
166 | "underline": false
167 | },
168 | "Comment": {
169 | "text-color": "#60a0b0",
170 | "background-color": null,
171 | "bold": false,
172 | "italic": true,
173 | "underline": false
174 | },
175 | "CommentVar": {
176 | "text-color": "#60a0b0",
177 | "background-color": null,
178 | "bold": true,
179 | "italic": true,
180 | "underline": false
181 | },
182 | "Constant": {
183 | "text-color": "#880000",
184 | "background-color": null,
185 | "bold": false,
186 | "italic": false,
187 | "underline": false
188 | },
189 | "SpecialChar": {
190 | "text-color": "#4070a0",
191 | "background-color": null,
192 | "bold": false,
193 | "italic": false,
194 | "underline": false
195 | },
196 | "DecVal": {
197 | "text-color": "#40a070",
198 | "background-color": null,
199 | "bold": false,
200 | "italic": false,
201 | "underline": false
202 | },
203 | "Keyword": {
204 | "text-color": "#007020",
205 | "background-color": null,
206 | "bold": true,
207 | "italic": false,
208 | "underline": false
209 | }
210 | }
211 | }
212 |
--------------------------------------------------------------------------------
/skylighting/themes/builtin-tango.theme:
--------------------------------------------------------------------------------
1 | {
2 | "text-color": null,
3 | "background-color": "#f8f8f8",
4 | "line-number-color": "#aaaaaa",
5 | "line-number-background-color": null,
6 | "text-styles": {
7 | "Other": {
8 | "text-color": "#8f5902",
9 | "background-color": null,
10 | "bold": false,
11 | "italic": false,
12 | "underline": false
13 | },
14 | "Attribute": {
15 | "text-color": "#c4a000",
16 | "background-color": null,
17 | "bold": false,
18 | "italic": false,
19 | "underline": false
20 | },
21 | "SpecialString": {
22 | "text-color": "#4e9a06",
23 | "background-color": null,
24 | "bold": false,
25 | "italic": false,
26 | "underline": false
27 | },
28 | "Annotation": {
29 | "text-color": "#8f5902",
30 | "background-color": null,
31 | "bold": true,
32 | "italic": true,
33 | "underline": false
34 | },
35 | "Function": {
36 | "text-color": "#000000",
37 | "background-color": null,
38 | "bold": false,
39 | "italic": false,
40 | "underline": false
41 | },
42 | "String": {
43 | "text-color": "#4e9a06",
44 | "background-color": null,
45 | "bold": false,
46 | "italic": false,
47 | "underline": false
48 | },
49 | "ControlFlow": {
50 | "text-color": "#204a87",
51 | "background-color": null,
52 | "bold": true,
53 | "italic": false,
54 | "underline": false
55 | },
56 | "Operator": {
57 | "text-color": "#ce5c00",
58 | "background-color": null,
59 | "bold": true,
60 | "italic": false,
61 | "underline": false
62 | },
63 | "Error": {
64 | "text-color": "#a40000",
65 | "background-color": null,
66 | "bold": true,
67 | "italic": false,
68 | "underline": false
69 | },
70 | "BaseN": {
71 | "text-color": "#0000cf",
72 | "background-color": null,
73 | "bold": false,
74 | "italic": false,
75 | "underline": false
76 | },
77 | "Alert": {
78 | "text-color": "#ef2929",
79 | "background-color": null,
80 | "bold": false,
81 | "italic": false,
82 | "underline": false
83 | },
84 | "Variable": {
85 | "text-color": "#000000",
86 | "background-color": null,
87 | "bold": false,
88 | "italic": false,
89 | "underline": false
90 | },
91 | "Extension": {
92 | "text-color": null,
93 | "background-color": null,
94 | "bold": false,
95 | "italic": false,
96 | "underline": false
97 | },
98 | "Preprocessor": {
99 | "text-color": "#8f5902",
100 | "background-color": null,
101 | "bold": false,
102 | "italic": true,
103 | "underline": false
104 | },
105 | "Information": {
106 | "text-color": "#8f5902",
107 | "background-color": null,
108 | "bold": true,
109 | "italic": true,
110 | "underline": false
111 | },
112 | "VerbatimString": {
113 | "text-color": "#4e9a06",
114 | "background-color": null,
115 | "bold": false,
116 | "italic": false,
117 | "underline": false
118 | },
119 | "Warning": {
120 | "text-color": "#8f5902",
121 | "background-color": null,
122 | "bold": true,
123 | "italic": true,
124 | "underline": false
125 | },
126 | "Documentation": {
127 | "text-color": "#8f5902",
128 | "background-color": null,
129 | "bold": true,
130 | "italic": true,
131 | "underline": false
132 | },
133 | "Import": {
134 | "text-color": null,
135 | "background-color": null,
136 | "bold": false,
137 | "italic": false,
138 | "underline": false
139 | },
140 | "Char": {
141 | "text-color": "#4e9a06",
142 | "background-color": null,
143 | "bold": false,
144 | "italic": false,
145 | "underline": false
146 | },
147 | "DataType": {
148 | "text-color": "#204a87",
149 | "background-color": null,
150 | "bold": false,
151 | "italic": false,
152 | "underline": false
153 | },
154 | "Float": {
155 | "text-color": "#0000cf",
156 | "background-color": null,
157 | "bold": false,
158 | "italic": false,
159 | "underline": false
160 | },
161 | "Comment": {
162 | "text-color": "#8f5902",
163 | "background-color": null,
164 | "bold": false,
165 | "italic": true,
166 | "underline": false
167 | },
168 | "CommentVar": {
169 | "text-color": "#8f5902",
170 | "background-color": null,
171 | "bold": true,
172 | "italic": true,
173 | "underline": false
174 | },
175 | "Constant": {
176 | "text-color": "#000000",
177 | "background-color": null,
178 | "bold": false,
179 | "italic": false,
180 | "underline": false
181 | },
182 | "SpecialChar": {
183 | "text-color": "#000000",
184 | "background-color": null,
185 | "bold": false,
186 | "italic": false,
187 | "underline": false
188 | },
189 | "DecVal": {
190 | "text-color": "#0000cf",
191 | "background-color": null,
192 | "bold": false,
193 | "italic": false,
194 | "underline": false
195 | },
196 | "Keyword": {
197 | "text-color": "#204a87",
198 | "background-color": null,
199 | "bold": true,
200 | "italic": false,
201 | "underline": false
202 | }
203 | }
204 | }
205 |
--------------------------------------------------------------------------------
/skylighting/themes/builtin-zenburn.theme:
--------------------------------------------------------------------------------
1 | {
2 | "text-color": "#cccccc",
3 | "background-color": "#303030",
4 | "line-number-color": null,
5 | "line-number-background-color": null,
6 | "text-styles": {
7 | "Other": {
8 | "text-color": "#efef8f",
9 | "background-color": null,
10 | "bold": false,
11 | "italic": false,
12 | "underline": false
13 | },
14 | "Attribute": {
15 | "text-color": null,
16 | "background-color": null,
17 | "bold": false,
18 | "italic": false,
19 | "underline": false
20 | },
21 | "SpecialString": {
22 | "text-color": "#cc9393",
23 | "background-color": null,
24 | "bold": false,
25 | "italic": false,
26 | "underline": false
27 | },
28 | "Annotation": {
29 | "text-color": "#7f9f7f",
30 | "background-color": null,
31 | "bold": true,
32 | "italic": false,
33 | "underline": false
34 | },
35 | "Function": {
36 | "text-color": "#efef8f",
37 | "background-color": null,
38 | "bold": false,
39 | "italic": false,
40 | "underline": false
41 | },
42 | "String": {
43 | "text-color": "#cc9393",
44 | "background-color": null,
45 | "bold": false,
46 | "italic": false,
47 | "underline": false
48 | },
49 | "ControlFlow": {
50 | "text-color": "#f0dfaf",
51 | "background-color": null,
52 | "bold": false,
53 | "italic": false,
54 | "underline": false
55 | },
56 | "Operator": {
57 | "text-color": "#f0efd0",
58 | "background-color": null,
59 | "bold": false,
60 | "italic": false,
61 | "underline": false
62 | },
63 | "Error": {
64 | "text-color": "#c3bf9f",
65 | "background-color": null,
66 | "bold": false,
67 | "italic": false,
68 | "underline": false
69 | },
70 | "BaseN": {
71 | "text-color": "#dca3a3",
72 | "background-color": null,
73 | "bold": false,
74 | "italic": false,
75 | "underline": false
76 | },
77 | "Alert": {
78 | "text-color": "#ffcfaf",
79 | "background-color": null,
80 | "bold": false,
81 | "italic": false,
82 | "underline": false
83 | },
84 | "Variable": {
85 | "text-color": null,
86 | "background-color": null,
87 | "bold": false,
88 | "italic": false,
89 | "underline": false
90 | },
91 | "BuiltIn": {
92 | "text-color": null,
93 | "background-color": null,
94 | "bold": false,
95 | "italic": false,
96 | "underline": false
97 | },
98 | "Extension": {
99 | "text-color": null,
100 | "background-color": null,
101 | "bold": false,
102 | "italic": false,
103 | "underline": false
104 | },
105 | "Preprocessor": {
106 | "text-color": "#ffcfaf",
107 | "background-color": null,
108 | "bold": true,
109 | "italic": false,
110 | "underline": false
111 | },
112 | "Information": {
113 | "text-color": "#7f9f7f",
114 | "background-color": null,
115 | "bold": true,
116 | "italic": false,
117 | "underline": false
118 | },
119 | "VerbatimString": {
120 | "text-color": "#cc9393",
121 | "background-color": null,
122 | "bold": false,
123 | "italic": false,
124 | "underline": false
125 | },
126 | "Warning": {
127 | "text-color": "#7f9f7f",
128 | "background-color": null,
129 | "bold": true,
130 | "italic": false,
131 | "underline": false
132 | },
133 | "Documentation": {
134 | "text-color": "#7f9f7f",
135 | "background-color": null,
136 | "bold": false,
137 | "italic": false,
138 | "underline": false
139 | },
140 | "Import": {
141 | "text-color": null,
142 | "background-color": null,
143 | "bold": false,
144 | "italic": false,
145 | "underline": false
146 | },
147 | "Char": {
148 | "text-color": "#dca3a3",
149 | "background-color": null,
150 | "bold": false,
151 | "italic": false,
152 | "underline": false
153 | },
154 | "DataType": {
155 | "text-color": "#dfdfbf",
156 | "background-color": null,
157 | "bold": false,
158 | "italic": false,
159 | "underline": false
160 | },
161 | "Float": {
162 | "text-color": "#c0bed1",
163 | "background-color": null,
164 | "bold": false,
165 | "italic": false,
166 | "underline": false
167 | },
168 | "Comment": {
169 | "text-color": "#7f9f7f",
170 | "background-color": null,
171 | "bold": false,
172 | "italic": false,
173 | "underline": false
174 | },
175 | "CommentVar": {
176 | "text-color": "#7f9f7f",
177 | "background-color": null,
178 | "bold": true,
179 | "italic": false,
180 | "underline": false
181 | },
182 | "Constant": {
183 | "text-color": "#dca3a3",
184 | "background-color": null,
185 | "bold": true,
186 | "italic": false,
187 | "underline": false
188 | },
189 | "SpecialChar": {
190 | "text-color": "#dca3a3",
191 | "background-color": null,
192 | "bold": false,
193 | "italic": false,
194 | "underline": false
195 | },
196 | "DecVal": {
197 | "text-color": "#dcdccc",
198 | "background-color": null,
199 | "bold": false,
200 | "italic": false,
201 | "underline": false
202 | },
203 | "Keyword": {
204 | "text-color": "#f0dfaf",
205 | "background-color": null,
206 | "bold": false,
207 | "italic": false,
208 | "underline": false
209 | }
210 | }
211 | }
212 |
--------------------------------------------------------------------------------
/skylighting/themes/update.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # v1.0.0 | 2019/06/07 | pandoc 2.7.2 | by Tristano Ajmone (public domain)
4 | # ------------------------------------------------------------------------------
5 | # This script will generate a Skylighting JSON Theme file for every highlight
6 | # style (theme) natively supported by pandoc.
7 | # Generated theme files follow this naming convention:
8 | # builtin-.theme
9 | # ------------------------------------------------------------------------------
10 | echo -e "\e[94m================================"
11 | echo -e "\e[93mUpdating Skylighting JSON Themes"
12 | echo -e "\e[94m================================"
13 |
14 | pandoc --list-highlight-styles | grep -oP '\w+' | while read theme; do
15 | outFile="builtin-$theme.theme"
16 | echo -e "\e[0mUpdating theme: \e[94m$theme"
17 | pandoc -o $outFile --print-highlight-style=$theme
18 | done
19 |
--------------------------------------------------------------------------------
/templates/html5/github/INSTALL.bat:
--------------------------------------------------------------------------------
1 | :: "INSTALL.bat" v1.0 (2017-04-13) by Tristano Ajmone.
2 | @ECHO OFF
3 | ECHO.
4 | ECHO ==============================================================================
5 | ECHO Install GitHub Pandoc HTML5 Template
6 | ECHO ==============================================================================
7 | SET "_DEST=%APPDATA%\Pandoc\templates\"
8 | ECHO This script will copy "GitHub.html5" to pandoc's default templates folder for
9 | ECHO the current user, so that it will be always available to pandoc:
10 | ECHO.
11 | ECHO %_DEST%
12 | ECHO.
13 | ECHO Any previous version of the file will be overwritten without confirmation.
14 | ECHO.
15 | :: Ask for confirmation. Defaults to NO after 20 sec timeout (time to read text).
16 | CHOICE /C NY /D N /T 20 /M "Do you wish to install the template"
17 | IF ERRORLEVEL 2 GOTO :DO_INSTALL
18 | ECHO.
19 | ECHO Installation aborted...
20 | EXIT /B
21 |
22 | :DO_INSTALL
23 | ECHO.
24 | :: NOTE: XCOPY will create the "templates" subfolder if not present.
25 | XCOPY /Y %~dp0GitHub.html5 %_DEST%
26 | EXIT /B
--------------------------------------------------------------------------------
/templates/html5/github/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Tristano Ajmone, 2017-2020 (github.com/tajmone/pandoc-goodies)
4 | Copyright (c) Sindre Sorhus (sindresorhus.com)
5 | Copyright (c) 2017 GitHub Inc.
6 |
7 | "GitHub Pandoc HTML5 Template" is Copyright (c) Tristano Ajmone, 2017-2020,
8 | released under the MIT License (MIT); it contains readaptations of substantial
9 | portions of the following third party softwares:
10 |
11 | (1) "GitHub Markdown CSS", Copyright (c) Sindre Sorhus, MIT License (MIT).
12 | (2) "Primer CSS", Copyright (c) 2016 GitHub Inc., MIT License (MIT).
13 |
14 | Permission is hereby granted, free of charge, to any person obtaining a copy
15 | of this software and associated documentation files (the "Software"), to deal
16 | in the Software without restriction, including without limitation the rights
17 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18 | copies of the Software, and to permit persons to whom the Software is
19 | furnished to do so, subject to the following conditions:
20 |
21 | The above copyright notice and this permission notice shall be included in all
22 | copies or substantial portions of the Software.
23 |
24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 | SOFTWARE.
31 |
--------------------------------------------------------------------------------
/templates/html5/github/TODO.md:
--------------------------------------------------------------------------------
1 | # GitHub Template TODO List
2 |
3 | Shopping list of features to add to GitHub template:
4 |
5 | - [ ] Incorporate GitHub's syntax coloring scheme readapted to pandoc's and Highlight tags (and suppress pandoc syntax theme in template)?
6 | - [ ] Add PP `!mark` macros for generating `` tag and color variations:
7 | - [ ] Implement CSS styles for extra `` an `` color-classes (span classes as an alternative to PP `!mark` macros, using pandoc spans syntax)
8 | - [ ] Add `$project$` template keyword to support extra header features:
9 | + [ ] Link to project's repo
10 | + [ ] Link to project's website
11 | + [ ] GitHub StarMe button
12 | + [ ] Icons-links (and link template-vars):
13 | * [ ] GitHub
14 | * [ ] Twitter
15 | * [ ] FaceBook
16 |
17 |
--------------------------------------------------------------------------------
/templates/html5/github/src/BUILD-ALL.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | CALL TEMPLATE-BUILD.bat
3 | CALL PREVIEW-BUILD.bat
4 |
--------------------------------------------------------------------------------
/templates/html5/github/src/GitHub.css.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sourceRoot":"","sources":["GitHub.scss","_github-markdown.scss","_alerts.scss","_pandoc.scss"],"names":[],"mappings":";AAOA;;AAAA;AAAA;AAAA;AAAA;ACgCA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEA;EAEE;;AAEF;EACE;;AAEF;EACE;EACA;;AAIJ;EACE;;AAMF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;;AAKF;EACE;;AAGF;EACE;;AAGF;AAAA;AAAA;EAGE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACA;EACA;;AAGA;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;AAMF;EACE;EACA;;AAGF;EACE;;AAMF;AAAA;EAEE;EACA;EACA;;AAEA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;EAEE;EACA;;AAGF;AAAA;AAAA;AAAA;EAEE;;AAIJ;EACE;;AAGF;EACE;;AAOF;EACE;;AAGF;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAOJ;EACE;EACA;;AAGF;EACE;EACA;EACA;;AAMF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOE;EACA;;AAKF;EACE;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAKJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAYF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EAEE;EACA;;AAGF;EACE;EACA;;AAEA;EACE;;AAUN;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;AAAA;EAEE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;AAAA;EAEE;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAMF;EACE;EACA;EACA;;AAGF;EACE;;AAEA;EACE;;AAGF;EACE;EACA;;AASJ;EACE;EACA;;AAIF;EACE;EACA;EACA;;AAIF;EACE;;AAIF;EACE;;;ACvbJ;AAAA;AAAA;AAAA;AAAA;EAKI;EACA;EACA;EACA;EACA;;AACA;AAAA;AAAA;AAAA;AAAA;EACI;;AAEA;AAAA;AAAA;AAAA;AAAA;EACI;;;AAKZ;EACI,OAhDkB;EAiDlB,kBAhDiB;EAiDjB,cAhDiB;;;AAkDrB;EACI,OAhDe;EAiDf,kBAhDiB;EAiDjB,cAhDkB;;;AAkDtB;EACI,OAhDgB;EAiDhB,kBAhDkB;EAiDlB,cAhDkB;;;AAkDtB;EACI,OAhDkB;EAiDlB,kBAhDgB;EAiDhB,cAhDkB;;;AAkDtB;EACI,OAhDe;EAiDf,kBAhDiB;EAiDjB,cAhDiB;;;AAuDrB;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OAnFkB;EAoFlB;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OAvFe;EAwFf;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OA3FgB;EA4FhB;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OA/FkB;EAgGlB;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OAnGe;EAoGf;;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AC5KJ;AAAA;EAEC;;;AAID;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;;;AAQD;EACE","file":"GitHub.css"}
--------------------------------------------------------------------------------
/templates/html5/github/src/GitHub.min.css:
--------------------------------------------------------------------------------
1 | @charset "UTF-8";.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#24292e;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px;line-height:1.5;word-wrap:break-word;box-sizing:border-box;min-width:200px;max-width:980px;margin:0 auto;padding:45px}.markdown-body a{color:#0366d6;background-color:transparent;text-decoration:none;-webkit-text-decoration-skip:objects}.markdown-body a:active,.markdown-body a:hover{outline-width:0}.markdown-body a:hover{text-decoration:underline}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body strong{font-weight:600}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.markdown-body h1{font-size:2em;margin:.67em 0;padding-bottom:.3em;border-bottom:1px solid #eaecef}.markdown-body h2{padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid #eaecef}.markdown-body h3{font-size:1.25em}.markdown-body h4{font-size:1em}.markdown-body h5{font-size:.875em}.markdown-body h6{font-size:.85em;color:#6a737d}.markdown-body img{border-style:none}.markdown-body svg:not(:root){overflow:hidden}.markdown-body hr{box-sizing:content-box;height:.25em;margin:24px 0;padding:0;overflow:hidden;background-color:#e1e4e8;border:0}.markdown-body hr::before{display:table;content:""}.markdown-body hr::after{display:table;clear:both;content:""}.markdown-body input{margin:0;overflow:visible;font:inherit;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=checkbox]{box-sizing:border-box;padding:0}.markdown-body *{box-sizing:border-box}.markdown-body blockquote{margin:0}.markdown-body ol,.markdown-body ul{padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ol ol,.markdown-body ol ul,.markdown-body ul ol,.markdown-body ul ul{margin-top:0;margin-bottom:0}.markdown-body ol ol ol,.markdown-body ol ul ol,.markdown-body ul ol ol,.markdown-body ul ul ol{list-style-type:lower-alpha}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dd{margin-left:0}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body code{font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace}.markdown-body pre{font:12px SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;word-wrap:normal}.markdown-body blockquote,.markdown-body dl,.markdown-body ol,.markdown-body p,.markdown-body pre,.markdown-body table,.markdown-body ul{margin-top:0;margin-bottom:16px}.markdown-body blockquote{padding:0 1em;color:#6a737d;border-left:.25em solid #dfe2e5}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body table{display:block;width:100%;overflow:auto;border-spacing:0;border-collapse:collapse}.markdown-body table th{font-weight:600}.markdown-body table td,.markdown-body table th{padding:6px 13px;border:1px solid #dfe2e5}.markdown-body table tr{background-color:#fff;border-top:1px solid #c6cbd1}.markdown-body table tr:nth-child(2n){background-color:#f6f8fa}.markdown-body img{max-width:100%;box-sizing:content-box;background-color:#fff}.markdown-body code{padding:.2em 0;margin:0;font-size:85%;background-color:rgba(27,31,35,.05);border-radius:3px}.markdown-body code::after,.markdown-body code::before{letter-spacing:-.2em;content:" "}.markdown-body pre>code{padding:0;margin:0;font-size:100%;word-break:normal;white-space:pre;background:0 0;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f6f8fa;border-radius:3px}.markdown-body pre code{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body pre code::after,.markdown-body pre code::before{content:normal}.markdown-body .full-commit .btn-outline:not(:disabled):hover{color:#005cc5;border-color:#005cc5}.markdown-body kbd{box-shadow:inset 0 -1px 0 #959da5;display:inline-block;padding:3px 5px;font:11px/10px SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;color:#444d56;vertical-align:middle;background-color:#fcfcfc;border:1px solid #c6cbd1;border-bottom-color:#959da5;border-radius:3px;box-shadow:inset 0 -1px 0 #959da5}.markdown-body :checked+.radio-label{position:relative;z-index:1;border-color:#0366d6}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item+.task-list-item{margin-top:3px}.markdown-body .task-list-item input{margin:0 .2em .25em -1.6em;vertical-align:middle}.markdown-body::before{display:table;content:""}.markdown-body::after{display:table;clear:both;content:""}.markdown-body>:first-child{margin-top:0!important}.markdown-body>:last-child{margin-bottom:0!important}.Alert,.Error,.Note,.Success,.Warning{padding:11px;margin-bottom:24px;border-style:solid;border-width:1px;border-radius:4px}.Alert p,.Error p,.Note p,.Success p,.Warning p{margin-top:0}.Alert p:last-child,.Error p:last-child,.Note p:last-child,.Success p:last-child,.Warning p:last-child{margin-bottom:0}.Alert{color:#246;background-color:#e2eef9;border-color:#bac6d3}.Warning{color:#4c4a42;background-color:#fff9ea;border-color:#dfd8c2}.Error{color:#911;background-color:#fcdede;border-color:#d2b2b2}.Success{color:#22662c;background-color:#e2f9e5;border-color:#bad3be}.Note{color:#2f363d;background-color:#f6f8fa;border-color:#d5d8da}.Alert h1,.Alert h2,.Alert h3,.Alert h4,.Alert h5,.Alert h6{color:#246;margin-bottom:0}.Warning h1,.Warning h2,.Warning h3,.Warning h4,.Warning h5,.Warning h6{color:#4c4a42;margin-bottom:0}.Error h1,.Error h2,.Error h3,.Error h4,.Error h5,.Error h6{color:#911;margin-bottom:0}.Success h1,.Success h2,.Success h3,.Success h4,.Success h5,.Success h6{color:#22662c;margin-bottom:0}.Note h1,.Note h2,.Note h3,.Note h4,.Note h5,.Note h6{color:#2f363d;margin-bottom:0}.Alert h1:first-child,.Alert h2:first-child,.Alert h3:first-child,.Alert h4:first-child,.Alert h5:first-child,.Alert h6:first-child,.Error h1:first-child,.Error h2:first-child,.Error h3:first-child,.Error h4:first-child,.Error h5:first-child,.Error h6:first-child,.Note h1:first-child,.Note h2:first-child,.Note h3:first-child,.Note h4:first-child,.Note h5:first-child,.Note h6:first-child,.Success h1:first-child,.Success h2:first-child,.Success h3:first-child,.Success h4:first-child,.Success h5:first-child,.Success h6:first-child,.Warning h1:first-child,.Warning h2:first-child,.Warning h3:first-child,.Warning h4:first-child,.Warning h5:first-child,.Warning h6:first-child{margin-top:0}h1.title,p.subtitle{text-align:center}h1.title.followed-by-subtitle{margin-bottom:0}p.subtitle{font-size:1.5em;font-weight:600;line-height:1.25;margin-top:0;margin-bottom:16px;padding-bottom:.3em}div.line-block{white-space:pre-line}
--------------------------------------------------------------------------------
/templates/html5/github/src/GitHub.scss:
--------------------------------------------------------------------------------
1 | // ******************************************************************************
2 | // * *
3 | // * GitHub Pandoc HTML5 Template *
4 | // * *
5 | // * v2.1 | 2018/02/28 | pandoc v2.1.1 *
6 | // * *
7 | // ******************************************************************************
8 | /* github-markdown.css -- MIT License:
9 |
10 | Copyright (c) 2017 Tristano Ajmone.
11 | Copyright (c) Sindre Sorhus (sindresorhus.com)
12 | Copyright (c) 2017 GitHub Inc.
13 | */
14 |
15 |
16 | @import '_github-markdown.scss';
17 | @import '_alerts.scss';
18 | @import '_pandoc.scss'; // pandoc specific CSS
19 |
--------------------------------------------------------------------------------
/templates/html5/github/src/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Tristano Ajmone, 2017-2020 (github.com/tajmone/pandoc-goodies)
4 | Copyright (c) Sindre Sorhus (sindresorhus.com)
5 | Copyright (c) 2017 GitHub Inc.
6 |
7 | "GitHub Pandoc HTML5 Template" is Copyright (c) Tristano Ajmone, 2017-2020,
8 | released under the MIT License (MIT); it contains readaptations of substantial
9 | portions of the following third party softwares:
10 |
11 | (1) "GitHub Markdown CSS", Copyright (c) Sindre Sorhus, MIT License (MIT).
12 | (2) "Primer CSS", Copyright (c) 2016 GitHub Inc., MIT License (MIT).
13 |
14 | Permission is hereby granted, free of charge, to any person obtaining a copy
15 | of this software and associated documentation files (the "Software"), to deal
16 | in the Software without restriction, including without limitation the rights
17 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18 | copies of the Software, and to permit persons to whom the Software is
19 | furnished to do so, subject to the following conditions:
20 |
21 | The above copyright notice and this permission notice shall be included in all
22 | copies or substantial portions of the Software.
23 |
24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 | SOFTWARE.
31 |
--------------------------------------------------------------------------------
/templates/html5/github/src/PREVIEW-BUILD.bat:
--------------------------------------------------------------------------------
1 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
2 | :: GitHub HTML5 Pandoc Template Preview builder v2.0 (2017-11-21)
3 | :: (c) Tristano Ajmone, 2017. MIT License (MIT).
4 | :: https://github.com/tajmone/pandoc-goodies
5 | :: //////////////////////////////////////////////////////////////////////////////
6 | ::
7 | :: SCRIPT REQUIREMENTS:
8 | :: -- pandoc >= v2.0 must be available on the system %PATH%:
9 | :: http://pandoc.org
10 | :: -- pp >= v2.1.5 must be available on the system %PATH%:
11 | :: http://cdsoft.fr/pp/
12 | :: ------------------------------------------------------------------------------
13 | @ECHO OFF
14 | ECHO.
15 | ECHO ==============================================================================
16 | ECHO Building GitHub html5 template preview...
17 | ECHO ==============================================================================
18 | :: ==============================================================================
19 | :: CHECK SYSTEM REQUIREMENTS
20 | :: ==============================================================================
21 | :: Before starting to build, check that all required tools are available:
22 | :: ------------------------------------------------------------------------------
23 | ECHO 1) Checking that system requirement are met.
24 | CALL pandoc -v >nul 2>&1
25 | IF ERRORLEVEL 1 (
26 | ECHO ERROR! In order to execute this script, pandoc must be on the system %%PATH%%:
27 | ECHO.
28 | ECHO http://pandoc.org
29 | EXIT /B
30 | )
31 | CALL pp -v >nul 2>&1
32 | IF ERRORLEVEL 1 (
33 | ECHO ERROR! In order to execute this script, pp must be on the system %%PATH%%:
34 | ECHO.
35 | ECHO http://cdsoft.fr/pp/
36 | EXIT /B
37 | )
38 | :: ==============================================================================
39 | :: BUILD TEMPLATE PREVIEW
40 | :: ==============================================================================
41 | :: Initialize pp-macros environment variable %PP_MACROS_PATH%.
42 | :: ------------------------------------------------------------------------------
43 | ECHO 2) Initalizing pp-macros environment.
44 | :: ------------------------------------------------------------------------------
45 | :: Invoke pp on markdown source and pipe its output to pandoc.
46 | :: ------------------------------------------------------------------------------
47 | CALL ..\..\..\..\pp\macros\INIT-ENV.bat
48 | ECHO 3) Invoking pp preprocessor and piping output to pandoc.
49 | pp -import %PP_MACROS_PATH%macros.pp ^
50 | PREVIEW.md ^
51 | | pandoc -f markdown ^
52 | -t html5 ^
53 | --standalone ^
54 | --template=..\GitHub.html5 ^
55 | --highlight-style=haddock ^
56 | --toc ^
57 | -o ..\GitHub-Template-Preview.html
58 | :: HIGHLIGHT-STYLES:
59 | :: pygments kate monochrome breezeDark espresso zenburn haddock tango
60 | :: ------------------------------------------------------------------------------
61 | EXIT /B
62 |
63 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
64 | :: CHANGELOG
65 | :: //////////////////////////////////////////////////////////////////////////////
66 | :: v2.0 (2017-11-21)
67 | :: -- PP 2.1.5 | pandoc 2.0.2
68 | :: v1.0 (2017-04-08)
69 | :: -- First release.
--------------------------------------------------------------------------------
/templates/html5/github/src/README.md:
--------------------------------------------------------------------------------
1 | # GitHub Pandoc HTML5 Template Source Files
2 |
3 | pandoc v2.1.1 | PP v2.1.5
4 |
5 | Here are the source files to build the GitHub template and the template preview example, plus some watch and build scripts to facilitate working with the sources.
6 |
7 |
8 | -----
9 |
10 | **Table of Contents**
11 |
12 |
13 |
14 |
15 | - [Files List](#files-list)
16 | - [Build Instructions](#build-instructions)
17 | - [Requirements](#requirements)
18 | - [Building The Template](#building-the-template)
19 | - [Building The Template Preview](#building-the-template-preview)
20 | - [Editing Instructions](#editing-instructions)
21 | - [Editing The Template](#editing-the-template)
22 | - [Editing The Template Preview](#editing-the-template-preview)
23 |
24 |
25 |
26 | -----
27 |
28 |
29 | # Files List
30 |
31 | - [`_alerts.scss`](./_alerts.scss) — Sass module
32 | - [`_github-markdown.scss`](./_github-markdown.scss) — Sass module
33 | - [`_pandoc.scss`](./_pandoc.scss) — Sass module
34 | - [`BUILD-ALL.bat`](./BUILD-ALL.bat) — launches `TEMPLATE-BUILD.bat` and `PREVIEW-BUILD.bat`
35 | - [`css-injector.js`](./css-injector.js) — injects CSS in template (used by `TEMPLATE-BUILD.bat`)
36 | - [`GitHub.css.map`](./GitHub.css.map) — CSS source map file (*autogenerated*)
37 | - [`GitHub.css`](./GitHub.css) — template stylesheet (*autogenerated*)
38 | - [`GitHub.min.css`](./GitHub.min.css) — template stylesheet minified (*autogenerated*)
39 | - [`GitHub.scss`](./GitHub.scss) — template's main Sass file that load all other SCSS modules.
40 | - [`GitHub_source.html5`](./GitHub_source.html5) — template source with placeholder string for CSS injection.
41 | - [`LICENSE`](./LICENSE) — MIT License text.
42 | - [`PREVIEW-BUILD.bat`](./PREVIEW-BUILD.bat) — builds `../GitHub-Template-Preview.html`
43 | - [`PREVIEW.md`](./PREVIEW.md) — source contents of `../GitHub-Template-Preview.html`
44 | - [`SASS-BUILD.bat`](./SASS-WATCH.bat) — force builds `GitHub.css` from `*.scss` source files.
45 | - [`SASS-WATCH.bat`](./SASS-WATCH.bat) — force builds `GitHub.css` and then watches `*.scss` files.
46 | - [`TEMPLATE-BUILD.bat`](./TEMPLATE-BUILD.bat) — builds `../GitHub.html5`
47 | - [`WATCH-ALL.bat`](./WATCH-ALL.bat) — rebuilds `../GitHub.html5` and `../GitHub-Template-Preview.html` if any source file changes.
48 |
49 | # Build Instructions
50 |
51 | The [`BUILD-ALL.bat`](./BUILD-ALL.bat) script will build/update both the template and the template preview example (in parent folder):
52 |
53 | - `../GitHub.html5`
54 | - `../GitHub-Template-Preview.html`
55 |
56 | ## Requirements
57 |
58 | Some scripts rely on the presence of third party tools on the system. In order to be able to build all the contents of this folder, you'll need:
59 |
60 | - [PP](http://cdsoft.fr/pp/) (version `>= 2.0`)
61 | - [pandoc](http://pandoc.org) (version `>= 2.0`)
62 | - [Sass](http://sass-lang.com/) (Dart)
63 | - [clean-css-cli](https://www.npmjs.com/package/clean-css-cli) (Node.js)
64 | - [multiwatch](https://www.npmjs.com/package/multiwatch) (Node.js)
65 |
66 | ## Building The Template
67 |
68 | To build the template launch [`TEMPLATE-BUILD.bat`](./TEMPLATE-BUILD.bat). This will:
69 |
70 | 1. Compile `GitHub.css` from Sass sources.
71 | 2. Minify `GitHub.css` to `GitHub.min.css`.
72 | 3. Load `GitHub_source.html5` into memory and inject the contents of `GitHub.min.css` over the `{{CSS-INJECT}}` placeholder string.
73 | 4. Save the final template with injected CSS to `../GitHub.html5` (parent folder).
74 |
75 | You can skip __Step-1__ (compiling CSS from Sass) by passing the "`--no-sass`" option:
76 |
77 | ```
78 | TEMPLATE-BUILD --no-sass
79 | ```
80 |
81 | ... this is useful if you are not editing the `*.scss` sources, or don't have Sass on your system. (It's also required to prevent a vicious circle in `WATCH-ALL.bat`)
82 |
83 | ## Building The Template Preview
84 |
85 | To build the template preview example launch [`PREVIEW-BUILD.bat`](./PREVIEW-BUILD.bat). This will:
86 |
87 | 1. Invoke `..\..\..\..\pp\macros\INIT-ENV.bat` to initialize the env vars of the PP Macros library.
88 | 2. Invoke PP to preprocess `PREVIEW.md`.
89 | 3. Pipe the preprocessed markdown to pandoc for HTML conversion.
90 | 4. Save the final HTML document to `../GitHub-Template-Preview.html` (parent folder).
91 |
92 | # Editing Instructions
93 |
94 | The [`WATCH-ALL.bat`](./WATCH-ALL.bat) script will watch for any changes in source files affecting both the template and its preview example, when file changes are detected it will automatically rebuild the template and/or the template preview.
95 |
96 | ## Editing The Template
97 |
98 | These are the editable source files of the pandoc HTML5 template:
99 |
100 | - [`GitHub_source.html5`](./GitHub_source.html5)
101 |
102 | And these are the Sass source files of the CSS stylesheet:
103 |
104 | - [`GitHub.scss`](./GitHub.scss)
105 | - [`_alerts.scss`](./_alerts.scss)
106 | - [`_github-markdown.scss`](./_github-markdown.scss)
107 | - [`_pandoc.scss`](./_pandoc.scss)
108 |
109 | All other template files are autogenerated by scripts.
110 |
111 | ## Editing The Template Preview
112 |
113 | These are the editable source files of the template preview file:
114 |
115 | - [`PREVIEW.md`](./PREVIEW.md)
116 |
117 |
118 |
--------------------------------------------------------------------------------
/templates/html5/github/src/SASS-BUILD.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | ECHO.
3 | ECHO ==============================================================================
4 | ECHO Building GitHub.css from Sass sources
5 | ECHO ==============================================================================
6 | ECHO 1) Force building SASS project...
7 | ECHO.
8 | CALL SASS --source-map --style=expanded .\GitHub.scss:.\GitHub.css
9 | EXIT /B
10 |
11 |
--------------------------------------------------------------------------------
/templates/html5/github/src/SASS-WATCH.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | ECHO.
3 | ECHO 1) Force building SASS project...
4 | ECHO.
5 | CALL SASS --source-map --style=expanded .\GitHub.scss:.\GitHub.css
6 | ECHO.
7 | ECHO ------------------------------------------------------------------------------
8 | ECHO 2) Watching SASS project...
9 | ECHO.
10 | CALL SASS --source-map --style=expanded --watch .\GitHub.scss:.\GitHub.css
11 | EXIT /B
12 |
--------------------------------------------------------------------------------
/templates/html5/github/src/TEMPLATE-BUILD.bat:
--------------------------------------------------------------------------------
1 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
2 | :: GitHub HTML5 Pandoc Template builder v2.0 (2017-11-21)
3 | :: (c) Tristano Ajmone, 2017. MIT License (MIT).
4 | :: https://github.com/tajmone/pandoc-goodies
5 | :: //////////////////////////////////////////////////////////////////////////////
6 | ::
7 | :: Invoke with "--no-sass" to skip build-css step.
8 | ::
9 | :: SCRIPT REQUIREMENTS:
10 | :: -- clean-css-cli v. >= 4.1 (Node.js), installed locally or globally):
11 | :: https://www.npmjs.com/package/clean-css-cli
12 | :: https://github.com/jakubpawlowicz/clean-css-cli
13 | :: ------------------------------------------------------------------------------
14 | @ECHO OFF
15 | ECHO.
16 | ECHO ==============================================================================
17 | ECHO Building GitHub html5 pandoc template...
18 | ECHO ==============================================================================
19 | :: Check if "--no-sass" option was used:
20 | IF "%~1"=="--no-sass" (
21 | ECHO "--no-sass" option: CSS creation from Sass will be skipped
22 | ECHO.
23 | )
24 | :: Create steps counter var:
25 | SET _STEP=1
26 | :: ==============================================================================
27 | :: CHECK SYSTEM REQUIREMENTS
28 | :: ==============================================================================
29 | :: Before starting to build, check that all required tools are available:
30 | :: ------------------------------------------------------------------------------
31 | ECHO %_STEP%) Checking that system requirement are met.
32 | CALL cleancss -v >nul 2>&1
33 | IF ERRORLEVEL 1 (
34 | ECHO ERROR! In order to execute this script, you must install clean-css-cli:
35 | ECHO.
36 | ECHO https://www.npmjs.com/package/clean-css-cli
37 | EXIT /B
38 | )
39 | SET /A _STEP+=1
40 | :: ==============================================================================
41 | :: BUILD CSS FROM SASS SOURCES
42 | :: ==============================================================================
43 | :: Check if "--no-sass" option was used:
44 | IF "%~1"=="--no-sass" GOTO :MINIFY
45 | ECHO %_STEP%) Creating CSS file from Sass sources.
46 | CALL SASS-BUILD.bat 1>nul
47 | SET /A _STEP+=1
48 | :: ==============================================================================
49 | :: BUILD MINIFIED CSS
50 | :: ==============================================================================
51 | :: Build a minified and optimized CSS files from multiple sources.
52 | :: ------------------------------------------------------------------------------
53 | :MINIFY
54 | ECHO %_STEP%) Minifying CSS file.
55 | CALL cleancss -O2 ^
56 | GitHub.css ^
57 | -o GitHub.min.css
58 | SET /A _STEP+=1
59 | :: ==============================================================================
60 | :: BUILD HTML5 TEMPLATE
61 | :: ==============================================================================
62 | :: The final template is created via a Node.js script that injects the minified
63 | :: CSS file into a placholder string ("{{CSS-INJECT}}") in the template's template
64 | :: file ("sourceGitHub.html5") and then writes to file the final template.
65 | :: ------------------------------------------------------------------------------
66 | ECHO %_STEP%) Injecting minified CSS into template source file.
67 | CALL NODE css-injector.js
68 | :: ------------------------------------------------------------------------------
69 | EXIT /B
70 |
71 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
72 | :: CHANGELOG
73 | :: //////////////////////////////////////////////////////////////////////////////
74 | :: v2.0 (2017-11-21)
75 | :: -- Inject CSS-file into "GitHub_source.html5" via "TEMPLATE-INJECT-CSS.js"
76 | :: script (Node.js) instead of joining multiple split files.
77 | :: -- Also compiles CSS from Sass sources.
78 | :: -- Sass to CSS compilation step can be skipped via "--no-sass" parameter.
79 | :: v1.0 (2017-04-08)
80 | :: -- First release.
--------------------------------------------------------------------------------
/templates/html5/github/src/WATCH-ALL.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | ECHO ==============================================================================
3 | ECHO WATCH ALL SCRIPT
4 | ECHO ==============================================================================
5 | :: "WATCH-ALL.bat" v1.0 | 2017/11/20 | by Tristano Ajmone
6 | :: ------------------------------------------------------------------------------
7 | :: SCRIPT REQUIREMENTS:
8 | :: -- multiwatch (Node.js)
9 | :: https://www.npmjs.com/package/multiwatch
10 | :: ==============================================================================
11 | :: WATCH SASS
12 | :: ==============================================================================
13 | :: Launch in another CMD window "SASS-WATCH.bat" script which will:
14 | :: 1. Force compile the SCSS source files.
15 | :: 2. Watch the SCSS source files and recompile them if they change.
16 | :: ------------------------------------------------------------------------------
17 | START "SASS WATCH" CMD /C SASS-WATCH.bat
18 | :: ==============================================================================
19 | :: WATCH TEMPLATE AND PREVIEW DOC
20 | :: ==============================================================================
21 | :: Invoke multiwatch to watch the template source files and the template-preview
22 | :: files, and launch the required build script if any file changes are detected.
23 | :: ------------------------------------------------------------------------------
24 | multiwatch GitHub.css ^
25 | GitHub_source.html5 ^
26 | --execute "TEMPLATE-BUILD.bat --no-sass" ^
27 | ..\GitHub.html5 ^
28 | PREVIEW.md ^
29 | --execute "PREVIEW-BUILD.bat"
30 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
31 | :: CHANGELOG
32 | :: //////////////////////////////////////////////////////////////////////////////
33 | :: v1.0 (2017-11-20)
34 | :: -- First release.
35 |
--------------------------------------------------------------------------------
/templates/html5/github/src/_alerts.scss:
--------------------------------------------------------------------------------
1 | // ==============================================================================
2 | // ALERTS
3 | // ==============================================================================
4 | // This file was freely adapted from the Primer CSS project by GitHub Inc.:
5 | //
6 | // -- https://github.com/primer/primer-css/blob/master/modules/primer-alerts/lib/flash.scss
7 | //
8 | // Copyright (c) 2016 GitHub Inc. Released under The MIT License (MIT).
9 | // ==============================================================================
10 |
11 | // ------------------------------------------------------------------------------
12 | // Alerts Color Palette
13 | // ------------------------------------------------------------------------------
14 | // These colors are from the older GitHub color scheme (the new Alerts are too
15 | // bright for my tastes, I preferr the older colors which are most pastel-like)
16 | // The gray tones of '.Note' (which isn't part of Primer's Alerts) were added
17 | // by me, using Primer's color scheme as a reference.
18 |
19 | // Alert (Default) » Blue
20 | $Alert-Text: #224466;
21 | $Alert-BG: #E2EEF9;
22 | $Alert-Border: #BAC6D3;
23 |
24 | // Alert Warn » Yellow
25 | $AlertWarn-Text: #4C4A42;
26 | $AlertWarn-BG: #FFF9EA;
27 | $AlertWarn-Border: #DFD8C2;
28 |
29 | // Alert Error » Red
30 | $AlertError-Text: #991111;
31 | $AlertError-BG: #FCDEDE;
32 | $AlertError-Border: #D2B2B2;
33 |
34 | // Alert Success » Green
35 | $AlertSuccess-Text: #22662C;
36 | $AlertSuccess-BG: #E2F9E5;
37 | $AlertSuccess-Border: #BAD3BE;
38 |
39 | // Alert Note » Gray (not part of Primer CSS)
40 | $AlertNote-Text: #2F363D;
41 | $AlertNote-BG: #F6F8FA;
42 | $AlertNote-Border: #D5D8DA;
43 |
44 | // ------------------------------------------------------------------------------
45 |
46 | // NOTE: baseline is 24px
47 |
48 | .Alert,
49 | .Warning,
50 | .Error,
51 | .Success,
52 | .Note {
53 | padding: 11px;
54 | margin-bottom: 24px;
55 | border-style: solid;
56 | border-width: 1px;
57 | border-radius: 4px;
58 | p {
59 | margin-top: 0;
60 |
61 | &:last-child {
62 | margin-bottom: 0;
63 | }
64 | }
65 | }
66 |
67 | .Alert {
68 | color: $Alert-Text;
69 | background-color: $Alert-BG;
70 | border-color: $Alert-Border;
71 | }
72 | .Warning {
73 | color: $AlertWarn-Text;
74 | background-color: $AlertWarn-BG;
75 | border-color: $AlertWarn-Border;
76 | }
77 | .Error {
78 | color: $AlertError-Text;
79 | background-color: $AlertError-BG;
80 | border-color: $AlertError-Border;
81 | }
82 | .Success {
83 | color: $AlertSuccess-Text;
84 | background-color: $AlertSuccess-BG;
85 | border-color: $AlertSuccess-Border;
86 | }
87 | .Note {
88 | color: $AlertNote-Text;
89 | background-color: $AlertNote-BG;
90 | border-color: $AlertNote-Border;
91 | }
92 |
93 | // ==============================================================================
94 | // Headings 1-6 Inside Alerts
95 | // ==============================================================================
96 | // ALL HEADINGS: Set right Alert color, and remove margin:
97 | .Alert h1,
98 | .Alert h2,
99 | .Alert h3,
100 | .Alert h4,
101 | .Alert h5,
102 | .Alert h6 {
103 | color: $Alert-Text;
104 | margin-bottom: 0;
105 | }
106 | .Warning h1,
107 | .Warning h2,
108 | .Warning h3,
109 | .Warning h4,
110 | .Warning h5,
111 | .Warning h6 {
112 | color: $AlertWarn-Text;
113 | margin-bottom: 0;
114 | }
115 | .Error h1,
116 | .Error h2,
117 | .Error h3,
118 | .Error h4,
119 | .Error h5,
120 | .Error h6 {
121 | color: $AlertError-Text;
122 | margin-bottom: 0;
123 | }
124 | .Success h1,
125 | .Success h2,
126 | .Success h3,
127 | .Success h4,
128 | .Success h5,
129 | .Success h6 {
130 | color: $AlertSuccess-Text;
131 | margin-bottom: 0;
132 | }
133 | .Note h1,
134 | .Note h2,
135 | .Note h3,
136 | .Note h4,
137 | .Note h5,
138 | .Note h6 {
139 | color: $AlertNote-Text;
140 | margin-bottom: 0;
141 | }
142 | // ------------------------------------------------------------------------------
143 | // 1st HEADINGS: Remove top margin in first H1-6 occuring inside Alerts:
144 | .Alert h1:first-child,
145 | .Alert h2:first-child,
146 | .Alert h3:first-child,
147 | .Alert h4:first-child,
148 | .Alert h5:first-child,
149 | .Alert h6:first-child {
150 | margin-top: 0;
151 | }
152 | .Warning h1:first-child,
153 | .Warning h2:first-child,
154 | .Warning h3:first-child,
155 | .Warning h4:first-child,
156 | .Warning h5:first-child,
157 | .Warning h6:first-child {
158 | margin-top: 0;
159 | }
160 | .Error h1:first-child,
161 | .Error h2:first-child,
162 | .Error h3:first-child,
163 | .Error h4:first-child,
164 | .Error h5:first-child,
165 | .Error h6:first-child {
166 | margin-top: 0;
167 | }
168 | .Success h1:first-child,
169 | .Success h2:first-child,
170 | .Success h3:first-child,
171 | .Success h4:first-child,
172 | .Success h5:first-child,
173 | .Success h6:first-child {
174 | margin-top: 0;
175 | }
176 | .Note h1:first-child,
177 | .Note h2:first-child,
178 | .Note h3:first-child,
179 | .Note h4:first-child,
180 | .Note h5:first-child,
181 | .Note h6:first-child {
182 | margin-top: 0;
183 | }
--------------------------------------------------------------------------------
/templates/html5/github/src/_pandoc.scss:
--------------------------------------------------------------------------------
1 | // ******************************************************************************
2 | // * *
3 | // * Pandoc-Specific Styles *
4 | // * *
5 | // ******************************************************************************
6 |
7 | // ------------------------------------------------------------------------------
8 | // Title & Subtitle
9 | // ------------------------------------------------------------------------------
10 | h1.title,
11 | p.subtitle {
12 | text-align: center;
13 | }
14 |
15 | // If Title is followed by a Subtitle set Title margin-bottom to "0"
16 | h1.title.followed-by-subtitle {
17 | margin-bottom: 0;
18 | }
19 |
20 | p.subtitle {
21 | font-size: 1.5em;
22 | font-weight: 600;
23 | line-height: 1.25;
24 | margin-top: 0;
25 | margin-bottom: 16px;
26 | padding-bottom: 0.3em;
27 | }
28 |
29 | // ------------------------------------------------------------------------------
30 | // Pandoc Line blocks
31 | // ------------------------------------------------------------------------------
32 | // As of v2.x pandoc no longer adds inline CSS to Line blocks, but relies on the
33 | // "line-block" class instead:
34 | div.line-block {
35 | white-space: pre-line;
36 | }
--------------------------------------------------------------------------------
/templates/html5/github/src/css-injector.js:
--------------------------------------------------------------------------------
1 | /*
2 | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
3 | GitHub HTML5 Pandoc Template: Inject CSS v1.0 (2017-11-21)
4 | (c) Tristano Ajmone, 2017. MIT License (MIT).
5 | https://github.com/tajmone/pandoc-goodies
6 | //////////////////////////////////////////////////////////////////////////////
7 |
8 | This script will:
9 |
10 | 1. Load the given template source file, which contains a placeholder string
11 | indicating where to inject the CSS contents;
12 | 2. Load the contents of the given CSS file in memory;
13 | 3. Replace the placeholder string with the CSS contents (inject them);
14 | 4. Save the final result to the given destination file.
15 |
16 | */
17 |
18 | templateFile = "GitHub_source.html5" // Template with CSS-injection placeholder
19 | cssFile = "GitHub.min.css" // CSS source to inject into placeholder
20 | outFile = "../GitHub.html5" // Final template output file
21 | placeHolder = "{{CSS-INJECT}}" // Placeholder string for CSS-injection
22 |
23 | var fs = require('fs')
24 | // ------------------------------------------------------------------------------
25 | // Load CSS Into Var
26 | // ------------------------------------------------------------------------------
27 | try {
28 | var CSS = fs.readFileSync(cssFile, 'utf8');
29 | } catch(e) {
30 | console.log('Error:', e.stack);
31 | process.exit(1);
32 | }
33 | // ------------------------------------------------------------------------------
34 | // Load Template Into Var
35 | // ------------------------------------------------------------------------------
36 | try {
37 | var Template = fs.readFileSync(templateFile, 'utf8');
38 | } catch(e) {
39 | console.log('Error:', e.stack);
40 | process.exit(1);
41 | }
42 | // ------------------------------------------------------------------------------
43 | // Inject CSS Into Template
44 | // ------------------------------------------------------------------------------
45 | Template = Template.replace(placeHolder, CSS);
46 | // var result = Template.replace(placeHolder, CSS);
47 |
48 | try {
49 | fs.writeFileSync(outFile, Template, 'utf8');
50 | } catch(e) {
51 | console.log('Error:', e.stack);
52 | process.exit(1);
53 | }
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------