hexo-theme-linen 1.0.51 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/layout/post.ejs +6 -5
- package/package.json +1 -1
- package/scripts/custom.js +333 -0
- package/scripts/lazyload/inject.js +20 -16
- package/source/linen-theme/css/_mediaquery.scss +144 -45
- package/source/linen-theme/css/lazyload.css +20 -16
- package/source/linen-theme/css/linen.scss +1509 -519
- package/source/linen-theme/css/linkcard.scss +70 -52
- package/source/linen-theme/css/vars.scss +66 -35
- package/source/linen-theme/js/linen.js +325 -4
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
}
|
|
11
11
|
.nav-header.is-post {
|
|
12
12
|
position: fixed;
|
|
13
|
+
background-color: rgba(255, 255, 255, 0.88);
|
|
14
|
+
backdrop-filter: saturate(180%) blur(14px);
|
|
15
|
+
-webkit-backdrop-filter: saturate(180%) blur(14px);
|
|
13
16
|
transform: translateY(0);
|
|
14
17
|
opacity: 1;
|
|
15
18
|
pointer-events: auto;
|
|
@@ -40,17 +43,33 @@
|
|
|
40
43
|
left: 0;
|
|
41
44
|
width: 100%;
|
|
42
45
|
background-image: none;
|
|
43
|
-
background-color: rgba(255, 255, 255, 0.
|
|
44
|
-
backdrop-filter: blur(
|
|
46
|
+
background-color: rgba(255, 255, 255, 0.96);
|
|
47
|
+
backdrop-filter: blur(14px);
|
|
48
|
+
-webkit-backdrop-filter: blur(14px);
|
|
49
|
+
border-radius: $radiusSheet $radiusSheet 0 0;
|
|
50
|
+
border-top: 1px solid $borderColor;
|
|
51
|
+
box-shadow: 0 -10px 32px rgba(34, 33, 31, 0.14);
|
|
45
52
|
z-index: 999;
|
|
46
|
-
padding:
|
|
53
|
+
padding: 10px 0 16px;
|
|
47
54
|
transform: translateY(125%);
|
|
48
|
-
transition: transform
|
|
55
|
+
transition: transform 0.34s $easeOut;
|
|
49
56
|
border-right: none;
|
|
50
57
|
-ms-overflow-style: unset;
|
|
51
58
|
scrollbar-width: unset;
|
|
52
59
|
overscroll-behavior: contain;
|
|
53
|
-
@include safe-padding(
|
|
60
|
+
@include safe-padding(16px);
|
|
61
|
+
&::before {
|
|
62
|
+
content: "";
|
|
63
|
+
display: block;
|
|
64
|
+
width: 36px;
|
|
65
|
+
height: 4px;
|
|
66
|
+
border-radius: 999px;
|
|
67
|
+
background-color: rgba(34, 33, 31, 0.16);
|
|
68
|
+
margin: 0 auto 12px;
|
|
69
|
+
}
|
|
70
|
+
&::after {
|
|
71
|
+
display: none;
|
|
72
|
+
}
|
|
54
73
|
.toc-item-wrap {
|
|
55
74
|
transition: unset;
|
|
56
75
|
will-change: auto;
|
|
@@ -78,8 +97,10 @@
|
|
|
78
97
|
}
|
|
79
98
|
.toc-item-wrap.active {
|
|
80
99
|
.toc-item-link {
|
|
100
|
+
color: $accent;
|
|
81
101
|
&::before {
|
|
82
102
|
left: 7.5px;
|
|
103
|
+
right: auto;
|
|
83
104
|
width: 2px;
|
|
84
105
|
}
|
|
85
106
|
}
|
|
@@ -154,12 +175,17 @@
|
|
|
154
175
|
.title-excerpt {
|
|
155
176
|
width: 100%;
|
|
156
177
|
margin-left: 0;
|
|
178
|
+
margin-top: 12px;
|
|
179
|
+
gap: 8px;
|
|
157
180
|
.title {
|
|
158
181
|
font-size: 22px;
|
|
159
182
|
}
|
|
160
183
|
.excerpt {
|
|
161
184
|
font-size: 14px;
|
|
162
185
|
}
|
|
186
|
+
.post-meta {
|
|
187
|
+
padding-top: 4px;
|
|
188
|
+
}
|
|
163
189
|
}
|
|
164
190
|
.item-body {
|
|
165
191
|
flex-direction: column;
|
|
@@ -193,9 +219,6 @@
|
|
|
193
219
|
}
|
|
194
220
|
.nav-header {
|
|
195
221
|
padding: 0;
|
|
196
|
-
.header-inner {
|
|
197
|
-
@include pageXPadding;
|
|
198
|
-
}
|
|
199
222
|
}
|
|
200
223
|
#post {
|
|
201
224
|
.post-title {
|
|
@@ -228,6 +251,12 @@
|
|
|
228
251
|
}
|
|
229
252
|
|
|
230
253
|
@media (max-width: 728px) {
|
|
254
|
+
#post:not(.travel-post) {
|
|
255
|
+
h2::before,
|
|
256
|
+
h3::before {
|
|
257
|
+
display: none;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
231
260
|
.commented-text {
|
|
232
261
|
display: inline-block;
|
|
233
262
|
}
|
|
@@ -251,61 +280,92 @@
|
|
|
251
280
|
display: none;
|
|
252
281
|
}
|
|
253
282
|
.site-info {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
283
|
+
display: grid;
|
|
284
|
+
grid-template-columns: 48px minmax(0, 1fr);
|
|
285
|
+
column-gap: 12px;
|
|
286
|
+
align-items: center;
|
|
287
|
+
padding: 20px 0 0 0;
|
|
288
|
+
border-top: 1px solid $borderSubtle;
|
|
289
|
+
margin-top: 24px;
|
|
257
290
|
&.home {
|
|
258
|
-
padding:
|
|
291
|
+
padding: 20px 0 0 0;
|
|
259
292
|
}
|
|
260
293
|
.info-row {
|
|
294
|
+
&:first-child {
|
|
295
|
+
display: contents;
|
|
296
|
+
}
|
|
261
297
|
&:not(:first-child) {
|
|
262
|
-
margin-top:
|
|
298
|
+
margin-top: 0 !important;
|
|
263
299
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
300
|
+
.author {
|
|
301
|
+
display: contents;
|
|
302
|
+
.avatar {
|
|
303
|
+
grid-column: 1;
|
|
304
|
+
grid-row: 1 / span 2;
|
|
305
|
+
align-self: center;
|
|
306
|
+
width: 48px !important;
|
|
307
|
+
height: 48px !important;
|
|
308
|
+
}
|
|
309
|
+
.name {
|
|
310
|
+
grid-column: 2;
|
|
311
|
+
grid-row: 1;
|
|
312
|
+
align-self: end;
|
|
313
|
+
margin-top: 0;
|
|
314
|
+
margin-left: 0 !important;
|
|
315
|
+
font-size: 16px;
|
|
316
|
+
font-weight: 600;
|
|
317
|
+
line-height: 1.3;
|
|
318
|
+
}
|
|
272
319
|
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
320
|
+
}
|
|
321
|
+
&:not(:has(.description)) {
|
|
322
|
+
.info-row .author {
|
|
323
|
+
.avatar {
|
|
324
|
+
grid-row: 1;
|
|
325
|
+
}
|
|
326
|
+
.name {
|
|
327
|
+
align-self: center;
|
|
328
|
+
}
|
|
278
329
|
}
|
|
279
330
|
}
|
|
280
331
|
.description.description {
|
|
332
|
+
grid-column: 2;
|
|
333
|
+
grid-row: 2;
|
|
334
|
+
align-self: start;
|
|
281
335
|
text-align: left;
|
|
282
|
-
margin-top:
|
|
336
|
+
margin-top: 2px !important;
|
|
283
337
|
font-size: 13px;
|
|
338
|
+
line-height: 1.45;
|
|
284
339
|
color: $moreGrayText;
|
|
285
|
-
padding-left:
|
|
340
|
+
padding-left: 0;
|
|
286
341
|
}
|
|
287
342
|
.site-statisc.site-statisc {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
343
|
+
grid-column: 1 / -1;
|
|
344
|
+
margin-top: 14px !important;
|
|
345
|
+
padding-top: 12px;
|
|
346
|
+
padding-left: 0;
|
|
347
|
+
justify-content: space-between;
|
|
348
|
+
gap: 8px;
|
|
349
|
+
font-size: 12.5px;
|
|
293
350
|
color: $moreGrayText;
|
|
294
351
|
max-width: 100%;
|
|
352
|
+
width: 100%;
|
|
295
353
|
margin-left: 0;
|
|
296
354
|
margin-right: 0;
|
|
355
|
+
border-top: 1px solid $borderSubtle;
|
|
297
356
|
a {
|
|
298
357
|
color: $grayerText;
|
|
299
358
|
}
|
|
300
359
|
.divider {
|
|
301
|
-
color:
|
|
360
|
+
color: $grayc;
|
|
302
361
|
margin: 0;
|
|
303
362
|
}
|
|
304
363
|
}
|
|
305
364
|
.info-row.about {
|
|
365
|
+
grid-column: 1 / -1;
|
|
306
366
|
text-align: left;
|
|
307
367
|
margin-top: 12px !important;
|
|
308
|
-
padding-left:
|
|
368
|
+
padding-left: 0;
|
|
309
369
|
font-size: 12px;
|
|
310
370
|
display: flex;
|
|
311
371
|
gap: 16px;
|
|
@@ -385,15 +445,18 @@
|
|
|
385
445
|
}
|
|
386
446
|
.travel-place-list {
|
|
387
447
|
grid-template-columns: 1fr;
|
|
448
|
+
gap: 10px;
|
|
388
449
|
padding: 0 14px;
|
|
389
450
|
}
|
|
390
451
|
.travel-place-card {
|
|
391
|
-
grid-template-columns:
|
|
392
|
-
min-height:
|
|
452
|
+
grid-template-columns: 108px minmax(0, 1fr);
|
|
453
|
+
min-height: 108px;
|
|
393
454
|
}
|
|
394
455
|
.travel-place-cover {
|
|
395
|
-
width:
|
|
396
|
-
|
|
456
|
+
width: 108px;
|
|
457
|
+
height: 100%;
|
|
458
|
+
aspect-ratio: auto;
|
|
459
|
+
min-height: 108px;
|
|
397
460
|
}
|
|
398
461
|
}
|
|
399
462
|
#top-posts {
|
|
@@ -487,6 +550,9 @@
|
|
|
487
550
|
&.post-outer {
|
|
488
551
|
#gitalk-container {
|
|
489
552
|
min-height: 235px;
|
|
553
|
+
&:has(.gt-container) {
|
|
554
|
+
min-height: 0;
|
|
555
|
+
}
|
|
490
556
|
}
|
|
491
557
|
}
|
|
492
558
|
}
|
|
@@ -537,23 +603,56 @@
|
|
|
537
603
|
}
|
|
538
604
|
}
|
|
539
605
|
|
|
540
|
-
@media (max-width:
|
|
606
|
+
@media (max-width: 479px) {
|
|
541
607
|
.series-layout {
|
|
542
608
|
.travel-place-card {
|
|
543
|
-
grid-template-columns: 1fr;
|
|
609
|
+
grid-template-columns: 96px minmax(0, 1fr);
|
|
610
|
+
min-height: 96px;
|
|
544
611
|
}
|
|
545
612
|
.travel-place-cover {
|
|
546
|
-
width:
|
|
547
|
-
|
|
548
|
-
|
|
613
|
+
width: 96px;
|
|
614
|
+
height: 100%;
|
|
615
|
+
aspect-ratio: auto;
|
|
616
|
+
min-height: 96px;
|
|
617
|
+
}
|
|
618
|
+
.travel-place-index {
|
|
619
|
+
top: 6px;
|
|
620
|
+
left: 6px;
|
|
621
|
+
min-width: 22px;
|
|
622
|
+
padding: 3px 5px;
|
|
623
|
+
font-size: 11px;
|
|
549
624
|
}
|
|
550
625
|
.travel-place-body {
|
|
551
|
-
padding: 12px
|
|
626
|
+
padding: 8px 12px;
|
|
627
|
+
}
|
|
628
|
+
.travel-place-title {
|
|
629
|
+
font-size: 16px;
|
|
630
|
+
line-height: 1.3;
|
|
631
|
+
}
|
|
632
|
+
.travel-place-meta {
|
|
633
|
+
gap: 2px 8px;
|
|
634
|
+
margin-top: 4px;
|
|
635
|
+
font-size: 11.5px;
|
|
636
|
+
}
|
|
637
|
+
.travel-place-excerpt {
|
|
638
|
+
margin-top: 5px;
|
|
639
|
+
font-size: 13px;
|
|
640
|
+
line-height: 1.4;
|
|
552
641
|
}
|
|
553
642
|
}
|
|
554
643
|
}
|
|
555
644
|
|
|
556
645
|
@media (max-width: 350px) {
|
|
646
|
+
.series-layout {
|
|
647
|
+
.travel-place-card {
|
|
648
|
+
grid-template-columns: 84px minmax(0, 1fr);
|
|
649
|
+
min-height: 84px;
|
|
650
|
+
}
|
|
651
|
+
.travel-place-cover {
|
|
652
|
+
width: 84px;
|
|
653
|
+
min-height: 84px;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
557
656
|
.nav-header {
|
|
558
657
|
.header-inner .title {
|
|
559
658
|
width: 150px;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
opacity: 1;
|
|
68
68
|
}
|
|
69
69
|
.lazyload-wrap .error-wrap{
|
|
70
|
-
background-color: #
|
|
70
|
+
background-color: #f7f6f2;
|
|
71
71
|
opacity: 1;
|
|
72
72
|
display: flex;
|
|
73
73
|
flex-direction: column;
|
|
@@ -86,22 +86,26 @@
|
|
|
86
86
|
padding-top: 26.79640719%;
|
|
87
87
|
}
|
|
88
88
|
.lazyload-wrap .error-wrap .retry-btn{
|
|
89
|
-
margin-top:
|
|
90
|
-
background-
|
|
91
|
-
border
|
|
92
|
-
border-
|
|
93
|
-
border-width: 1px;
|
|
94
|
-
border-radius: 3px;
|
|
95
|
-
box-shadow: rgba(255,255,255,.6) 0 1px 0 inset;
|
|
89
|
+
margin-top: 1.5em;
|
|
90
|
+
background-color: #ffffff;
|
|
91
|
+
border: 1px solid rgba(34, 33, 31, 0.18);
|
|
92
|
+
border-radius: 4px;
|
|
96
93
|
box-sizing: border-box;
|
|
97
|
-
color: #
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
color: #22211f;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
|
|
102
100
|
font-size: 13px;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
padding: 0
|
|
101
|
+
font-weight: 500;
|
|
102
|
+
height: 32px;
|
|
103
|
+
padding: 0 14px;
|
|
106
104
|
text-align: center;
|
|
105
|
+
transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
106
|
+
}
|
|
107
|
+
.lazyload-wrap .error-wrap .retry-btn:hover{
|
|
108
|
+
border-color: rgba(168, 69, 46, 0.35);
|
|
109
|
+
color: #a8452e;
|
|
110
|
+
background-color: rgba(168, 69, 46, 0.06);
|
|
107
111
|
}
|