jekyll-theme-satellite 1.1.0 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -11
  3. data/_includes/footer.html +2 -3
  4. data/_includes/head.html +37 -8
  5. data/_includes/navigation.html +45 -30
  6. data/_includes/pagination.html +1 -1
  7. data/_includes/post.html +4 -4
  8. data/_includes/search_event.html +1 -175
  9. data/_includes/sidebar.html +6 -10
  10. data/_layouts/page.html +5 -6
  11. data/_sass/darkmode.scss +115 -122
  12. data/_sass/layout.scss +40 -40
  13. data/_sass/navigation.scss +133 -138
  14. data/_sass/pagination.scss +198 -211
  15. data/_sass/post.scss +553 -552
  16. data/_sass/search.scss +185 -204
  17. data/_sass/sidebar.scss +253 -254
  18. data/_sass/toc.scss +41 -41
  19. data/assets/css/404.scss +35 -35
  20. data/assets/css/highlight.min.css +2 -0
  21. data/assets/css/style.scss +22 -44
  22. data/assets/fonts/Lato-Regular.woff2 +0 -0
  23. data/assets/fonts/NunitoSans-Regular.woff2 +0 -0
  24. data/assets/fonts/Righteous-Regular.woff2 +0 -0
  25. data/assets/img/favicon.webp +0 -0
  26. data/assets/img/icon/house.webp +0 -0
  27. data/assets/img/loading.webp +0 -0
  28. data/assets/img/profile.webp +0 -0
  29. data/assets/js/background.js +1 -700
  30. data/assets/js/common.js +194 -21
  31. data/assets/js/post.js +171 -126
  32. data/assets/js/subject.js +1 -1
  33. metadata +58 -14
  34. data/assets/css/fonts.scss +0 -29
  35. data/assets/css/highlight-dark.min.css +0 -1
  36. data/assets/css/highlight-default.min.css +0 -1
  37. data/assets/fonts/Lato-Regular.ttf +0 -0
  38. data/assets/fonts/NunitoSans-Regular.ttf +0 -0
  39. data/assets/fonts/Righteous-Regular.ttf +0 -0
  40. data/assets/img/profile.jpg +0 -0
  41. data/assets/js/search.js +0 -168
  42. data/assets/js/sweet-scroll.min.js +0 -2
  43. data/assets/js/tocbot.min.js +0 -1
data/_sass/post.scss CHANGED
@@ -1,638 +1,639 @@
1
1
  #post {
2
- max-width: #{$contentwd};
3
- margin: auto;
2
+ max-width:#{$contentwd};
3
+ margin:auto;
4
4
  }
5
5
 
6
6
  .inner-header {
7
- display: none;
8
- background: linear-gradient(180deg, rgba(240,240,240,1) 0%, rgba(224,224,224,1) 100%);
9
- border-radius: 1rem 1rem 0 0;
10
- padding: 0.5rem 1rem;
11
-
12
- .dot {
13
- height: 1rem;
14
- width: 1rem;
15
- margin: 0 0.25rem;
16
- border-radius: 50%;
17
- display: inline-block;
18
- }
7
+ display:none;
8
+ background:linear-gradient(180deg, rgba(240,240,240,1) 0%, rgba(224,224,224,1) 100%);
9
+ border-radius:1rem 1rem 0 0;
10
+ padding:8px 16px;
11
+
12
+ .dot {
13
+ height:1rem;
14
+ width:1rem;
15
+ margin:0 4px;
16
+ border-radius:50%;
17
+ display:inline-block;
18
+ }
19
19
  }
20
20
 
21
21
  .inner-content {
22
- background: #fff;
23
-
24
- img {
25
- display: block;
26
- text-align: center;
27
- width: 100%;
28
- margin: auto;
29
- }
30
-
31
- .img-xs { width: 12.5% !important; }
32
-
33
- .img-sm { width: 25% !important; }
34
-
35
- .img-md { width: 50% !important; }
36
-
37
- .img-lg { width: 75% !important; }
22
+ background:#fff;
23
+
24
+ img {
25
+ display:block;
26
+ text-align:center;
27
+ width:100%;
28
+ margin:auto;
29
+ }
30
+ .img-xs { width:12.5% !important; }
31
+ .img-sm { width:25% !important; }
32
+ .img-md { width:50% !important; }
33
+ .img-lg { width:75% !important; }
38
34
  }
39
35
 
40
36
  .thumbnail {
41
- display: block;
42
- position: relative;
43
- width: 100%;
44
- aspect-ratio: 2;
45
- margin: auto;
46
- background-size: cover;
47
- background-position: center center;
48
- box-shadow: 0 16px 16px 8px rgba(31, 35, 46, .15);
37
+ display:block;
38
+ position:relative;
39
+ width:100%;
40
+ aspect-ratio:2;
41
+ margin:auto;
42
+ background-size:cover;
43
+ background-position:center center;
44
+ box-shadow:0 16px 16px 8px rgba(31, 35, 46, .15);
49
45
  }
