hexo-theme-stellar 1.26.7 → 1.27.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 +134 -94
- package/_data/icons.yml +8 -1
- package/_data/widgets.yml +19 -7
- package/languages/en.yml +4 -2
- package/languages/zh-CN.yml +3 -1
- package/languages/zh-TW.yml +4 -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 +1 -1
- 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 +0 -1
- 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 +32 -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/local_search.ejs +8 -0
- package/layout/_plugins/swiper.ejs +26 -0
- package/layout/_plugins/tianli_gpt.ejs +11 -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 +1 -1
- 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 +61 -26
- 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 +8 -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/nav-area.styl +1 -1
- package/source/css/_layout/sidebar/sidebar.styl +23 -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/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 -2
- 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 +6 -6
- 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 +48 -251
- package/source/js/plugins/copycode.js +24 -28
- 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,57 +1,92 @@
|
|
|
1
1
|
.l_body
|
|
2
2
|
display: grid
|
|
3
|
+
grid-template-columns: 1fr minmax(200px,var(--width-main)) 1fr
|
|
4
|
+
grid-gap: var(--gap-margin)
|
|
3
5
|
margin: auto
|
|
4
|
-
padding: 0 var(--gap-l)
|
|
5
6
|
font-size: var(--fsp)
|
|
6
|
-
grid-template-columns: 1fr minmax(200px, 688px) 1fr
|
|
7
7
|
|
|
8
|
-
.l_body
|
|
8
|
+
.l_body aside
|
|
9
9
|
z-index: 8
|
|
10
|
-
width: var(--width-left)
|
|
11
10
|
flex-shrink: 0
|
|
12
11
|
position: sticky
|
|
13
12
|
position: -webkit-sticky
|
|
14
|
-
|
|
13
|
+
// 侧边栏容器宽度
|
|
14
|
+
--width-sidebar: calc(var(--gap-margin) * 2 + var(--gap-padding) * 2 + var(--side-content-width))
|
|
15
|
+
width: var(--width-sidebar)
|
|
15
16
|
|
|
16
|
-
.l_body .
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
.l_body .l_left
|
|
18
|
+
justify-self: right
|
|
19
|
+
top: 8px
|
|
20
|
+
.l_body .l_right
|
|
21
|
+
justify-self: left
|
|
22
|
+
--gap-margin: 0px
|
|
23
|
+
max-height: calc(100% - 8px * 2)
|
|
24
|
+
.widgets
|
|
25
|
+
height: 100%
|
|
26
|
+
overflow visible
|
|
21
27
|
|
|
28
|
+
// 平板布局
|
|
29
|
+
@media screen and (max-width: $device-laptop)
|
|
30
|
+
.l_body .l_right
|
|
31
|
+
--gap-margin: 16px
|
|
32
|
+
.laptop-only
|
|
33
|
+
display: block !important
|
|
34
|
+
.l_body
|
|
35
|
+
.l_right
|
|
36
|
+
top: 8px
|
|
37
|
+
position: fixed
|
|
38
|
+
max-height: calc(100% - 8px * 2)
|
|
39
|
+
transform: translateX(320px)
|
|
40
|
+
transition: transform .38s ease-out
|
|
41
|
+
margin: 0
|
|
42
|
+
right: 8px
|
|
43
|
+
box-shadow: $boxshadow-card-float
|
|
44
|
+
z-index: 10
|
|
45
|
+
background: var(--site-bg)
|
|
46
|
+
overflow: auto
|
|
47
|
+
scrollbar(0, 0)
|
|
48
|
+
--blur-bg: var(--alpha60)
|
|
49
|
+
--blur-px: 50px
|
|
50
|
+
.l_body[rightbar]
|
|
51
|
+
.l_right
|
|
52
|
+
transform: translateX(0px)
|
|
53
|
+
.main-mask
|
|
54
|
+
// opacity 1
|
|
55
|
+
pointer-events: inherit
|
|
22
56
|
|
|
23
57
|
// 手机布局
|
|
24
|
-
.main-mask
|
|
25
|
-
position: fixed
|
|
26
|
-
pointer-events: none
|
|
27
|
-
top: 0
|
|
28
|
-
left: 0
|
|
29
|
-
width: 100%
|
|
30
|
-
height: 100%
|
|
31
|
-
background: rgba(black, 0.2)
|
|
32
|
-
z-index: 9
|
|
33
|
-
opacity 0
|
|
34
|
-
trans1 opacity
|
|
35
58
|
@media screen and (max-width: $device-mobile-max)
|
|
36
59
|
.mobile-only
|
|
37
60
|
display: block !important
|
|
38
61
|
.l_body
|
|
39
62
|
padding: 0
|
|
63
|
+
display: block
|
|
40
64
|
.l_left
|
|
41
65
|
position: fixed
|
|
42
66
|
transform: translateX(-320px)
|
|
67
|
+
transition: transform .38s ease-out
|
|
43
68
|
margin: 0
|
|
44
69
|
left: 8px
|
|
45
70
|
box-shadow: $boxshadow-card-float
|
|
46
71
|
z-index: 10
|
|
47
72
|
.l_main
|
|
48
73
|
max-width: 100%
|
|
49
|
-
.l_body
|
|
50
|
-
.l_left
|
|
51
|
-
transition: transform .38s ease-out
|
|
52
|
-
.l_body.mobile.sidebar
|
|
74
|
+
.l_body[leftbar]
|
|
53
75
|
.l_left
|
|
54
76
|
transform: translateX(0px)
|
|
55
77
|
.main-mask
|
|
56
78
|
opacity 1
|
|
57
|
-
pointer-events: inherit
|
|
79
|
+
pointer-events: inherit
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
.main-mask
|
|
83
|
+
position: fixed
|
|
84
|
+
pointer-events: none
|
|
85
|
+
top: 0
|
|
86
|
+
left: 0
|
|
87
|
+
width: 100%
|
|
88
|
+
height: 100%
|
|
89
|
+
background: rgba(black, 0.1)
|
|
90
|
+
z-index: 9
|
|
91
|
+
opacity 0
|
|
92
|
+
trans1 opacity
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
.l_main
|
|
2
2
|
position: relative
|
|
3
|
-
padding-bottom:
|
|
4
|
-
@media screen and (min-width: 1400px)
|
|
5
|
-
margin-left: "calc(2 * %s)" % var(--gap-l)
|
|
6
|
-
margin-right: "calc(2 * %s + %s / 2)" % (var(--gap-l) var(--width-left))
|
|
3
|
+
padding-bottom: var(--gap-max)
|
|
7
4
|
@media screen and (min-width: $device-mobile-max)
|
|
8
5
|
padding-top: 8px
|
|
9
6
|
header
|
|
@@ -20,15 +20,25 @@
|
|
|
20
20
|
overflow: hidden
|
|
21
21
|
|
|
22
22
|
.l_body[text-indent] .md-text.content
|
|
23
|
-
|
|
23
|
+
// 应用缩进效果
|
|
24
|
+
p:not([class])
|
|
24
25
|
text-indent: 'calc(%s * 2)' % var(--fsp)
|
|
25
26
|
text-align: justify
|
|
27
|
+
a
|
|
28
|
+
text-indent: 0
|
|
29
|
+
ol,ul
|
|
30
|
+
margin-left: 0.5em
|
|
26
31
|
h1,h2,h3,h4,h5,h6
|
|
27
32
|
text-align: center
|
|
28
33
|
a.headerlink
|
|
29
34
|
display: none
|
|
30
35
|
h2
|
|
31
36
|
margin: 2em 0 1.5em
|
|
37
|
+
// 取消缩进效果
|
|
38
|
+
blockquote, .poetry, .okr, .timeline, li, .article-footer
|
|
39
|
+
p:not([class])
|
|
40
|
+
text-indent: 0
|
|
41
|
+
text-align: convert(hexo-config('style.text-align'))
|
|
32
42
|
|
|
33
43
|
.md-text
|
|
34
44
|
ul:not(:last-child),
|
|
@@ -108,14 +118,18 @@
|
|
|
108
118
|
margin: auto
|
|
109
119
|
display: block
|
|
110
120
|
|
|
111
|
-
|
|
121
|
+
li:not([class]) a:not([class])
|
|
122
|
+
p:not([class]) a:not([class])
|
|
123
|
+
table a:not([class])
|
|
112
124
|
position: relative
|
|
113
125
|
text-decoration: none
|
|
114
126
|
trans1 all
|
|
115
127
|
padding: 0 2px
|
|
116
128
|
border-radius: 0
|
|
129
|
+
color: inherit
|
|
117
130
|
background: linear-gradient(0deg,var(--theme-link),var(--theme-link)) no-repeat left 100%/100% 1px
|
|
118
131
|
&:hover
|
|
132
|
+
text-decoration: none
|
|
119
133
|
color: var(--theme-link)
|
|
120
134
|
border-radius: 4px
|
|
121
135
|
background: linear-gradient(0deg,var(--theme-link-opa),var(--theme-link-opa)) no-repeat left 100%/100% 100%
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.article.banner
|
|
8
8
|
.bg+.content
|
|
9
|
-
min-height:
|
|
9
|
+
min-height: 224px
|
|
10
10
|
--text-banner: white
|
|
11
11
|
--button-hover-bg: rgba(white, 0.25)
|
|
12
12
|
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
.title
|
|
18
18
|
font-size: $fsh1
|
|
19
19
|
color: var(--text-banner)
|
|
20
|
-
.bottom
|
|
21
|
-
padding: 2rem 1rem
|
|
22
20
|
h1
|
|
23
21
|
line-height: 1.2
|
|
24
|
-
margin: 0
|
|
25
|
-
|
|
26
|
-
.l_body
|
|
22
|
+
margin: 0.25rem 0
|
|
23
|
+
|
|
24
|
+
.l_body .article.banner .content .bottom.only-title .title
|
|
25
|
+
padding: 0.75rem 0
|
|
26
|
+
|
|
27
|
+
.l_body[text-indent] .article.banner .content .bottom.only-title
|
|
27
28
|
justify-content: center
|
|
28
29
|
|
|
29
30
|
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
.article.banner
|
|
32
33
|
.bg+.content
|
|
33
34
|
trans1 all
|
|
34
|
-
--blur-bg: rgba(black, 0
|
|
35
|
+
--blur-bg: rgba(black, 0)
|
|
35
36
|
--blur-px: 0px
|
|
36
37
|
--blur-sat: 100%
|
|
37
38
|
background: var(--blur-bg)
|
|
@@ -47,12 +48,10 @@
|
|
|
47
48
|
|
|
48
49
|
.article.banner
|
|
49
50
|
--button-hover-bg: rgba(black, 0.05)
|
|
50
|
-
|
|
51
|
-
.article.banner
|
|
51
|
+
ondark()
|
|
52
52
|
--button-hover-bg: rgba(white, 0.15)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
set_darkmode()
|
|
53
|
+
if theme(dark)
|
|
54
|
+
ondark()
|
|
55
|
+
else if theme(auto)
|
|
56
|
+
@media (prefers-color-scheme: dark)
|
|
57
|
+
ondark()
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
color: var(--text-p2)
|
|
4
4
|
a
|
|
5
5
|
color: var(--text-p2)
|
|
6
|
+
border-radius: 2px
|
|
6
7
|
&:hover
|
|
7
|
-
color:
|
|
8
|
+
color: var(--text)
|
|
9
|
+
background: var(--block-hover)
|
|
8
10
|
|
|
9
11
|
.page-footer .sitemap
|
|
10
|
-
margin: .5rem
|
|
12
|
+
margin: .5rem -4px 2rem
|
|
11
13
|
display: grid
|
|
12
14
|
scrollbar-width: none
|
|
13
15
|
grid-gap: 1rem 1rem
|
|
14
16
|
grid-auto-flow: column dense
|
|
17
|
+
// grid-template-columns: repeat(auto-fill, minmax(80px, 1fr))
|
|
18
|
+
grid-template-columns: repeat(4, 1fr)
|
|
15
19
|
overflow: scroll
|
|
16
20
|
scrollbar(0, 0)
|
|
17
21
|
|
|
@@ -23,12 +27,11 @@
|
|
|
23
27
|
>span,>a
|
|
24
28
|
text-decoration: none
|
|
25
29
|
txt-ellipsis()
|
|
30
|
+
padding: 4px
|
|
26
31
|
>span
|
|
27
|
-
margin: .5rem 0
|
|
28
32
|
font-weight: 500
|
|
29
33
|
color: var(--text-p1)
|
|
30
|
-
|
|
31
|
-
margin: .2rem 0
|
|
34
|
+
margin: 4px 0
|
|
32
35
|
|
|
33
36
|
|
|
34
37
|
.page-footer .text
|
|
@@ -36,5 +39,4 @@
|
|
|
36
39
|
margin: 4px 0
|
|
37
40
|
line-height: 1.5
|
|
38
41
|
a:not([class])
|
|
39
|
-
text-decoration: underline
|
|
40
42
|
font-weight: 500
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
.nav-area
|
|
2
|
-
margin: 32px var(--gap-
|
|
2
|
+
margin: 32px var(--gap-margin) 0
|
|
@@ -1,32 +1,39 @@
|
|
|
1
1
|
.l_left
|
|
2
|
-
margin: 8px
|
|
2
|
+
margin: 8px
|
|
3
3
|
height: 'calc(%s - 16px)' % 100vh
|
|
4
4
|
border-radius: $border-card-l
|
|
5
5
|
overflow: hidden
|
|
6
6
|
.header
|
|
7
|
-
margin: var(--gap-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
margin: var(--gap-max) var(--gap-margin) 0
|
|
8
|
+
|
|
9
|
+
.l_right
|
|
10
|
+
margin: 8px
|
|
11
|
+
border-radius: $border-card-l
|
|
12
|
+
@media screen and (min-width: $device-2k)
|
|
13
|
+
.l_left
|
|
14
|
+
margin-left: auto
|
|
15
|
+
margin-right: calc(2 * var(--gap-max))
|
|
16
|
+
.l_right
|
|
17
|
+
margin-left: var(--gap-max)
|
|
18
|
+
margin-right: auto
|
|
19
|
+
|
|
13
20
|
.l_left
|
|
14
21
|
background-size: cover
|
|
15
|
-
if hexo-config('style.
|
|
16
|
-
background-image: convert(hexo-config('style.
|
|
17
|
-
else if hexo-config('style.
|
|
18
|
-
background: convert(hexo-config('style.
|
|
19
|
-
.
|
|
22
|
+
if hexo-config('style.leftbar') && hexo-config('style.leftbar.background-image')
|
|
23
|
+
background-image: convert(hexo-config('style.leftbar.background-image'))
|
|
24
|
+
else if hexo-config('style.leftbar') && hexo-config('style.leftbar.background')
|
|
25
|
+
background: convert(hexo-config('style.leftbar.background'))
|
|
26
|
+
.leftbar-container
|
|
20
27
|
height: 100%
|
|
21
28
|
display: flex
|
|
22
29
|
flex-direction: column
|
|
23
30
|
word-break: break-all
|
|
24
31
|
text-align: justify
|
|
25
|
-
if hexo-config('style.
|
|
26
|
-
--blur-px: convert(hexo-config('style.
|
|
32
|
+
if hexo-config('style.leftbar') && hexo-config('style.leftbar.blur-px')
|
|
33
|
+
--blur-px: convert(hexo-config('style.leftbar.blur-px'))
|
|
27
34
|
@supports ((-webkit-backdrop-filter:blur(var(--blur-px))) or (backdrop-filter:blur(var(--blur-px))))
|
|
28
35
|
background: var(--blur-bg)
|
|
29
36
|
backdrop-filter: saturate(240%) blur(var(--blur-px))
|
|
30
37
|
-webkit-backdrop-filter: saturate(240%) blur(var(--blur-px))
|
|
31
|
-
if hexo-config('style.
|
|
32
|
-
--blur-bg: convert(hexo-config('style.
|
|
38
|
+
if hexo-config('style.leftbar') && hexo-config('style.leftbar.blur-bg')
|
|
39
|
+
--blur-bg: convert(hexo-config('style.leftbar.blur-bg'))
|
|
@@ -127,13 +127,6 @@
|
|
|
127
127
|
.tag-plugin.banner .navbar a.active
|
|
128
128
|
blur-effect()
|
|
129
129
|
|
|
130
|
-
@media screen and (min-width: $device-mobile-max)
|
|
131
|
-
.banner.author.top
|
|
132
|
-
margin-left: var(--gap-l)
|
|
133
|
-
margin-right: var(--gap-l)
|
|
134
|
-
|
|
135
130
|
@media screen and (max-width: $device-mobile-max)
|
|
136
131
|
.banner.top
|
|
137
|
-
border-radius: 0
|
|
138
|
-
.md-text.content:first-child .tag-plugin.banner:first-child
|
|
139
|
-
margin-top: 1rem
|
|
132
|
+
border-radius: 0
|
|
@@ -30,6 +30,8 @@ set_dynamic_color($theme)
|
|
|
30
30
|
set_dynamic_color($c-red)
|
|
31
31
|
.colorful[color='orange']
|
|
32
32
|
set_dynamic_color($c-orange)
|
|
33
|
+
.colorful[color='amber']
|
|
34
|
+
set_dynamic_color($c-amber)
|
|
33
35
|
.colorful[color='yellow']
|
|
34
36
|
set_dynamic_color($c-yellow)
|
|
35
37
|
.colorful[color='green']
|
|
@@ -66,7 +68,7 @@ set_dynamic_color($theme)
|
|
|
66
68
|
--theme-link: #ffe659
|
|
67
69
|
set_text_white()
|
|
68
70
|
|
|
69
|
-
|
|
71
|
+
_dark_tags()
|
|
70
72
|
set_dynamic_color($theme)
|
|
71
73
|
--theme: $theme
|
|
72
74
|
--theme-border: hsl(hue($theme), 50, 24)
|
|
@@ -81,6 +83,8 @@ set_darkmode_tags()
|
|
|
81
83
|
set_dynamic_color($c-red)
|
|
82
84
|
.colorful[color='orange']
|
|
83
85
|
set_dynamic_color($c-orange)
|
|
86
|
+
.colorful[color='amber']
|
|
87
|
+
set_dynamic_color($c-amber)
|
|
84
88
|
.colorful[color='yellow']
|
|
85
89
|
set_dynamic_color($c-yellow)
|
|
86
90
|
.colorful[color='green']
|
|
@@ -104,9 +108,10 @@ set_darkmode_tags()
|
|
|
104
108
|
.colorful[color='warning'],.colorful[color='light']
|
|
105
109
|
set_text_black()
|
|
106
110
|
|
|
107
|
-
|
|
111
|
+
|
|
112
|
+
if theme(dark)
|
|
113
|
+
_dark_tags()
|
|
114
|
+
else if theme(auto)
|
|
108
115
|
@media (prefers-color-scheme: dark)
|
|
109
|
-
|
|
116
|
+
_dark_tags()
|
|
110
117
|
|
|
111
|
-
if hexo-config('style.darkmode') == 'always'
|
|
112
|
-
set_darkmode_tags()
|
|
@@ -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
|