jekyll-theme-satellite 1.1.2 → 1.2.4

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