50
46
 
51
47
  .transbox {
52
- position: absolute;
53
- top: 50%;
54
- left: 50%;
55
- -webkit-transform: translate(-50%, -50%);
56
- -moz-transform: translate(-50%, -50%);
57
- transform: translate(-50%, -50%);
58
- width: 100%;
59
- margin: auto;
60
- padding: 1rem 0;
61
- text-align: center;
62
- backdrop-filter: blur(4px);
63
- background-color: rgba(255, 255, 255, 0.5);
48
+ position:absolute;
49
+ top:50%;
50
+ left:50%;
51
+ -webkit-transform:translate(-50%, -50%);
52
+ -moz-transform:translate(-50%, -50%);
53
+ transform:translate(-50%, -50%);
54
+ width:100%;
55
+ margin:auto;
56
+ padding:1rem 0;
57
+ text-align:center;
58
+ backdrop-filter:blur(4px);
59
+ background-color:rgba(255, 255, 255, 0.5);
64
60
  }
65
61
 
66
62
  .post-title {
67
- font-size: 1.25rem;
68
- word-spacing: 4px;
69
- font-weight: 600;
70
- word-wrap: break-word;
71
- font-family: Cambria, sans-serif;
63
+ font-size:1.25rem;
64
+ word-spacing:4px;
65
+ font-weight:600;
66
+ word-wrap:break-word;
67
+ font-family:Cambria, sans-serif;
72
68
  }
73
69
 
74
70
  .post-info {
75
- margin-top: 1.25rem;
76
- font-size: 0.875rem;
71
+ margin-top:1.25rem;
72
+ font-size:0.875rem;
77
73
 
78
- svg { width: 14px; }
74
+ svg { width:14px; }
79
75
  }
80
76
 
81
77
  .info-box {
82
- display: inline-flex;
83
- border-radius: 8px;
84
- margin: 0;
85
- padding: 6px;
86
- position: relative;
87
- transition: all .5s;
88
-
89
- background:
90
- linear-gradient(
91
- to right,
92
- rgba(100, 200, 200, 1),
93
- rgba(100, 200, 200, 1)
94
- ),
95
- linear-gradient(
96
- to right,
97
- rgba(255, 0, 0, 1),
98
- rgba(255, 0, 180, 1),
99
- rgba(0, 100, 200, 1)
100
- );
101
- background-size: 100% 3px, 0 3px;
102
- background-position: 100% 100%, 0 100%;
103
- background-repeat: no-repeat;
104
-
105
- &:hover {
106
- background-size: 0 3px, 100% 3px;
107
- box-shadow: 0 3px 48px 12px rgba(100, 200, 200, 1);
108
- }
109
-
110
- svg { margin-right: 4px; }
78
+ display:inline-flex;
79
+ border-radius:8px;
80
+ margin:0;
81
+ padding:6px;
82
+ position:relative;
83
+ transition:all .5s;
84
+
85
+ background:
86
+ linear-gradient(
87
+ to right,
88
+ rgba(100, 200, 200, 1),
89
+ rgba(100, 200, 200, 1)
90
+ ),
91
+ linear-gradient(
92
+ to right,
93
+ rgba(255, 0, 0, 1),
94
+ rgba(255, 0, 180, 1),
95
+ rgba(0, 100, 200, 1)
96
+ );
97
+ background-size:100% 3px, 0 3px;
98
+ background-position:100% 100%, 0 100%;
99
+ background-repeat:no-repeat;
100
+
101
+ &:hover {
102
+ background-size:0 3px, 100% 3px;
103
+ box-shadow:0 3px 48px 12px rgba(100, 200, 200, 1);
104
+ }
105
+
106
+ svg { margin-right:4px; }
111
107
  }
112
108
 
