-
Notifications
You must be signed in to change notification settings - Fork 105
/
blackdoc.css
416 lines (363 loc) · 6.65 KB
/
blackdoc.css
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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
/*
______ _ _ ______
| ___ \ | | | | _ \
| |_/ / | __ _ ___| | _| | | |___ ___
| ___ \ |/ _` |/ __| |/ / | | / _ \ / __|
| |_/ / | (_| | (__| <| |/ / (_) | (__
\____/|_|\__,_|\___|_|\_\___/ \___/ \___|
*
* Designed, built, and released under MIT license by @karloespiritu.
*/
/*
* Contents
*
* Global resets
* Sidebar
* Container
* Reverse layout
* Themes
* Scrollbar
*/
/*
* Global resets
*
* Update the foundational and global aspects of the page.
*/
html {
font-family: "PT Sans", Helvetica, Arial, sans-serif;
}
body {
color: #848482;
background-color: #000000;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'EB Garamond', serif;
color: #aaa;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
font-family: 'EB Garamond', serif;
color: #50585d;
font-kerning: auto;
font-feature-settings: "kern", "liga", "dlig", "hlig", "cswh";
font-synthesis: weight style;
}
a {
color: #ffeb99;
transition: color ease 0.3s;
}
a:hover {
color: #caad00;
}
.btn {
display: inline-block;
padding: .25rem 1rem;
font-family: "PT Sans", sans-serif;
color: #ebcb8b;
border: .1rem solid #32343c;
border-radius: .1rem;
}
.btn:hover,
.btn:focus {
color: #26282d;
background-color: #ebcb8b;
border-color: #ebcb8b;
}
strong,
b {
color: #848471;
}
/* Code */
code {
color: #993030;
white-space: pre-wrap;
background-color: #222;
}
pre {
background-color: #222;
}
pre {
white-space: pre;
overflow: auto !important;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: rgba(235, 242, 246, 0.29) 1px solid;
margin: 1.2em 0;
padding: 0;
}
blockquote {
color: #666;
border-left: .25rem solid #333;
}
td,
th {
padding: .25rem .5rem;
border: 1px solid #333;
}
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
background-color: #222;
}
/* Pagination items can be `span`s or `a`s */
.pagination-item {
border: 1px solid #444;
}
@media (min-width: 48em) {
html {
font-size: 16px;
}
}
@media (min-width: 58em) {
html {
font-size: 20px;
}
}
/*
* Messages
*
* Show alert messages to users. You may add it to single elements like a `<p>`,
* or to a parent if there are multiple elements to show.
*/
.message {
color: #bbb;
background-color: #333;
}
/* Gist */
.gist-data {
background-color: #222 !important;
border-bottom: 1px solid #333 !important;
}
.gist .markdown-body {
color: #999 !important;
}
.gist .markdown-body pre {
background-color: #111 !important;
}
.gist-file {
border: 1px solid #333 !important;
}
.gist-meta {
background-color: #222 !important;
}
/*
* Sidebar
*
* Flexible banner for housing site name, intro, and "footer" content. Starts
* out above content in mobile and later moves to the side with wider viewports.
*/
.sidebar {
text-align: center;
padding: 2rem 1rem;
color: rgba(255, 255, 255, .5);
background-color: #000;
overflow: auto;
}
@media (min-width: 48em) {
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 18rem;
text-align: left;
}
}
/* Sidebar links */
.sidebar a {
color: #caad00;
}
/* About section */
.sidebar-about h1 {
color: #caad00;
margin-top: 0;
font-family: 'Noto Serif', serif;
font-size: 2.25rem;
}
/* Sidebar nav */
.sidebar-nav {
margin-bottom: 1rem;
}
.sidebar-nav-item {
display: block;
line-height: 1.75;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
text-decoration: underline;
}
.sidebar-nav-item.active {
font-weight: bold;
}
/* Sticky sidebar
*
* Add the `sidebar-sticky` class to the sidebar's container to affix it the
* contents to the bottom of the sidebar in tablets and up.
*/
@media (min-width: 48em) {
.sidebar-sticky {
/* position: absolute;*/
right: 1rem;
bottom: 1rem;
left: 1rem;
}
}
/* Container
*
* Align the contents of the site above the proper threshold with some margin-fu
* with a 25%-wide `.sidebar`.
*/
.content {
padding-top: 4rem;
padding-bottom: 4rem;
}
@media (min-width: 48em) {
.content {
max-width: 95%;
margin-left: 18rem;
margin-right: 0rem;
}
}
@media (min-width: 64em) {
.content {
margin-left: 18rem;
margin-right: 0rem;
}
}
/*
* Posts and pages
*
* Each post is wrapped in `.post` and is used on default and post layouts. Each
* page is wrapped in `.page` and is only used on the page layout.
*/
/* Blog post or page title */
.page-title,
.post-title,
.post-title a {
color: #caad00;
}
/*
* Reverse layout
*
* Flip the orientation of the page by placing the `.sidebar` on the right.
*/
@media (min-width: 48em) {
.layout-reverse .sidebar {
left: auto;
right: 0;
}
.layout-reverse .content {
margin-left: 2rem;
margin-right: 20rem;
}
}
@media (min-width: 64em) {
.layout-reverse .content {
margin-left: 4rem;
margin-right: 22rem;
}
}
/*
* Themes
*
* BlackDoc includes optional themes to color the sidebar and links
* within blog posts. To use, add the class of your choosing to the `body`.
*/
/* Base16 (http://chriskempson.github.io/base16/#default) */
/* Red */
.theme-base-08 .sidebar {
background-color: #ac4142;
}
.theme-base-08 .content a,
.theme-base-08 .related-posts li a:hover {
color: #ac4142;
}
/* Orange */
.theme-base-09 .sidebar {
background-color: #d28445;
}
.theme-base-09 .content a,
.theme-base-09 .related-posts li a:hover {
color: #d28445;
}
/* Yellow */
.theme-base-0a .sidebar {
background-color: #f4bf75;
}
.theme-base-0a .content a,
.theme-base-0a .related-posts li a:hover {
color: #f4bf75;
}
/* Green */
.theme-base-0b .sidebar {
background-color: #90a959;
}
.theme-base-0b .content a,
.theme-base-0b .related-posts li a:hover {
color: #90a959;
}
/* Cyan */
.theme-base-0c .sidebar {
background-color: #75b5aa;
}
.theme-base-0c .content a,
.theme-base-0c .related-posts li a:hover {
color: #75b5aa;
}
/* Blue */
.theme-base-0d .sidebar {
background-color: #6a9fb5;
}
.theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover {
color: #6a9fb5;
}
/* Magenta */
.theme-base-0e .sidebar {
background-color: #aa759f;
}
.theme-base-0e .content a,
.theme-base-0e .related-posts li a:hover {
color: #aa759f;
}
/* Brown */
.theme-base-0f .sidebar {
background-color: #8f5536;
}
.theme-base-0f .content a,
.theme-base-0f .related-posts li a:hover {
color: #8f5536;
}
/* Thin Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-button {
width: 8px;
height: 5px;
}
::-webkit-scrollbar-track {
background: #333;
border: thin solid #111;
/*box-shadow: 0px 0px 3px #111 inset;*/
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: #222;
border: thin solid #222;
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: #7d7d7d;
}