hexo-theme-linen 1.0.52 → 1.0.54
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 +4 -4
- package/package.json +1 -1
- 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 +908 -525
- package/source/linen-theme/css/linkcard.scss +67 -52
- package/source/linen-theme/css/vars.scss +66 -35
- package/source/linen-theme/js/linen.js +4 -3
|
@@ -8,21 +8,17 @@
|
|
|
8
8
|
border-radius: 4px;
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
font-family:
|
|
11
|
-
system-ui,
|
|
12
11
|
-apple-system,
|
|
13
12
|
BlinkMacSystemFont,
|
|
14
|
-
"
|
|
15
|
-
Roboto,
|
|
16
|
-
Oxygen,
|
|
17
|
-
Ubuntu,
|
|
18
|
-
Cantarell,
|
|
19
|
-
"Open Sans",
|
|
13
|
+
"SF Pro Text",
|
|
20
14
|
"Helvetica Neue",
|
|
21
15
|
sans-serif;
|
|
22
16
|
margin-bottom: 1.2rem;
|
|
23
17
|
cursor: pointer;
|
|
24
|
-
box-shadow: rgba(
|
|
25
|
-
transition:
|
|
18
|
+
box-shadow: 0 2px 10px rgba(34, 33, 31, 0.08);
|
|
19
|
+
transition:
|
|
20
|
+
box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
21
|
+
transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
26
22
|
text-decoration: none;
|
|
27
23
|
.cover-img {
|
|
28
24
|
width: 6rem;
|
|
@@ -44,21 +40,21 @@
|
|
|
44
40
|
background-image: linear-gradient(
|
|
45
41
|
to right,
|
|
46
42
|
rgba(255, 255, 255, 1),
|
|
47
|
-
rgba(255, 255, 255, 0.
|
|
48
|
-
rgba(255, 255, 255, 0.
|
|
49
|
-
rgba(255, 255, 255, 0.
|
|
43
|
+
rgba(255, 255, 255, 0.92),
|
|
44
|
+
rgba(255, 255, 255, 0.86),
|
|
45
|
+
rgba(255, 255, 255, 0.2)
|
|
50
46
|
);
|
|
51
47
|
backdrop-filter: blur(0.1rem);
|
|
52
|
-
padding: 0 0.
|
|
48
|
+
padding: 0 0.85rem;
|
|
53
49
|
display: flex;
|
|
54
50
|
flex-direction: column;
|
|
55
51
|
justify-content: space-evenly;
|
|
56
52
|
font-family: inherit;
|
|
57
53
|
.link-title {
|
|
58
54
|
font-family: inherit;
|
|
59
|
-
font-weight:
|
|
60
|
-
font-size: max(min(4.5vw, 1.
|
|
61
|
-
color: #
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
font-size: max(min(4.5vw, 1.05em), 14.5px);
|
|
57
|
+
color: #22211f;
|
|
62
58
|
white-space: nowrap;
|
|
63
59
|
overflow: hidden;
|
|
64
60
|
text-overflow: ellipsis;
|
|
@@ -66,19 +62,22 @@
|
|
|
66
62
|
}
|
|
67
63
|
|
|
68
64
|
&:hover {
|
|
69
|
-
box-shadow: rgba(
|
|
65
|
+
box-shadow: 0 6px 18px rgba(34, 33, 31, 0.14);
|
|
66
|
+
transform: translateY(-1px);
|
|
70
67
|
}
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
.xhs-link:hover {
|
|
74
|
-
|
|
71
|
+
border-color: rgba(168, 69, 46, 0.28);
|
|
72
|
+
box-shadow: 0 6px 18px rgba(34, 33, 31, 0.08);
|
|
73
|
+
transform: translateY(-1px);
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
.shared-link {
|
|
78
77
|
.link-content .link-desc {
|
|
79
|
-
color: #
|
|
80
|
-
font-size: max(min(2.5vw, 0.
|
|
81
|
-
line-height: 1.
|
|
78
|
+
color: #6f6b64;
|
|
79
|
+
font-size: max(min(2.5vw, 0.85rem), 12.5px);
|
|
80
|
+
line-height: 1.2;
|
|
82
81
|
overflow: hidden;
|
|
83
82
|
text-overflow: ellipsis;
|
|
84
83
|
white-space: nowrap;
|
|
@@ -115,25 +114,23 @@
|
|
|
115
114
|
width: calc((100% - 24px) / 4);
|
|
116
115
|
margin-right: 8px;
|
|
117
116
|
background-color: #fff;
|
|
117
|
+
border: 1px solid rgba(34, 33, 31, 0.1);
|
|
118
118
|
border-radius: 4px;
|
|
119
|
-
box-shadow: rgba(
|
|
119
|
+
box-shadow: 0 1px 2px rgba(34, 33, 31, 0.04);
|
|
120
120
|
overflow: hidden;
|
|
121
121
|
color: unset;
|
|
122
122
|
margin-left: 0;
|
|
123
123
|
margin-bottom: 1.2rem;
|
|
124
124
|
font-family:
|
|
125
|
-
system-ui,
|
|
126
125
|
-apple-system,
|
|
127
126
|
BlinkMacSystemFont,
|
|
128
|
-
"
|
|
129
|
-
Roboto,
|
|
130
|
-
Oxygen,
|
|
131
|
-
Ubuntu,
|
|
132
|
-
Cantarell,
|
|
133
|
-
"Open Sans",
|
|
127
|
+
"SF Pro Text",
|
|
134
128
|
"Helvetica Neue",
|
|
135
129
|
sans-serif;
|
|
136
|
-
transition:
|
|
130
|
+
transition:
|
|
131
|
+
border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
132
|
+
box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
133
|
+
transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
137
134
|
|
|
138
135
|
&:visited,
|
|
139
136
|
&:active {
|
|
@@ -256,12 +253,18 @@
|
|
|
256
253
|
width: 100%;
|
|
257
254
|
max-width: 100%;
|
|
258
255
|
display: inline-block;
|
|
259
|
-
background-color:
|
|
260
|
-
|
|
261
|
-
|
|
256
|
+
background-color: #f7f6f2;
|
|
257
|
+
border: 1px solid rgba(34, 33, 31, 0.1);
|
|
258
|
+
box-shadow: 0 1px 2px rgba(34, 33, 31, 0.04);
|
|
259
|
+
transition:
|
|
260
|
+
border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
261
|
+
box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
262
|
+
transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
262
263
|
overflow: hidden;
|
|
263
264
|
&:hover {
|
|
264
|
-
|
|
265
|
+
border-color: rgba(168, 69, 46, 0.28);
|
|
266
|
+
box-shadow: 0 6px 18px rgba(34, 33, 31, 0.08);
|
|
267
|
+
transform: translateY(-1px);
|
|
265
268
|
}
|
|
266
269
|
.lazyload-outer-wrap {
|
|
267
270
|
margin: 0;
|
|
@@ -272,33 +275,45 @@
|
|
|
272
275
|
height: auto;
|
|
273
276
|
aspect-ratio: 2 / 1;
|
|
274
277
|
background-color: #fff;
|
|
278
|
+
border-bottom: 1px solid rgba(34, 33, 31, 0.06);
|
|
275
279
|
}
|
|
276
280
|
.title {
|
|
277
|
-
color:
|
|
278
|
-
font-size:
|
|
279
|
-
|
|
280
|
-
|
|
281
|
+
color: #22211f;
|
|
282
|
+
font-size: 12.5px;
|
|
283
|
+
line-height: 1.45;
|
|
284
|
+
margin: 0.5em 0.75em 0;
|
|
285
|
+
font-weight: 600;
|
|
286
|
+
display: -webkit-box;
|
|
287
|
+
line-clamp: 2;
|
|
288
|
+
-webkit-line-clamp: 2;
|
|
289
|
+
/*! autoprefixer: ignore next */
|
|
290
|
+
-webkit-box-orient: vertical;
|
|
291
|
+
/*! autoprefixer: on */
|
|
292
|
+
overflow: hidden;
|
|
293
|
+
text-overflow: ellipsis;
|
|
294
|
+
font-family:
|
|
295
|
+
-apple-system,
|
|
296
|
+
BlinkMacSystemFont,
|
|
297
|
+
"SF Pro Text",
|
|
298
|
+
"Helvetica Neue",
|
|
299
|
+
sans-serif;
|
|
300
|
+
}
|
|
301
|
+
&::after {
|
|
302
|
+
content: "github.com";
|
|
281
303
|
display: block;
|
|
304
|
+
padding: 0.2em 0.75em 0.6em;
|
|
305
|
+
font-size: 12px;
|
|
306
|
+
line-height: 1.4;
|
|
307
|
+
font-weight: normal;
|
|
308
|
+
color: #6f6b64;
|
|
282
309
|
font-family:
|
|
283
|
-
system-ui,
|
|
284
310
|
-apple-system,
|
|
285
311
|
BlinkMacSystemFont,
|
|
286
|
-
"
|
|
287
|
-
Roboto,
|
|
288
|
-
Oxygen,
|
|
289
|
-
Ubuntu,
|
|
290
|
-
Cantarell,
|
|
291
|
-
"Open Sans",
|
|
312
|
+
"SF Pro Text",
|
|
292
313
|
"Helvetica Neue",
|
|
293
314
|
sans-serif;
|
|
294
|
-
&::after {
|
|
295
|
-
content: "github.com";
|
|
296
|
-
display: block;
|
|
297
|
-
font-weight: normal;
|
|
298
|
-
color: #777;
|
|
299
|
-
}
|
|
300
315
|
}
|
|
301
|
-
border-radius:
|
|
316
|
+
border-radius: 4px;
|
|
302
317
|
}
|
|
303
318
|
|
|
304
319
|
@media (min-width: 451px) {
|
|
@@ -3,23 +3,48 @@
|
|
|
3
3
|
padding-right: min(3vw, 26px);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
$
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
6
|
+
// Unified Linen Design Palette (Warm Paper & Terracotta Editorial System)
|
|
7
|
+
$accent: #a8452e;
|
|
8
|
+
$accentDark: #8c3623;
|
|
9
|
+
$accentSoft: rgba(168, 69, 46, 0.08);
|
|
10
|
+
$accentBorder: rgba(168, 69, 46, 0.28);
|
|
11
|
+
|
|
12
|
+
$bg: #ffffff;
|
|
13
|
+
$surface: #f7f6f2;
|
|
14
|
+
$surfaceAlt: #f0eee8;
|
|
15
|
+
|
|
16
|
+
$darkText: #22211f;
|
|
17
|
+
$grayerText: #56534e;
|
|
18
|
+
$metaText: #6f6b64;
|
|
19
|
+
$moreGrayText: #7c776f;
|
|
20
|
+
|
|
21
|
+
$borderSubtle: rgba(34, 33, 31, 0.06);
|
|
22
|
+
$borderColor: rgba(34, 33, 31, 0.1);
|
|
23
|
+
$borderStrong: rgba(34, 33, 31, 0.18);
|
|
24
|
+
|
|
25
|
+
// Legacy variable aliases mapped to the unified Linen palette
|
|
26
|
+
$green: $accent;
|
|
27
|
+
$linkColor: $accent;
|
|
28
|
+
$blue: $accent;
|
|
29
|
+
|
|
11
30
|
$postMetaFontSize: 13px;
|
|
12
31
|
$postItemGap: 20px;
|
|
13
|
-
$black: #
|
|
14
|
-
$gray3: #
|
|
15
|
-
$gray5: #
|
|
16
|
-
$gray7: #
|
|
17
|
-
$gray9: #
|
|
18
|
-
$graya: #
|
|
19
|
-
$grayb: #
|
|
20
|
-
$grayc: #
|
|
21
|
-
|
|
22
|
-
$
|
|
32
|
+
$black: #191816;
|
|
33
|
+
$gray3: #353330;
|
|
34
|
+
$gray5: #56534e;
|
|
35
|
+
$gray7: #736f68;
|
|
36
|
+
$gray9: #8f8a82;
|
|
37
|
+
$graya: #a39e95;
|
|
38
|
+
$grayb: #bbb6ad;
|
|
39
|
+
$grayc: #d0cbc2;
|
|
40
|
+
|
|
41
|
+
$radiusSm: 2px;
|
|
42
|
+
$radiusMd: 4px;
|
|
43
|
+
$radiusLg: 6px;
|
|
44
|
+
$radiusSheet: 8px;
|
|
45
|
+
|
|
46
|
+
$easeOut: cubic-bezier(0.22, 1, 0.36, 1);
|
|
47
|
+
|
|
23
48
|
$linkFontFamily:
|
|
24
49
|
SF Mono,
|
|
25
50
|
SFMono-Regular,
|
|
@@ -28,18 +53,20 @@ $linkFontFamily:
|
|
|
28
53
|
monospace;
|
|
29
54
|
$navbarMinHeight: 65px;
|
|
30
55
|
$commonPadding: min(3vw, 15px);
|
|
31
|
-
$postWidgetGap:
|
|
56
|
+
$postWidgetGap: 20px;
|
|
57
|
+
$siteMaxWidth: max(1032px, min(1192px, 68vw));
|
|
32
58
|
$postWidth: max(min(1192px, 68vw), 960px);
|
|
33
59
|
|
|
34
60
|
@mixin defaultFont {
|
|
35
61
|
font-family:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
62
|
+
-apple-system,
|
|
63
|
+
BlinkMacSystemFont,
|
|
64
|
+
"SF Pro Text",
|
|
65
|
+
"SF Pro Icons",
|
|
66
|
+
"Helvetica Neue",
|
|
39
67
|
Helvetica,
|
|
40
68
|
Arial,
|
|
41
|
-
sans-serif
|
|
42
|
-
serif;
|
|
69
|
+
sans-serif;
|
|
43
70
|
}
|
|
44
71
|
|
|
45
72
|
@mixin ellipsis($row_count: 1) {
|
|
@@ -79,6 +106,7 @@ $postWidth: max(min(1192px, 68vw), 960px);
|
|
|
79
106
|
"source han serif cn",
|
|
80
107
|
"STSongti-SC-Regular",
|
|
81
108
|
"Songti SC",
|
|
109
|
+
"Noto Serif SC",
|
|
82
110
|
"SimSun",
|
|
83
111
|
-apple-system,
|
|
84
112
|
BlinkMacSystemFont,
|
|
@@ -98,33 +126,36 @@ $postWidth: max(min(1192px, 68vw), 960px);
|
|
|
98
126
|
margin-bottom: -10px;
|
|
99
127
|
.tag-item {
|
|
100
128
|
background-color: transparent;
|
|
101
|
-
padding:
|
|
102
|
-
|
|
129
|
+
padding: 3px 6px;
|
|
130
|
+
border-radius: $radiusMd;
|
|
131
|
+
font-size: 13.5px;
|
|
103
132
|
color: $grayerText;
|
|
104
133
|
margin-bottom: 10px;
|
|
105
|
-
display: inline-
|
|
106
|
-
|
|
107
|
-
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
margin-right: 8px;
|
|
137
|
+
transition:
|
|
138
|
+
color 180ms $easeOut,
|
|
139
|
+
background-color 180ms $easeOut;
|
|
108
140
|
&:hover {
|
|
109
|
-
color:
|
|
110
|
-
background-color:
|
|
141
|
+
color: $accent;
|
|
142
|
+
background-color: $surface;
|
|
111
143
|
}
|
|
112
144
|
&::before {
|
|
113
145
|
content: "";
|
|
114
146
|
width: 11px;
|
|
115
147
|
height: 11px;
|
|
116
|
-
background-
|
|
117
|
-
|
|
118
|
-
|
|
148
|
+
background-color: currentColor;
|
|
149
|
+
-webkit-mask: url("../img/icons/tag.svg") no-repeat center / contain;
|
|
150
|
+
mask: url("../img/icons/tag.svg") no-repeat center / contain;
|
|
119
151
|
margin-right: 5px;
|
|
120
|
-
margin-bottom: -1px;
|
|
121
152
|
text-decoration: none;
|
|
122
153
|
display: inline-block;
|
|
123
|
-
opacity: 0.
|
|
124
|
-
transition: opacity
|
|
154
|
+
opacity: 0.42;
|
|
155
|
+
transition: opacity 180ms $easeOut;
|
|
125
156
|
}
|
|
126
157
|
&:hover::before {
|
|
127
|
-
opacity: 0.
|
|
158
|
+
opacity: 0.78;
|
|
128
159
|
}
|
|
129
160
|
}
|
|
130
161
|
}
|
|
@@ -198,11 +198,12 @@ function initAnchorHighlighter({
|
|
|
198
198
|
style.id = "anchor-highlight-style";
|
|
199
199
|
style.textContent = `
|
|
200
200
|
@keyframes anchorFlash {
|
|
201
|
-
0% { background-color: rgba(
|
|
201
|
+
0% { background-color: rgba(168, 69, 46, 0.14); }
|
|
202
202
|
100% { background-color: transparent; }
|
|
203
203
|
}
|
|
204
204
|
.${highlightClass} {
|
|
205
|
-
|
|
205
|
+
border-radius: 3px;
|
|
206
|
+
animation: anchorFlash ${duration}ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
206
207
|
}
|
|
207
208
|
`;
|
|
208
209
|
document.head.appendChild(style);
|
|
@@ -216,7 +217,7 @@ function initAnchorHighlighter({
|
|
|
216
217
|
}
|
|
217
218
|
|
|
218
219
|
initAnchorHighlighter({
|
|
219
|
-
duration:
|
|
220
|
+
duration: 1800,
|
|
220
221
|
});
|
|
221
222
|
|
|
222
223
|
function initImageGridSwitchers() {
|