jekyll-theme-cirno 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 +21 -0
- data/README.md +27 -0
- data/_includes/extra_head.html +0 -0
- data/_includes/extra_script.html +0 -0
- data/_includes/footer.html +13 -0
- data/_includes/google-analytics.html +8 -0
- data/_includes/head.html +12 -0
- data/_includes/header.html +20 -0
- data/_includes/post_footer.html +4 -0
- data/_layouts/archives.html +21 -0
- data/_layouts/default.html +18 -0
- data/_layouts/home.html +36 -0
- data/_layouts/page.html +4 -0
- data/_layouts/post.html +32 -0
- data/_layouts/tags.html +5 -0
- data/_sass/_archives.scss +5 -0
- data/_sass/_base.scss +123 -0
- data/_sass/_cirno.scss +10 -0
- data/_sass/_footer.scss +17 -0
- data/_sass/_header.scss +23 -0
- data/_sass/_home.scss +63 -0
- data/_sass/_layout.scss +18 -0
- data/_sass/_normalize.scss +341 -0
- data/_sass/_post.scss +112 -0
- data/_sass/_syntax.scss +224 -0
- data/_sass/_var.scss +22 -0
- data/assets/main.scss +3 -0
- metadata +156 -0
data/_sass/_layout.scss
ADDED
@@ -0,0 +1,341 @@
|
|
1
|
+
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
/* Document
|
4
|
+
========================================================================== */
|
5
|
+
|
6
|
+
/**
|
7
|
+
* 1. Correct the line height in all browsers.
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
9
|
+
*/
|
10
|
+
|
11
|
+
html {
|
12
|
+
line-height: 1.15; /* 1 */
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
14
|
+
}
|
15
|
+
|
16
|
+
/* Sections
|
17
|
+
========================================================================== */
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Remove the margin in all browsers.
|
21
|
+
*/
|
22
|
+
|
23
|
+
body {
|
24
|
+
margin: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
29
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
30
|
+
*/
|
31
|
+
|
32
|
+
h1 {
|
33
|
+
font-size: 2em;
|
34
|
+
margin: 0.67em 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
/* Grouping content
|
38
|
+
========================================================================== */
|
39
|
+
|
40
|
+
/**
|
41
|
+
* 1. Add the correct box sizing in Firefox.
|
42
|
+
* 2. Show the overflow in Edge and IE.
|
43
|
+
*/
|
44
|
+
|
45
|
+
hr {
|
46
|
+
box-sizing: content-box; /* 1 */
|
47
|
+
height: 0; /* 1 */
|
48
|
+
overflow: visible; /* 2 */
|
49
|
+
}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
53
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
54
|
+
*/
|
55
|
+
|
56
|
+
pre {
|
57
|
+
font-family: monospace, monospace; /* 1 */
|
58
|
+
font-size: 1em; /* 2 */
|
59
|
+
}
|
60
|
+
|
61
|
+
/* Text-level semantics
|
62
|
+
========================================================================== */
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Remove the gray background on active links in IE 10.
|
66
|
+
*/
|
67
|
+
|
68
|
+
a {
|
69
|
+
background-color: transparent;
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* 1. Remove the bottom border in Chrome 57-
|
74
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
75
|
+
*/
|
76
|
+
|
77
|
+
abbr[title] {
|
78
|
+
border-bottom: none; /* 1 */
|
79
|
+
text-decoration: underline; /* 2 */
|
80
|
+
text-decoration: underline dotted; /* 2 */
|
81
|
+
}
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
85
|
+
*/
|
86
|
+
|
87
|
+
b,
|
88
|
+
strong {
|
89
|
+
font-weight: bolder;
|
90
|
+
}
|
91
|
+
|
92
|
+
/**
|
93
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
94
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
95
|
+
*/
|
96
|
+
|
97
|
+
code,
|
98
|
+
kbd,
|
99
|
+
samp {
|
100
|
+
font-family: monospace, monospace; /* 1 */
|
101
|
+
font-size: 1em; /* 2 */
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Add the correct font size in all browsers.
|
106
|
+
*/
|
107
|
+
|
108
|
+
small {
|
109
|
+
font-size: 80%;
|
110
|
+
}
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
114
|
+
* all browsers.
|
115
|
+
*/
|
116
|
+
|
117
|
+
sub,
|
118
|
+
sup {
|
119
|
+
font-size: 75%;
|
120
|
+
line-height: 0;
|
121
|
+
position: relative;
|
122
|
+
vertical-align: baseline;
|
123
|
+
}
|
124
|
+
|
125
|
+
sub {
|
126
|
+
bottom: -0.25em;
|
127
|
+
}
|
128
|
+
|
129
|
+
sup {
|
130
|
+
top: -0.5em;
|
131
|
+
}
|
132
|
+
|
133
|
+
/* Embedded content
|
134
|
+
========================================================================== */
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Remove the border on images inside links in IE 10.
|
138
|
+
*/
|
139
|
+
|
140
|
+
img {
|
141
|
+
border-style: none;
|
142
|
+
}
|
143
|
+
|
144
|
+
/* Forms
|
145
|
+
========================================================================== */
|
146
|
+
|
147
|
+
/**
|
148
|
+
* 1. Change the font styles in all browsers.
|
149
|
+
* 2. Remove the margin in Firefox and Safari.
|
150
|
+
*/
|
151
|
+
|
152
|
+
button,
|
153
|
+
input,
|
154
|
+
optgroup,
|
155
|
+
select,
|
156
|
+
textarea {
|
157
|
+
font-family: inherit; /* 1 */
|
158
|
+
font-size: 100%; /* 1 */
|
159
|
+
line-height: 1.15; /* 1 */
|
160
|
+
margin: 0; /* 2 */
|
161
|
+
}
|
162
|
+
|
163
|
+
/**
|
164
|
+
* Show the overflow in IE.
|
165
|
+
* 1. Show the overflow in Edge.
|
166
|
+
*/
|
167
|
+
|
168
|
+
button,
|
169
|
+
input { /* 1 */
|
170
|
+
overflow: visible;
|
171
|
+
}
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
175
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
176
|
+
*/
|
177
|
+
|
178
|
+
button,
|
179
|
+
select { /* 1 */
|
180
|
+
text-transform: none;
|
181
|
+
}
|
182
|
+
|
183
|
+
/**
|
184
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
185
|
+
*/
|
186
|
+
|
187
|
+
button,
|
188
|
+
[type="button"],
|
189
|
+
[type="reset"],
|
190
|
+
[type="submit"] {
|
191
|
+
-webkit-appearance: button;
|
192
|
+
}
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Remove the inner border and padding in Firefox.
|
196
|
+
*/
|
197
|
+
|
198
|
+
button::-moz-focus-inner,
|
199
|
+
[type="button"]::-moz-focus-inner,
|
200
|
+
[type="reset"]::-moz-focus-inner,
|
201
|
+
[type="submit"]::-moz-focus-inner {
|
202
|
+
border-style: none;
|
203
|
+
padding: 0;
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Restore the focus styles unset by the previous rule.
|
208
|
+
*/
|
209
|
+
|
210
|
+
button:-moz-focusring,
|
211
|
+
[type="button"]:-moz-focusring,
|
212
|
+
[type="reset"]:-moz-focusring,
|
213
|
+
[type="submit"]:-moz-focusring {
|
214
|
+
outline: 1px dotted ButtonText;
|
215
|
+
}
|
216
|
+
|
217
|
+
/**
|
218
|
+
* Correct the padding in Firefox.
|
219
|
+
*/
|
220
|
+
|
221
|
+
fieldset {
|
222
|
+
padding: 0.35em 0.75em 0.625em;
|
223
|
+
}
|
224
|
+
|
225
|
+
/**
|
226
|
+
* 1. Correct the text wrapping in Edge and IE.
|
227
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
228
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
229
|
+
* `fieldset` elements in all browsers.
|
230
|
+
*/
|
231
|
+
|
232
|
+
legend {
|
233
|
+
box-sizing: border-box; /* 1 */
|
234
|
+
color: inherit; /* 2 */
|
235
|
+
display: table; /* 1 */
|
236
|
+
max-width: 100%; /* 1 */
|
237
|
+
padding: 0; /* 3 */
|
238
|
+
white-space: normal; /* 1 */
|
239
|
+
}
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
243
|
+
*/
|
244
|
+
|
245
|
+
progress {
|
246
|
+
vertical-align: baseline;
|
247
|
+
}
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Remove the default vertical scrollbar in IE 10+.
|
251
|
+
*/
|
252
|
+
|
253
|
+
textarea {
|
254
|
+
overflow: auto;
|
255
|
+
}
|
256
|
+
|
257
|
+
/**
|
258
|
+
* 1. Add the correct box sizing in IE 10.
|
259
|
+
* 2. Remove the padding in IE 10.
|
260
|
+
*/
|
261
|
+
|
262
|
+
[type="checkbox"],
|
263
|
+
[type="radio"] {
|
264
|
+
box-sizing: border-box; /* 1 */
|
265
|
+
padding: 0; /* 2 */
|
266
|
+
}
|
267
|
+
|
268
|
+
/**
|
269
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
270
|
+
*/
|
271
|
+
|
272
|
+
[type="number"]::-webkit-inner-spin-button,
|
273
|
+
[type="number"]::-webkit-outer-spin-button {
|
274
|
+
height: auto;
|
275
|
+
}
|
276
|
+
|
277
|
+
/**
|
278
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
279
|
+
* 2. Correct the outline style in Safari.
|
280
|
+
*/
|
281
|
+
|
282
|
+
[type="search"] {
|
283
|
+
-webkit-appearance: textfield; /* 1 */
|
284
|
+
outline-offset: -2px; /* 2 */
|
285
|
+
}
|
286
|
+
|
287
|
+
/**
|
288
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
289
|
+
*/
|
290
|
+
|
291
|
+
[type="search"]::-webkit-search-decoration {
|
292
|
+
-webkit-appearance: none;
|
293
|
+
}
|
294
|
+
|
295
|
+
/**
|
296
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
297
|
+
* 2. Change font properties to `inherit` in Safari.
|
298
|
+
*/
|
299
|
+
|
300
|
+
::-webkit-file-upload-button {
|
301
|
+
-webkit-appearance: button; /* 1 */
|
302
|
+
font: inherit; /* 2 */
|
303
|
+
}
|
304
|
+
|
305
|
+
/* Interactive
|
306
|
+
========================================================================== */
|
307
|
+
|
308
|
+
/*
|
309
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
310
|
+
*/
|
311
|
+
|
312
|
+
details {
|
313
|
+
display: block;
|
314
|
+
}
|
315
|
+
|
316
|
+
/*
|
317
|
+
* Add the correct display in all browsers.
|
318
|
+
*/
|
319
|
+
|
320
|
+
summary {
|
321
|
+
display: list-item;
|
322
|
+
}
|
323
|
+
|
324
|
+
/* Misc
|
325
|
+
========================================================================== */
|
326
|
+
|
327
|
+
/**
|
328
|
+
* Add the correct display in IE 10+.
|
329
|
+
*/
|
330
|
+
|
331
|
+
template {
|
332
|
+
display: none;
|
333
|
+
}
|
334
|
+
|
335
|
+
/**
|
336
|
+
* Add the correct display in IE 10.
|
337
|
+
*/
|
338
|
+
|
339
|
+
[hidden] {
|
340
|
+
display: none;
|
341
|
+
}
|
data/_sass/_post.scss
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
article {
|
2
|
+
& > header,
|
3
|
+
& > footer {
|
4
|
+
@extend %magic-padding;
|
5
|
+
}
|
6
|
+
|
7
|
+
@media print {
|
8
|
+
a::after {
|
9
|
+
content: "«" attr(href) "»";
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
.content {
|
15
|
+
& > * {
|
16
|
+
@extend %magic-padding;
|
17
|
+
}
|
18
|
+
|
19
|
+
& > table {
|
20
|
+
padding: 0;
|
21
|
+
max-width: $pad-width;
|
22
|
+
margin: 1rem auto;
|
23
|
+
overflow-x: scroll;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
%parallax {
|
28
|
+
-webkit-backface-visibility: hidden;
|
29
|
+
backface-visibility: hidden;
|
30
|
+
perspective: 1px;
|
31
|
+
height: 100vh;
|
32
|
+
overflow-x: hidden;
|
33
|
+
overflow-y: scroll;
|
34
|
+
perspective-origin: right top;
|
35
|
+
}
|
36
|
+
%parallax__layer {
|
37
|
+
position: relative;
|
38
|
+
transform-origin: right top;
|
39
|
+
}
|
40
|
+
%parallax__layer--base {
|
41
|
+
transform: translateZ(0);
|
42
|
+
-webkit-transform: translateZ(0);
|
43
|
+
}
|
44
|
+
%parallax__layer--back {
|
45
|
+
transform: translateZ(-1px) scale(2);
|
46
|
+
-webkit-transform: translateZ(-1px) scale(2);
|
47
|
+
}
|
48
|
+
|
49
|
+
main.post {
|
50
|
+
@extend %parallax;
|
51
|
+
|
52
|
+
& > * {
|
53
|
+
@extend %parallax__layer;
|
54
|
+
@extend %parallax__layer--base;
|
55
|
+
}
|
56
|
+
|
57
|
+
.post-cover {
|
58
|
+
@extend %parallax__layer;
|
59
|
+
@extend %parallax__layer--back;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
main.post {
|
64
|
+
@extend .flex;
|
65
|
+
|
66
|
+
& > article {
|
67
|
+
flex: 1 0 auto;
|
68
|
+
}
|
69
|
+
|
70
|
+
.tags,
|
71
|
+
.post-meta {
|
72
|
+
margin: 1rem 0;
|
73
|
+
}
|
74
|
+
.post-meta {
|
75
|
+
color: #666;
|
76
|
+
}
|
77
|
+
.tag {
|
78
|
+
color: #666;
|
79
|
+
border: 1px gray solid;
|
80
|
+
border-radius: 10px;
|
81
|
+
padding: 5px;
|
82
|
+
margin-right: 0.5rem;
|
83
|
+
background: #fafafa;
|
84
|
+
|
85
|
+
&::before {
|
86
|
+
content: "#";
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
.post-cover {
|
91
|
+
@media print {
|
92
|
+
display: none;
|
93
|
+
}
|
94
|
+
|
95
|
+
flex: 0 0 auto;
|
96
|
+
max-height: 100%;
|
97
|
+
min-height: 62px;
|
98
|
+
width: 100%;
|
99
|
+
z-index: -2;
|
100
|
+
overflow: hidden;
|
101
|
+
|
102
|
+
img {
|
103
|
+
object-fit: cover;
|
104
|
+
max-height: 80vmin;
|
105
|
+
width: 100%;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
article {
|
110
|
+
background: white;
|
111
|
+
}
|
112
|
+
}
|