hexo-theme-stellar 1.32.0 → 1.32.2
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 +47 -41
- package/layout/_partial/cover/post_cover.ejs +1 -5
- package/layout/_partial/cover/wiki_cover.ejs +1 -1
- package/layout/_partial/main/footer.ejs +15 -5
- package/layout/_partial/main/navbar/article_banner.ejs +1 -1
- package/layout/_partial/main/navbar/ghinfo.ejs +1 -1
- package/layout/_partial/scripts/defines.ejs +3 -1
- package/layout/_partial/scripts/lazyload.ejs +67 -0
- package/layout/_partial/scripts/utils.ejs +1 -0
- package/layout/_partial/scripts.ejs +1 -0
- package/layout/_partial/sidebar/index_leftbar.ejs +1 -1
- package/layout/_partial/sidebar/logo.ejs +1 -1
- package/layout/_partial/widgets/author.ejs +1 -1
- 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 -1
- package/layout/_partial/widgets/related.ejs +1 -1
- package/layout/_partial/widgets/timeline.ejs +1 -1
- package/layout/_partial/widgets/tree.ejs +1 -1
- package/layout/_plugins/scrollreveal.ejs +3 -3
- package/package.json +1 -1
- package/scripts/events/lib/get_image_ratios.js +53 -31
- package/scripts/tags/index.js +1 -1
- package/scripts/tags/lib/albums.js +4 -3
- package/scripts/tags/lib/banner.js +1 -1
- package/scripts/tags/lib/{quote.js → blockquote.js} +5 -5
- package/scripts/tags/lib/chat.js +1 -5
- package/scripts/tags/lib/friends.js +1 -1
- package/scripts/tags/lib/gallery.js +4 -3
- package/scripts/tags/lib/image.js +5 -5
- package/scripts/tags/lib/link.js +1 -5
- package/scripts/tags/lib/md.js +1 -1
- package/scripts/tags/lib/navbar.js +2 -2
- package/scripts/tags/lib/posters.js +4 -3
- package/scripts/tags/lib/sites.js +7 -1
- package/scripts/tags/lib/timeline.js +1 -1
- package/source/css/_common/base.styl +17 -9
- package/source/css/_common/blockquote.styl +1 -1
- package/source/css/_common/blur.styl +7 -7
- package/source/css/_common/button.styl +2 -2
- package/source/css/_common/canonical.styl +1 -1
- package/source/css/_common/cap.styl +1 -1
- package/source/css/_common/device.styl +4 -4
- package/source/css/_common/highlight.styl +7 -2
- package/source/css/_common/html.styl +1 -1
- package/source/css/_common/svg.styl +1 -1
- package/source/css/_common/title.styl +1 -1
- package/source/css/_components/layout.styl +2 -2
- package/source/css/_components/list.styl +1 -2
- package/source/css/_components/main.styl +8 -4
- package/source/css/_components/md.styl +2 -2
- package/source/css/_components/pages/archives.styl +5 -5
- package/source/css/_components/pages/article-story.styl +42 -40
- package/source/css/_components/pages/article-tech.styl +2 -2
- package/source/css/_components/pages/notebook.styl +2 -2
- package/source/css/_components/partial/footer.styl +5 -9
- package/source/css/_components/partial/navbar.styl +2 -2
- package/source/css/_components/partial/related.styl +6 -6
- package/source/css/_components/sidebar/footer.styl +1 -1
- package/source/css/_components/sidebar/menu.styl +3 -3
- package/source/css/_components/sidebar/search.styl +7 -7
- package/source/css/_components/sidebar/sidebar.styl +24 -24
- package/source/css/_components/tag-plugins/button.styl +2 -2
- package/source/css/_components/tag-plugins/chat.styl +44 -8
- package/source/css/_components/tag-plugins/checkbox.styl +1 -1
- package/source/css/_components/tag-plugins/copy.styl +13 -8
- package/source/css/_components/tag-plugins/friends.styl +5 -6
- package/source/css/_components/tag-plugins/friends_posts.styl +8 -7
- package/source/css/_components/tag-plugins/gallery.styl +1 -2
- package/source/css/_components/tag-plugins/image.styl +1 -1
- package/source/css/_components/tag-plugins/inline-labels.styl +3 -3
- package/source/css/_components/tag-plugins/navbar.styl +18 -8
- package/source/css/_components/tag-plugins/note.styl +0 -3
- package/source/css/_components/tag-plugins/okr.styl +2 -3
- package/source/css/_components/tag-plugins/override.styl +0 -5
- package/source/css/_components/tag-plugins/poetry.styl +1 -1
- package/source/css/_components/tag-plugins/quot.styl +1 -25
- package/source/css/_components/tag-plugins/quote.styl +1 -1
- package/source/css/_components/tag-plugins/read/paper.styl +2 -2
- package/source/css/_components/tag-plugins/read/reel.styl +4 -4
- package/source/css/_components/tag-plugins/sites.styl +14 -11
- package/source/css/_components/tag-plugins/tabs.styl +1 -1
- package/source/css/_components/tag-plugins/timeline.styl +10 -4
- package/source/css/_components/widgets/components.styl +3 -3
- package/source/css/_components/widgets/ghuser.styl +3 -3
- package/source/css/_components/widgets/list.styl +2 -2
- package/source/css/_components/widgets/markdown.styl +9 -3
- package/source/css/_components/widgets/related.styl +3 -3
- package/source/css/_components/widgets/tagcloud.styl +2 -2
- package/source/css/_components/widgets/timeline.styl +2 -2
- package/source/css/_components/widgets/toc.styl +3 -4
- package/source/css/_components/widgets/widgets.styl +4 -4
- package/source/css/_custom.styl +26 -38
- package/source/css/_defines/const.styl +1 -5
- package/source/css/_defines/func.styl +4 -4
- package/source/css/_defines/theme_base.styl +105 -0
- package/source/css/_defines/theme_colorful.styl +117 -0
- package/source/css/_plugins/comments/artalk.styl +25 -8
- package/source/css/_plugins/comments/twikoo.styl +11 -11
- package/source/css/_plugins/comments/waline.styl +2 -2
- package/source/css/_plugins/index.styl +1 -2
- package/source/css/_plugins/lazyload.styl +40 -50
- package/source/css/_plugins/mermaid.styl +1 -1
- package/source/css/_plugins/swiper.styl +2 -2
- package/source/css/_plugins/tianli_gpt.styl +8 -8
- package/source/css/main.styl +2 -1
- package/source/js/services/friends.js +1 -0
- package/source/js/services/friends_and_posts.js +1 -0
- package/source/js/services/sites.js +1 -0
- package/source/js/services/timeline.js +1 -0
- package/layout/_plugins/lazyload.ejs +0 -21
- package/source/css/_components/tag-plugins/common.styl +0 -120
- package/source/css/_defines/theme.styl +0 -120
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
color: var(--text)
|
|
10
10
|
line-height: 1.2
|
|
11
11
|
>a:first-child
|
|
12
|
-
background:
|
|
12
|
+
background: var(--theme)
|
|
13
13
|
border-radius: 2px
|
|
14
14
|
margin-right: 8px
|
|
15
15
|
padding: 0 2px
|
|
16
16
|
trans1 all
|
|
17
17
|
&:hover
|
|
18
|
-
background:
|
|
18
|
+
background: var(--accent)
|
|
19
19
|
&:before,&:after
|
|
20
20
|
color: white
|
|
21
21
|
font-weight: 700
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
display: inline-block
|
|
31
31
|
width: 12px
|
|
32
32
|
height: 1.2em
|
|
33
|
-
background: $
|
|
33
|
+
background: $c-accent
|
|
34
34
|
transform: skewX(-20deg)
|
|
35
35
|
margin: 0 0.5em
|
|
36
36
|
vertical-align: top
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
&:before,&:after
|
|
42
42
|
position absolute
|
|
43
43
|
font-size: 1.2em
|
|
44
|
-
background-color:
|
|
44
|
+
background-color: x-theme-alpha(0.5)
|
|
45
45
|
width: 1em
|
|
46
46
|
height: 1em
|
|
47
47
|
content: ''
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
vertical-align: middle
|
|
52
52
|
&:before
|
|
53
53
|
margin-left: -1em
|
|
54
|
-
svg-mask-icon($
|
|
54
|
+
svg-mask-icon($iH3Left)
|
|
55
55
|
&:after
|
|
56
|
-
svg-mask-icon($
|
|
56
|
+
svg-mask-icon($iH3Right)
|
|
57
57
|
|
|
58
58
|
h4:not([class])
|
|
59
59
|
position: relative
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
height: 32px
|
|
65
65
|
margin-left: -16px
|
|
66
66
|
margin-top: -12px
|
|
67
|
-
background:
|
|
67
|
+
background: x-theme-alpha(0.3)
|
|
68
68
|
border-radius: 50%
|
|
69
69
|
--blur-px: 8px
|
|
70
70
|
filter: blur(var(--blur-px))
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
trans1 all 0.5s
|
|
74
74
|
&:hover:before
|
|
75
75
|
--blur-px: 24px
|
|
76
|
-
background:
|
|
76
|
+
background: x-theme-alpha(1)
|
|
77
77
|
|
|
78
78
|
ol,ul
|
|
79
79
|
margin-left: 'calc(%s * 2)' % var(--fsp)
|
|
@@ -82,38 +82,7 @@
|
|
|
82
82
|
margin: 2em 0 1.5em
|
|
83
83
|
>a:first-child
|
|
84
84
|
display: none
|
|
85
|
-
|
|
86
|
-
>blockquote,.tag-plugin.quote
|
|
87
|
-
text-align: center
|
|
88
|
-
--inset: calc(var(--fsp) * 2)
|
|
89
|
-
margin-left: var(--inset)
|
|
90
|
-
margin-right: var(--inset)
|
|
91
|
-
background: var(--block)
|
|
92
|
-
padding: 1rem 2rem
|
|
93
|
-
border-radius: $border-card
|
|
94
|
-
&:before,&:after
|
|
95
|
-
position: absolute
|
|
96
|
-
font-size: 2rem
|
|
97
|
-
background-color: hsla($color-theme, 0.25)
|
|
98
|
-
top: -0.3em
|
|
99
|
-
width: 1em
|
|
100
|
-
height: 1em
|
|
101
|
-
content: ''
|
|
102
|
-
opacity 1
|
|
103
|
-
trans1 all
|
|
104
|
-
&:before
|
|
105
|
-
left: -0.3em
|
|
106
|
-
svg-mask-icon($iQuoteLeft)
|
|
107
|
-
&:after
|
|
108
|
-
right: -0.3em
|
|
109
|
-
svg-mask-icon($iQuoteRight)
|
|
110
|
-
p:not([class])
|
|
111
|
-
color: var(--text-p2)
|
|
112
|
-
font-size: $fs-body
|
|
113
|
-
text-indent: 2em
|
|
114
|
-
&:hover
|
|
115
|
-
&:before,&:after
|
|
116
|
-
background-color: hsla($color-theme, 0.5)
|
|
85
|
+
|
|
117
86
|
// 取消缩进效果
|
|
118
87
|
.poetry, .okr, .timeline, li, .article-footer
|
|
119
88
|
p:not([class])
|
|
@@ -124,6 +93,39 @@
|
|
|
124
93
|
border-radius: $border-image-l
|
|
125
94
|
|
|
126
95
|
|
|
96
|
+
.l_body[type=story] .md-text.content>blockquote, .md-text.content .tag-plugin.blockquote
|
|
97
|
+
text-align: center
|
|
98
|
+
--inset: calc(var(--fsp) * 2)
|
|
99
|
+
margin-left: var(--inset)
|
|
100
|
+
margin-right: var(--inset)
|
|
101
|
+
background: var(--block)
|
|
102
|
+
padding: 1rem 2rem
|
|
103
|
+
border-radius: $border-card
|
|
104
|
+
&:before,&:after
|
|
105
|
+
position: absolute
|
|
106
|
+
font-size: 2rem
|
|
107
|
+
background-color: x-theme-alpha(0.25)
|
|
108
|
+
top: -0.3em
|
|
109
|
+
width: 1em
|
|
110
|
+
height: 1em
|
|
111
|
+
content: ''
|
|
112
|
+
opacity 1
|
|
113
|
+
trans1 all
|
|
114
|
+
&:before
|
|
115
|
+
left: -0.3em
|
|
116
|
+
svg-mask-icon($iQuoteLeft)
|
|
117
|
+
&:after
|
|
118
|
+
right: -0.3em
|
|
119
|
+
svg-mask-icon($iQuoteRight)
|
|
120
|
+
p:not([class])
|
|
121
|
+
color: var(--text-p2)
|
|
122
|
+
font-size: $fs-body
|
|
123
|
+
text-indent: 2em
|
|
124
|
+
&:hover
|
|
125
|
+
&:before,&:after
|
|
126
|
+
background-color: x-theme-alpha(0.5)
|
|
127
|
+
|
|
128
|
+
|
|
127
129
|
.l_body[type=story] .article.banner .content .bottom.only-title
|
|
128
130
|
justify-content: center
|
|
129
131
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
color: var(--text)
|
|
4
4
|
line-height: 1.8
|
|
5
5
|
>a:first-child
|
|
6
|
-
background:
|
|
6
|
+
background: var(--theme)
|
|
7
7
|
border-radius: 2px
|
|
8
8
|
margin-right: 8px
|
|
9
9
|
padding: 0 2px
|
|
10
10
|
trans1 all
|
|
11
11
|
&:hover
|
|
12
|
-
background:
|
|
12
|
+
background: var(--accent)
|
|
13
13
|
&:before,&:after
|
|
14
14
|
color: white
|
|
15
15
|
font-weight: 700
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
opacity: .4
|
|
22
22
|
&:hover
|
|
23
23
|
&:before
|
|
24
|
-
color
|
|
24
|
+
color var(--theme)
|
|
25
25
|
opacity: 1
|
|
26
26
|
color: var(--text)
|
|
27
27
|
background: var(--block-border)
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
justify-content: end
|
|
41
41
|
align-items: center
|
|
42
42
|
&:hover
|
|
43
|
-
color:
|
|
43
|
+
color: var(--theme)
|
|
44
44
|
|
|
45
45
|
.widget-body.tag-tree .tag-subtree.parent-tag > a .tag-switcher
|
|
46
46
|
display: inline-block
|
|
@@ -10,24 +10,19 @@
|
|
|
10
10
|
background: var(--block-border)
|
|
11
11
|
|
|
12
12
|
.page-footer .sitemap
|
|
13
|
-
margin: .5rem -4px
|
|
14
|
-
display: grid
|
|
15
|
-
scrollbar-width: none
|
|
13
|
+
margin: .5rem -4px
|
|
16
14
|
grid-gap: 1rem 1rem
|
|
17
|
-
grid-auto-flow: column dense
|
|
18
|
-
// grid-template-columns: repeat(auto-fill, minmax(80px, 1fr))
|
|
19
|
-
grid-template-columns: repeat(4, 1fr)
|
|
20
|
-
overflow: scroll
|
|
21
15
|
scrollbar(0, 0)
|
|
22
|
-
|
|
16
|
+
column-count: 4
|
|
23
17
|
|
|
24
18
|
.page-footer .sitemap .sitemap-group
|
|
19
|
+
break-inside: avoid
|
|
25
20
|
display: flex
|
|
26
21
|
flex-direction: column
|
|
27
22
|
align-items: flex-start
|
|
23
|
+
padding-bottom: 1rem
|
|
28
24
|
>span,>a
|
|
29
25
|
text-decoration: none
|
|
30
|
-
txt-ellipsis()
|
|
31
26
|
padding: 4px
|
|
32
27
|
>span
|
|
33
28
|
font-weight: 500
|
|
@@ -36,6 +31,7 @@
|
|
|
36
31
|
|
|
37
32
|
|
|
38
33
|
.page-footer .text
|
|
34
|
+
margin-top: .5rem
|
|
39
35
|
p
|
|
40
36
|
margin: 4px 0
|
|
41
37
|
line-height: 1.5
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
z-index: 1
|
|
36
36
|
trans1 all
|
|
37
37
|
&:hover
|
|
38
|
-
background: var(--
|
|
38
|
+
background: var(--bg-a100)
|
|
39
39
|
&.active, &:hover
|
|
40
40
|
color: var(--text)
|
|
41
41
|
&.active
|
|
42
|
-
background: var(--
|
|
42
|
+
background: var(--bg-a60)
|
|
43
43
|
@media (prefers-color-scheme: dark)
|
|
44
44
|
background: rgba(white, 0.25)
|
|
45
45
|
box-shadow: $boxshadow-button
|
|
@@ -49,11 +49,11 @@ article.md-text.content+.related-wrap
|
|
|
49
49
|
-webkit-line-clamp: 2
|
|
50
50
|
&.active
|
|
51
51
|
.title
|
|
52
|
-
border-bottom: 1px dashed
|
|
52
|
+
border-bottom: 1px dashed var(--theme)
|
|
53
53
|
&:hover
|
|
54
54
|
.title
|
|
55
|
-
color:
|
|
56
|
-
border-bottom: 1px solid
|
|
55
|
+
color: var(--accent)
|
|
56
|
+
border-bottom: 1px solid var(--accent)
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
.related-wrap#read-next
|
|
@@ -76,7 +76,7 @@ article.md-text.content+.related-wrap
|
|
|
76
76
|
color: var(--text-p1)
|
|
77
77
|
font-size: $fsh5
|
|
78
78
|
&:hover
|
|
79
|
-
color:
|
|
79
|
+
color: var(--accent) !important
|
|
80
80
|
#next
|
|
81
81
|
text-align: right
|
|
82
82
|
.wiki+.related-wrap#read-next
|
|
@@ -94,8 +94,8 @@ article.md-text.content+.related-wrap
|
|
|
94
94
|
margin: 0
|
|
95
95
|
font-size: inherit
|
|
96
96
|
a
|
|
97
|
-
--
|
|
98
|
-
--
|
|
97
|
+
--link: var(--theme)
|
|
98
|
+
--link-a20: x-theme-alpha(0.2)
|
|
99
99
|
.cmt-body
|
|
100
100
|
min-height: 150px
|
|
101
101
|
position: relative
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
font-weight: 500
|
|
21
21
|
color: var(--text-p3)
|
|
22
22
|
text-align: center
|
|
23
|
-
background: var(--
|
|
23
|
+
background: var(--bg-a50)
|
|
24
24
|
trans1 background
|
|
25
25
|
position: relative
|
|
26
26
|
display: flex
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
img,svg
|
|
31
31
|
height: 28px
|
|
32
32
|
object-fit: contain
|
|
33
|
-
filter: grayscale(
|
|
33
|
+
filter: grayscale(50%) brightness(0.8) opacity(0.5)
|
|
34
34
|
trans1 all
|
|
35
35
|
span
|
|
36
36
|
text-overflow: ellipsis
|
|
37
37
|
word-break: keep-all
|
|
38
38
|
&.active, &:hover
|
|
39
39
|
color: var(--text-p1)
|
|
40
|
-
background: var(--
|
|
40
|
+
background: var(--bg-a100)
|
|
41
41
|
img,svg
|
|
42
42
|
filter: unset
|
|
43
43
|
&.active:after
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
left: 1rem
|
|
25
25
|
right: 1rem
|
|
26
26
|
border-radius: $border-bar
|
|
27
|
-
background: var(--
|
|
27
|
+
background: var(--bg-a100)
|
|
28
28
|
@media screen and (prefers-color-scheme: dark)
|
|
29
|
-
background: var(--
|
|
29
|
+
background: var(--bg-a20)
|
|
30
30
|
z-index 0
|
|
31
31
|
trans1 all
|
|
32
32
|
&:hover,&:has(input:focus),&:has(input:not(:placeholder-shown))
|
|
33
33
|
&:before
|
|
34
|
-
background: var(--
|
|
34
|
+
background: var(--bg-a100)
|
|
35
35
|
height: 100%
|
|
36
36
|
left: 0
|
|
37
37
|
right: 0
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
color: var(--text-p2)
|
|
58
58
|
fill: currentColor
|
|
59
59
|
path[p-id="1562"]
|
|
60
|
-
color:
|
|
60
|
+
color: var(--theme)
|
|
61
61
|
|
|
62
62
|
&[searching='true']
|
|
63
63
|
.search-button
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
font-size: $fs-14
|
|
76
76
|
padding: 2rem
|
|
77
77
|
margin: 8px 0
|
|
78
|
-
background: var(--
|
|
78
|
+
background: var(--bg-a20)
|
|
79
79
|
border-radius: $border-card-s
|
|
80
80
|
|
|
81
81
|
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
list-style-type: none
|
|
94
94
|
li a
|
|
95
95
|
display: block
|
|
96
|
-
background: var(--
|
|
96
|
+
background: var(--bg-a20)
|
|
97
97
|
line-height: 1.2
|
|
98
98
|
padding: 0.75rem 1rem
|
|
99
99
|
border-radius: $border-card-s
|
|
100
100
|
trans1 background
|
|
101
101
|
&:hover
|
|
102
|
-
background: var(--
|
|
102
|
+
background: var(--bg-a100)
|
|
103
103
|
li+li
|
|
104
104
|
margin-top: 8px
|
|
105
105
|
.search-result-title
|
|
@@ -25,23 +25,23 @@
|
|
|
25
25
|
bottom: var(--inset)
|
|
26
26
|
left: var(--inset)
|
|
27
27
|
right: var(--inset)
|
|
28
|
-
background-position: center
|
|
29
|
-
background-size: cover
|
|
30
28
|
border-radius: $border-card-l
|
|
31
|
-
--saturate:
|
|
29
|
+
--saturate: 400%
|
|
32
30
|
--blur-px: convert(hexo-config('style.leftbar.blur-px'))
|
|
33
|
-
--
|
|
34
|
-
if
|
|
31
|
+
--background-opacity: 1
|
|
32
|
+
if $leftbar-background-image
|
|
33
|
+
background-position: center
|
|
34
|
+
background-size: cover
|
|
35
35
|
if hexo-config('style.leftbar.blur-px')
|
|
36
36
|
--inset: 32px
|
|
37
|
+
if hexo-config('style.leftbar.background-opacity')
|
|
38
|
+
--background-opacity: hexo-config('style.leftbar.background-opacity')
|
|
37
39
|
background-image: convert(hexo-config('style.leftbar.background-image'))
|
|
38
|
-
filter: saturate(var(--saturate))
|
|
40
|
+
filter: saturate(var(--saturate)) blur(var(--blur-px)) opacity(var(--background-opacity))
|
|
39
41
|
@media screen and (prefers-color-scheme: dark)
|
|
40
|
-
--
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
else if hexo-config('style.leftbar') && hexo-config('style.leftbar.background')
|
|
44
|
-
background: convert(hexo-config('style.leftbar.background'))
|
|
42
|
+
--background-opacity: hexo-config('style.leftbar.background-opacity') * 0.75
|
|
43
|
+
else if $leftbar-background-color
|
|
44
|
+
background-color: convert($leftbar-background-color)
|
|
45
45
|
|
|
46
46
|
.leftbar-container
|
|
47
47
|
height: 'calc(%s - %s * 2 - %s)' % (100vh var(--gap-margin) $leftbar-bottom-margin)
|
|
@@ -67,24 +67,24 @@
|
|
|
67
67
|
right: 0
|
|
68
68
|
border-radius: $border-card-l
|
|
69
69
|
&:before
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
70
|
+
if $leftbar-background-image
|
|
71
|
+
@media screen and (min-width: $device-mobile-max)
|
|
72
|
+
background: rgba(white, 0.5)
|
|
73
|
+
box-shadow: inset 0 0 32px 1px rgba(white, 0.5)
|
|
74
|
+
backdrop-filter: saturate(300%)
|
|
75
|
+
-webkit-backdrop-filter: saturate(300%)
|
|
76
|
+
mask: linear-gradient(black, rgba(black, 0.5), 70%, transparent, 90%, transparent)
|
|
77
|
+
-webkit-mask: linear-gradient(black, rgba(black, 0.5), 70%, transparent, 90%, transparent)
|
|
78
|
+
@media screen and (prefers-color-scheme: dark)
|
|
79
|
+
background: rgba(white, 0.05)
|
|
80
|
+
box-shadow: inset 0 0 32px 1px rgba(white, 0.1)
|
|
81
81
|
|
|
82
82
|
@media screen and (max-width: $device-mobile-max)
|
|
83
83
|
.l_left
|
|
84
84
|
overflow: hidden
|
|
85
|
-
background: var(--
|
|
85
|
+
background: var(--bg-a100)
|
|
86
86
|
.sidebg
|
|
87
87
|
--inset: 0
|
|
88
88
|
--saturate: 300%
|
|
89
89
|
.leftbar-container:after
|
|
90
|
-
background: var(--
|
|
90
|
+
background: var(--bg-a20)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
a.tag-plugin.button
|
|
2
2
|
background: var(--theme)
|
|
3
|
-
color: var(--
|
|
3
|
+
color: var(--bg-a100)
|
|
4
4
|
display: inline-flex
|
|
5
5
|
align-items: baseline
|
|
6
6
|
justify-content: center
|
|
@@ -28,7 +28,7 @@ a.tag-plugin.button[size='xs']
|
|
|
28
28
|
margin: 0 2px
|
|
29
29
|
|
|
30
30
|
a.tag-plugin.button:hover
|
|
31
|
-
--theme:
|
|
31
|
+
--theme: var(--accent)
|
|
32
32
|
|
|
33
33
|
.tag-plugin.grid a.tag-plugin.button
|
|
34
34
|
width: 100%
|
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
chat_light()
|
|
2
|
+
--chat-bg: #f1f2f5
|
|
3
|
+
--chat-block: #ffffff
|
|
4
|
+
--chat-border: #f2f2f2
|
|
5
|
+
--chat-qq-right-bg: #0099FF
|
|
6
|
+
--chat-qq-right-text: #ffffff
|
|
7
|
+
--chat-wechat-news-num: #d8dadf
|
|
8
|
+
--chat-video-button: #ffffffE6
|
|
9
|
+
--chat-wechat-right-bg: #91ED61
|
|
10
|
+
--chat-quote-blink-color: #185c6d1a
|
|
11
|
+
--chat-wechat-quote-color: #808080
|
|
12
|
+
--chat-wechat-quote-bg: #8080801a
|
|
13
|
+
|
|
14
|
+
chat_dark()
|
|
15
|
+
--chat-bg: #1f2224 // #111111
|
|
16
|
+
--chat-block: #25282a // #191919
|
|
17
|
+
--chat-border: #303437 // #222222
|
|
18
|
+
--chat-qq-right-bg: #0099ff80
|
|
19
|
+
--chat-qq-right-text: #ffffff99
|
|
20
|
+
--chat-wechat-news-num: #25282a
|
|
21
|
+
--chat-video-button: #25282ad9 // #191919E6
|
|
22
|
+
--chat-wechat-right-bg: hsl(hue($c-green), 25, 25)
|
|
23
|
+
--chat-quote-blink-color: #185c6d26
|
|
24
|
+
--chat-wechat-quote-color: #858585
|
|
25
|
+
--chat-wechat-quote-bg: #8585851a
|
|
26
|
+
|
|
27
|
+
:root[data-theme="light"]
|
|
28
|
+
chat_light()
|
|
29
|
+
:root[data-theme="dark"]
|
|
30
|
+
chat_dark()
|
|
31
|
+
:root:not([data-theme])
|
|
32
|
+
chat_light()
|
|
33
|
+
@media (prefers-color-scheme: dark)
|
|
34
|
+
chat_dark()
|
|
35
|
+
|
|
36
|
+
|
|
1
37
|
.md-text .tag-plugin.chat
|
|
2
38
|
.fs12
|
|
3
39
|
font-size: $fs-12
|
|
@@ -115,10 +151,10 @@
|
|
|
115
151
|
height: 100%
|
|
116
152
|
.submit-btn
|
|
117
153
|
padding: 3px 6px
|
|
118
|
-
background: var(--theme-
|
|
154
|
+
background: var(--theme-a30)
|
|
119
155
|
border-radius: 6px
|
|
120
156
|
font-size: $fs-14
|
|
121
|
-
color: var(--theme
|
|
157
|
+
color: var(--theme)
|
|
122
158
|
.icons
|
|
123
159
|
margin: 0 .5em
|
|
124
160
|
display: flex
|
|
@@ -168,8 +204,8 @@
|
|
|
168
204
|
align-items: center
|
|
169
205
|
.label
|
|
170
206
|
padding: 0 4px
|
|
171
|
-
color: var(--theme
|
|
172
|
-
background: var(--theme-
|
|
207
|
+
color: var(--theme)
|
|
208
|
+
background: var(--theme-a30)
|
|
173
209
|
border-radius: 3px
|
|
174
210
|
margin-right: 4px
|
|
175
211
|
font-size: 'calc(%s - .1rem)' % $fs-12
|
|
@@ -192,17 +228,17 @@
|
|
|
192
228
|
min-height: 100px
|
|
193
229
|
>.quote
|
|
194
230
|
color: var(--text-p3)
|
|
195
|
-
background: var(--text-
|
|
231
|
+
background: var(--text-a20)
|
|
196
232
|
padding: .3rem
|
|
197
233
|
border-radius: 6px
|
|
198
234
|
cursor: pointer
|
|
199
235
|
margin-bottom: .3em
|
|
200
236
|
trans2 color background .5s
|
|
201
237
|
&:hover
|
|
202
|
-
color: var(--theme
|
|
203
|
-
background: var(--theme-
|
|
238
|
+
color: var(--theme)
|
|
239
|
+
background: var(--theme-a30)
|
|
204
240
|
.quote-user>svg>path
|
|
205
|
-
fill: var(--theme
|
|
241
|
+
fill: var(--theme)
|
|
206
242
|
.quote-user
|
|
207
243
|
display: flex
|
|
208
244
|
justify-content: space-between
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
width: 100%
|
|
10
10
|
min-width: 200px
|
|
11
11
|
span
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
border-
|
|
16
|
-
|
|
12
|
+
padding: .25rem .5rem
|
|
13
|
+
margin: auto .5rem
|
|
14
|
+
line-height: 1
|
|
15
|
+
border-radius: 4px
|
|
16
|
+
background: x-theme-alpha(0.2)
|
|
17
|
+
color: var(--theme)
|
|
17
18
|
font-family: $ff-code
|
|
18
19
|
font-size: $fs-13
|
|
19
20
|
font-weight: 700
|
|
@@ -25,14 +26,18 @@
|
|
|
25
26
|
color: var(--text-p2)
|
|
26
27
|
line-height: 3
|
|
27
28
|
text-indent: 1rem
|
|
29
|
+
span+input.copy-area
|
|
30
|
+
text-indent: 0
|
|
28
31
|
button.copy-btn
|
|
29
|
-
margin: 2px
|
|
32
|
+
margin: 2px 2px 2px 0
|
|
30
33
|
border-radius: 'calc(%s - 2px)' % $border-bar
|
|
31
34
|
display: inline-block
|
|
32
|
-
background:
|
|
35
|
+
background: var(--block)
|
|
36
|
+
trans1 all
|
|
33
37
|
line-height: 0
|
|
34
38
|
font-size: 1rem
|
|
35
39
|
padding: 0 .75rem
|
|
36
40
|
color: var(--text-p2)
|
|
37
41
|
&:hover
|
|
38
|
-
|
|
42
|
+
color: var(--theme)
|
|
43
|
+
background: var(--theme-a20)
|
|
@@ -24,15 +24,14 @@
|
|
|
24
24
|
overflow: hidden
|
|
25
25
|
-webkit-line-clamp: 2
|
|
26
26
|
position: relative
|
|
27
|
+
.lazy-box
|
|
28
|
+
border-radius: 64px
|
|
29
|
+
margin: 0 0 0.5rem
|
|
27
30
|
img
|
|
28
31
|
object-fit: cover
|
|
29
32
|
display: block
|
|
30
33
|
width: 48px
|
|
31
34
|
height: 48px
|
|
32
|
-
background: var(--card)
|
|
33
|
-
border-radius: 64px
|
|
34
|
-
margin: 0 0 0.5rem
|
|
35
|
-
|
|
36
35
|
.label
|
|
37
36
|
margin-top: 4px
|
|
38
37
|
color: white
|
|
@@ -43,10 +42,10 @@
|
|
|
43
42
|
|
|
44
43
|
// transform
|
|
45
44
|
.users-wrap .user-card .card-link
|
|
46
|
-
|
|
45
|
+
.lazy-box
|
|
47
46
|
floatable-trans()
|
|
48
47
|
&:hover
|
|
49
48
|
background: var(--block-border)
|
|
50
|
-
|
|
49
|
+
.lazy-box
|
|
51
50
|
transform: scale(1.2) rotate(8deg)
|
|
52
51
|
box-shadow: $boxshadow-card-float
|
|
@@ -58,14 +58,15 @@
|
|
|
58
58
|
font-weight: 500
|
|
59
59
|
margin-top: 1rem
|
|
60
60
|
max-width: 100%
|
|
61
|
+
.lazy-box
|
|
62
|
+
border-radius: 64px
|
|
63
|
+
floatable-trans()
|
|
61
64
|
img
|
|
62
65
|
object-fit: cover
|
|
63
66
|
display: block
|
|
64
67
|
width: 64px
|
|
65
68
|
height: 64px
|
|
66
|
-
|
|
67
|
-
border-radius: 64px
|
|
68
|
-
floatable-trans()
|
|
69
|
+
|
|
69
70
|
|
|
70
71
|
.previews
|
|
71
72
|
display: flex
|
|
@@ -117,7 +118,7 @@
|
|
|
117
118
|
background: var(--block-border)
|
|
118
119
|
trans1 all
|
|
119
120
|
&:hover:before
|
|
120
|
-
background:
|
|
121
|
+
background: var(--accent)
|
|
121
122
|
// height: calc(100% - 4px)
|
|
122
123
|
height: 100%
|
|
123
124
|
top: 0
|
|
@@ -150,11 +151,11 @@
|
|
|
150
151
|
&:hover
|
|
151
152
|
.desc
|
|
152
153
|
&:before
|
|
153
|
-
color:
|
|
154
|
+
color: var(--accent)
|
|
154
155
|
transform: scale(1.2) translateX(-4px)
|
|
155
156
|
.card-link:hover
|
|
156
|
-
|
|
157
|
+
.lazy-box
|
|
157
158
|
transform: scale(1.2) rotate(8deg)
|
|
158
159
|
box-shadow: $boxshadow-card-float
|
|
159
160
|
.post-link:hover
|
|
160
|
-
color:
|
|
161
|
+
color: var(--accent)
|
|
@@ -96,8 +96,6 @@
|
|
|
96
96
|
img
|
|
97
97
|
width: 100%
|
|
98
98
|
height: 100%
|
|
99
|
-
&.loading
|
|
100
|
-
background-size: convert(hexo-config('plugins.lazyload.loading_image.size'))
|
|
101
99
|
|
|
102
100
|
// 瀑布流布局
|
|
103
101
|
.tag-plugin.gallery.flow-box
|
|
@@ -111,6 +109,7 @@
|
|
|
111
109
|
height: 100%
|
|
112
110
|
border-radius: 8px
|
|
113
111
|
&:has(img.loading),&:has(img.error)
|
|
112
|
+
background-color: var(--block)
|
|
114
113
|
img
|
|
115
114
|
background-color: var(--block)
|
|
116
115
|
.image-meta
|