monophase 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +194 -0
- data/_includes/archive-by-tagories.html +71 -0
- data/_includes/archive-by-years.html +32 -0
- data/_includes/back-to-top.html +6 -0
- data/_includes/custom-head.html +6 -0
- data/_includes/disqus.html +17 -0
- data/_includes/footer.html +39 -0
- data/_includes/google-analytics.html +9 -0
- data/_includes/head.html +13 -0
- data/_includes/header.html +20 -0
- data/_includes/mathjax.html +2 -0
- data/_layouts/archive.html +15 -0
- data/_layouts/default.html +23 -0
- data/_layouts/home.html +44 -0
- data/_layouts/page.html +8 -0
- data/_layouts/post.html +86 -0
- data/_sass/monophase/_base.scss +123 -0
- data/_sass/monophase/_highlight-dark.scss +91 -0
- data/_sass/monophase/_highlight-light.scss +217 -0
- data/_sass/monophase/_layout.scss +381 -0
- data/_sass/monophase/_variables.scss +54 -0
- data/_sass/monophase/main.scss +8 -0
- data/assets/monophase/styles.scss +3 -0
- data/assets/normalize.css +349 -0
- data/assets/open-color.css +343 -0
- metadata +139 -0
@@ -0,0 +1,381 @@
|
|
1
|
+
.container {
|
2
|
+
max-width: $md-screen;
|
3
|
+
padding-left: var(--spacer);
|
4
|
+
padding-right: var(--spacer);
|
5
|
+
margin-left: auto;
|
6
|
+
margin-right: auto;
|
7
|
+
}
|
8
|
+
|
9
|
+
@media screen and (min-width: $md-screen) {
|
10
|
+
.container {
|
11
|
+
padding-left: var(--spacer-2);
|
12
|
+
padding-right: var(--spacer-2);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Header
|
18
|
+
*/
|
19
|
+
|
20
|
+
.masthead {
|
21
|
+
padding-top: var(--spacer);
|
22
|
+
padding-bottom: var(--spacer);
|
23
|
+
margin-bottom: var(--spacer-3);
|
24
|
+
}
|
25
|
+
|
26
|
+
.masthead-title {
|
27
|
+
font-size: 1.3em;
|
28
|
+
font-weight: bold;
|
29
|
+
|
30
|
+
a {
|
31
|
+
color: inherit;
|
32
|
+
text-decoration: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
.tagline {
|
36
|
+
opacity: .5;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.nav-list {
|
41
|
+
padding: 0;
|
42
|
+
margin: var(--spacer) 0 0 0;
|
43
|
+
border-top: 1px solid var(--border-color);
|
44
|
+
border-bottom: 1px solid var(--border-color);
|
45
|
+
list-style: none;
|
46
|
+
|
47
|
+
li {
|
48
|
+
display: inline-block;
|
49
|
+
margin: 0 .4em;
|
50
|
+
}
|
51
|
+
|
52
|
+
a {
|
53
|
+
color: inherit;
|
54
|
+
|
55
|
+
&:hover,
|
56
|
+
&:focus {
|
57
|
+
text-decoration: line-through;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
a.current {
|
62
|
+
text-decoration: line-through;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
/**
|
67
|
+
* Post
|
68
|
+
*/
|
69
|
+
|
70
|
+
.posts {
|
71
|
+
.post {
|
72
|
+
padding: var(--spacer);
|
73
|
+
margin-bottom: var(--spacer);
|
74
|
+
border: 1px solid var(--border-color);
|
75
|
+
border-radius: var(--border-radius);
|
76
|
+
|
77
|
+
.post-excerpt {
|
78
|
+
margin-bottom: 0;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.page,
|
84
|
+
.post {
|
85
|
+
margin-bottom: var(--spacer-2);
|
86
|
+
|
87
|
+
h1, h2, h3, h4, h5, h6 {
|
88
|
+
color: var(--heading-color);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.page-title,
|
93
|
+
.post-title {
|
94
|
+
margin-top: 0;
|
95
|
+
|
96
|
+
a {
|
97
|
+
color: inherit;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
.post-meta {
|
102
|
+
display: block;
|
103
|
+
margin-top: -.5em;
|
104
|
+
margin-bottom: var(--spacer);
|
105
|
+
opacity: .5;
|
106
|
+
font-size: .85em;
|
107
|
+
}
|
108
|
+
|
109
|
+
.post-categories,
|
110
|
+
.post-tags {
|
111
|
+
display: inline-block;
|
112
|
+
list-style: none;
|
113
|
+
padding: 0;
|
114
|
+
margin: 0;
|
115
|
+
|
116
|
+
li {
|
117
|
+
display: inline-block;
|
118
|
+
|
119
|
+
&:not(:last-child) {
|
120
|
+
margin-right: .4em;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.post-category {
|
126
|
+
border-bottom: 2px dotted var(--border-color);
|
127
|
+
}
|
128
|
+
|
129
|
+
a.post-category {
|
130
|
+
color: inherit;
|
131
|
+
|
132
|
+
&:hover,
|
133
|
+
&:focus {
|
134
|
+
border-bottom-style: solid;
|
135
|
+
text-decoration: none;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
.post-tag {
|
140
|
+
padding: .1em .5em;
|
141
|
+
border: 1px solid var(--border-color);
|
142
|
+
border-radius: var(--border-radius);
|
143
|
+
background-color: rgba(var(--link-color-rgb), .3);
|
144
|
+
}
|
145
|
+
|
146
|
+
a.post-tag {
|
147
|
+
color: inherit;
|
148
|
+
|
149
|
+
&:hover,
|
150
|
+
&:focus {
|
151
|
+
background-color: rgba(var(--link-color-rgb), .6);
|
152
|
+
text-decoration: none;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
// Footnote number within body text
|
157
|
+
a[href^="#fn:"],
|
158
|
+
// Back to footnote link
|
159
|
+
a[href^="#fnref:"] {
|
160
|
+
display: inline-block;
|
161
|
+
margin-left: .1em;
|
162
|
+
font-weight: bold;
|
163
|
+
}
|
164
|
+
// List of footnotes
|
165
|
+
.footnotes {
|
166
|
+
margin-top: var(--spacer-2);
|
167
|
+
font-size: 85%;
|
168
|
+
}
|
169
|
+
|
170
|
+
.related {
|
171
|
+
padding-top: var(--spacer-2);
|
172
|
+
padding-bottom: var(--spacer-2);
|
173
|
+
margin-bottom: var(--spacer-2);
|
174
|
+
border-top: 1px solid var(--border-color);
|
175
|
+
border-bottom: 1px solid var(--border-color);
|
176
|
+
}
|
177
|
+
|
178
|
+
.related-title {
|
179
|
+
margin-top: 0;
|
180
|
+
}
|
181
|
+
|
182
|
+
.related-posts {
|
183
|
+
padding-left: 0;
|
184
|
+
list-style: none;
|
185
|
+
|
186
|
+
small {
|
187
|
+
opacity: .5;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Code
|
193
|
+
*/
|
194
|
+
|
195
|
+
.highlight {
|
196
|
+
border-radius: var(--border-radius);
|
197
|
+
background-color: var(--code-bg-color);
|
198
|
+
}
|
199
|
+
|
200
|
+
.rouge-table {
|
201
|
+
margin: 0;
|
202
|
+
font-size: 100%;
|
203
|
+
|
204
|
+
&,
|
205
|
+
td,
|
206
|
+
th {
|
207
|
+
border: 0;
|
208
|
+
padding: 0;
|
209
|
+
}
|
210
|
+
|
211
|
+
pre {
|
212
|
+
padding: 0;
|
213
|
+
margin: 0;
|
214
|
+
}
|
215
|
+
|
216
|
+
.gutter {
|
217
|
+
vertical-align: top;
|
218
|
+
user-select: none;
|
219
|
+
opacity: .25;
|
220
|
+
padding-right: var(--spacer);
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
/**
|
225
|
+
* Pagination
|
226
|
+
*/
|
227
|
+
|
228
|
+
.pagination {
|
229
|
+
display: flex;
|
230
|
+
text-align: center;
|
231
|
+
margin-top: var(--spacer-2);
|
232
|
+
}
|
233
|
+
|
234
|
+
.pagination-item {
|
235
|
+
float: left;
|
236
|
+
width: 50%;
|
237
|
+
padding: var(--spacer);
|
238
|
+
border: 1px solid var(--border-color);
|
239
|
+
|
240
|
+
&:first-child {
|
241
|
+
border-right-width: 0;
|
242
|
+
border-top-left-radius: var(--border-radius);
|
243
|
+
border-bottom-left-radius: var(--border-radius);
|
244
|
+
}
|
245
|
+
&:last-child {
|
246
|
+
border-top-right-radius: var(--border-radius);
|
247
|
+
border-bottom-right-radius: var(--border-radius);
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
a.pagination-item:hover {
|
252
|
+
background-color: var(--border-color);
|
253
|
+
text-decoration: none;
|
254
|
+
}
|
255
|
+
|
256
|
+
/**
|
257
|
+
* Footer
|
258
|
+
*/
|
259
|
+
|
260
|
+
.footer {
|
261
|
+
padding-top: var(--spacer);
|
262
|
+
padding-bottom: var(--spacer);
|
263
|
+
margin-top: var(--spacer-3);
|
264
|
+
|
265
|
+
p {
|
266
|
+
margin: 0;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
|
270
|
+
.social-icons {
|
271
|
+
list-style: none;
|
272
|
+
padding: 0;
|
273
|
+
margin: var(--spacer) 0;
|
274
|
+
height: calc(var(--body-line-height) * var(--body-font-size));
|
275
|
+
}
|
276
|
+
.social-icon-item {
|
277
|
+
float: left;
|
278
|
+
margin-right: var(--spacer);
|
279
|
+
}
|
280
|
+
|
281
|
+
@media screen and (min-width: $md-screen) {
|
282
|
+
.footer {
|
283
|
+
display: flex;
|
284
|
+
}
|
285
|
+
.footer-column {
|
286
|
+
width: 100%;
|
287
|
+
}
|
288
|
+
.social-icons {
|
289
|
+
margin: 0;
|
290
|
+
}
|
291
|
+
}
|
292
|
+
|
293
|
+
/**
|
294
|
+
* Message -- Show different levels of alert messages to users.
|
295
|
+
*/
|
296
|
+
|
297
|
+
.message-info,
|
298
|
+
.message-warning,
|
299
|
+
.message-danger {
|
300
|
+
padding: var(--spacer);
|
301
|
+
border-radius: var(--border-radius);
|
302
|
+
color: var(--body-bg-color);
|
303
|
+
}
|
304
|
+
|
305
|
+
.message-info {
|
306
|
+
background-color: var(--info-color);
|
307
|
+
}
|
308
|
+
|
309
|
+
.message-warning {
|
310
|
+
background-color: var(--warning-color);
|
311
|
+
}
|
312
|
+
|
313
|
+
.message-danger {
|
314
|
+
background-color: var(--danger-color);
|
315
|
+
}
|
316
|
+
|
317
|
+
/**
|
318
|
+
* Archive
|
319
|
+
*/
|
320
|
+
|
321
|
+
.taxonomies-wrapper {
|
322
|
+
margin-bottom: var(--spacer-2);
|
323
|
+
}
|
324
|
+
|
325
|
+
.taxonomies {
|
326
|
+
list-style: none;
|
327
|
+
display: grid;
|
328
|
+
grid-column-gap: 2em;
|
329
|
+
grid-template-columns: repeat(2, 1fr);
|
330
|
+
margin: 0;
|
331
|
+
padding: 0;
|
332
|
+
font-weight: bold;
|
333
|
+
|
334
|
+
.taxonomy {
|
335
|
+
display: flex;
|
336
|
+
padding: 0.25em 0;
|
337
|
+
justify-content: space-between;
|
338
|
+
text-decoration: none;
|
339
|
+
border-bottom: 1px solid;
|
340
|
+
margin-bottom: var(--spacer);
|
341
|
+
}
|
342
|
+
}
|
343
|
+
|
344
|
+
.post-list-by-taxonomy {
|
345
|
+
time {
|
346
|
+
font-family: monospace;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
.back-to-top {
|
351
|
+
display: block;
|
352
|
+
font-size: 0.8em;
|
353
|
+
text-transform: uppercase;
|
354
|
+
text-align: right;
|
355
|
+
text-decoration: none;
|
356
|
+
}
|
357
|
+
|
358
|
+
@media (min-width: $sm-screen) {
|
359
|
+
.taxonomies {
|
360
|
+
grid-template-columns: repeat(3, 1fr);
|
361
|
+
}
|
362
|
+
}
|
363
|
+
|
364
|
+
/**
|
365
|
+
* Markdown TOC
|
366
|
+
*/
|
367
|
+
|
368
|
+
#markdown-toc {
|
369
|
+
padding: var(--spacer-2) var(--spacer-3);
|
370
|
+
margin: var(--spacer-2) 0;
|
371
|
+
border: solid var(--border-color);
|
372
|
+
border-width: 1px 0;
|
373
|
+
|
374
|
+
&::before {
|
375
|
+
display: block;
|
376
|
+
margin-left: calc(var(--spacer-3) * -1);
|
377
|
+
content: "Contents";
|
378
|
+
font-size: 85%;
|
379
|
+
font-weight: 500;
|
380
|
+
}
|
381
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
$sm-screen: 35.5rem;
|
2
|
+
$md-screen: 48rem;
|
3
|
+
$lg-screen: 64rem;
|
4
|
+
$xl-screen: 80rem;
|
5
|
+
|
6
|
+
:root {
|
7
|
+
--spacer: 1rem;
|
8
|
+
--spacer-2: calc(var(--spacer) * 2);
|
9
|
+
--spacer-3: calc(var(--spacer) * 3);
|
10
|
+
|
11
|
+
// https://github.com/necolas/normalize.css/issues/665
|
12
|
+
--body-font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
|
13
|
+
--body-font-size: 16px;
|
14
|
+
--body-line-height: 1.5;
|
15
|
+
|
16
|
+
--border-radius: .5em;
|
17
|
+
|
18
|
+
// https://qwtel.com/posts/software/the-monospaced-system-ui-css-font-stack/
|
19
|
+
--code-font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Color
|
23
|
+
*/
|
24
|
+
--body-bg-color: var(--oc-white);
|
25
|
+
--body-color: var(--oc-gray-9);
|
26
|
+
--code-bg-color: var(--oc-gray-1);
|
27
|
+
--heading-color: var(--oc-black);
|
28
|
+
--border-color: var(--oc-gray-4);
|
29
|
+
--link-color: var(--oc-blue-9);
|
30
|
+
--link-color-rgb: var(--oc-blue-9-rgb);
|
31
|
+
--link-hover-color: var(--oc-blue-7);
|
32
|
+
--info-color: var(--oc-green-9);
|
33
|
+
--warning-color: var(--oc-yellow-9);
|
34
|
+
--danger-color: var(--oc-red-9);
|
35
|
+
}
|
36
|
+
|
37
|
+
@media (prefers-color-scheme: dark) {
|
38
|
+
:root {
|
39
|
+
/**
|
40
|
+
* Color
|
41
|
+
*/
|
42
|
+
--body-bg-color: var(--oc-gray-9);
|
43
|
+
--body-color: var(--oc-gray-4);
|
44
|
+
--code-bg-color: var(--oc-gray-7);
|
45
|
+
--heading-color: var(--oc-white);
|
46
|
+
--border-color: var(--oc-gray-7);
|
47
|
+
--link-color: var(--oc-cyan-4);
|
48
|
+
--link-color-rgb: var(--oc-cyan-4-rgb);
|
49
|
+
--link-hover-color: var(--oc-cyan-6);
|
50
|
+
--info-color: var(--oc-green-1);
|
51
|
+
--warning-color: var(--oc-yellow-1);
|
52
|
+
--danger-color: var(--oc-red-1);
|
53
|
+
}
|
54
|
+
}
|