hexo-theme-linen 1.0.52 → 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 +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 +70 -52
- package/source/linen-theme/css/vars.scss +66 -35
- package/source/linen-theme/js/linen.js +4 -3
|
@@ -5,24 +5,22 @@
|
|
|
5
5
|
background-color: #fff;
|
|
6
6
|
background-size: cover;
|
|
7
7
|
background-position: center;
|
|
8
|
+
border: 1px solid rgba(34, 33, 31, 0.1);
|
|
8
9
|
border-radius: 4px;
|
|
9
10
|
overflow: hidden;
|
|
10
11
|
font-family:
|
|
11
|
-
system-ui,
|
|
12
12
|
-apple-system,
|
|
13
13
|
BlinkMacSystemFont,
|
|
14
|
-
"
|
|
15
|
-
Roboto,
|
|
16
|
-
Oxygen,
|
|
17
|
-
Ubuntu,
|
|
18
|
-
Cantarell,
|
|
19
|
-
"Open Sans",
|
|
14
|
+
"SF Pro Text",
|
|
20
15
|
"Helvetica Neue",
|
|
21
16
|
sans-serif;
|
|
22
17
|
margin-bottom: 1.2rem;
|
|
23
18
|
cursor: pointer;
|
|
24
|
-
box-shadow: rgba(
|
|
25
|
-
transition:
|
|
19
|
+
box-shadow: 0 1px 2px rgba(34, 33, 31, 0.04);
|
|
20
|
+
transition:
|
|
21
|
+
border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
22
|
+
box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
23
|
+
transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
26
24
|
text-decoration: none;
|
|
27
25
|
.cover-img {
|
|
28
26
|
width: 6rem;
|
|
@@ -44,21 +42,21 @@
|
|
|
44
42
|
background-image: linear-gradient(
|
|
45
43
|
to right,
|
|
46
44
|
rgba(255, 255, 255, 1),
|
|
47
|
-
rgba(255, 255, 255, 0.
|
|
48
|
-
rgba(255, 255, 255, 0.
|
|
49
|
-
rgba(255, 255, 255, 0.
|
|
45
|
+
rgba(255, 255, 255, 0.92),
|
|
46
|
+
rgba(255, 255, 255, 0.86),
|
|
47
|
+
rgba(255, 255, 255, 0.2)
|
|
50
48
|
);
|
|
51
49
|
backdrop-filter: blur(0.1rem);
|
|
52
|
-
padding: 0 0.
|
|
50
|
+
padding: 0 0.85rem;
|
|
53
51
|
display: flex;
|
|
54
52
|
flex-direction: column;
|
|
55
53
|
justify-content: space-evenly;
|
|
56
54
|
font-family: inherit;
|
|
57
55
|
.link-title {
|
|
58
56
|
font-family: inherit;
|
|
59
|
-
font-weight:
|
|
60
|
-
font-size: max(min(4.5vw, 1.
|
|
61
|
-
color: #
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
font-size: max(min(4.5vw, 1.05em), 14.5px);
|
|
59
|
+
color: #22211f;
|
|
62
60
|
white-space: nowrap;
|
|
63
61
|
overflow: hidden;
|
|
64
62
|
text-overflow: ellipsis;
|
|
@@ -66,19 +64,23 @@
|
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
&:hover {
|
|
69
|
-
|
|
67
|
+
border-color: rgba(168, 69, 46, 0.28);
|
|
68
|
+
box-shadow: 0 6px 18px rgba(34, 33, 31, 0.08);
|
|
69
|
+
transform: translateY(-1px);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.xhs-link:hover {
|
|
74
|
-
|
|
74
|
+
border-color: rgba(168, 69, 46, 0.28);
|
|
75
|
+
box-shadow: 0 6px 18px rgba(34, 33, 31, 0.08);
|
|
76
|
+
transform: translateY(-1px);
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
.shared-link {
|
|
78
80
|
.link-content .link-desc {
|
|
79
|
-
color: #
|
|
80
|
-
font-size: max(min(2.5vw, 0.
|
|
81
|
-
line-height: 1.
|
|
81
|
+
color: #6f6b64;
|
|
82
|
+
font-size: max(min(2.5vw, 0.85rem), 12.5px);
|
|
83
|
+
line-height: 1.2;
|
|
82
84
|
overflow: hidden;
|
|
83
85
|
text-overflow: ellipsis;
|
|
84
86
|
white-space: nowrap;
|
|
@@ -115,25 +117,23 @@
|
|
|
115
117
|
width: calc((100% - 24px) / 4);
|
|
116
118
|
margin-right: 8px;
|
|
117
119
|
background-color: #fff;
|
|
120
|
+
border: 1px solid rgba(34, 33, 31, 0.1);
|
|
118
121
|
border-radius: 4px;
|
|
119
|
-
box-shadow: rgba(
|
|
122
|
+
box-shadow: 0 1px 2px rgba(34, 33, 31, 0.04);
|
|
120
123
|
overflow: hidden;
|
|
121
124
|
color: unset;
|
|
122
125
|
margin-left: 0;
|
|
123
126
|
margin-bottom: 1.2rem;
|
|
124
127
|
font-family:
|
|
125
|
-
system-ui,
|
|
126
128
|
-apple-system,
|
|
127
129
|
BlinkMacSystemFont,
|
|
128
|
-
"
|
|
129
|
-
Roboto,
|
|
130
|
-
Oxygen,
|
|
131
|
-
Ubuntu,
|
|
132
|
-
Cantarell,
|
|
133
|
-
"Open Sans",
|
|
130
|
+
"SF Pro Text",
|
|
134
131
|
"Helvetica Neue",
|
|
135
132
|
sans-serif;
|
|
136
|
-
transition:
|
|
133
|
+
transition:
|
|
134
|
+
border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
135
|
+
box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
136
|
+
transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
137
137
|
|
|
138
138
|
&:visited,
|
|
139
139
|
&:active {
|
|
@@ -256,12 +256,18 @@
|
|
|
256
256
|
width: 100%;
|
|
257
257
|
max-width: 100%;
|
|
258
258
|
display: inline-block;
|
|
259
|
-
background-color:
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
background-color: #f7f6f2;
|
|
260
|
+
border: 1px solid rgba(34, 33, 31, 0.1);
|
|
261
|
+
box-shadow: 0 1px 2px rgba(34, 33, 31, 0.04);
|
|
262
|
+
transition:
|
|
263
|
+
border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
264
|
+
box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
265
|
+
transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
262
266
|
overflow: hidden;
|
|
263
267
|
&:hover {
|
|
264
|
-
|
|
268
|
+
border-color: rgba(168, 69, 46, 0.28);
|
|
269
|
+
box-shadow: 0 6px 18px rgba(34, 33, 31, 0.08);
|
|
270
|
+
transform: translateY(-1px);
|
|
265
271
|
}
|
|
266
272
|
.lazyload-outer-wrap {
|
|
267
273
|
margin: 0;
|
|
@@ -272,33 +278,45 @@
|
|
|
272
278
|
height: auto;
|
|
273
279
|
aspect-ratio: 2 / 1;
|
|
274
280
|
background-color: #fff;
|
|
281
|
+
border-bottom: 1px solid rgba(34, 33, 31, 0.06);
|
|
275
282
|
}
|
|
276
283
|
.title {
|
|
277
|
-
color:
|
|
278
|
-
font-size:
|
|
279
|
-
|
|
280
|
-
|
|
284
|
+
color: #22211f;
|
|
285
|
+
font-size: 12.5px;
|
|
286
|
+
line-height: 1.45;
|
|
287
|
+
margin: 0.5em 0.75em 0;
|
|
288
|
+
font-weight: 600;
|
|
289
|
+
display: -webkit-box;
|
|
290
|
+
line-clamp: 2;
|
|
291
|
+
-webkit-line-clamp: 2;
|
|
292
|
+
/*! autoprefixer: ignore next */
|
|
293
|
+
-webkit-box-orient: vertical;
|
|
294
|
+
/*! autoprefixer: on */
|
|
295
|
+
overflow: hidden;
|
|
296
|
+
text-overflow: ellipsis;
|
|
297
|
+
font-family:
|
|
298
|
+
-apple-system,
|
|
299
|
+
BlinkMacSystemFont,
|
|
300
|
+
"SF Pro Text",
|
|
301
|
+
"Helvetica Neue",
|
|
302
|
+
sans-serif;
|
|
303
|
+
}
|
|
304
|
+
&::after {
|
|
305
|
+
content: "github.com";
|
|
281
306
|
display: block;
|
|
307
|
+
padding: 0.2em 0.75em 0.6em;
|
|
308
|
+
font-size: 12px;
|
|
309
|
+
line-height: 1.4;
|
|
310
|
+
font-weight: normal;
|
|
311
|
+
color: #6f6b64;
|
|
282
312
|
font-family:
|
|
283
|
-
system-ui,
|
|
284
313
|
-apple-system,
|
|
285
314
|
BlinkMacSystemFont,
|
|
286
|
-
"
|
|
287
|
-
Roboto,
|
|
288
|
-
Oxygen,
|
|
289
|
-
Ubuntu,
|
|
290
|
-
Cantarell,
|
|
291
|
-
"Open Sans",
|
|
315
|
+
"SF Pro Text",
|
|
292
316
|
"Helvetica Neue",
|
|
293
317
|
sans-serif;
|
|
294
|
-
&::after {
|
|
295
|
-
content: "github.com";
|
|
296
|
-
display: block;
|
|
297
|
-
font-weight: normal;
|
|
298
|
-
color: #777;
|
|
299
|
-
}
|
|
300
318
|
}
|
|
301
|
-
border-radius:
|
|
319
|
+
border-radius: 4px;
|
|
302
320
|
}
|
|
303
321
|
|
|
304
322
|
@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() {
|