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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
<style type="text/css">
:root {
/* Linux Colors (Konsole)
()normal, (I)ntense, (F)aint
https://kernel.org
*/
--color1: rgb(0, 0, 0); /* background */
--color2: rgb(178, 24, 24); /* red */
--color3: rgb(24, 178, 24); /* green */
--color4: rgb(178, 104, 24); /* yellow */
--color5: rgb(24, 24, 178); /* blue */
--color6: rgb(178, 24, 178); /* magenta */
--color7: rgb(24, 178, 178); /* cyan */
--color8: rgb(178, 178, 178); /* foreground */
--color1I: rgb(104, 104, 104);
--color2I: rgb(255, 84, 84);
--color3I: rgb(84, 255, 84);
--color4I: rgb(255, 255, 84);
--color5I: rgb(84, 84, 255);
--color6I: rgb(255, 84, 255);
--color7I: rgb(84, 255, 255);
--color8I: rgb(255, 255, 255);
--color1F: rgb(0, 0, 0);
--color2F: rgb(101, 0, 0);
--color3F: rgb(0, 101, 0);
--color4F: rgb(101, 94, 0);
--color5F: rgb(0, 0, 101);
--color6F: rgb(101, 0, 101);
--color7F: rgb(0, 101, 101);
--color8F: rgb(101, 101, 101);
/*
previously (h1-5):
- navy
- navy
- royalblue
- steelblue
- skyblue
*/
}
html {
font-size: 1em; /* (use browser's default, usually 16px) */
}
body {
margin: auto;
padding-right: 1em;
padding-left: 1em;
max-width: 44em;
min-width: 44em; /* test different values */
overflow: auto;
border-left: 1px solid black;
border-right: 1px solid black;
font-family: sans-serif;
font-size: 100%;
line-height: 140%;
color: var(--color8);
background-color: var(--color1);
}
pre {
/* "wrapper" for code element */
border: 1px solid var(--color8);
padding: 0.25em;
overflow: auto;
font-family: monospace;
/* 1.2 em relative to what? What size of M? I've no idea */
font-size: 1.1em;
line-height: 1.1em;
}
code {
/* wraps around the lines of code, or something like that. I'm not sure
what is it's function
*/
/* somewhere in pandoc, this element get's white-space: pre-wrap, which
wraps code that doesn't fit in parent element. So I need to overwrite
that setting here. Now the contents overflow, and a scrollbar is
automatically enabled
*/
white-space: pre;
}
/* Definition List <dl>, Definition Title <dt>, Definition Description <dd> */
dt {
font-weight: bold;
}
dd p {
margin-top: 0;
}
blockquote {
margin-top: 10px;
margin-bottom: 10px;
margin-left: 5px;
padding-left: 15px;
border-left: 3px solid #ccc;
}
h1, h2, h3, h4, h5 {
/* headers use serif font */
/*font-weight: bold;*/
font-family: Verdana, serif;
}
h1 {
/* inspiration: htop table header
use: chapter begin
*/
font-size: 180%;
color: var(--color1);
background-color: var(--color3);
padding: 0.1em;
}
h2 {
/* inspiration: Wikipedia section
use: section begin
*/
font-size: 160%;
color: var(--color8I);
border-bottom: 1px solid;
}
h3 {
/* inspiration: man page header
use: subsection
*/
font-size: 140%;
color: var(--color8I);
/* UPPERCASE afecta mucho el tamaño :( */
/*text-transform: uppercase;*/
}
h4 {
/* inspiration: man page sub-header
use: subsection
*/
font-size: 120%;
color: var(--color8I);
}
h5 {
/* inspiration: man page sub-header
use: subsection
*/
font-size: 100%;
/*font-style: italic;*/
color: var(--color8I);
}
h1.title {
font-size: 200%;
line-height: 110%;
font-weight: bold;
color: var(--color1);
background-color: var(--color3);
border: none;
padding-top: 0.2em;
padding-bottom: 0.2em;
text-align: center;
}
p.author, p.date {
text-align: center;
}
:any-link {
color: var(--color8);
text-decoration: underline;
}
#footer {
padding-top: 1em;
font-size: 70%;
color: gray;
text-align: center;
}
/* maybe fix this, make more dynamic */
img {
max-width: 40em;
}
</style>
|