JHHM

site

my personal website
git clone https://jhhm.no/repos/site.git

site/static/style.css

get raw file: style.css

1:root {
2  --fg: #000;
3  --bg: #fefefe;
4  --bg-code: #ddd;
5  --border: 0.08rem solid var(--fg);
6}
7
8/* Generic */
9body {
10  color: var(--fg);
11  background-color: var(--bg);
12  fill: var(--fg);
13
14  margin: 0 auto;
15  max-width: 48em;
16  padding: 1em;
17
18  font: 1.1em/1.6 serif;
19
20  overflow-y: scroll;
21}
22
23h1 { font: 1.6em serif; }
24h2 {
25  font: 1.3em serif;
26  padding: 0em 0em 0.2em 0em;
27  border-bottom: var(--border);
28}
29h3 {
30  font: 1.2em serif;
31  border-bottom: var(--border);
32}
33
34a {
35  font-style: italic;
36  color: #000;
37}
38
39a:visited {
40  color: #555;
41}
42
43img {
44  display: block;
45  width: 85%;
46  max-width: 100%;
47  margin: 1em auto;
48}
49
50figure {
51  margin: 0px;
52}
53
54figure.banner img {
55    width: 100%;
56}
57
58figcaption {
59  font-size: 0.85em;
60  color: #555;
61  text-align: center;
62  margin-top: 0.5em;
63}
64
65/* Blockquote */
66blockquote {
67  margin: 1.5em 0;
68  padding: 0.75em 1em;
69  border-left: 0.3em solid #aaa;
70  background: #f9f9f9;
71}
72
73blockquote p {
74  margin: 0.5em 0;
75}
76
77blockquote {
78  color: #333;
79  font-style: italic;
80}
81
82blockquote p:first-child { margin-top: 0em; }
83blockquote p:last-child { margin-bottom: 0em; }
84
85/* Codeblocks */
86pre {
87  background: var(--bg-code);
88  padding: 1em;
89  overflow-x: auto;
90}
91
92code {
93  background: var(--bg-code);
94  font-family: monospace;
95  padding: 0em;
96}
97
98/* Inline Code */
99p code,
100li code {
101  background: var(--bg-code);
102  border: 1px solid #ddd;
103  padding: 0.1em 0.3em;
104}
105
106/* Footnotes */
107.footnotes {
108  border-top: var(--border);
109  font: 0.8em serif;
110  padding: 1em 3em;
111  
112  li {
113    margin-bottom: 0.5em;
114  }
115}
116
117/* Header */
118header {
119  border-bottom: var(--border);
120  padding-bottom: 1em;
121  
122  .site-title a {
123    font-style: normal;
124    color: inherit;
125    text-decoration: none;
126  }
127}
128
129.site-nav a {
130  font-style: normal;
131  margin-right: 1.5em;
132  text-decoration: none;
133  color: #333;
134}
135
136/* Footer */
137footer {
138  border-top: var(--border);
139  padding: 1em;
140  text-align: center;
141  font: 0.7em sans-serif;
142}
143
144/* Repo */
145
146.repo-title {
147  font: 1.5em;
148  margin: 0.3em 0em 0.1em 0em;
149}
150
151ul.repo-filelist {
152  margin: 0.3em 0em;
153}
154
155.repo-nav {
156  color: #333;
157  border-bottom: 0.1em dashed var(--fg);
158  padding: 0em 0em 0.2em 0em;
159}
160
161.repo-nav a {
162  font-size: 1.1em;
163  font-style: normal;
164  margin-right: 0.5em;
165  color: #333;
166}
167
168.repo-path {
169  margin: 0.5em 0em -0.5em 0em;
170  border: none;
171}
172
173/* File view */
174
175pre .ln {
176  display: inline-block;
177  width: 2em;
178  margin-right: 1em;
179  text-align:
180  right;
181  color: #888;
182  user-select: none;
183}
184
185/* Log */
186
187table.log {
188  width: 100%;
189  table-layout: fixed;
190  border-collapse: collapse;
191}
192
193table.log col.date   { width: 7.5em; }
194table.log col.author { width: 12em; }
195table.log th,
196table.log td {
197  white-space: nowrap;
198  overflow: hidden;
199  text-overflow: ellipsis;
200  text-align: left;
201  padding: 0.25em 0.5em;
202}
203
204table.log tr:nth-child(even) td { background: #f3f3f3; }
205
206/* Writings */
207a.category {
208  margin-right: 0.3em;
209  color: #222;
210}
211
212.writings-header {
213  margin-top: 0.5em;
214  margin-bottom: 0.5em;
215  display: flex;
216  justify-content: space-between;
217  align-items: flex-start;
218  border-bottom: 0.1em dashed var(--fg);
219  padding: 0em 0em 0.2em 0em;
220
221}
222
223nav.feed {
224  text-align: right;
225  margin-left: 4em;
226  color: #222;
227}
228
229
230a.feed {
231  color: #222;
232}
233
234/* Writings List */
235ul.writings-list li:nth-child(odd) { background: #f3f3f3; }
236
237ul.writings-list {
238  list-style: none;
239  padding: 0;
240  margin: 0;
241
242  li.writing {
243    display: grid;
244    grid-template-columns: max-content auto auto;
245    margin-bottom: 0.5em;
246    .item-title,
247    .item-categories {
248      white-space: nowrap;
249      overflow: hidden;
250      text-overflow: ellipsis;
251      min-width: 0;
252    }
253    .item-date {width: 6.5em;}
254    .item-title {padding-right: 12px;}
255    .item-categories {text-align: right;}
256  }
257}