hexo-theme-stellar 1.31.0 → 1.32.1
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 +15 -13
- package/_data/icons.yml +3 -3
- package/layout/_partial/comments/artalk/script.ejs +1 -2
- package/layout/_partial/comments/layout.ejs +1 -1
- package/layout/_partial/head.ejs +15 -3
- package/layout/_partial/scripts/theme.ejs +3 -3
- package/layout/_partial/sidebar/index_leftbar.ejs +9 -9
- package/layout/index.ejs +3 -1
- package/layout/layout.ejs +3 -2
- package/package.json +4 -2
- package/scripts/events/index.js +39 -2
- package/scripts/events/lib/fix_image_tags.js +44 -0
- package/scripts/events/lib/get_image_ratios.js +110 -0
- package/scripts/events/lib/version-check.js +2 -0
- package/scripts/helpers/json_ld.js +5 -1
- package/scripts/tags/index.js +1 -1
- package/scripts/tags/lib/{quote.js → blockquote.js} +5 -5
- package/scripts/tags/lib/image.js +16 -6
- package/scripts/tags/lib/navbar.js +2 -2
- package/scripts/tags/lib/timeline.js +1 -1
- package/scripts/tags/lib/video.js +2 -2
- package/source/css/_common/base.styl +16 -6
- package/source/css/_common/canonical.styl +1 -1
- package/source/css/_common/highlight.styl +5 -2
- package/source/css/_components/layout.styl +11 -10
- package/source/css/_components/list.styl +3 -0
- package/source/css/_components/main.styl +1 -1
- package/source/css/_components/md.styl +4 -2
- package/source/css/_components/pages/archives.styl +2 -2
- package/source/css/_components/pages/article-story.styl +40 -32
- package/source/css/_components/pages/article-tech.styl +1 -1
- package/source/css/_components/pages/notebook.styl +1 -1
- package/source/css/_components/partial/article-banner.styl +4 -1
- package/source/css/_components/partial/footer.styl +1 -1
- package/source/css/_components/partial/navbar.styl +2 -1
- package/source/css/_components/sidebar/nav-area.styl +1 -1
- package/source/css/_components/sidebar/search.styl +44 -21
- package/source/css/_components/sidebar/sidebar.styl +9 -5
- package/source/css/_components/tag-plugins/banner.styl +1 -1
- package/source/css/_components/tag-plugins/button.styl +3 -4
- package/source/css/_components/tag-plugins/copy.styl +12 -8
- package/source/css/_components/tag-plugins/friends.styl +1 -1
- package/source/css/_components/tag-plugins/gallery.styl +6 -0
- package/source/css/_components/tag-plugins/image.styl +10 -0
- 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/override.styl +0 -5
- package/source/css/_components/tag-plugins/quot.styl +2 -2
- package/source/css/_components/tag-plugins/quote.styl +1 -1
- package/source/css/_components/tag-plugins/tabs.styl +4 -3
- package/source/css/_components/tag-plugins/timeline.styl +2 -2
- package/source/css/_components/tag-plugins/toc.styl +1 -1
- package/source/css/_components/widgets/list.styl +1 -1
- package/source/css/_components/widgets/markdown.styl +0 -7
- package/source/css/_components/widgets/toc.styl +7 -5
- package/source/css/_components/widgets/widgets.styl +0 -5
- package/source/css/_custom.styl +5 -7
- package/source/css/_defines/const.styl +1 -1
- package/source/css/_defines/func.styl +9 -5
- package/source/css/_defines/theme.styl +4 -15
- package/source/css/_plugins/comments/artalk.styl +114 -2
- package/source/css/_plugins/comments/twikoo.styl +3 -3
- package/source/css/_plugins/index.styl +5 -5
- package/source/css/_plugins/lazyload.styl +49 -2
- package/source/js/search/local-search.js +163 -151
- package/source/js/services/artalk_latest_comment.js +1 -1
- package/layout/_partial/widgets/search.ejs +0 -0
|
@@ -96,6 +96,8 @@
|
|
|
96
96
|
img
|
|
97
97
|
width: 100%
|
|
98
98
|
height: 100%
|
|
99
|
+
&.loading
|
|
100
|
+
background-size: convert(hexo-config('plugins.lazyload.loading_image.size'))
|
|
99
101
|
|
|
100
102
|
// 瀑布流布局
|
|
101
103
|
.tag-plugin.gallery.flow-box
|
|
@@ -107,6 +109,10 @@
|
|
|
107
109
|
img
|
|
108
110
|
width: 100%
|
|
109
111
|
height: 100%
|
|
112
|
+
border-radius: 8px
|
|
113
|
+
&:has(img.loading),&:has(img.error)
|
|
114
|
+
img
|
|
115
|
+
background-color: var(--block)
|
|
110
116
|
.image-meta
|
|
111
117
|
border-radius: 8px
|
|
112
118
|
margin-bottom: 8px
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
.tag-plugin.image
|
|
2
2
|
margin-top: 1rem
|
|
3
3
|
margin-bottom: 1rem
|
|
4
|
+
box-sizing: border-box
|
|
4
5
|
.image-bg
|
|
5
6
|
text-align: center
|
|
6
7
|
border-radius: $border-image
|
|
7
8
|
position: relative
|
|
8
9
|
overflow: hidden
|
|
10
|
+
display: flex
|
|
11
|
+
box-sizing: border-box
|
|
12
|
+
flex-direction: column
|
|
13
|
+
justify-content: center
|
|
14
|
+
align-items: center
|
|
15
|
+
margin: auto
|
|
16
|
+
max-width: 100%
|
|
17
|
+
&:has(img.lazy.loading),&:has(img.lazy.error)
|
|
18
|
+
background-color: var(--block)
|
|
9
19
|
&:hover
|
|
10
20
|
.image-download
|
|
11
21
|
opacity: 1 !important
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
.tag-plugin.navbar
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
display: inline-flex
|
|
3
|
+
background: var(--card)
|
|
4
|
+
border-radius: $border-button
|
|
5
|
+
z-index inherit
|
|
6
|
+
box-shadow: 0 0 8px hsla(black, 0.04)
|
|
7
|
+
a
|
|
8
|
+
box-sizing: border-box
|
|
9
|
+
padding: .25rem 1rem
|
|
10
|
+
margin: 2px
|
|
11
|
+
color: inherit
|
|
12
|
+
border-radius: 'calc(%s - 1px)' % $border-button
|
|
13
|
+
trans1 all
|
|
14
|
+
&+a
|
|
15
|
+
margin-left: 0
|
|
16
|
+
&.active
|
|
17
|
+
background: var(--block)
|
|
18
|
+
&:hover
|
|
19
|
+
background: var(--block)
|
|
@@ -84,14 +84,14 @@
|
|
|
84
84
|
bottom: -8px
|
|
85
85
|
border-radius: 100%
|
|
86
86
|
background: var(--text)
|
|
87
|
-
opacity: 0.
|
|
87
|
+
opacity: 0.1
|
|
88
88
|
filter: blur(2px)
|
|
89
89
|
trans1 all
|
|
90
90
|
&:hover
|
|
91
91
|
.content
|
|
92
92
|
transform: translateY(-4px) scale(1.05)
|
|
93
93
|
.text:after
|
|
94
|
-
opacity: 0.
|
|
94
|
+
opacity: 0.2
|
|
95
95
|
filter: blur(8px)
|
|
96
96
|
transform: translateY(4px) scale(1.2, 1.5)
|
|
97
97
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
&:after
|
|
33
33
|
content: ''
|
|
34
34
|
position: absolute
|
|
35
|
-
background: var(--block-
|
|
35
|
+
background: var(--block-border)
|
|
36
36
|
width: 100%
|
|
37
37
|
height: 2px
|
|
38
38
|
bottom: 0
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
margin: 0 2px
|
|
55
55
|
&:hover
|
|
56
56
|
color: var(--text-p1)
|
|
57
|
-
background: var(--block-
|
|
57
|
+
background: var(--block-border)
|
|
58
58
|
i
|
|
59
59
|
pointer-events: none
|
|
60
60
|
&.active a
|
|
@@ -81,9 +81,10 @@
|
|
|
81
81
|
flex-direction: column
|
|
82
82
|
.tab-pane
|
|
83
83
|
display: block
|
|
84
|
-
|
|
84
|
+
max-width: 100%
|
|
85
85
|
&:not(.active)
|
|
86
86
|
height: 0
|
|
87
|
+
overflow: hidden
|
|
87
88
|
&.active
|
|
88
89
|
height: auto
|
|
89
90
|
.tab-content:has(.grid-box),.tab-pane:has(.grid-box)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
content: ''
|
|
6
6
|
position: absolute
|
|
7
7
|
z-index: 0
|
|
8
|
-
background: var(--block
|
|
8
|
+
background: var(--block)
|
|
9
9
|
width: 4px
|
|
10
10
|
left: 0px
|
|
11
11
|
border-radius: 8px
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
border-color: var(--block-border)
|
|
184
184
|
color: inherit
|
|
185
185
|
&:hover
|
|
186
|
-
background: var(--block-
|
|
186
|
+
background: var(--block-border)
|
|
187
187
|
|
|
188
188
|
.reaction
|
|
189
189
|
border-color: var(--block)
|
|
@@ -5,13 +5,6 @@
|
|
|
5
5
|
background: var(--alpha50)
|
|
6
6
|
>*:first-child
|
|
7
7
|
margin-top: .75rem
|
|
8
|
-
a:not([class])
|
|
9
|
-
trans1 all
|
|
10
|
-
border-bottom: 1px solid var(--text)
|
|
11
|
-
color: var(--text)
|
|
12
|
-
&:hover
|
|
13
|
-
color: $color-hover
|
|
14
|
-
border-bottom: 1px solid $color-hover
|
|
15
8
|
|
|
16
9
|
.widget-wrapper.markdown .linklist
|
|
17
10
|
margin: 1em 0
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
a
|
|
27
27
|
--padding: calc(var(--gap-padding) / 2)
|
|
28
28
|
--padding-offset: calc(0 - var(--padding))
|
|
29
|
-
padding:
|
|
29
|
+
padding: 4px var(--padding)
|
|
30
30
|
margin: 0 var(--padding)
|
|
31
31
|
color: var(--text-p3)
|
|
32
32
|
display: block
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
background: $color-theme
|
|
44
44
|
border-radius: 4px
|
|
45
45
|
&:hover
|
|
46
|
-
background: var(--block-
|
|
46
|
+
background: var(--block-border)
|
|
47
47
|
color: var(--text)
|
|
48
48
|
|
|
49
49
|
// 固定位置
|
|
@@ -51,13 +51,15 @@
|
|
|
51
51
|
margin-top: 0
|
|
52
52
|
position: sticky
|
|
53
53
|
position: -webkit-sticky
|
|
54
|
-
top:
|
|
54
|
+
top: calc(var(--gap-margin) * 1)
|
|
55
55
|
padding: 16px 0
|
|
56
56
|
&:first-child
|
|
57
|
-
top:
|
|
57
|
+
top: calc(var(--gap-margin) * 2)
|
|
58
58
|
padding-top: 1rem
|
|
59
59
|
.widget-body .toc
|
|
60
60
|
max-height: 70vh
|
|
61
|
+
@media screen and (max-width: $device-desktop)
|
|
62
|
+
max-height: 60vh
|
|
61
63
|
@media screen and (max-width: $device-laptop)
|
|
62
64
|
max-height: unset
|
|
63
65
|
overflow: auto
|
|
@@ -159,7 +161,7 @@
|
|
|
159
161
|
width: auto
|
|
160
162
|
margin-right: 8px
|
|
161
163
|
a:hover
|
|
162
|
-
background: var(--block-
|
|
164
|
+
background: var(--block-border)
|
|
163
165
|
color: var(--text)
|
|
164
166
|
|
|
165
167
|
.widget-wrapper.toc+.widget-wrapper
|
package/source/css/_custom.styl
CHANGED
|
@@ -24,6 +24,9 @@ $iQuoteRight = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' wid
|
|
|
24
24
|
$h3Left = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Solar by 480 Design - https://creativecommons.org/licenses/by/4.0/ --%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M13.488 4.43a.75.75 0 0 1 .081 1.058L7.988 12l5.581 6.512a.75.75 0 1 1-1.138.976l-6-7a.75.75 0 0 1 0-.976l6-7a.75.75 0 0 1 1.057-.081' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M17.75 5a.75.75 0 0 0-1.32-.488l-6 7a.75.75 0 0 0 0 .976l6 7A.75.75 0 0 0 17.75 19z'/%3E%3C/svg%3E"
|
|
25
25
|
$h3Right = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Solar by 480 Design - https://creativecommons.org/licenses/by/4.0/ --%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.512 4.43a.75.75 0 0 0-.081 1.058L16.012 12l-5.581 6.512a.75.75 0 1 0 1.138.976l6-7a.75.75 0 0 0 0-.976l-6-7a.75.75 0 0 0-1.057-.081' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M6.25 5a.75.75 0 0 1 1.32-.488l6 7a.75.75 0 0 1 0 .976l-6 7A.75.75 0 0 1 6.25 19z'/%3E%3C/svg%3E"
|
|
26
26
|
|
|
27
|
+
$loadingIcon = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%231cd0fd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath stroke-dasharray='16' stroke-dashoffset='16' d='M12 3c4.97 0 9 4.03 9 9'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' dur='0.6s' values='16;0'/%3E%3CanimateTransform attributeName='transform' dur='3s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3Cpath stroke-dasharray='64' stroke-dashoffset='64' stroke-opacity='0.3' d='M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' dur='2.4s' values='64;0'/%3E%3C/path%3E%3C/g%3E%3C/svg%3E"
|
|
28
|
+
|
|
29
|
+
|
|
27
30
|
if hexo-config('style.font-family.body')
|
|
28
31
|
$ff-body = convert(hexo-config('style.font-family.body'))
|
|
29
32
|
|
|
@@ -63,7 +66,9 @@ $border-card-l = convert(hexo-config('style.border-radius.card-l'))
|
|
|
63
66
|
$border-card = convert(hexo-config('style.border-radius.card'))
|
|
64
67
|
$border-card-s = convert(hexo-config('style.border-radius.card-s'))
|
|
65
68
|
$border-bar = convert(hexo-config('style.border-radius.bar'))
|
|
69
|
+
$border-image-l = convert(hexo-config('style.border-radius.image-l'))
|
|
66
70
|
$border-image = convert(hexo-config('style.border-radius.image'))
|
|
71
|
+
$border-image-s = convert(hexo-config('style.border-radius.image-s'))
|
|
67
72
|
$border-button = 8px
|
|
68
73
|
|
|
69
74
|
// 可以动态变化的属性
|
|
@@ -100,13 +105,6 @@ $border-button = 8px
|
|
|
100
105
|
// 元素文本内容到容器边缘的间距
|
|
101
106
|
--gap-max: calc(var(--gap-margin) + var(--gap-padding))
|
|
102
107
|
|
|
103
|
-
// 文章布局风格
|
|
104
|
-
.l_body[type=story]
|
|
105
|
-
--gap-p: 2rem
|
|
106
|
-
div.tag-plugin,p>img
|
|
107
|
-
margin-top: 2.4rem
|
|
108
|
-
margin-bottom: 2.4rem
|
|
109
|
-
|
|
110
108
|
// shadow
|
|
111
109
|
$boxshadow-card = 0 1px 2px 0px rgba(0, 0, 0, 0.1)
|
|
112
110
|
$boxshadow-float = 0 4px 8px 0px rgba(0, 0, 0, 0.1)
|
|
@@ -107,7 +107,7 @@ hover-block($v, $h, $br = 4px)
|
|
|
107
107
|
padding: $v $h
|
|
108
108
|
trans2 color background
|
|
109
109
|
&:hover
|
|
110
|
-
background: var(--block-
|
|
110
|
+
background: var(--block-border)
|
|
111
111
|
|
|
112
112
|
floatable-trans()
|
|
113
113
|
trans2 transform box-shadow
|
|
@@ -134,7 +134,7 @@ hoverable-card()
|
|
|
134
134
|
ondark()
|
|
135
135
|
|
|
136
136
|
newblur()
|
|
137
|
-
box-shadow: 0 0 2px rgba(black, .
|
|
137
|
+
box-shadow: 0 0 2px rgba(black, .04), 0 2px 8px rgba(black, .04), 0 4px 16px rgba(black, .04)
|
|
138
138
|
trans1: all
|
|
139
139
|
&:before,&:after
|
|
140
140
|
z-index -1
|
|
@@ -148,12 +148,16 @@ newblur()
|
|
|
148
148
|
border-radius: 64px
|
|
149
149
|
&:before
|
|
150
150
|
backdrop-filter: blur(8px)
|
|
151
|
+
-webkit-backdrop-filter: blur(8px)
|
|
152
|
+
background: var(--alpha20)
|
|
151
153
|
&:after
|
|
152
|
-
--blur-px:
|
|
154
|
+
--blur-px: 24px
|
|
153
155
|
--blur-sat: 500%
|
|
154
|
-
background: var(--
|
|
156
|
+
background: var(--alpha50)
|
|
155
157
|
backdrop-filter: saturate(var(--blur-sat)) blur(var(--blur-px))
|
|
156
|
-
|
|
158
|
+
-webkit-backdrop-filter: saturate(var(--blur-sat)) blur(var(--blur-px))
|
|
159
|
+
mask: linear-gradient(rgba(white, 1), 10%, rgba(white, 0.05), 90%, rgba(white, 1)), linear-gradient(90deg, rgba(white, 1), 10%, rgba(white, 0.05), 90%, rgba(white, 1))
|
|
160
|
+
-webkit-mask: linear-gradient(rgba(white, 1), 10%, rgba(white, 0.05), 90%, rgba(white, 1)), linear-gradient(90deg, rgba(white, 1), 10%, rgba(white, 0.05), 90%, rgba(white, 1))
|
|
157
161
|
box-shadow: inset 0 0 4px 1px rgba(white, 0.5)
|
|
158
162
|
trans1 all
|
|
159
163
|
@media (prefers-color-scheme: dark)
|
|
@@ -56,9 +56,8 @@ _common_root()
|
|
|
56
56
|
_light_root()
|
|
57
57
|
--site-bg: hsl($color-background-h, $color-background-s, $color-background-l)
|
|
58
58
|
--card: hsl($color-block-h, $color-block-s, 100)
|
|
59
|
-
--block:
|
|
60
|
-
--block-border:
|
|
61
|
-
--block-hover: hsl($color-block-h, $color-block-s, 92)
|
|
59
|
+
--block: hsla(black, 0.04)
|
|
60
|
+
--block-border: hsla(black, 0.08)
|
|
62
61
|
--theme-link-opa: rgba($color-link, 0.2)
|
|
63
62
|
--leftbar-bg: hsl($color-block-h, $color-block-s, 90)
|
|
64
63
|
--alpha20: rgba(white, 0.2)
|
|
@@ -82,10 +81,9 @@ _light_root()
|
|
|
82
81
|
|
|
83
82
|
_dark_root()
|
|
84
83
|
--site-bg: hsl($color-background-h, $color-background-s * 0.5, (100 - $color-background-l) * 2 + 8)
|
|
85
|
-
--card: hsl($color-block-h, $color-block-s * 1.2,
|
|
86
|
-
--block: hsl($color-block-h, $color-block-s,
|
|
84
|
+
--card: hsl($color-block-h, $color-block-s * 1.2, 16)
|
|
85
|
+
--block: hsl($color-block-h, $color-block-s, 20)
|
|
87
86
|
--block-border: hsl($color-block-h, $color-block-s, 24)
|
|
88
|
-
--block-hover: hsl($color-block-h, $color-block-s, 20)
|
|
89
87
|
--theme-link-opa: rgba($color-link, 0.4)
|
|
90
88
|
--leftbar-bg: hsl($color-block-h, $color-block-s, 24)
|
|
91
89
|
--alpha20: rgba(black, 0.2)
|
|
@@ -120,12 +118,3 @@ _common_root()
|
|
|
120
118
|
@media (prefers-color-scheme: dark)
|
|
121
119
|
_dark_root()
|
|
122
120
|
|
|
123
|
-
@media (prefers-color-scheme: dark)
|
|
124
|
-
:root:not([data-theme])
|
|
125
|
-
img,
|
|
126
|
-
.md-text .tag-plugin.chat>.content .chatcell .user-main .talk.file>.content>.top>.right>svg.icon>path
|
|
127
|
-
filter: brightness(75%)!important
|
|
128
|
-
[data-theme='dark']
|
|
129
|
-
img,
|
|
130
|
-
.md-text .tag-plugin.chat>.content .chatcell .user-main .talk.file>.content>.top>.right>svg.icon>path
|
|
131
|
-
filter: brightness(75%)!important
|
|
@@ -1,4 +1,116 @@
|
|
|
1
1
|
.cmt-body.artalk .artalk
|
|
2
|
-
|
|
2
|
+
margin-top: 1rem
|
|
3
|
+
.atk-editor-plug-preview
|
|
4
|
+
scrollbar(0, 0)
|
|
3
5
|
.atk-main-editor
|
|
4
|
-
border-radius: $border-card
|
|
6
|
+
border-radius: $border-card
|
|
7
|
+
.atk-header,.atk-editor-user-wrap
|
|
8
|
+
border-bottom: 1px dashed var(--block-border)
|
|
9
|
+
padding: 0.5rem 1rem
|
|
10
|
+
.atk-editor-user-wrap:empty
|
|
11
|
+
visibility: hidden
|
|
12
|
+
padding: 0
|
|
13
|
+
>.atk-bottom
|
|
14
|
+
padding: 8px
|
|
15
|
+
.atk-plug-btn
|
|
16
|
+
border-radius: 32px
|
|
17
|
+
height: 2rem
|
|
18
|
+
width 2rem
|
|
19
|
+
.atk-send-btn
|
|
20
|
+
height: 2rem
|
|
21
|
+
border-radius: 100px
|
|
22
|
+
min-width: 5em
|
|
23
|
+
trans1 all
|
|
24
|
+
&:hover
|
|
25
|
+
--at-color-main: $color-hover
|
|
26
|
+
&:empty
|
|
27
|
+
display: none
|
|
28
|
+
.atk-list-comments-wrap>.atk-comment-wrap
|
|
29
|
+
border-radius: $border-card
|
|
30
|
+
background: var(--card)
|
|
31
|
+
box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.02)
|
|
32
|
+
>.atk-comment
|
|
33
|
+
padding: 1rem
|
|
34
|
+
&+.atk-comment-wrap
|
|
35
|
+
margin-top: .5rem
|
|
36
|
+
.atk-comment-children
|
|
37
|
+
border-top: 1px dashed var(--block-border)
|
|
38
|
+
margin-top: .5rem
|
|
39
|
+
.atk-avatar
|
|
40
|
+
padding: 0
|
|
41
|
+
.atk-avatar img
|
|
42
|
+
border-radius: 50%
|
|
43
|
+
width: 36px
|
|
44
|
+
height: 36px
|
|
45
|
+
.atk-comment-wrap>.atk-comment>.atk-main
|
|
46
|
+
margin-left: calc(36px + .5rem)
|
|
47
|
+
.atk-comment>.atk-main>.atk-header .atk-item.atk-nick
|
|
48
|
+
color: var(--text-p3)
|
|
49
|
+
font-weight: 500
|
|
50
|
+
|
|
51
|
+
.atk-badge-wrap span
|
|
52
|
+
border-radius: 100px
|
|
53
|
+
.atk-height-limit-btn
|
|
54
|
+
padding: 0.5rem 2rem
|
|
55
|
+
.atk-list-read-more
|
|
56
|
+
margin-top: 2.5rem
|
|
57
|
+
padding-bottom: 1.5rem
|
|
58
|
+
.atk-list-read-more-inner
|
|
59
|
+
padding: 1rem 2rem
|
|
60
|
+
border-radius: $border-button
|
|
61
|
+
height: 3rem
|
|
62
|
+
width: 12rem
|
|
63
|
+
margin: -1.5rem auto 0
|
|
64
|
+
.atk-error-layer
|
|
65
|
+
background: none
|
|
66
|
+
|
|
67
|
+
.cmt-body
|
|
68
|
+
.artalk, .atk-layer-wrap, .artalk.atk-dark-mode, .atk-layer-wrap.atk-dark-mode
|
|
69
|
+
--at-color-font: var(--text-p1)
|
|
70
|
+
--at-color-deep: var(--text-p2)
|
|
71
|
+
--at-color-sub: var(--text-p3)
|
|
72
|
+
--at-color-grey: var(--text-p4)
|
|
73
|
+
--at-color-meta: var(--text-p4)
|
|
74
|
+
--at-color-border: var(--block-border)
|
|
75
|
+
--at-color-light: var(--theme-link)
|
|
76
|
+
--at-color-bg: var(--card)
|
|
77
|
+
--at-color-bg-transl: var(--block-border)
|
|
78
|
+
--at-color-bg-grey: var(--block)
|
|
79
|
+
--at-color-bg-grey-transl: orange
|
|
80
|
+
--at-color-bg-light: rgba(29, 161, 242, 1)
|
|
81
|
+
--at-color-main: $color-theme
|
|
82
|
+
--at-color-red: $c-red
|
|
83
|
+
--at-color-green: $c-green
|
|
84
|
+
--at-color-gradient: linear-gradient(180deg, transparent, var(--card), 50%, var(--card))
|
|
85
|
+
|
|
86
|
+
.md-text .atk-comment>.atk-main>.atk-body
|
|
87
|
+
overflow: visible
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
// override
|
|
91
|
+
.md-text .cmt-body.artalk .artalk
|
|
92
|
+
--gap-p: 1rem
|
|
93
|
+
p
|
|
94
|
+
line-height: 1.5
|
|
95
|
+
font-size: $fs-15
|
|
96
|
+
>img
|
|
97
|
+
margin: var(--gap-p) auto
|
|
98
|
+
border-radius: $border-image-s
|
|
99
|
+
a>img
|
|
100
|
+
display: inline
|
|
101
|
+
p>img[atk-emoticon]
|
|
102
|
+
max-height: 1.5em
|
|
103
|
+
transform: scale(1.2)
|
|
104
|
+
margin: 0 4px
|
|
105
|
+
vertical-align: bottom
|
|
106
|
+
ul li, ol li
|
|
107
|
+
font-size: $fs-14
|
|
108
|
+
blockquote
|
|
109
|
+
position: relative
|
|
110
|
+
border-left: none
|
|
111
|
+
background: none
|
|
112
|
+
padding: 0.25rem 1rem
|
|
113
|
+
p
|
|
114
|
+
color: var(--text-p3)
|
|
115
|
+
.atk-content a
|
|
116
|
+
--at-color-main: var(--theme-link)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.tk-content
|
|
6
6
|
.vemoji, .tk-owo-emotion
|
|
7
7
|
width: unset
|
|
8
|
-
border-radius: $border-image
|
|
8
|
+
border-radius: $border-image-s
|
|
9
9
|
max-height: 24px
|
|
10
10
|
max-width: 100px
|
|
11
11
|
display: inline
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
img
|
|
14
14
|
max-width: 400px
|
|
15
15
|
max-height: 400px
|
|
16
|
-
border-radius: $border-image
|
|
16
|
+
border-radius: $border-image-s
|
|
17
17
|
|
|
18
18
|
.OwO
|
|
19
19
|
.OwO-body
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
border: none
|
|
112
112
|
padding: 6px 2rem
|
|
113
113
|
border-radius: $border-card
|
|
114
|
-
background: var(--block
|
|
114
|
+
background: var(--block)
|
|
115
115
|
color: var(--text-p1)
|
|
116
116
|
line-height: 2
|
|
117
117
|
font-size: 14px
|
|
@@ -20,13 +20,13 @@ if hexo-config('plugins.katex.enable')
|
|
|
20
20
|
@import 'katex'
|
|
21
21
|
|
|
22
22
|
// 评论
|
|
23
|
-
if hexo-config('comments.service') == 'beaudar'
|
|
23
|
+
if hexo-config('comments.service') == 'beaudar' or index(hexo-config('comments.custom_css'), 'beaudar') >= 0
|
|
24
24
|
@import 'comments/beaudar'
|
|
25
|
-
if hexo-config('comments.service') == 'twikoo'
|
|
25
|
+
if hexo-config('comments.service') == 'twikoo' or index(hexo-config('comments.custom_css'), 'twikoo') >= 0
|
|
26
26
|
@import 'comments/twikoo'
|
|
27
|
-
if hexo-config('comments.service') == 'utterances'
|
|
27
|
+
if hexo-config('comments.service') == 'utterances' or index(hexo-config('comments.custom_css'), 'utterances') >= 0
|
|
28
28
|
@import 'comments/utterances'
|
|
29
|
-
if hexo-config('comments.service') == 'waline'
|
|
29
|
+
if hexo-config('comments.service') == 'waline' or index(hexo-config('comments.custom_css'), 'waline') >= 0
|
|
30
30
|
@import 'comments/waline'
|
|
31
|
-
if hexo-config('comments.service') == 'artalk'
|
|
31
|
+
if hexo-config('comments.service') == 'artalk' or index(hexo-config('comments.custom_css'), 'artalk') >= 0
|
|
32
32
|
@import 'comments/artalk'
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
$lazyTransitionType = hexo-config('plugins.lazyload.transition')
|
|
2
|
+
$loadingImage = hexo-config('plugins.lazyload.loading_image.src')
|
|
3
|
+
$loadingImageSize = convert(hexo-config('plugins.lazyload.loading_image.size'))
|
|
4
|
+
|
|
1
5
|
img.lazy
|
|
2
6
|
&:not(.loaded)
|
|
3
7
|
opacity: 0
|
|
4
8
|
&.loaded,&.error
|
|
5
9
|
opacity: 1
|
|
6
|
-
if
|
|
10
|
+
if $lazyTransitionType == 'blur'
|
|
7
11
|
trans1 all 0.75s
|
|
8
12
|
&:not(.loaded)
|
|
9
13
|
filter blur(50px)
|
|
@@ -13,4 +17,47 @@ img.lazy
|
|
|
13
17
|
-webkit-filter none
|
|
14
18
|
else
|
|
15
19
|
trans1 all 0.38s
|
|
16
|
-
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@keyframes fadeIn
|
|
23
|
+
from { opacity: 0; }
|
|
24
|
+
to { opacity: 1; }
|
|
25
|
+
|
|
26
|
+
@keyframes blurIn
|
|
27
|
+
from
|
|
28
|
+
opacity: 0
|
|
29
|
+
filter: blur(50px)
|
|
30
|
+
-webkit-filter: blur(50px)
|
|
31
|
+
to
|
|
32
|
+
opacity: 1
|
|
33
|
+
filter: blur(0px)
|
|
34
|
+
-webkit-filter: blur(0px)
|
|
35
|
+
|
|
36
|
+
article img.lazy
|
|
37
|
+
&:not(.loaded)
|
|
38
|
+
opacity: 1
|
|
39
|
+
border-radius: 4px
|
|
40
|
+
filter none
|
|
41
|
+
transition: none
|
|
42
|
+
if $loadingImage
|
|
43
|
+
&.loading
|
|
44
|
+
background: url($loadingImage) center center / $loadingImageSize no-repeat
|
|
45
|
+
else
|
|
46
|
+
&.loading
|
|
47
|
+
background: url($loadingIcon) center center / $loadingImageSize no-repeat
|
|
48
|
+
min-width: $loadingImageSize
|
|
49
|
+
min-height: $loadingImageSize
|
|
50
|
+
|
|
51
|
+
&.loaded
|
|
52
|
+
animation: fadeIn 0.38s ease-out
|
|
53
|
+
if $loadingImage
|
|
54
|
+
background: none
|
|
55
|
+
if $lazyTransitionType == 'blur'
|
|
56
|
+
&.loaded
|
|
57
|
+
animation: blurIn .75s ease-out
|
|
58
|
+
|
|
59
|
+
&.error
|
|
60
|
+
background: none
|
|
61
|
+
min-width: $loadingImageSize
|
|
62
|
+
min-height: $loadingImageSize
|
|
63
|
+
|