summaryrefslogtreecommitdiff
path: root/hs/style2.css
blob: 9d25b564ff0ea01f9b5ee7b89abe63c546ee7fdb (plain)
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
body {
	display: grid;
	/* grid-template-columns: auto 1fr */
	grid-template-columns: auto 15em;
}

img {
	max-width: 100%;
}

/* Table of contents */
#TOC {
	grid-column: 2;
	grid-row: 2;
}

#TOC ul {
	counter-reset: toc-heading;
	list-style-type: none;
	padding-left: 1.5em;
}

#TOC li::before {
	counter-increment: toc-heading;
	content: counters(toc-heading, ".") ". ";
}

header {
	grid-row: 1;
	grid-column: 1/3;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

/* Breadcrumbs */
#breadcrumb > * {
	margin-left: 1ex;
	margin-right: 1ex;
}

/*  */

main {
	grid-column: 1;
	grid-row: 2;
	max-width: 60ch;
}

main table {
	overflow-x: auto;
	/* max-width: 100%; */
}

table {
	border-collapse: collapse;
}

thead, tfoot {
	background: lightgray;
}

tr:nth-child(2n) {
	background: lightgray;
}

td, th {
	padding-left: 1ch;
	padding-right: 1ch;
}

footer {
	border-top: 1px solid gray;
	grid-column: 1/3;
}

.tag {
	background: lightgreen;
	border-radius: 1ex;
	font-size: 80%;
	padding-left: 0.5ex;
	padding-right: 0.7ex;
	padding-top: 0.1ex;
	padding-bottom: 0.2ex;
	font-family: sans;
}

/*
main h1 { font-size: 2em;    color: #a54242; }
main h2 { font-size: 1.8em;  color: #8c9440; }
main h3 { font-size: 1.6em;  color: #5f819d; }
main h4 { font-size: 1.4em;  color: #909090; }
main h5 { font-size: 1.2em;  color: #989898; }
main h6 { font-size: 1em;    color: #9c9c9c; }
*/

/* Numbered Headings in <main/> */
main {
	counter-reset: h1, h2, h3, h4, h5, h6;
}

main h1 { counter-increment: h1; counter-reset: h2; }
main h2 { counter-increment: h2; counter-reset: h3; }
main h3 { counter-increment: h3; counter-reset: h4; }
main h4 { counter-increment: h4; counter-reset: h5; }
main h5 { counter-increment: h5; counter-reset: h6; }
main h6 { counter-increment: h6; }

main h1::before { content: counter(h1) ". "; }
main h2::before { content: counter(h1) "." counter(h2) ". "; }
main h3::before { content: counter(h1) "." counter(h2) "." counter(h3) ". "; }
main h4::before { content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". "; }
main h5::before { content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "; }
main h6::before { content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "; }


/* Syntax highlighting copied from Pandoc default stylesheet */
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */