example/src/style/pandoc.css

Mon, 20 Apr 2020 11:51:50 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 20 Apr 2020 11:51:50 -0500
changeset 17
bea2ea0b07d9
parent 16
e377590e9b19
permissions
-rw-r--r--

Remove stray debug message

16
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1 /* Extracted manually from `pandoc -s some-file-with-syntax-highlighting` */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
2 code{white-space: pre-wrap;}
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
3 span.smallcaps{font-variant: small-caps;}
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
4 span.underline{text-decoration: underline;}
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
5 div.column{display: inline-block; vertical-align: top; width: 50%;}
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
6 div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
7 ul.task-list{list-style: none;}
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
8 pre > code.sourceCode { white-space: pre; position: relative; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
9 pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
10 pre > code.sourceCode > span:empty { height: 1.2em; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
11 code.sourceCode > span { color: inherit; text-decoration: inherit; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
12 div.sourceCode { margin: 1em 0; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
13 pre.sourceCode { margin: 0; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
14 @media screen {
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
15 div.sourceCode { overflow: auto; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
16 }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
17 @media print {
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
18 pre > code.sourceCode { white-space: pre-wrap; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
19 pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
20 }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
21 pre.numberSource code
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
22 { counter-reset: source-line 0; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
23 pre.numberSource code > span
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
24 { position: relative; left: -4em; counter-increment: source-line; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
25 pre.numberSource code > span > a:first-child::before
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
26 { content: counter(source-line);
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
27 position: relative; left: -1em; text-align: right; vertical-align: baseline;
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
28 border: none; display: inline-block;
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
29 -webkit-touch-callout: none; -webkit-user-select: none;
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
30 -khtml-user-select: none; -moz-user-select: none;
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
31 -ms-user-select: none; user-select: none;
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
32 padding: 0 4px; width: 4em;
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
33 color: #aaaaaa;
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
34 }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
35 pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
36 div.sourceCode
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
37 { }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
38 @media screen {
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
39 pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
40 }
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
41 code span.al { color: #ff0000; font-weight: bold; } /* Alert */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
42 code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
43 code span.at { color: #7d9029; } /* Attribute */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
44 code span.bn { color: #40a070; } /* BaseN */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
45 code span.bu { } /* BuiltIn */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
46 code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
47 code span.ch { color: #4070a0; } /* Char */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
48 code span.cn { color: #880000; } /* Constant */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
49 code span.co { color: #60a0b0; font-style: italic; } /* Comment */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
50 code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
51 code span.do { color: #ba2121; font-style: italic; } /* Documentation */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
52 code span.dt { color: #902000; } /* DataType */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
53 code span.dv { color: #40a070; } /* DecVal */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
54 code span.er { color: #ff0000; font-weight: bold; } /* Error */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
55 code span.ex { } /* Extension */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
56 code span.fl { color: #40a070; } /* Float */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
57 code span.fu { color: #06287e; } /* Function */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
58 code span.im { } /* Import */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
59 code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
60 code span.kw { color: #007020; font-weight: bold; } /* Keyword */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
61 code span.op { color: #666666; } /* Operator */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
62 code span.ot { color: #007020; } /* Other */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
63 code span.pp { color: #bc7a00; } /* Preprocessor */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
64 code span.sc { color: #4070a0; } /* SpecialChar */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
65 code span.ss { color: #bb6688; } /* SpecialString */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
66 code span.st { color: #4070a0; } /* String */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
67 code span.va { color: #19177c; } /* Variable */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
68 code span.vs { color: #4070a0; } /* VerbatimString */
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
69 code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */

mercurial