example/src/style/pandoc.css

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

mercurial