hexo-theme-stellar 1.26.8 → 1.28.0
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 +139 -95
- package/_data/icons.yml +8 -1
- package/_data/widgets.yml +19 -7
- package/languages/en.yml +5 -2
- package/languages/zh-CN.yml +4 -1
- package/languages/zh-TW.yml +5 -2
- package/layout/404.ejs +1 -1
- package/layout/_partial/{plugins/comments → comments}/artalk/script.ejs +2 -2
- package/layout/_partial/{plugins/comments/utterances → comments/giscus}/layout.ejs +5 -2
- package/layout/_partial/{plugins/comments → comments}/giscus/script.ejs +1 -4
- package/layout/_partial/{plugins/comments → comments}/layout.ejs +14 -9
- package/layout/_partial/{plugins/comments → comments}/twikoo/script.ejs +1 -1
- package/layout/_partial/comments/waline/script.ejs +43 -0
- package/layout/_partial/head.ejs +2 -2
- package/layout/_partial/main/article/article_footer.ejs +1 -1
- package/layout/_partial/main/footer.ejs +1 -1
- package/layout/_partial/main/navbar/article_banner.ejs +81 -17
- package/layout/_partial/main/navbar/ghinfo.ejs +1 -1
- package/layout/_partial/main/post_list/post_card.ejs +1 -1
- package/layout/_partial/menubtn.ejs +6 -3
- package/layout/_partial/scripts/defines.ejs +31 -0
- package/layout/_partial/scripts/services.ejs +29 -0
- package/layout/_partial/scripts/sidebar.ejs +25 -0
- package/layout/_partial/scripts/utils.ejs +158 -0
- package/layout/_partial/scripts.ejs +32 -0
- package/layout/_partial/sidebar/{index.ejs → index_leftbar.ejs} +22 -20
- package/layout/_partial/sidebar/index_rightbar.ejs +84 -0
- package/layout/_partial/sidebar/logo.ejs +1 -1
- package/layout/_partial/widgets/author.ejs +37 -0
- package/layout/_partial/widgets/components/edit.ejs +24 -0
- package/layout/_partial/widgets/ghissues.ejs +1 -1
- package/layout/_partial/widgets/ghrepo.ejs +2 -2
- package/layout/_partial/widgets/ghuser.ejs +2 -2
- package/layout/_partial/widgets/markdown.ejs +1 -1
- package/layout/_partial/widgets/recent.ejs +1 -5
- package/layout/_partial/widgets/related.ejs +1 -1
- package/layout/_partial/widgets/timeline.ejs +1 -1
- package/layout/_partial/widgets/toc.ejs +38 -85
- package/layout/_partial/widgets/tree.ejs +71 -0
- package/layout/_plugins/copycode.ejs +13 -0
- package/layout/_plugins/fancybox.ejs +32 -0
- package/layout/_plugins/heti.ejs +21 -0
- package/layout/_plugins/index.ejs +24 -0
- package/layout/_plugins/lazyload.ejs +21 -0
- package/layout/{_partial/plugins/parser/mathjax/script.ejs → _plugins/mathjax.ejs} +1 -1
- package/layout/_plugins/mermaid.ejs +29 -0
- package/layout/_plugins/preload.ejs +9 -0
- package/layout/_plugins/scrollreveal.ejs +15 -0
- package/layout/_plugins/search/algolia_search.ejs +13 -0
- package/layout/_plugins/search/local_search.ejs +8 -0
- package/layout/_plugins/swiper.ejs +26 -0
- package/layout/_plugins/tianli_gpt.ejs +14 -0
- package/layout/archive.ejs +9 -2
- package/layout/layout.ejs +9 -6
- package/layout/page.ejs +2 -10
- package/package.json +1 -1
- package/scripts/events/lib/doc_tree.js +8 -8
- package/scripts/events/lib/topic_tree.js +3 -0
- package/scripts/generators/author.js +3 -2
- package/scripts/helpers/parse_config.js +6 -5
- package/scripts/tags/lib/albums.js +2 -2
- package/scripts/tags/lib/button.js +1 -1
- package/scripts/tags/lib/emoji.js +1 -1
- package/scripts/tags/lib/friends.js +1 -1
- package/scripts/tags/lib/icon.js +10 -5
- package/scripts/tags/lib/link.js +2 -2
- package/scripts/tags/lib/md.js +1 -1
- package/scripts/tags/lib/posters.js +2 -2
- package/scripts/tags/lib/sites.js +1 -1
- package/scripts/tags/lib/timeline.js +2 -2
- package/source/css/_common/button.styl +8 -2
- package/source/css/_common/device.styl +39 -12
- package/source/css/_custom.styl +15 -16
- package/source/css/_defines/const.styl +1 -1
- package/source/css/_defines/func.styl +14 -4
- package/source/css/_defines/theme.styl +38 -27
- package/source/css/_layout/layout.styl +62 -27
- package/source/css/_layout/list.styl +1 -1
- package/source/css/_layout/main.styl +1 -4
- package/source/css/_layout/md.styl +16 -2
- package/source/css/_layout/pages/archives.styl +4 -0
- package/source/css/_layout/partial/article-banner.styl +14 -15
- package/source/css/_layout/partial/article-footer.styl +0 -5
- package/source/css/_layout/partial/footer.styl +9 -6
- package/source/css/_layout/partial/related.styl +4 -0
- package/source/css/_layout/sidebar/footer.styl +3 -1
- package/source/css/_layout/sidebar/logo.styl +3 -1
- package/source/css/_layout/sidebar/menu.styl +1 -1
- package/source/css/_layout/sidebar/nav-area.styl +1 -1
- package/source/css/_layout/sidebar/sidebar.styl +25 -16
- package/source/css/_layout/tag-plugins/banner.styl +1 -8
- package/source/css/_layout/tag-plugins/common.styl +10 -5
- package/source/css/_layout/tag-plugins/emoji.styl +1 -0
- package/source/css/_layout/tag-plugins/icon.styl +6 -0
- package/source/css/_layout/tag-plugins/image.styl +1 -1
- package/source/css/_layout/tag-plugins/quot.styl +1 -1
- package/source/css/_layout/tag-plugins/timeline.styl +26 -27
- package/source/css/_layout/widgets/ghrepo.styl +1 -1
- package/source/css/_layout/widgets/ghuser.styl +9 -5
- package/source/css/_layout/widgets/list.styl +4 -3
- package/source/css/_layout/widgets/related.styl +0 -1
- package/source/css/_layout/widgets/timeline.styl +27 -21
- package/source/css/_layout/widgets/toc.styl +182 -0
- package/source/css/_layout/widgets/tree.styl +0 -0
- package/source/css/_layout/widgets/widgets.styl +26 -7
- package/source/css/_plugins/comments/twikoo.styl +103 -59
- package/source/css/_plugins/comments/waline.styl +13 -10
- package/source/css/_plugins/index.styl +2 -0
- package/source/css/_plugins/katex.styl +5 -0
- package/source/css/_plugins/mermaid.styl +49 -59
- package/source/css/_plugins/tianli_gpt.styl +208 -151
- package/source/js/main.js +52 -251
- package/source/js/plugins/copycode.js +28 -41
- package/source/js/search/algolia-search.js +75 -0
- package/source/js/search/local-search.js +32 -0
- package/source/js/services/fcircle.js +36 -0
- package/source/js/services/friends.js +27 -0
- package/source/js/services/ghinfo.js +33 -0
- package/source/js/services/mdrender.js +10 -0
- package/source/js/services/memos.js +73 -0
- package/source/js/services/siteinfo.js +38 -0
- package/source/js/services/sites.js +30 -0
- package/source/js/services/timeline.js +106 -0
- package/source/js/services/weibo.js +60 -0
- package/layout/_partial/main/navbar/article_top_area.ejs +0 -35
- package/layout/_partial/main/navbar/author_banner.ejs +0 -29
- package/layout/_partial/plugins/ai/tianli_gpt.ejs +0 -9
- package/layout/_partial/plugins/comments/waline/script.ejs +0 -39
- package/layout/_partial/plugins/parser/head.ejs +0 -3
- package/layout/_partial/plugins/parser/katex/head.ejs +0 -3
- package/layout/_partial/plugins/parser/katex/script.ejs +0 -4
- package/layout/_partial/plugins/parser/mermaid/script.ejs +0 -29
- package/layout/_partial/plugins/parser/script.ejs +0 -9
- package/layout/_partial/scripts/index.ejs +0 -176
- package/source/css/_layout/widgets/toc_blog.styl +0 -3
- package/source/css/_layout/widgets/toc_common.styl +0 -92
- package/source/css/_layout/widgets/toc_wiki.styl +0 -62
- package/source/js/plugins/fcircle.js +0 -92
- package/source/js/plugins/friends.js +0 -84
- package/source/js/plugins/ghinfo.js +0 -85
- package/source/js/plugins/linkcard.js +0 -48
- package/source/js/plugins/marked.js +0 -50
- package/source/js/plugins/memos.js +0 -132
- package/source/js/plugins/sites.js +0 -87
- package/source/js/plugins/timeline.js +0 -162
- package/source/js/plugins/weibo.js +0 -116
- /package/layout/_partial/{plugins/comments → comments}/artalk/layout.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/beaudar/layout.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/beaudar/script.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/script.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/twikoo/layout.ejs +0 -0
- /package/layout/_partial/{plugins/comments/giscus → comments/utterances}/layout.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/utterances/script.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/waline/layout.ejs +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.tag-plugin.timeline
|
|
2
2
|
position: relative
|
|
3
3
|
padding-left: 16px
|
|
4
4
|
&:before
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
&:before
|
|
17
17
|
display: none
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.tag-plugin.timeline .timenode
|
|
20
20
|
position: relative
|
|
21
21
|
display: flex
|
|
22
22
|
flex-direction: column
|
|
@@ -31,12 +31,8 @@
|
|
|
31
31
|
&+.timenode
|
|
32
32
|
margin-top: 1rem
|
|
33
33
|
&:hover .header
|
|
34
|
-
|
|
34
|
+
span
|
|
35
35
|
color: var(--text-p1)
|
|
36
|
-
.user-info
|
|
37
|
-
background: $color-theme
|
|
38
|
-
span
|
|
39
|
-
color: var(--card)
|
|
40
36
|
&:before
|
|
41
37
|
background: $color-theme
|
|
42
38
|
height: 16px
|
|
@@ -49,17 +45,17 @@
|
|
|
49
45
|
position: relative
|
|
50
46
|
margin: 0.25rem 0
|
|
51
47
|
font-size: $fs-13
|
|
48
|
+
a.user-info span
|
|
49
|
+
font-weight: 600
|
|
52
50
|
.user-info
|
|
53
51
|
display: flex
|
|
54
52
|
align-items: center
|
|
55
53
|
font-size: $fs-13
|
|
56
54
|
font-weight: 500
|
|
57
55
|
color: var(--text-p1)
|
|
58
|
-
margin-right:
|
|
56
|
+
margin-right: 8px
|
|
59
57
|
line-height: 1
|
|
60
58
|
border-radius: 16px
|
|
61
|
-
padding-right: 6px
|
|
62
|
-
trans2 color background
|
|
63
59
|
img
|
|
64
60
|
background: white
|
|
65
61
|
height: 16px
|
|
@@ -67,19 +63,10 @@
|
|
|
67
63
|
display: inline
|
|
68
64
|
margin: 0 4px 0 0
|
|
69
65
|
object-fit: contain
|
|
70
|
-
|
|
71
|
-
background: $color-hover
|
|
72
|
-
&,p
|
|
66
|
+
&,span
|
|
73
67
|
font-weight: 500
|
|
74
68
|
color: var(--text-p3)
|
|
75
|
-
trans1 color
|
|
76
69
|
line-height: 1
|
|
77
|
-
p
|
|
78
|
-
margin: 0 !important
|
|
79
|
-
font-size: $fs-13 !important
|
|
80
|
-
a
|
|
81
|
-
color: inherit
|
|
82
|
-
font-weight: inherit
|
|
83
70
|
&:before
|
|
84
71
|
content: ''
|
|
85
72
|
position: absolute
|
|
@@ -112,11 +99,6 @@
|
|
|
112
99
|
width: 240px
|
|
113
100
|
|
|
114
101
|
.tag-plugin.timeline[api]
|
|
115
|
-
&.stellar-fcircle-api .timenode:hover .header
|
|
116
|
-
.user-info
|
|
117
|
-
background: inherit
|
|
118
|
-
span
|
|
119
|
-
color: inherit
|
|
120
102
|
a.body
|
|
121
103
|
display: block
|
|
122
104
|
color: var(--text-p1)
|
|
@@ -139,7 +121,10 @@
|
|
|
139
121
|
text-decoration: none
|
|
140
122
|
border-bottom: 2px solid $color-theme
|
|
141
123
|
trans1 all
|
|
124
|
+
background: none
|
|
142
125
|
&:hover
|
|
126
|
+
background: none
|
|
127
|
+
border-radius: 0
|
|
143
128
|
border-bottom: 2px solid $color-hover
|
|
144
129
|
>p:first-child:not([class]) a:not([class])
|
|
145
130
|
padding: 0
|
|
@@ -148,7 +133,10 @@
|
|
|
148
133
|
text-decoration: none
|
|
149
134
|
border-bottom: 2px solid $color-theme
|
|
150
135
|
trans1 all
|
|
136
|
+
background: none
|
|
151
137
|
&:hover
|
|
138
|
+
background: none
|
|
139
|
+
border-radius: 0
|
|
152
140
|
border-bottom: 2px solid $color-hover
|
|
153
141
|
|
|
154
142
|
|
|
@@ -181,6 +169,8 @@
|
|
|
181
169
|
flex-wrap: wrap
|
|
182
170
|
font-size: $fs-13
|
|
183
171
|
align-items: stretch
|
|
172
|
+
.left+.right
|
|
173
|
+
margin-left: 4px
|
|
184
174
|
|
|
185
175
|
.tag-plugin.timeline[api] .body .footer
|
|
186
176
|
.item
|
|
@@ -191,10 +181,18 @@
|
|
|
191
181
|
padding: 0 0.5rem
|
|
192
182
|
display: flex
|
|
193
183
|
align-items: center
|
|
184
|
+
border-color: $color-link
|
|
194
185
|
&:first-child
|
|
195
186
|
margin-left: 0
|
|
196
187
|
&:last-child
|
|
197
188
|
margin-right: 0
|
|
189
|
+
a.item
|
|
190
|
+
background: var(--block)
|
|
191
|
+
border-color: var(--block-border)
|
|
192
|
+
color: inherit
|
|
193
|
+
&:hover
|
|
194
|
+
background: var(--block-hover)
|
|
195
|
+
|
|
198
196
|
.reaction
|
|
199
197
|
border-color: var(--block)
|
|
200
198
|
|
|
@@ -222,14 +220,15 @@
|
|
|
222
220
|
margin: 0.5rem 0
|
|
223
221
|
line-height: 1.2
|
|
224
222
|
|
|
225
|
-
.tag-plugin.timeline.
|
|
223
|
+
.tag-plugin.timeline.ds-memos .body
|
|
226
224
|
p:first-child
|
|
227
225
|
margin-top: 2px
|
|
228
226
|
p:last-child
|
|
229
227
|
margin-bottom: 2px
|
|
230
228
|
img
|
|
231
|
-
margin: 0
|
|
229
|
+
margin: .5rem 0
|
|
232
230
|
max-height: 128px
|
|
231
|
+
cursor: zoom-in
|
|
233
232
|
.tag-plugin.image
|
|
234
233
|
display: flex
|
|
235
234
|
.image-bg+.image-bg
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
.widget-wrapper.
|
|
1
|
+
.widget-wrapper.user-card
|
|
2
2
|
.widget-header+.widget-body
|
|
3
3
|
margin: 0.75rem 0
|
|
4
|
-
.widget-wrapper.
|
|
4
|
+
.widget-wrapper.user-card .widget-body
|
|
5
5
|
text-align: center
|
|
6
6
|
background: var(--card)
|
|
7
7
|
border-radius: $border-card
|
|
8
8
|
padding: 1rem
|
|
9
9
|
box-shadow: $boxshadow-card
|
|
10
10
|
|
|
11
|
-
.widgets .widget-wrapper.
|
|
11
|
+
.widgets .widget-wrapper.user-card
|
|
12
12
|
.avatar
|
|
13
13
|
display: block
|
|
14
14
|
border-radius: 100%
|
|
15
15
|
margin: 1rem auto 1.25rem auto
|
|
16
|
-
max-width:
|
|
16
|
+
max-width: 128px
|
|
17
17
|
overflow: hidden
|
|
18
|
-
img
|
|
18
|
+
img
|
|
19
19
|
display: block
|
|
20
|
+
aspect-ratio: 1
|
|
20
21
|
@media screen and (max-width: $device-tablet)
|
|
21
22
|
max-width: 50%
|
|
22
23
|
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
.follow
|
|
33
34
|
font-weight: 500
|
|
34
35
|
border-radius: 64px
|
|
36
|
+
margin: 1rem 0 0
|
|
35
37
|
padding: 0.5rem 1rem
|
|
36
38
|
background: $color-theme
|
|
37
39
|
color: var(--card)
|
|
@@ -45,6 +47,8 @@
|
|
|
45
47
|
trans1: background
|
|
46
48
|
svg
|
|
47
49
|
margin-right: 6px
|
|
50
|
+
height: 1.5em
|
|
51
|
+
width: auto
|
|
48
52
|
&:hover
|
|
49
53
|
background: $color-hover
|
|
50
54
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
.widget-wrapper.post-list .widget-body
|
|
2
|
-
margin-top: 0.25rem
|
|
3
2
|
a
|
|
4
|
-
line-height: 1
|
|
5
3
|
font-size: $fs-14
|
|
6
4
|
padding: 8px 16px
|
|
7
5
|
display: block
|
|
@@ -25,4 +23,7 @@
|
|
|
25
23
|
height: 1em
|
|
26
24
|
width: auto
|
|
27
25
|
transform: scale(1.2)
|
|
28
|
-
|
|
26
|
+
|
|
27
|
+
.widget-wrapper.post-list
|
|
28
|
+
.widget-body+.widget-header
|
|
29
|
+
margin-top: 28px
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
.widget-wrapper.timeline
|
|
1
|
+
.widget-wrapper.timeline
|
|
2
|
+
.tag-plugin.timeline
|
|
3
|
+
padding-left: 0
|
|
4
|
+
&:before
|
|
5
|
+
left: 6px
|
|
2
6
|
.widget-body
|
|
3
|
-
|
|
7
|
+
overflow hidden
|
|
4
8
|
.body
|
|
5
9
|
a
|
|
6
10
|
trans1 all
|
|
7
|
-
|
|
8
|
-
color: var(--text-p1)
|
|
11
|
+
word-break: break-all
|
|
9
12
|
--fsp: $fsp2
|
|
10
|
-
&:hover
|
|
11
|
-
color: $color-hover
|
|
12
|
-
border-bottom: 1px solid $color-hover
|
|
13
13
|
.tag-plugin.timeline .timenode
|
|
14
|
+
z-index 1
|
|
15
|
+
margin-top: 0.25rem
|
|
14
16
|
.header
|
|
15
|
-
margin: 0.
|
|
16
|
-
txt-ellipsis()
|
|
17
|
+
margin: 0.25rem var(--gap-padding)
|
|
17
18
|
.user-info
|
|
18
|
-
background:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
color: var(--card)
|
|
22
|
-
&:before
|
|
19
|
+
background: none
|
|
20
|
+
padding-right: 0
|
|
21
|
+
img
|
|
23
22
|
display: none
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
color: var(--text-p2)
|
|
23
|
+
|
|
24
|
+
.header:before
|
|
25
|
+
left: calc(6px - var(--gap-padding))
|
|
28
26
|
.body
|
|
29
27
|
border-radius: $border-card
|
|
30
|
-
|
|
31
|
-
box-shadow: none
|
|
28
|
+
padding: 0.5rem 1rem
|
|
32
29
|
p,li
|
|
33
30
|
--fsp: $fsp3
|
|
34
31
|
code
|
|
@@ -40,4 +37,13 @@
|
|
|
40
37
|
|
|
41
38
|
|
|
42
39
|
.tag-plugin.timeline[api] .body .footer
|
|
43
|
-
background: none
|
|
40
|
+
background: none
|
|
41
|
+
|
|
42
|
+
.l_left .widget-wrapper.timeline
|
|
43
|
+
.tag-plugin.timeline
|
|
44
|
+
padding-left: 0
|
|
45
|
+
&:before
|
|
46
|
+
content: none
|
|
47
|
+
.l_left .widget-wrapper.timeline .body
|
|
48
|
+
box-shadow: none
|
|
49
|
+
background: var(--alpha50)
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
.widget-wrapper.toc
|
|
2
|
+
background: var(--site-bg)
|
|
3
|
+
z-index 3
|
|
4
|
+
.widget-body
|
|
5
|
+
position relative
|
|
6
|
+
&:before
|
|
7
|
+
content: ''
|
|
8
|
+
position absolute
|
|
9
|
+
top: 6px
|
|
10
|
+
bottom: 6px
|
|
11
|
+
left: 0
|
|
12
|
+
width: 4px
|
|
13
|
+
background: var(--block)
|
|
14
|
+
border-radius: 4px
|
|
15
|
+
|
|
16
|
+
// 目录基本样式
|
|
17
|
+
.widget-wrapper.toc .toc
|
|
18
|
+
--fsp: $fsp2
|
|
19
|
+
padding: 0
|
|
20
|
+
margin: 0
|
|
21
|
+
position relative
|
|
22
|
+
list-style: none
|
|
23
|
+
li
|
|
24
|
+
margin: 0
|
|
25
|
+
list-style: none
|
|
26
|
+
a
|
|
27
|
+
--padding: calc(var(--gap-padding) / 2)
|
|
28
|
+
--padding-offset: calc(0 - var(--padding))
|
|
29
|
+
padding: 6px var(--padding)
|
|
30
|
+
margin: 0 var(--padding)
|
|
31
|
+
color: var(--text-p3)
|
|
32
|
+
display: block
|
|
33
|
+
position relative
|
|
34
|
+
border-radius: $border-bar
|
|
35
|
+
trans1 all
|
|
36
|
+
&.active:before
|
|
37
|
+
content: ''
|
|
38
|
+
position absolute
|
|
39
|
+
top: 6px
|
|
40
|
+
bottom: 6px
|
|
41
|
+
left: -8px
|
|
42
|
+
width: 4px
|
|
43
|
+
background: $color-theme
|
|
44
|
+
border-radius: 4px
|
|
45
|
+
&:hover
|
|
46
|
+
background: var(--block-hover)
|
|
47
|
+
color: var(--text)
|
|
48
|
+
|
|
49
|
+
// 固定位置
|
|
50
|
+
.l_right .widgets .widget-wrapper.toc
|
|
51
|
+
margin-top: 0
|
|
52
|
+
position: sticky
|
|
53
|
+
position: -webkit-sticky
|
|
54
|
+
top: 0
|
|
55
|
+
padding: 16px 0
|
|
56
|
+
&:first-child
|
|
57
|
+
top: 8px
|
|
58
|
+
padding-top: 8px
|
|
59
|
+
.widget-body .toc
|
|
60
|
+
max-height: 70vh
|
|
61
|
+
@media screen and (max-width: $device-laptop)
|
|
62
|
+
max-height: unset
|
|
63
|
+
overflow: auto
|
|
64
|
+
scrollbar(0, 0)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
// 各级缩进样式
|
|
69
|
+
.widget-wrapper.toc .toc
|
|
70
|
+
.toc-item
|
|
71
|
+
font-weight: 500
|
|
72
|
+
--fsp: $fsp1
|
|
73
|
+
.toc-item .toc-item
|
|
74
|
+
font-weight: 400
|
|
75
|
+
--fsp: $fsp2
|
|
76
|
+
ol
|
|
77
|
+
padding-left: 0
|
|
78
|
+
.toc-child .toc-link
|
|
79
|
+
padding-left: 1.5rem
|
|
80
|
+
.toc-child .toc-child .toc-link
|
|
81
|
+
padding-left: 2.5rem
|
|
82
|
+
.toc-child .toc-child .toc-child .toc-link
|
|
83
|
+
padding-left: 3.5rem
|
|
84
|
+
.toc-child .toc-child .toc-child .toc-child .toc-link
|
|
85
|
+
padding-left: 4.5rem
|
|
86
|
+
.toc-child .toc-child .toc-child .toc-child .toc-child .toc-link
|
|
87
|
+
padding-left: 5rem
|
|
88
|
+
|
|
89
|
+
// 高亮样式
|
|
90
|
+
.widget-wrapper.toc .toc a.toc-link.active
|
|
91
|
+
color: var(--text)
|
|
92
|
+
&:before,&:after
|
|
93
|
+
content: ''
|
|
94
|
+
|
|
95
|
+
// 始终折叠
|
|
96
|
+
.widget-wrapper.toc[collapse='true']
|
|
97
|
+
.toc-item a.toc-link+ol
|
|
98
|
+
display: none
|
|
99
|
+
// 激活上级目录时显示子目录
|
|
100
|
+
.toc a.toc-link.active+ol
|
|
101
|
+
display: block
|
|
102
|
+
|
|
103
|
+
// 自动折叠
|
|
104
|
+
.widget-wrapper.toc[collapse='auto']
|
|
105
|
+
.toc-item a.toc-link+ol
|
|
106
|
+
display: none
|
|
107
|
+
// 激活上级目录时显示子目录
|
|
108
|
+
.toc a.toc-link.active+ol
|
|
109
|
+
display: block
|
|
110
|
+
// 鼠标放上去时显示子目录
|
|
111
|
+
&:hover a.toc-link+ol
|
|
112
|
+
display: block
|
|
113
|
+
|
|
114
|
+
// 子目录激活时显示
|
|
115
|
+
.widget-wrapper.toc[collapse='true'] ol:has(> .toc-item a.active)
|
|
116
|
+
display: block
|
|
117
|
+
.widget-wrapper.toc[collapse='auto'] ol:has(> .toc-item a.active)
|
|
118
|
+
display: block
|
|
119
|
+
|
|
120
|
+
// 手动折叠
|
|
121
|
+
.widget-wrapper.toc
|
|
122
|
+
.widget-body
|
|
123
|
+
display: grid
|
|
124
|
+
grid-template-rows: 1fr
|
|
125
|
+
trans1 all
|
|
126
|
+
overflow hidden
|
|
127
|
+
.l_right .widgets .widget-wrapper.toc .widget-header .cap-action:hover
|
|
128
|
+
background: var(--block-border)
|
|
129
|
+
.l_right .widgets .widget-wrapper.toc.collapse
|
|
130
|
+
.widget-header .cap-action
|
|
131
|
+
background: var(--block-border)
|
|
132
|
+
.widget-body
|
|
133
|
+
grid-template-rows: 0fr
|
|
134
|
+
|
|
135
|
+
// 编辑本文按钮
|
|
136
|
+
.widget-wrapper.toc .widget-body+.widget-footer:before
|
|
137
|
+
content: ''
|
|
138
|
+
position absolute
|
|
139
|
+
background: var(--block-border)
|
|
140
|
+
top: 0
|
|
141
|
+
height: 1px
|
|
142
|
+
left: var(--gap-padding)
|
|
143
|
+
right: var(--gap-padding)
|
|
144
|
+
.widget-wrapper.toc .widget-footer
|
|
145
|
+
margin-top: 8px
|
|
146
|
+
color: var(--text-p2)
|
|
147
|
+
position relative
|
|
148
|
+
padding-top: 8px
|
|
149
|
+
a
|
|
150
|
+
display: flex
|
|
151
|
+
align-items: center
|
|
152
|
+
color: inherit
|
|
153
|
+
font-size: $fs-14
|
|
154
|
+
padding: 8px var(--gap-padding)
|
|
155
|
+
border-radius: $border-bar
|
|
156
|
+
trans1 all
|
|
157
|
+
svg,img
|
|
158
|
+
height: 16px
|
|
159
|
+
width: auto
|
|
160
|
+
margin-right: 8px
|
|
161
|
+
a:hover
|
|
162
|
+
background: var(--block-hover)
|
|
163
|
+
color: var(--text)
|
|
164
|
+
|
|
165
|
+
.widget-wrapper.toc+.widget-wrapper
|
|
166
|
+
padding-top: 32px
|
|
167
|
+
|
|
168
|
+
@media screen and (max-width: $device-laptop)
|
|
169
|
+
.l_right
|
|
170
|
+
blur-effect()
|
|
171
|
+
.widgets
|
|
172
|
+
.widget-wrapper.toc
|
|
173
|
+
position: static
|
|
174
|
+
background: none
|
|
175
|
+
.widget-wrapper.toc .toc
|
|
176
|
+
a
|
|
177
|
+
color: var(--text-p2)
|
|
178
|
+
.widget-wrapper.toc .widget-footer
|
|
179
|
+
a
|
|
180
|
+
background: var(--alpha100)
|
|
181
|
+
a+a
|
|
182
|
+
margin-top: 4px
|
|
File without changes
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
scrollbar(0, 0)
|
|
11
11
|
z-index: 1
|
|
12
12
|
line-height: 1.2
|
|
13
|
-
margin: 0 var(--gap-
|
|
13
|
+
margin: 0 var(--gap-margin)
|
|
14
14
|
.widget-wrapper
|
|
15
15
|
.widget-header
|
|
16
|
-
padding-left: var(--gap-
|
|
17
|
-
padding-right: var(--gap-
|
|
16
|
+
padding-left: var(--gap-padding)
|
|
17
|
+
padding-right: var(--gap-padding)
|
|
18
18
|
display: flex
|
|
19
19
|
justify-content: space-between
|
|
20
20
|
align-items: baseline
|
|
@@ -50,16 +50,35 @@
|
|
|
50
50
|
fill: $color-hover
|
|
51
51
|
|
|
52
52
|
.widget-body
|
|
53
|
-
margin: 0.5rem 0
|
|
54
53
|
color: var(--text-p1)
|
|
55
54
|
p
|
|
56
55
|
margin-top: .5em
|
|
57
56
|
margin-bottom: .5em
|
|
58
57
|
line-height: 1.5
|
|
59
|
-
.widget-header+.widget-body
|
|
60
|
-
margin-top: 0
|
|
61
58
|
|
|
62
59
|
|
|
63
60
|
.widget-wrapper
|
|
64
61
|
display: block
|
|
65
|
-
|
|
62
|
+
padding-bottom: 32px
|
|
63
|
+
|
|
64
|
+
.l_left .widgets
|
|
65
|
+
.widget-wrapper
|
|
66
|
+
&:first-child
|
|
67
|
+
margin-top: 32px
|
|
68
|
+
|
|
69
|
+
.l_right .widgets
|
|
70
|
+
&:empty
|
|
71
|
+
display: none
|
|
72
|
+
.widget-wrapper
|
|
73
|
+
.widget-header
|
|
74
|
+
padding-left: var(--gap-padding)
|
|
75
|
+
padding-right: var(--gap-padding)
|
|
76
|
+
// 小屏幕
|
|
77
|
+
@media screen and (max-width: $device-laptop)
|
|
78
|
+
.widget-wrapper
|
|
79
|
+
margin-top: var(--gap-margin)
|
|
80
|
+
border-radius: $border-card
|
|
81
|
+
// 大屏幕
|
|
82
|
+
@media screen and (min-width: $device-laptop)
|
|
83
|
+
.widget-wrapper.markdown .widget-body
|
|
84
|
+
background: var(--block)
|