113
- .tags { margin: 1rem; }
114
-
115
- .tag-box {
116
- display: inline-block;
117
- position: relative;
118
- margin: 0.75rem;
119
- padding: 0 0.75rem;
120
- line-height: 1.5rem;
121
- color: #fff !important;
122
- font-size: 1rem;
123
- text-shadow: 0 1px 2px rgba(0,0,0,0.6);
124
- cursor: pointer;
125
-
126
- &:before {
127
- content: "";
128
- position: absolute;
129
- left: -12px;
130
- border-style: solid;
131
- border-width: 12px 12px 12px 0;
132
- }
133
-
134
- &:after {
135
- content: "";
136
- position: absolute;
137
- top: 10px;
138
- left: 1px;
139
- width: 5px;
140
- height: 5px;
141
- -webkit-border-radius: 50%;
142
- border-radius: 50%;
143
- background: #fff;
144
- -webkit-box-shadow: -1px -1px 2px rgba(0,0,0,0.4);
145
- box-shadow: -1px -1px 2px rgba(0,0,0,0.4);
146
- }
147
-
148
- &:hover {
149
- animation: pulse 1s infinite;
150
- transition: 0.3s;
151
- }
109
+ .tag-box {
110
+ margin:1rem;
111
+ display:inline-block;
112
+ }
152
113
 
153
- @keyframes pulse {
154
- 0% { transform: scale(1); }
155
-
156
- 70% { transform: scale(0.9); }
157
-
158
- 100% { transform: scale(1); }
159
- }
114
+ .tag {
115
+ float:left;
116
+ position:relative;
117
+ margin:8px 12px;
118
+ padding:0 10px 0 12px;
119
+ line-height:1.5rem;
120
+ color:#fff !important;
121
+ font-size:1rem;
122
+ text-shadow:0 1px 2px rgba(0,0,0,0.6);
123
+ cursor:pointer;
124
+
125
+ &:before {
126
+ content:"";
127
+ position:absolute;
128
+ left:-12px;
129
+ border-style:solid;
130
+ border-width:12px 12px 12px 0;
131
+ }
132
+ &:after {
133
+ content:"";
134
+ position:absolute;
135
+ top:10px;
136
+ left:1px;
137
+ width:5px;
138
+ height:5px;
139
+ -webkit-border-radius:50%;
140
+ border-radius:50%;
141
+ background:#fff;
142
+ -webkit-box-shadow:-1px -1px 2px rgba(0,0,0,0.4);
143
+ box-shadow:-1px -1px 2px rgba(0,0,0,0.4);
144
+ }
145
+ &:hover {
146
+ animation:pulse 1s infinite;
147
+ transition:0.3s;
148
+ }
149
+
150
+ @keyframes pulse {
151
+ 0% { transform:scale(1); }
152
+ 70% { transform:scale(0.9); }
153
+ 100% { transform:scale(1); }
154
+ }
160
155
  }
161
156
 
162
157
  .theme-0 {
163
- background: hsl(50, 65%, 50%);
164
-
165
- &::before { border-color: transparent hsl(50, 65%, 50%) transparent transparent; }
158
+ background:hsl(50, 65%, 50%);
159
+ &::before { border-color:transparent hsl(50, 65%, 50%) transparent transparent; }
166
160
  }
167
-
168
161
  .theme-1 {
169
- background: hsl(360, 65%, 50%);
170
-
171
- &::before { border-color: transparent hsl(360, 65%, 50%) transparent transparent; }
162
+ background:hsl(360, 65%, 50%);
163
+ &::before { border-color:transparent hsl(360, 65%, 50%) transparent transparent; }
172
164
  }
173
-
174
165
  .theme-2 {
175
- background: hsl(200, 65%, 50%);
176
-
177
- &::before { border-color: transparent hsl(200, 65%, 50%) transparent transparent; }
166
+ background:hsl(200, 65%, 50%);
167
+ &::before { border-color:transparent hsl(200, 65%, 50%) transparent transparent; }
178
168
  }
179
169
 
180
170
  main {
181
- padding: 1rem;
182
- margin: auto;
183
- font-size: 1rem;
184
- line-height: 200%;
185
- position: relative;
186
- overflow-wrap: break-word;
187
- word-wrap: break-word;
188
-
189
- * { margin: auto; }
190
-
191
- h1, h2, h3 {
192
- margin-bottom: -1.5rem;
193
- padding-top: 2rem;
194
- }
195
-
196
- h1, .sh1 { font-size: 1.75rem; }
197
-
198
- h2, .sh2 { font-size: 1.375rem; }
199
-
200
- h3, .sh3 { font-size: 1.125rem; }
201
-
202
- p { text-align:justify; }
203
-
204
- u {
205
- color: $color-rose;
206
- text-underline-offset: 2px;
207
- }
208
-
209
- em { padding-right: 2px; }
210
-
211
- a {
212
- color: dodgerblue;
213
- text-decoration: none;
214
-
215
- &::before {
216
- position: absolute;
217
- content: attr(data-content);
218
- color: midnightblue;
219
- text-decoration: underline;
220
- text-decoration-style: wavy;
221
- text-underline-offset: 4px;
222
- text-decoration-color: midnightblue;
223
- clip-path: polygon(0 0, 0 0, 0% 100%, 0 100%);
224
- transition: clip-path .25s;
171
+ padding:1rem;
172
+ margin:auto;
173
+ font-size:1rem;
174
+ line-height:200%;
175
+ position:relative;
176
+ overflow-wrap:break-word;
177
+ word-wrap:break-word;
178
+
179
+ * { margin:auto; }
180
+
181
+ h1, h2, h3 {
182
+ margin-top:3rem;
183
+ margin-bottom:1rem;
184
+ }
185
+ h1, .sh1 { font-size:1.75rem; }
186
+ h2, .sh2 { font-size:1.375rem; }
187
+ h3, .sh3 { font-size:1.125rem; }
188
+
189
+ p { text-align:justify; }
190
+
191
+ u {
192
+ color:$color-rose;
193
+ text-underline-offset:2px;
194
+ }
195
+
196
+ em { padding-right:2px; }
197
+
198
+ a {
199
+ color:dodgerblue;
200
+ text-decoration:none;
201
+
202
+ &::before {
203
+ position:absolute;
204
+ content:attr(data-content);
205
+ color:midnightblue;
206
+ text-decoration:underline;
207
+ text-decoration-style:wavy;
208
+ text-underline-offset:4px;
209
+ text-decoration-color:midnightblue;
210
+ clip-path:polygon(0 0, 0 0, 0% 100%, 0 100%);
211
+ transition:clip-path .25s;
212
+ }
213
+ &:hover::before {
214
+ clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%);
215
+ }
216
+ }
217
+
218
+ p, ul, table, div { margin-bottom:3rem; }
219
+
220
+ p + div,
221
+ p + pre,
222
+ p + blockquote,
223
+ div + div,
224
+ div + blockquote {
225
+ margin-top:-2rem;
226
+ }
227
+
228
+ ul { padding-left:2rem; }
229
+
230
+ li > ul { margin:0; }
231
+
232
+ code {
233
+ margin:0 2px;
234
+ padding:1px 5px;
235
+ border:1px solid #eaeaea;
236
+ background-color:#f4f4f4;
237
+ border-radius:3px;
238
+ font-family:'Courier New', Courier, monospace;
239
+ color:$color-darkorange;
240
+ position:relative;
241
+ top:-1px;
242
+ vertical-align:middle;
243
+ }
244
+
245
+ .highlighter-rouge .highlight {
246
+ background:#f4f4f4;
247
+ border:1px solid #eaeaea;
248
+ border-radius:3px;
249
+ margin:8px auto;
250
+
251
+ pre {
252
+ margin:0;
253
+ border:none;
254
+ overflow-x:auto;
255
+ position:relative;
256
+
257
+ button {
258
+ display:none;
259
+ position:absolute;
260
+ top:20px;
261
+ right:20px;
262
+ width:2rem;
263
+ height:2rem;
264
+ font-size:1.125rem;
265
+ color:#777;
266
+ padding:4px;
267
+ background-color:#ddd;
268
+ border-radius:4px;
269
+
270
+ svg {
271
+ background-color:darkslategrey !important;
272
+ -webkit-mask-image:url(/assets/img/icon/clipboard-regular.svg);
273
+ mask-image:url(/assets/img/icon/clipboard-regular.svg);
274
+ mask-repeat:no-repeat;
275
+ mask-position:center;
276
+ mask-size:80%;
225
277
  }
226
278
 
227
- &:hover::before {
228
- clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
229
- }
230
- }
231
-
232
- p, ul, hr, table { margin-top: 2rem; }
233
-
234
- ul { padding-left: 2rem; }
235
-
236
- li > ul { margin-top: 0; }
237
-
238
- code {
239
- margin: 0 2px;
240
- padding: 1px 5px;
241
- border: 1px solid #eaeaea;
242
- background-color: #f4f4f4;
243
- border-radius: 3px;
244
- font-family:'Courier New', Courier, monospace;
245
- color: $color-darkorange;
246
- position: relative;
247
- top: -1px;
248
- vertical-align: middle;
249
- }
250
-
251
- .highlighter-rouge .highlight {
252
- background: #f4f4f4;
253
- border: 1px solid #eaeaea;
254
- border-radius: 3px;
255
- margin: 0.5rem auto;
256
-
257
- pre {
258
- margin: 0;
259
- border: none;
260
- overflow-x: auto;
261
- position: relative;
262
-
263
- button {
264
- display: none;
265
- position: absolute;
266
- top: 20px;
267
- right: 20px;
268
- width: 2rem;
269
- height: 2rem;
270
- font-size: 1.125rem;
271
- color: #777;
272
- padding: 0.25rem;
273
- background-color: #ddd;
274
- border-radius: 4px;
275
-
276
- svg {
277
- background-color: darkslategrey !important;
278
- -webkit-mask-image: url(/assets/img/icon/clipboard-regular.svg);
279
- mask-image: url(/assets/img/icon/clipboard-regular.svg);
280
- mask-repeat: no-repeat;
281
- mask-position: center;
282
- mask-size: 80%;
283
- }
284
-
285
- &:after {
286
- content: "";
287
- display: block;
288
- position: absolute;
289
- border-radius: 4rem;
290
- left:0;
291
- top:0;
292
- width: 100%;
293
- height: 100%;
294
- opacity: 0;
295
- transition: .5s;
296
- box-shadow: 0 0 6px 24px #888;
297
- }
298
-
299
- &:active:after {
300
- box-shadow: 0 0 0 0 #888;
301
- position: absolute;
302
- border-radius: 4rem;
303
- left:0;
304
- top:0;
305
- opacity: 1;
306
- transition: 0s;
307
- }
308
- }
309
-
310
- &:hover {
311
- button { display: block; }
312
- }
279
+ &:after {
280
+ content:"";
281
+ display:block;
282
+ position:absolute;
283
+ border-radius:4rem;
284
+ left:0;
285
+ top:0;
286
+ width:100%;
287
+ height:100%;
288
+ opacity:0;
289
+ transition:.5s;
290
+ box-shadow:0 0 6px 24px #888;
313
291
  }
314
-
315
- code {
316
- margin: 0;
317
- padding: 1.5rem 1rem;
318
- border: none;
292
+ &:active:after {
293
+ box-shadow:0 0 0 0 #888;
294
+ position:absolute;
295
+ border-radius:4rem;
296
+ left:0;
297
+ top:0;
298
+ opacity:1;
299
+ transition:0s;
319
300
  }
320
- }
301
+ }
321
302
 
322
- blockquote {
323
- background: $color-beige;
324
- border-left: 4px solid burlywood;
325
- border-radius: 4px;
326
- box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 3px 10px rgba(0,0,0,.1);
327
- padding-left: 1rem;
328
- padding-right: 1rem;
329
- margin: 0.5rem auto;
330
- word-break: break-all;
331
-
332
- p {
333
- margin: 0;
334
- padding: 1rem 0;
335
- }
303
+ &:hover {
304
+ button { display:block; }
305
+ }
336
306
  }
337
307
 
338
- .table-wrapper { overflow-x: auto; }
339
-
340
- table {
341
- display: block;
342
- max-width: -moz-fit-content;
343
- max-width: fit-content;
344
- overflow-x: auto;
345
- white-space: nowrap;
346
- position: relative;
347
- background-color: #fff;
348
- border-radius: 10px;
349
- border-collapse: collapse;
350
- line-height: 1.5;
351
- box-shadow: 0 0 40px 0 rgba(0,0,0,.15);
352
-
353
- thead { box-shadow: 0 0 40px 0 rgba(0,0,0,.15); }
354
-
355
- th, td {
356
- border: 1px solid lightgrey;
357
- word-wrap: break-word;
358
- white-space: initial;
359
- max-width: 16rem;
360
- }
361
-
362
- thead tr { height: 3.5rem; }
363
-
364
- tbody tr { height: 3rem; }
365
-
366
- tbody td, thead th { padding: 0.5rem; }
367
-
368
- tr:first-child th { border-top: 0; }
369
-
370
- td:first-child, th:first-child { border-left: 0; }
371
-
372
- td:last-child, th:last-child { border-right: 0; }
373
- }
374
-
375
- li { padding: 0.25rem 0; }
376
-
377
- hr {
378
- border: 0;
379
- height: 2px;
380
- margin-bottom: -1.5rem;
381
- background: burlywood;
382
- }
383
-
384
- img + em {
385
- display: block;
386
- text-align: center;
387
- color: dimgrey;
388
- font-size: 0.875rem;
389
- font-style: normal;
390
- }
308
+ code {
309
+ margin:0;
310
+ padding:1.5rem 1rem;
311
+ border:none;
312
+ }
313
+ }
314
+
315
+ blockquote {
316
+ background:$color-beige;
317
+ border-left:4px solid burlywood;
318
+ border-radius:4px;
319
+ box-shadow:0 1px 2px rgba(0,0,0,.15), 0 3px 10px rgba(0,0,0,.1);
320
+ padding-left:1rem;
321
+ padding-right:1rem;
322
+ margin:8px auto;
323
+ word-break:break-all;
324
+
325
+ p {
326
+ margin:0;
327
+ padding:1rem 0;
328
+ }
329
+ }
330
+
331
+ .table-wrapper { overflow-x:auto; }
332
+
333
+ table {
334
+ display:block;
335
+ max-width:-moz-fit-content;
336
+ max-width:fit-content;
337
+ overflow-x:auto;
338
+ white-space:nowrap;
339
+ position:relative;
340
+ background-color:#fff;
341
+ border-radius:10px;
342
+ border-collapse:collapse;
343
+ line-height:1.5;
344
+ box-shadow:0 0 40px 0 rgba(0,0,0,.15);
345
+
346
+ thead { box-shadow:0 0 40px 0 rgba(0,0,0,.15); }
347
+ th, td {
348
+ border:1px solid lightgrey;
349
+ word-wrap:break-word;
350
+ white-space:initial;
351
+ max-width:16rem;
352
+ }
353
+ thead tr { height:3.5rem; }
354
+ tbody tr { height:3rem; }
355
+ tbody td, thead th { padding:8px; }
356
+
357
+ tr:first-child th { border-top:0; }
358
+ td:first-child, th:first-child { border-left:0; }
359
+ td:last-child, th:last-child { border-right:0; }
360
+ }
361
+
362
+ li { padding:4px 0; }
363
+
364
+ hr {
365
+ border:0;
366
+ height:2px;
367
+ margin:1rem 0;
368
+ background:burlywood;
369
+ }
370
+
371
+ img + em {
372
+ display:block;
373
+ text-align:center;
374
+ color:dimgrey;
375
+ font-size:0.875rem;
376
+ font-style:normal;
377
+ }
391
378
  }
392
379
 
393
380
  #related-box {
394
- margin-top: 2rem;
381
+ margin-top:2rem;
395
382
 
396
- span { font-size: 1.25rem; }
383
+ span { font-size:1.25rem; }
397
384
 
398
- svg {
399
- width: 20px;
400
- display: inline-flex;
401
- transform: translateY(3px);
402
- }
385
+ svg {
386
+ width:20px;
387
+ display:inline-flex;
388
+ transform:translateY(3px);
389
+ }
403
390
  }
404
391
 
405
392
  #related-posts {
406
- display: inline-table;
407
- position: relative;
408
- width: 100%;
409
- margin: 1rem 0;
410
- padding: 0;
411
-
412
- li {
413
- float: left;
414
- position: relative;
415
- width: 45%;
416
- margin-left: 5%;
417
- margin-bottom: 2rem;
418
- padding: 0;
419
- list-style: none;
420
- transition: .3s;
421
-
422
- &:hover {
423
- transform: translate(0px, -4px);
424
- box-shadow: 8px 8px 16px -4px rgba(0, 0, 255, .2);
425
- }
426
- }
427
-
428
- li:nth-child(3n+1) { margin-left: 0; }
393
+ display:inline-table;
394
+ position:relative;
395
+ width:100%;
396
+ margin:1rem 0;
397
+ padding:0;
398
+
399
+ li {
400
+ float:left;
401
+ position:relative;
402
+ width:45%;
403
+ margin-left:5%;
404
+ margin-bottom:2rem;
405
+ padding:0;
406
+ list-style:none;
407
+ transition:.3s;
408
+ overflow: hidden;
429
409
 
430
- a {
431
- width: 100%;
432
- display: inline-block;
433
- text-decoration: none;
434
-
435
- p {
436
- width: 100%;
437
- margin: 8px 0;
438
- line-height: 1.25;
439
- font-family: Verdana, Tahoma, sans-serif;
440
- }
441
- }
442
-
443
- img {
444
- display: block;
445
- width: 100%;
446
- aspect-ratio: 1.5/1;
447
- }
448
-
449
- .category {
450
- color: $color-aqua;
451
- font-size: 1rem;
452
- }
453
-
454
- .title {
455
- display: -webkit-box;
456
- color: $color-darkbrown;
457
- font-size: 1.125rem;
458
- font-weight: 600;
459
- height: 2.5em;
460
- text-align: left;
461
- overflow: hidden;
462
- text-overflow: ellipsis;
463
- -webkit-line-clamp: 2;
464
- -webkit-box-orient: vertical;
465
- word-wrap: break-word;
466
- }
467
-
468
- .date {
469
- color: goldenrod;
470
- font-size: 0.875rem;
471
- text-transform: uppercase;
472
- }
410
+ &:hover {
411
+ box-shadow:8px 8px 16px -4px rgba(0, 0, 255, .2);
412
+
413
+ -webkit-transform:scale(1.05);
414
+ -moz-transform:scale(1.05);
415
+ transform:scale(1.05);
416
+
417
+ img {
418
+ opacity:.7;
419
+ }
420
+ }
421
+ }
422
+
423
+ @media (max-width:768px){
424
+ li:nth-child(2n+1) { margin-left:0; }
425
+ }
426
+
427
+ a {
428
+ width:100%;
429
+ display:inline-block;
430
+ text-decoration:none;
431
+
432
+ p {
433
+ width:100%;
434
+ margin:8px 0;
435
+ line-height:1.25;
436
+ font-family:Verdana, Tahoma, sans-serif;
437
+ }
438
+ }
439
+
440
+ img {
441
+ display:block;
442
+ width:100%;
443
+ aspect-ratio:1.5/1;
444
+ transition:.3s;
445
+ }
446
+
447
+ .category {
448
+ color:$color-aqua;
449
+ font-size:1rem;
450
+ }
451
+
452
+ .title {
453
+ display:-webkit-box;
454
+ color:$color-darkbrown;
455
+ font-size:1.125rem;
456
+ font-weight:600;
457
+ height:2.5em;
458
+ text-align:left;
459
+ overflow:hidden;
460
+ text-overflow:ellipsis;
461
+ -webkit-line-clamp:2;
462
+ -webkit-box-orient:vertical;
463
+ word-wrap:break-word;
464
+ }
465
+
466
+ .date {
467
+ color:goldenrod;
468
+ font-size:0.875rem;
469
+ text-transform:uppercase;
470
+ }
473
471
  }
474
472
 
475
473
  .top-arrow {
476
- position: fixed;
477
- display: none;
478
- bottom: 2rem;
479
- right: 2rem;
480
- width: 48px;
481
- background: rgba(100, 200, 200, 0.75);
482
- cursor: pointer;
483
-
484
- &, &:before{
485
- aspect-ratio: 1.0;
486
- border-radius: 50%;
487
- }
488
-
489
- &:before{
490
- content: "";
491
- width: 40px;
492
- border: 2px solid #fff;
493
- position: absolute;
494
- top: 2px;
495
- left: 2px;
496
- }
497
-
498
- svg {
499
- width: 28px;
500
- top: 11px;
501
- left: 10px;
502
- fill: #fff !important;
503
- filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
504
- position: absolute;
505
- animation: ascend 2s infinite;
506
- }
507
-
508
- @keyframes ascend {
509
- 0% {
510
- opacity: 0;
511
- transform: translateY(8px);
512
- }
513
- 50% {
514
- opacity: 1;
515
- }
516
- 100% {
517
- opacity: 0;
518
- transform: translateY(-8px);
519
- }
520
- }
474
+ position:fixed;
475
+ display:none;
476
+ bottom:2rem;
477
+ right:2rem;
478
+ width:48px;
479
+ background:rgba(100, 200, 200, 0.75);
480
+ cursor:pointer;
481
+
482
+ &, &:before{
483
+ aspect-ratio:1.0;
484
+ border-radius:50%;
485
+ }
486
+ &:before{
487
+ content:"";
488
+ width:40px;
489
+ border:2px solid #fff;
490
+ position:absolute;
491
+ top:2px;
492
+ left:2px;
493
+ }
494
+
495
+ svg {
496
+ width:28px;
497
+ top:11px;
498
+ left:10px;
499
+ fill:#fff !important;
500
+ filter:drop-shadow(0 1px 2px rgba(0,0,0,0.6));
501
+ position:absolute;
502
+ animation:ascend 2s infinite;
503
+ }
504
+
505
+ @keyframes ascend {
506
+ 0% {
507
+ opacity:0;
508
+ transform:translateY(8px);
509
+ }
510
+ 50% {
511
+ opacity:1;
512
+ }
513
+ 100% {
514
+ opacity:0;
515
+ transform:translateY(-8px);
516
+ }
517
+ }
521
518
  }
522
519
 
523
- .arrow-open { display: block; }
520
+ .arrow-open { display:block; }
524
521
 
525
522
  @include mq(tablet){
526
- .transbox {
527
- width: 87.5%;
528
- padding: 2rem;
529
- }
530
-
531
- .post-title { font-size: 2.25rem; }
532
523
 
533
- .post-info {
534
- margin-top: 4rem;
535
- font-size: 1.25rem;
536
-
537
- svg { width: 20px; }
538
- }
539
-
540
- .info-box {
541
- margin: 0 8px;
542
- padding: 8px;
543
- background-size: 100% 4px, 0 4px;
544
-
545
- &:hover {
546
- background-size: 0 4px, 100% 4px;
547
- box-shadow: 0 4px 64px 16px rgba(100, 200, 200, 1);
548
- }
524
+ .transbox {
525
+ width:87.5%;
526
+ padding:2rem;
527
+ }
549
528
 
550
- svg { margin-right: 8px; }
551
- }
529
+ .post-title { font-size:2.25rem; }
552
530
 
553
- .tags { margin: 1rem 3rem; }
531
+ .post-info {
532
+ margin-top:4rem;
533
+ font-size:1.25rem;
554
534
 
555
- .tag-box {
556
- margin: 1rem;
557
- padding: 0 1rem;
558
- line-height: 2rem;
559
- font-size: 1.125rem;
535
+ svg { width:20px; }
536
+ }
560
537
 
561
- &:before {
562
- left: -1rem;
563
- border-width: 16px 16px 16px 0;
564
- }
538
+ .info-box {
539
+ margin:0 8px;
540
+ padding:8px;
541
+ background-size:100% 4px, 0 4px;
565
542
 
566
- &:after {
567
- top: 14px;
568
- left: 2px;
569
- }
570
- }
543
+ &:hover {
544
+ background-size:0 4px, 100% 4px;
545
+ box-shadow:0 4px 64px 16px rgba(100, 200, 200, 1);
546
+ }
571
547
 
572
- main {
573
- padding: 2.5rem;
574
- padding-top: 0;
575
- font-size: 1.125rem;
548
+ svg { margin-right:8px; }
549
+ }
576
550
 
577
- h1, h2, h3, hr { margin-bottom: -2.25rem; }
551
+ .tag-box {
552
+ margin:3rem;
553
+ margin-top:1rem;
554
+ }
578
555
 
579
- h1, .sh1 {
580
- font-size: 2.25rem;
581
- padding-top: 5rem;
582
- }
583
-
584
- h2, .sh2 {
585
- font-size: 1.75rem;
586
- padding-top: 4rem;
587
- }
588
-
589
- h3, .sh3 {
590
- font-size: 1.375rem;
591
- padding-top: 3rem;
592
- }
556
+ .tag {
557
+ margin:12px 16px;
558
+ padding:0 14px 0 16px;
559
+ line-height:2rem;
560
+ font-size:1.125rem;
561
+
562
+ &:before {
563
+ left:-16px;
564
+ border-width:16px 16px 16px 0;
565
+ }
566
+ &:after {
567
+ top:14px;
568
+ left:2px;
569
+ }
570
+ }
593
571
 
594
- p, ul, hr, table { margin-top: 3rem; }
572
+ main {
573
+ padding:2.5rem;
574
+ padding-top:0;
575
+ font-size:1.125rem;
576
+
577
+ h1, .sh1 {
578
+ font-size:2.25rem;
579
+ margin-top:5rem;
580
+ }
581
+ h2, .sh2 {
582
+ font-size:1.75rem;
583
+ margin-top:4rem;
584
+ }
585
+ h3, .sh3 {
586
+ font-size:1.375rem;
587
+ }
588
+
589
+ table {
590
+ tbody td, thead th { padding:1rem; }
591
+ }
592
+
593
+ code { font-size:1rem; }
594
+
595
+ blockquote p { font-size:1rem; }
596
+ }
595
597
 
596
- table {
597
- tbody td, thead th { padding: 1rem; }
598
- }
598
+ #related-box {
599
+ margin-top:4rem;
599
600
 
600
- code { font-size: 1rem; }
601
+ span { font-size:1.5rem; }
601
602
 
602
- blockquote p { font-size: 1rem; }
603
- }
603
+ svg { width:24px; }
604
+ }
604
605
 
605
- #related-box {
606
- margin-top: 4rem;
606
+ #related-posts {
607
+ li { width:30%; }
608
+ li:nth-child(3n+1) { margin-left:0; }
609
+ }
607
610
 
608
- span { font-size: 1.5rem; }
611
+ }
609
612
 
