hexo-theme-stellar 1.26.2 → 1.26.4
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/_config.yml +20 -15
- package/layout/_partial/cover/index.ejs +3 -3
- package/layout/_partial/head.ejs +1 -5
- package/layout/_partial/main/article/article_footer.ejs +1 -1
- package/layout/_partial/main/footer.ejs +2 -2
- package/layout/_partial/main/navbar/article_banner.ejs +54 -0
- package/layout/_partial/main/navbar/article_top_area.ejs +2 -2
- package/layout/_partial/main/navbar/author_banner.ejs +1 -1
- package/layout/_partial/main/navbar/dateinfo.ejs +9 -10
- package/layout/_partial/main/navbar/nav_tabs_blog.ejs +1 -1
- package/layout/_partial/main/navbar/nav_tabs_wiki.ejs +1 -1
- package/layout/_partial/main/post_list/post_card.ejs +1 -1
- package/layout/_partial/scripts/index.ejs +1 -5
- package/layout/_partial/sidebar/index.ejs +1 -1
- package/layout/_partial/sidebar/logo.ejs +3 -0
- package/layout/_partial/sidebar/menu.ejs +1 -7
- package/layout/archive.ejs +1 -1
- package/layout/layout.ejs +8 -0
- package/layout/page.ejs +1 -11
- package/package.json +1 -1
- package/scripts/generators/author.js +2 -1
- package/scripts/helpers/icon.js +2 -2
- package/scripts/tags/lib/link.js +2 -2
- package/scripts/tags/lib/note.js +1 -1
- package/source/css/_common/base.styl +4 -2
- package/source/css/_common/button.styl +31 -29
- package/source/css/_common/cap.styl +1 -1
- package/source/css/_common/device.styl +1 -1
- package/source/css/_common/html.styl +1 -0
- package/source/css/_common/input.styl +1 -1
- package/source/css/_common/title.styl +9 -8
- package/source/css/_common/toast.styl +1 -0
- package/source/css/_custom.styl +8 -4
- package/source/css/_defines/const.styl +2 -1
- package/source/css/_defines/theme.styl +6 -4
- package/source/css/_layout/layout.styl +3 -2
- package/source/css/_layout/list.styl +14 -9
- package/source/css/_layout/main.styl +19 -3
- package/source/css/_layout/md.styl +49 -85
- package/source/css/_layout/pages/archives.styl +3 -3
- package/source/css/_layout/partial/article-banner.styl +57 -0
- package/source/css/_layout/partial/article-footer.styl +15 -3
- package/source/css/_layout/partial/bread-nav.styl +22 -18
- package/source/css/_layout/partial/cover.styl +2 -11
- package/source/css/_layout/partial/footer.styl +2 -2
- package/source/css/_layout/partial/navbar.styl +16 -8
- package/source/css/_layout/partial/related.styl +5 -3
- package/source/css/_layout/sidebar/footer.styl +1 -0
- package/source/css/_layout/sidebar/logo.styl +3 -2
- package/source/css/_layout/sidebar/search.styl +4 -3
- package/source/css/_layout/sidebar/sidebar.styl +13 -10
- package/source/css/_layout/tag-plugins/banner.styl +23 -19
- package/source/css/_layout/tag-plugins/common.styl +4 -4
- package/source/css/_layout/tag-plugins/copy.styl +2 -1
- package/source/css/_layout/tag-plugins/folders.styl +4 -3
- package/source/css/_layout/tag-plugins/folding.styl +4 -2
- package/source/css/_layout/tag-plugins/hashtag.styl +2 -1
- package/source/css/_layout/tag-plugins/image.styl +1 -1
- package/source/css/_layout/tag-plugins/link.styl +1 -1
- package/source/css/_layout/tag-plugins/mark.styl +1 -1
- package/source/css/_layout/tag-plugins/note.styl +5 -3
- package/source/css/_layout/tag-plugins/poetry.styl +5 -5
- package/source/css/_layout/tag-plugins/quot.styl +3 -3
- package/source/css/_layout/tag-plugins/tabs.styl +4 -3
- package/source/css/_layout/tag-plugins/timeline.styl +24 -9
- package/source/css/_layout/widgets/ghuser.styl +1 -1
- package/source/css/_layout/widgets/markdown.styl +2 -2
- package/source/css/_layout/widgets/tagcloud.styl +3 -1
- package/source/css/_layout/widgets/timeline.styl +1 -1
- package/source/css/_layout/widgets/toc_common.styl +1 -5
- package/source/css/_layout/widgets/toc_wiki.styl +3 -3
- package/source/css/_layout/widgets/widgets.styl +2 -2
- package/source/css/_plugins/swiper.styl +1 -1
- package/source/css/_plugins/tianli_gpt.styl +2 -2
|
@@ -15,7 +15,7 @@ $color-text-s = saturation($color-text)
|
|
|
15
15
|
$color-text-l = lightness($color-text)
|
|
16
16
|
|
|
17
17
|
set_text_dark()
|
|
18
|
-
--text
|
|
18
|
+
--text: hsl($color-text-h, $color-text-s, 0)
|
|
19
19
|
--text-p1: hsl($color-text-h, $color-text-s, $color-text-l)
|
|
20
20
|
--text-p2: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 0.75)
|
|
21
21
|
--text-p3: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 1.25)
|
|
@@ -24,7 +24,7 @@ set_text_dark()
|
|
|
24
24
|
--text-code: hsl($color-code-h, $color-code-s, $color-code-l)
|
|
25
25
|
|
|
26
26
|
set_text_light()
|
|
27
|
-
--text
|
|
27
|
+
--text: hsl($color-text-h, $color-text-s, 100)
|
|
28
28
|
--text-p1: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 0.5)
|
|
29
29
|
--text-p2: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 0.75)
|
|
30
30
|
--text-p3: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 1.2)
|
|
@@ -38,8 +38,9 @@ set_text_light()
|
|
|
38
38
|
--alpha20: rgba(white, 0.2)
|
|
39
39
|
--alpha50: rgba(white, 0.5)
|
|
40
40
|
--alpha60: rgba(white, 0.6)
|
|
41
|
+
--alpha75: rgba(white, 0.75)
|
|
41
42
|
--alpha100: white
|
|
42
|
-
--sidebar-bg:
|
|
43
|
+
--sidebar-bg: hsl($color-block-h, $color-block-s, 90)
|
|
43
44
|
--block: hsl($color-block-h, $color-block-s, 95)
|
|
44
45
|
--block-border: hsl($color-block-h, $color-block-s, 90)
|
|
45
46
|
--block-hover: hsl($color-block-h, $color-block-s, 92)
|
|
@@ -56,8 +57,9 @@ set_darkmode()
|
|
|
56
57
|
--alpha20: rgba(black, 0.2)
|
|
57
58
|
--alpha50: rgba(black, 0.5)
|
|
58
59
|
--alpha60: rgba(black, 0.6)
|
|
60
|
+
--alpha75: rgba(black, 0.75)
|
|
59
61
|
--alpha100: black
|
|
60
|
-
--sidebar-bg:
|
|
62
|
+
--sidebar-bg: hsl($color-block-h, $color-block-s, 24)
|
|
61
63
|
set_text_light()
|
|
62
64
|
@media screen and (max-width: $device-mobile-max)
|
|
63
65
|
--site-bg: black
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
margin: auto
|
|
4
4
|
padding: 0 var(--gap-l)
|
|
5
5
|
justify-content: center
|
|
6
|
+
font-size: var(--fsp)
|
|
6
7
|
|
|
7
8
|
.l_body .l_left
|
|
8
9
|
z-index: 8
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
left: 0
|
|
28
29
|
width: 100%
|
|
29
30
|
height: 100%
|
|
30
|
-
background: rgba(black, 0.
|
|
31
|
+
background: rgba(black, 0.2)
|
|
31
32
|
z-index: 9
|
|
32
33
|
opacity 0
|
|
33
34
|
trans1 opacity
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
max-width: 100%
|
|
48
49
|
.l_body.mobile
|
|
49
50
|
.l_left
|
|
50
|
-
transition: transform .
|
|
51
|
+
transition: transform .38s ease-out
|
|
51
52
|
.l_body.mobile.sidebar
|
|
52
53
|
.l_left
|
|
53
54
|
transform: translateX(0px)
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
line-height: 1.2
|
|
12
12
|
font-size: $fs-h3
|
|
13
13
|
border-bottom: none
|
|
14
|
-
color: var(--text
|
|
14
|
+
color: var(--text)
|
|
15
15
|
trans1 color
|
|
16
16
|
@media screen and (max-width: $device-mobile)
|
|
17
17
|
font-size: $fs-h4
|
|
@@ -24,11 +24,17 @@
|
|
|
24
24
|
display: block
|
|
25
25
|
margin: 1rem 0
|
|
26
26
|
border-radius: $border-card
|
|
27
|
-
|
|
27
|
+
background: var(--card)
|
|
28
|
+
@media (prefers-color-scheme: dark)
|
|
29
|
+
&:hover
|
|
30
|
+
box-shadow: 0 0 4px -2px $color-theme, 0 0 24px -8px $color-theme
|
|
31
|
+
@media (prefers-color-scheme: light)
|
|
32
|
+
box-shadow: $boxshadow-card
|
|
33
|
+
hover-float()
|
|
28
34
|
trans1 all
|
|
29
35
|
overflow: hidden
|
|
30
36
|
z-index: 0
|
|
31
|
-
|
|
37
|
+
|
|
32
38
|
position: relative
|
|
33
39
|
.excerpt
|
|
34
40
|
margin: 1rem 0
|
|
@@ -56,11 +62,9 @@
|
|
|
56
62
|
height: 1.5rem
|
|
57
63
|
color: $c-red
|
|
58
64
|
|
|
59
|
-
.post-list .post-card:hover
|
|
60
|
-
img
|
|
61
|
-
|
|
62
|
-
filter: brightness(80%)
|
|
63
|
-
|
|
65
|
+
.post-list.post .post-card:hover
|
|
66
|
+
img
|
|
67
|
+
filter: brightness(50%)
|
|
64
68
|
|
|
65
69
|
// common article
|
|
66
70
|
.post-list .md-text
|
|
@@ -102,7 +106,8 @@
|
|
|
102
106
|
position: absolute
|
|
103
107
|
line-height: 1.2
|
|
104
108
|
width: 'calc(100% - %s * 2)' % 1rem
|
|
105
|
-
|
|
109
|
+
--text-banner: white
|
|
110
|
+
color: var(--text-banner)
|
|
106
111
|
&[position=top]
|
|
107
112
|
top: 0
|
|
108
113
|
background-image: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0))
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
margin-right: "calc(2 * %s + %s / 2)" % (var(--gap-l) var(--width-left))
|
|
7
7
|
@media screen and (min-width: $device-mobile-max)
|
|
8
8
|
padding-top: 8px
|
|
9
|
-
@media screen and (max-width: $device-mobile-max)
|
|
10
|
-
padding-top: 1rem
|
|
11
9
|
header
|
|
12
10
|
margin: 2rem 1rem 1rem
|
|
13
11
|
.logo-wrap
|
|
@@ -16,4 +14,22 @@
|
|
|
16
14
|
.l_body.index
|
|
17
15
|
.l_main
|
|
18
16
|
@media screen and (max-width: $device-mobile-max)
|
|
19
|
-
padding-top: 0
|
|
17
|
+
padding-top: 0
|
|
18
|
+
|
|
19
|
+
body>.sitebg
|
|
20
|
+
position fixed
|
|
21
|
+
top: 0
|
|
22
|
+
left: 0
|
|
23
|
+
right: 0
|
|
24
|
+
bottom: 0
|
|
25
|
+
background-size: cover
|
|
26
|
+
if hexo-config('style.site') && hexo-config('style.site.background-image')
|
|
27
|
+
background-image: convert(hexo-config('style.site.background-image'))
|
|
28
|
+
.siteblur
|
|
29
|
+
width: 100%
|
|
30
|
+
height: 100%
|
|
31
|
+
blur-effect()
|
|
32
|
+
if hexo-config('style.site') && hexo-config('style.site.blur-px')
|
|
33
|
+
--blur-px: convert(hexo-config('style.site.blur-px'))
|
|
34
|
+
if hexo-config('style.site') && hexo-config('style.site.blur-bg')
|
|
35
|
+
--blur-bg: convert(hexo-config('style.site.blur-bg'))
|
|
@@ -1,62 +1,35 @@
|
|
|
1
|
+
// 文本区域
|
|
1
2
|
.md-text
|
|
2
3
|
max-width: 100%
|
|
3
4
|
padding: 1rem
|
|
4
|
-
&:first-child
|
|
5
|
-
margin-top: 0
|
|
6
5
|
color: var(--text-p1)
|
|
7
|
-
line-height: 1.
|
|
6
|
+
line-height: 1.6
|
|
8
7
|
word-break: break-word
|
|
9
8
|
|
|
9
|
+
// 摘要
|
|
10
10
|
.md-text.excerpt
|
|
11
11
|
p
|
|
12
12
|
font-size: $fs-14
|
|
13
13
|
margin: 1em 0
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
margin-top: .5em
|
|
17
|
-
margin-bottom: 1em
|
|
18
|
-
line-height: 1.2
|
|
19
|
-
color: var(--text-p0)
|
|
20
|
-
|
|
15
|
+
// 正文区域
|
|
21
16
|
.md-text.content
|
|
22
17
|
position: relative
|
|
18
|
+
padding-top: 0
|
|
23
19
|
padding-bottom: 2rem
|
|
24
20
|
overflow: hidden
|
|
25
|
-
>:first-child:not(h1)
|
|
26
|
-
margin-top: 0
|
|
27
|
-
h1:not(:first-child)
|
|
28
|
-
margin-top: 1em
|
|
29
|
-
h2
|
|
30
|
-
margin-bottom: 1rem
|
|
31
|
-
h3,h4,h5,h6
|
|
32
|
-
margin-bottom: .5rem
|
|
33
|
-
h2,h3,h4,h5,h6
|
|
34
|
-
color: var(--text-p0)
|
|
35
|
-
padding-top: 1rem
|
|
36
|
-
line-height: 1.8
|
|
37
|
-
&:hover
|
|
38
|
-
a.headerlink:before
|
|
39
|
-
opacity: 1
|
|
40
|
-
blockquote, .tag-plugin
|
|
41
|
-
h2,h3,h4,h5,h6
|
|
42
|
-
margin-top: 0.25em
|
|
43
|
-
margin-bottom: 0.25em
|
|
44
|
-
padding-top: 0
|
|
45
21
|
|
|
46
22
|
.l_body[text-indent] .md-text.content
|
|
47
|
-
>p
|
|
48
|
-
text-indent: 'calc(%s * 2)' % var(--
|
|
23
|
+
>p
|
|
24
|
+
text-indent: 'calc(%s * 2)' % var(--fsp)
|
|
49
25
|
text-align: convert(hexo-config('style.text-align'))
|
|
50
|
-
a
|
|
51
|
-
text-indent: 0
|
|
52
26
|
h1,h2,h3,h4,h5,h6
|
|
53
27
|
text-align: center
|
|
28
|
+
a.headerlink
|
|
29
|
+
display: none
|
|
54
30
|
>h2:not([class])
|
|
55
31
|
border-bottom: none
|
|
56
32
|
|
|
57
|
-
.md-text.content:first-child
|
|
58
|
-
padding-top: 0
|
|
59
|
-
|
|
60
33
|
.md-text
|
|
61
34
|
ul:not(:last-child),
|
|
62
35
|
ol:not(:last-child)
|
|
@@ -64,7 +37,8 @@ h1.article-title
|
|
|
64
37
|
margin: 0
|
|
65
38
|
blockquote,ul,ol
|
|
66
39
|
p,ul,ol
|
|
67
|
-
|
|
40
|
+
--fsp: var(--fsp1)
|
|
41
|
+
font-size: var(--fsp)
|
|
68
42
|
line-height: 1.5
|
|
69
43
|
code
|
|
70
44
|
font-size: inherit
|
|
@@ -84,33 +58,45 @@ h1.article-title
|
|
|
84
58
|
|
|
85
59
|
// titles
|
|
86
60
|
.md-text.content
|
|
61
|
+
h1,h2,h3,h4,h5,h6
|
|
62
|
+
margin-bottom: var(--gap-p)
|
|
63
|
+
color: var(--text)
|
|
64
|
+
line-height: 1.8
|
|
65
|
+
blockquote, .tag-plugin
|
|
66
|
+
h2,h3,h4,h5,h6
|
|
67
|
+
margin-top: 0.25em
|
|
68
|
+
margin-bottom: 0.25em
|
|
69
|
+
|
|
70
|
+
a.headerlink
|
|
71
|
+
background: $color-theme
|
|
72
|
+
border-radius: 2px
|
|
73
|
+
margin-right: 8px
|
|
74
|
+
trans1 background
|
|
75
|
+
a.headerlink:hover
|
|
76
|
+
background: $color-hover
|
|
87
77
|
a.headerlink:before
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
78
|
+
content: ''
|
|
79
|
+
color: white
|
|
80
|
+
font-weight: 700
|
|
81
|
+
padding: 0 2px
|
|
82
|
+
font-size: $fs-12
|
|
92
83
|
h2
|
|
93
|
-
margin-top:
|
|
94
|
-
border-bottom: 1px solid var(--block-border)
|
|
84
|
+
margin-top: 'calc(%s + 1rem)' % var(--gap-p)
|
|
95
85
|
font-weight: 400
|
|
86
|
+
a.headerlink:before
|
|
87
|
+
content: ':'
|
|
96
88
|
h3
|
|
97
|
-
margin-top:
|
|
89
|
+
margin-top: 'calc(%s + 0.75rem)' % var(--gap-p)
|
|
98
90
|
font-weight: 400
|
|
99
91
|
h4,h5,h6
|
|
92
|
+
margin-top: 'calc(%s + 0.5rem)' % var(--gap-p)
|
|
100
93
|
font-weight: 500
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
margin-top: -0.5rem
|
|
105
|
-
h3+h4
|
|
106
|
-
margin-top: -0.5rem
|
|
107
|
-
h4+h5
|
|
108
|
-
margin-top: -0.5rem
|
|
109
|
-
h5+h6
|
|
110
|
-
margin-top: -0.5rem
|
|
94
|
+
|
|
95
|
+
.md-text.content:first-child .tag-plugin:first-child
|
|
96
|
+
margin-top: 0
|
|
111
97
|
|
|
112
98
|
.md-text p
|
|
113
|
-
font-size: var(--
|
|
99
|
+
font-size: var(--fsp)
|
|
114
100
|
|
|
115
101
|
.md-text pre
|
|
116
102
|
-webkit-font-smoothing: auto
|
|
@@ -133,35 +119,13 @@ h1.article-title
|
|
|
133
119
|
.md-text
|
|
134
120
|
p:not([class]), li:not([class])
|
|
135
121
|
a:not([class])
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
content: ''
|
|
142
|
-
position: absolute
|
|
143
|
-
border-radius: 2px
|
|
144
|
-
bottom: 0
|
|
145
|
-
left: 0
|
|
146
|
-
right: 0
|
|
147
|
-
height: 1px
|
|
148
|
-
if hexo-config('style.link.underline') == true
|
|
149
|
-
opacity: 0.8
|
|
150
|
-
else
|
|
151
|
-
opacity: 0
|
|
152
|
-
background: var(--theme-link)
|
|
153
|
-
trans1: all
|
|
122
|
+
padding: 0 2px
|
|
123
|
+
margin: 0 -2px
|
|
124
|
+
border-radius: 2px
|
|
125
|
+
trans1 all
|
|
126
|
+
text-decoration: underline
|
|
154
127
|
&:hover
|
|
155
|
-
|
|
156
|
-
color: var(--theme-link)
|
|
157
|
-
z-index 0
|
|
158
|
-
&:before
|
|
159
|
-
height: 100%
|
|
160
|
-
opacity: 0.2
|
|
161
|
-
z-index -1
|
|
162
|
-
bottom: 0
|
|
163
|
-
left: -2px
|
|
164
|
-
right: -2px
|
|
128
|
+
color: $color-hover
|
|
165
129
|
&:has(img)
|
|
166
|
-
|
|
167
|
-
|
|
130
|
+
text-decoration: none
|
|
131
|
+
padding: 0
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
color: var(--text-p4)
|
|
35
35
|
&:hover
|
|
36
36
|
border-bottom: 1px solid $color-theme
|
|
37
|
-
color: var(--text
|
|
37
|
+
color: var(--text)
|
|
38
38
|
time
|
|
39
39
|
color: $color-theme
|
|
40
40
|
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
font-size: $fs-12
|
|
61
61
|
&:hover
|
|
62
62
|
background: var(--block-hover)
|
|
63
|
-
color: var(--text
|
|
63
|
+
color: var(--text)
|
|
64
64
|
.badge
|
|
65
65
|
opacity: 1
|
|
66
66
|
color: $color-theme
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
&:before
|
|
91
91
|
color $color-theme
|
|
92
92
|
opacity: 1
|
|
93
|
-
color: var(--text
|
|
93
|
+
color: var(--text)
|
|
94
94
|
background: var(--block-hover)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.article.banner
|
|
2
|
+
--text-banner: var(--text)
|
|
3
|
+
background: var(--block)
|
|
4
|
+
margin: 0
|
|
5
|
+
height: unset
|
|
6
|
+
|
|
7
|
+
.article.banner
|
|
8
|
+
.bg+.content
|
|
9
|
+
min-height: 240px
|
|
10
|
+
--text-banner: white
|
|
11
|
+
--button-hover-bg: rgba(white, 0.25)
|
|
12
|
+
|
|
13
|
+
.article.banner .content
|
|
14
|
+
.top
|
|
15
|
+
align-items: flex-start
|
|
16
|
+
margin: 1rem 'calc(1rem - 4px)'
|
|
17
|
+
.title
|
|
18
|
+
font-size: $fs-h1
|
|
19
|
+
color: var(--text-banner)
|
|
20
|
+
.bottom
|
|
21
|
+
padding: 1.5rem 1rem
|
|
22
|
+
h1
|
|
23
|
+
line-height: 1.2
|
|
24
|
+
margin: 0
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
// 动画配置
|
|
30
|
+
.article.banner
|
|
31
|
+
.bg+.content
|
|
32
|
+
trans1 all
|
|
33
|
+
--blur-bg: rgba(black, 0.1)
|
|
34
|
+
--blur-px: 0px
|
|
35
|
+
--blur-sat: 100%
|
|
36
|
+
background: var(--blur-bg)
|
|
37
|
+
@supports ((-webkit-backdrop-filter:blur(var(--blur-px))) or (backdrop-filter:blur(var(--blur-px))))
|
|
38
|
+
background: var(--blur-bg)
|
|
39
|
+
backdrop-filter: saturate(var(--blur-sat)) blur(var(--blur-px))
|
|
40
|
+
-webkit-backdrop-filter: saturate(var(--blur-sat)) blur(var(--blur-px))
|
|
41
|
+
&:hover
|
|
42
|
+
.bg+.content
|
|
43
|
+
--blur-bg: rgba(black, 0.1)
|
|
44
|
+
--blur-px: 20px
|
|
45
|
+
--blur-sat: 150%
|
|
46
|
+
|
|
47
|
+
.article.banner
|
|
48
|
+
--button-hover-bg: rgba(black, 0.05)
|
|
49
|
+
set_darkmode()
|
|
50
|
+
.article.banner
|
|
51
|
+
--button-hover-bg: rgba(white, 0.15)
|
|
52
|
+
|
|
53
|
+
if hexo-config('style.darkmode') == 'auto'
|
|
54
|
+
@media (prefers-color-scheme: dark)
|
|
55
|
+
set_darkmode()
|
|
56
|
+
if hexo-config('style.darkmode') == 'always'
|
|
57
|
+
set_darkmode()
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
color: var(--text-p2)
|
|
12
12
|
font-size: $fs-h4
|
|
13
13
|
.body
|
|
14
|
+
--fsp: var(--fsp2)
|
|
14
15
|
input.copy-area
|
|
15
16
|
margin: 0.75rem 0
|
|
16
17
|
padding: 0
|
|
@@ -24,9 +25,16 @@
|
|
|
24
25
|
margin: 0
|
|
25
26
|
overflow: hidden
|
|
26
27
|
.post-title
|
|
27
|
-
margin:
|
|
28
|
+
margin: 2px 0
|
|
28
29
|
line-height: 1.2
|
|
29
30
|
word-break: break-all
|
|
31
|
+
p
|
|
32
|
+
--fsp: var(--fsp2)
|
|
33
|
+
a
|
|
34
|
+
text-decoration: none
|
|
35
|
+
color: unset
|
|
36
|
+
&:hover
|
|
37
|
+
text-decoration: underline
|
|
30
38
|
section+section
|
|
31
39
|
margin-top: 1rem
|
|
32
40
|
padding-top: 1rem
|
|
@@ -43,11 +51,15 @@
|
|
|
43
51
|
border-radius: 4px
|
|
44
52
|
box-shadow: 0 4px 8px 0px rgba(0, 0, 0, 0.1), 0 0 32px 0px rgba(0, 0, 0, 0.1)
|
|
45
53
|
overflow: hidden
|
|
46
|
-
trans1
|
|
54
|
+
trans1 all
|
|
55
|
+
height: 0
|
|
56
|
+
margin: 0 auto
|
|
57
|
+
transform: scale(0.01)
|
|
47
58
|
img
|
|
48
59
|
object-fit: contain
|
|
49
60
|
|
|
50
61
|
.md-text .article-footer .qrcode.display
|
|
51
62
|
margin: 2rem auto 1rem
|
|
52
63
|
height: 128px !important
|
|
53
|
-
|
|
64
|
+
opacity: 1 !important
|
|
65
|
+
transform: scale(1)
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
// 面包屑导航
|
|
2
2
|
.bread-nav
|
|
3
|
-
padding: 0.25rem 1rem 0
|
|
4
|
-
color: var(--text-p3)
|
|
5
3
|
font-weight: 500
|
|
6
4
|
display: flex
|
|
7
5
|
justify-content: space-between
|
|
8
|
-
|
|
6
|
+
color: var(--text-banner)
|
|
7
|
+
.flex-row
|
|
9
8
|
display: flex
|
|
10
|
-
align-items:
|
|
9
|
+
align-items: baseline
|
|
11
10
|
flex-direction: row
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
a
|
|
12
|
+
color: var(--text-banner)
|
|
13
|
+
padding: 4px
|
|
14
|
+
border-radius: 2px
|
|
15
|
+
&:hover
|
|
16
|
+
background: var(--button-hover-bg)
|
|
17
|
+
span
|
|
18
|
+
color: var(--text-banner)
|
|
19
|
+
span.sep
|
|
20
|
+
opacity 0.5
|
|
21
|
+
margin: 0
|
|
22
|
+
span.text
|
|
23
|
+
padding: 4px
|
|
24
|
+
|
|
20
25
|
div#post-meta
|
|
21
|
-
|
|
26
|
+
span.sep:before
|
|
27
|
+
content: '|'
|
|
22
28
|
span.updated
|
|
23
29
|
visibility: hidden
|
|
24
30
|
&:hover
|
|
@@ -35,15 +41,13 @@
|
|
|
35
41
|
a
|
|
36
42
|
display: flex
|
|
37
43
|
align-items: center
|
|
38
|
-
color: var(--text-
|
|
44
|
+
color: var(--text-banner)
|
|
39
45
|
svg
|
|
40
46
|
margin-right: 4px
|
|
41
47
|
&.bold
|
|
42
48
|
font-weight: 600
|
|
43
|
-
color: var(--text-
|
|
49
|
+
color: var(--text-banner)
|
|
44
50
|
span
|
|
45
51
|
margin-left: 4px
|
|
46
52
|
&:hover
|
|
47
|
-
|
|
48
|
-
a+a
|
|
49
|
-
margin-top: 8px
|
|
53
|
+
opacity 1
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
flex-direction: column
|
|
17
17
|
justify-content: center
|
|
18
18
|
align-items: center
|
|
19
|
+
font-size: var(--fsp)
|
|
19
20
|
.cover-title
|
|
20
21
|
font-weight: 700
|
|
21
22
|
font-size: 1.5rem
|
|
22
23
|
margin: 1rem 0
|
|
23
24
|
line-height: 1.2
|
|
24
|
-
color: var(--text
|
|
25
|
+
color: var(--text)
|
|
25
26
|
.description
|
|
26
27
|
margin: 1rem 0
|
|
27
28
|
.start-wrap
|
|
@@ -48,16 +49,6 @@
|
|
|
48
49
|
border-radius: 2rem
|
|
49
50
|
|
|
50
51
|
|
|
51
|
-
.l_cover.post .cover-wrap
|
|
52
|
-
z-index: 1
|
|
53
|
-
.article-title
|
|
54
|
-
text-align: center
|
|
55
|
-
padding: 1rem
|
|
56
|
-
margin: 1em 0 0 0
|
|
57
|
-
@media screen and (min-width: $device-2k)
|
|
58
|
-
font-size: 3rem
|
|
59
|
-
|
|
60
|
-
|
|
61
52
|
.l_cover.wiki .cover-wrap
|
|
62
53
|
max-width: $device-mobile
|
|
63
54
|
.preview
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
.nav-wrap
|
|
2
|
-
position: sticky
|
|
3
|
-
position: -webkit-sticky
|
|
4
|
-
margin-top: -0.5rem
|
|
5
|
-
top: -2px
|
|
6
|
-
background: var(--site-bg)
|
|
7
2
|
padding: 0 1rem
|
|
8
3
|
z-index: 8
|
|
9
|
-
|
|
4
|
+
top: 0
|
|
5
|
+
background: var(--site-bg)
|
|
6
|
+
if hexo-config('style.site') && hexo-config('style.site.background-image')
|
|
7
|
+
position inherit
|
|
8
|
+
background: none
|
|
9
|
+
else
|
|
10
|
+
position: sticky
|
|
11
|
+
position: -webkit-sticky
|
|
12
|
+
margin-bottom: 1px
|
|
13
|
+
margin-top: -8px
|
|
10
14
|
&:after
|
|
11
15
|
content: ''
|
|
12
16
|
width: 'calc(100% - 2 * %s)' % 1rem
|
|
@@ -17,15 +21,19 @@
|
|
|
17
21
|
left: 1rem
|
|
18
22
|
background: var(--block-hover)
|
|
19
23
|
|
|
20
|
-
nav.
|
|
24
|
+
nav.sub
|
|
21
25
|
display: flex
|
|
22
26
|
overflow: scroll visible
|
|
23
27
|
scrollbar(0, 0)
|
|
28
|
+
font-size: $fs-14
|
|
24
29
|
>p
|
|
25
30
|
margin: 0
|
|
26
31
|
a
|
|
27
32
|
padding: .25rem 0.75rem
|
|
28
|
-
|
|
33
|
+
if hexo-config('style.site') && hexo-config('style.site.background-image')
|
|
34
|
+
margin: 10px 0.25rem 8px 0
|
|
35
|
+
else
|
|
36
|
+
margin: 10px 0.25rem 8px 0.25rem
|
|
29
37
|
line-height: 2
|
|
30
38
|
color: var(--text-p3)
|
|
31
39
|
border-radius: $border-button
|
|
@@ -31,7 +31,8 @@ article.md-text.content+.related-wrap
|
|
|
31
31
|
.title
|
|
32
32
|
color: var(--text-p1)
|
|
33
33
|
font-weight: 500
|
|
34
|
-
|
|
34
|
+
--fsp: var(--fsp1)
|
|
35
|
+
font-size: var(--fsp)
|
|
35
36
|
trans2 color border
|
|
36
37
|
position: relative
|
|
37
38
|
padding-bottom: 2px
|
|
@@ -39,7 +40,8 @@ article.md-text.content+.related-wrap
|
|
|
39
40
|
line-height: 1.6
|
|
40
41
|
.excerpt
|
|
41
42
|
color: var(--text-p3)
|
|
42
|
-
|
|
43
|
+
--fsp: var(--fsp3)
|
|
44
|
+
font-size: var(--fsp)
|
|
43
45
|
margin-top: 0.5rem
|
|
44
46
|
display: -webkit-box
|
|
45
47
|
-webkit-box-orient: vertical
|
|
@@ -65,7 +67,7 @@ article.md-text.content+.related-wrap
|
|
|
65
67
|
padding: 1rem 0
|
|
66
68
|
.note
|
|
67
69
|
margin-bottom: 0.75rem
|
|
68
|
-
font-size: $fs-
|
|
70
|
+
font-size: $fs-13
|
|
69
71
|
color: var(--text-p4)
|
|
70
72
|
font-weight: 500
|
|
71
73
|
a
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
height: 48px
|
|
11
11
|
margin-right: 1rem
|
|
12
12
|
border-radius: 4px
|
|
13
|
+
flex-shrink: 0
|
|
13
14
|
a
|
|
14
15
|
color: inherit
|
|
15
16
|
display: flex
|
|
@@ -56,14 +57,14 @@
|
|
|
56
57
|
animation-timing-function: linear
|
|
57
58
|
|
|
58
59
|
a.title
|
|
59
|
-
font-size: 1.
|
|
60
|
+
font-size: 1.5rem
|
|
60
61
|
font-weight: 900
|
|
61
62
|
color: inherit
|
|
62
63
|
line-height: 1.2
|
|
63
64
|
display: block
|
|
64
65
|
position: relative
|
|
65
66
|
.main
|
|
66
|
-
color: var(--text
|
|
67
|
+
color: var(--text)
|
|
67
68
|
.sub
|
|
68
69
|
color: var(--text-p1)
|
|
69
70
|
trans2 opacity transform
|