summaryrefslogtreecommitdiff
path: root/css/code.css
blob: b32a3bf05c099d8acbc64945646177a77b8410d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
pre > code.sourceCode {
	white-space: pre;
	position: relative;
	font-size: 0.80em;
}
pre > code.sourceCode > span {
	line-height: 1.25;
}
pre > code.sourceCode > span:empty {
	height: 1.2em;
}
.sourceCode {
	overflow: scroll;
}
code.sourceCode > span {
	color: inherit;
	text-decoration: inherit;
}
div.sourceCode {
	margin: 1em 0;
}
pre.sourceCode {
	margin: 0;
	padding: 10px;
	border-radius: 10px;
	color: #abb2bf;
	background: #282c34;
}
pre.numberSource {
	margin-left: 3em;
	border-left: 1px solid #aaaaaa;
	padding-left: 4px;
}
pre.numberSource code {
	counter-reset: source-line 0;
}
pre.numberSource code > span {
	position: relative;
	left: -4em;
	counter-increment: source-line;
}
pre.numberSource code > span > a:first-child::before {
	content: counter(source-line);
	position: relative;
	left: -1em;
	text-align: right;
	vertical-align: baseline;
	border: none;
	display: inline-block;
	user-select: none;
	padding: 0 4px;
	width: 4em;
	color: #aaaaaa;
}
@media screen {
	div.sourceCode {
		overflow: auto;
	}
	pre > code.sourceCode > span > a:first-child::before {
		text-decoration: underline;
	}
}
@media print {
	pre > code.sourceCode {
		white-space: pre-wrap;
	}
	pre > code.sourceCode > span {
		display: inline-block;
		text-indent: -5em;
		padding-left: 5em;
	}
}
code span.kw { color: #C678DD; font-weight: bold; } /* Keyword */
code span.cf { color: #C678DD; font-weight: bold; } /* ControlFlow */
code span.op { color: #C678DD; } /* Operator */
code span.ot { color: #C678DD; } /* Other */
code span.va { color: #E06C75; } /* Variable */
code span.cn { color: #E06C75; } /* Constant */
code span.bu { color: #E06C75; } /* BuiltIn */
code span.im { color: #E06C75; font-weight: bold; } /* Import */
code span.fl { color: #de935f; } /* Float */
code span.dv { color: #de935f; } /* DecVal */
code span.bn { color: #de935f; } /* BaseN */
code span.dt { color: #56B6C2; } /* DataType */
code span.at { color: #56B6C2; } /* Attribute */
code span.an { color: #56B6C2; font-weight: bold; font-style: italic; } /* Annotation */
code span.fu { color: #61AFEF; } /* Function */
code span.pp { color: #61AFEF; } /* Preprocessor */
code span.ch { color: #40a070; } /* Char */
code span.st { color: #40a070; } /* String */
code span.vs { color: #40a070; } /* VerbatimString */
code span.sc { color: #40a070; } /* SpecialChar */
code span.ss { color: #40a070; } /* SpecialString */
code span.co { color: #5c6370; font-style: italic; } /* Comment */
code span.do { color: #5c6370; font-weight: bold; font-style: italic; } /* Documentation */
code span.cv { color: #5c6370; font-weight: bold; font-style: italic; } /* CommentVar */
code span.in { color: #5c6370; font-weight: bold; font-style: italic; } /* Information */
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.wa { color: #ff8000; font-weight: bold; font-style: italic; } /* Warning */
code span.ex { } /* Extension */