610
- svg { width: 24px; }
611
- }
613
+ @include mq(desktop){
612
614
 
613
- #related-posts li { width: 30%; }
615
+ #post {
616
+ margin:4rem 0;
617
+ margin-left:#{$sidebarwd};
618
+ width:var(--pagewidth-desktop);
619
+ display:inline-block;
614
620
  }
615
621
 
616
- @include mq(desktop){
617
- #post {
618
- margin: 4rem 0;
619
- margin-left: #{$sidebarwd};
620
- width: var(--pagewidth-desktop);
621
- display: inline-block;
622
- }
622
+ .inner-header { display:block; }
623
623
 
624
- .inner-header { display: block; }
624
+ .inner-content {
625
+ border-radius:0 0 1rem 1rem;
626
+ box-shadow:0 16px 16px 8px rgba(31, 35, 46, 0.15);
627
+ }
625
628
 
626
- .inner-content {
627
- border-radius: 0 0 1rem 1rem;
628
- box-shadow: 0 16px 16px 8px rgba(31, 35, 46, 0.15);
629
- }
629
+ .top-arrow { left:calc(#{$sidebarwd} + var(--pagewidth-desktop) - 4rem); }
630
630
 
631
- .top-arrow { left: calc(#{$sidebarwd} + var(--pagewidth-desktop) - 4rem); }
632
631
  }
633
632
 
634
633
  @include mq(wide){
635
- #post { margin-left: calc((100vw - #{$contentwd})/2); }
636
634
 
637
- .top-arrow { left: calc(50vw + #{$contentwd}/2 - 4rem); }
635
+ #post { margin-left:calc((100vw - #{$contentwd})/2); }
636
+
637
+ .top-arrow { left:calc(50vw + #{$contentwd}/2 - 4rem); }
638
+
638
639
  }