~ane/web

web/assets/override.scss -rw-r--r-- 6.2 KiB
8ed07335Antoine Kalmbach Small redesign 6 months ago
                                                                                
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
---
# Front matter comment to ensure Jekyll properly reads file.
---

// $bodyFont: 18px/1.5 serif;
$bodyFont: sans-serif;
$preFont: monospace;
$linkColor: #0000EE;
$visitedLinkColor: #551A8B;
$fontSize: 18px;

html {
    font-family: $bodyFont;
    font-size: 18px;
    line-height: 1.3;
}

dt {
    margin-top: 0.75em;
    margin-bottom: 0.25em;
}

img.me-pic {
    margin-left: 1rem;
    margin-bottom: 1rem;
    float: right;
}

a {
    color: $linkColor;
    &:visited {
        color: $visitedLinkColor;
    }
}

ul.posts {
    padding-left: 0;

    .grey {
        color: #888;
    }
    
    li.unstyled {
        list-style-type: none;
        margin-bottom: 1rem;

        p {
            margin-top: 0;
        }
    }    
}

aside.intro {
    @media screen and (max-width: 1024px) {
        display: none;
    }
    @media screen and (min-width: 1024px) {
        float: right;
        width: 175px;
    }
}

header.main {
    @media screen and (min-width: 1024px) {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }
    
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;

    h1 {
        margin-bottom: 0;
        @media screen and (max-width: 1024px) {
            font-size: 150%;
        }
    }

    nav {
        ul {
            padding-left: 0;
            margin-bottom: 0;
            list-style-type: none;
            display: flex;
            flex-direction: row;
            li {
                padding-left: 1em;
                &:first-child {
                    padding-left: 0;
                }
                &.active {
                    font-weight: bold;
                }
            }
        }
    }
}


ul {
    li a.active {
        font-weight: bold;
        text-decoration: none;
    }
    
    &.nav li.nav-item a.nav-link {
        padding-left: 0;
    }
}

#footnotes a, .content p a, .content li a, .content span a {
    text-decoration: underline;
    &:hover {
        border: 0;
        text-decoration: none;
    }
}

body {
    color: black;
    max-width: 50rem;
    margin: 0px auto;
    padding: 0px 15px;
}

pre, code, tt {
    font-family: $preFont;
}

.content {
    h2#references + div.sectionbody {
        font-size: 85%;
    }

    p {
        -ms-hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }

    li p {
        margin-bottom: 0.625rem;
    }
}

.hilink:target {
    background-color: #ffa;
}

pre.highlight {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #303030;
    background-color: #f8f8f8;
    font-size: 85%;
}

nav.navbar {
    font-family: sans-serif;

    ul {
        list-style-type: none;
        padding-left: 0;
        display: flex;
        flex-direction: row;
        border-radius: 0.5rem;
        line-height: 40px;
        border: 1px solid #d4cbb6;
        background-color: #f2efe4;
        margin-top: -0.5rem;
        margin-bottom: 1.5rem;

        li {
            &.active {
                a:link, a:visited, a:active {
                    font-weight: bold;
                    text-decoration: none;
                }
            }
            
            padding: 0 1rem;
            
            a:link, a:visited, a:active {
                text-decoration: underline;
                color: #333;
            }
        }
    }
}

blockquote {
    padding: 0.0rem 1rem;
    border-left: 5px solid #ddd;
    font-style: italic;

    cite {
        display: block;
        text-align: right;
        margin-top: 1rem;
    }
}

/* kbd { */
/*     background-color: #ddd; */
/*     color: black; */
/*     border: 1px solid #bbb; */
/*     border-radius: 2px; */
/*     padding: 0 0.25rem; */
/* } */

footer {
    margin-bottom: 1em;
}

#footnotes, .footnotes {
    padding-top: 1rem;
    font-size: 90%;
    margin-bottom: 2rem;

    &:before {
        content: "Footnotes";
        font-variant: small-caps;
        color: #aaa;
        display: inline-block;
    }

    ol {
        margin-top: 1rem;
    }
}

.post-meta {
    color: #666;
    margin-top: 0rem;
}

// asciidoctor crap

span.icon>.fa {
    cursor: default;
}

@media only screen and (min-width: 598px) {
    .quarter {
        width: 25%;
    }

    .third {
        width: 33%;
    }

    .half {
        width: 50%;
    }

    .twothirds {
        width: 66%;
    }

    .threequarters {
        width: 75%;
        align-items: center;
        margin: 1rem auto;
    }
}

.imageblock {
    margin: 1rem 0rem;


    .title {
        color: #666;
        font-size: 85%;
    }

    .content {

        img {
            height: auto;
            width: 100%;
        }
    }
}

.primary h1 > a.anchor, h2 > a.anchor, h3 > a.anchor, #toctitle > a.anchor, .sidebarblock > .content > .title > a.anchor, h4 > a.anchor, h5 > a.anchor, h6 > a.anchor {
    position: absolute;
    z-index: 1001;
    width: 1.5ex;
    margin-left: -1.5ex;
    display: block;
    text-decoration: none !important;
    visibility: hidden;
    text-align: center;
    font-weight: normal;
}

.primary h1:hover>a.anchor,.primary h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover {
    visibility:visible
}

.primary h1 > a.anchor::before, h2 > a.anchor::before, h3 > a.anchor::before, #toctitle > a.anchor::before, .sidebarblock > .content > .title > a.anchor::before, h4 > a.anchor::before, h5 > a.anchor::before, h6 > a.anchor::before {
    content: "\00A7";
    font-size: 0.85em;
    display: block;
    padding-top: 0.1em;
}

figure {
    &.float-sm-right { float: right; }
    &.w-25 { max-width: 25%; }
    &.w-50 { width: 50%; }
    &.w-75 { width: 75%; }
    
    img {
        max-width: 100%;
        height: auto;
        margin-bottom: 0.5rem;
        line-height: 1;
    }

    figcaption {
        font-size: 90%;
        color: rgb(108, 117, 125);
    }
}

code.highlighter-rouge, pre.highlight code, kbd {
    font-size: 90%;
}

code.highlighter-rouge, kbd, tt {
    color: #154c79;
}

hr {
    border: none;
    border-top: 1px solid #999;
    margin: 1rem 0rem;
}