hexo-theme-solitude 1.5.11 → 1.6.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/.github/logo.svg +44 -10
- package/README.md +22 -2
- package/README_zh-cn.md +22 -2
- package/README_zh-tw.md +22 -2
- package/_config.yml +107 -107
- package/languages/en.yml +45 -63
- package/languages/zh-CN.yml +32 -55
- package/languages/zh-TW.yml +32 -55
- package/layout/404.pug +1 -1
- package/layout/includes/console.pug +5 -5
- package/layout/includes/footer.pug +7 -7
- package/layout/includes/head/config.pug +15 -9
- package/layout/includes/head/opengraph.pug +2 -2
- package/layout/includes/head/pwa.pug +6 -6
- package/layout/includes/head.pug +1 -1
- package/layout/includes/inject/body.pug +0 -4
- package/layout/includes/inject/head.pug +1 -2
- package/layout/includes/keyboard.pug +1 -1
- package/layout/includes/loading.pug +1 -1
- package/layout/includes/nav.pug +1 -1
- package/layout/includes/sidebar.pug +19 -3
- package/layout/includes/widgets/home/banner.pug +1 -1
- package/layout/includes/widgets/home/categoryBar.pug +2 -2
- package/layout/includes/widgets/home/categoryGroup.pug +0 -1
- package/layout/includes/widgets/home/postList.pug +74 -29
- package/layout/includes/widgets/home/topGroup.pug +2 -2
- package/layout/includes/widgets/nav/group.pug +2 -2
- package/layout/includes/widgets/nav/right.pug +1 -1
- package/layout/includes/widgets/page/about/award.pug +8 -9
- package/layout/includes/widgets/page/about/hobbies.pug +1 -1
- package/layout/includes/widgets/page/about/other.pug +1 -1
- package/layout/includes/widgets/page/banner.pug +1 -1
- package/layout/includes/widgets/page/links/banner.pug +5 -4
- package/layout/includes/widgets/page/moments/angle.pug +1 -1
- package/layout/includes/widgets/post/award.pug +10 -15
- package/layout/includes/widgets/post/copyright.pug +2 -2
- package/layout/includes/widgets/post/postMeta.pug +10 -10
- package/layout/includes/widgets/randomlink.pug +3 -2
- package/layout/includes/widgets/third-party/comments/twikoo.pug +1 -0
- package/layout/includes/widgets/third-party/comments/waline.pug +1 -0
- package/layout/page.pug +1 -1
- package/package.json +1 -1
- package/plugins.yml +0 -4
- package/scripts/event/cdn.js +6 -11
- package/scripts/event/merge_config.js +19 -3
- package/scripts/event/welcome.js +2 -2
- package/scripts/filter/checkThemeConfig.js +2 -2
- package/scripts/filter/default.js +4 -2
- package/scripts/filter/lazyload.js +18 -5
- package/scripts/filter/randomPosts.js +1 -1
- package/scripts/helper/stylus.js +8 -14
- package/source/css/{_widgets/_comment → _comments}/index.styl +14 -1
- package/source/css/{_widgets/_comment → _comments}/twikoo.styl +3 -0
- package/source/css/_global/index.styl +362 -1
- package/source/css/_highlight/prismjs/line-number.styl +1 -1
- package/source/css/{_widgets/_mixins → _layout}/article-sort.styl +1 -1
- package/source/css/_layout/aside.styl +751 -0
- package/source/css/_layout/capsule.styl +213 -0
- package/source/css/{_widgets/_extra → _layout}/console.styl +7 -6
- package/source/css/{_widgets/_mixins → _layout}/footer.styl +1 -0
- package/source/css/_layout/fullpage.styl +47 -0
- package/source/css/_layout/header.styl +2 -0
- package/source/css/_layout/keyboard.styl +60 -0
- package/source/css/_layout/pace.styl +40 -0
- package/source/css/_layout/rightmenu.styl +79 -0
- package/source/css/{_widgets/_mixins → _layout}/sidebar.styl +30 -20
- package/source/css/_layout/universe.styl +18 -0
- package/source/css/_page/_home/home-top.styl +2 -4
- package/source/css/_page/_home/recent-post.styl +407 -170
- package/source/css/_page/douban.styl +111 -109
- package/source/css/_page/links.styl +5 -5
- package/source/css/_page/share.styl +1 -17
- package/source/css/{_widgets/_post → _post}/content.styl +13 -3
- package/source/css/{_widgets/_post → _post}/tools.styl +3 -9
- package/source/css/index.styl +20 -5
- package/source/css/third_party/snackbar.min.css +1 -0
- package/source/css/{_global/var.styl → var.styl} +7 -1
- package/source/img/avatar.png +0 -0
- package/source/img/default.png +0 -0
- package/source/img/flower.gif +0 -0
- package/source/img/pwa/favicon.ico +0 -0
- package/source/img/pwa/favicon_128.ico +0 -0
- package/source/img/pwa/favicon_16.ico +0 -0
- package/source/img/pwa/favicon_256.ico +0 -0
- package/source/img/pwa/favicon_32.ico +0 -0
- package/source/js/{comment/twikoo_commentBarrage.js → commentBarrage/twikoo.js} +0 -6
- package/source/js/{comment/waline_commentBarrage.js → commentBarrage/waline.js} +0 -2
- package/source/js/main.js +73 -71
- package/source/js/utils.js +1 -1
- package/layout/includes/recent-posts.pug +0 -9
- package/layout/includes/widgets/rightside/index.pug +0 -87
- package/source/css/_layout/basic.styl +0 -308
- package/source/css/_layout/index.styl +0 -125
- package/source/css/_widgets/_aside/allinfo.styl +0 -168
- package/source/css/_widgets/_aside/flip.styl +0 -67
- package/source/css/_widgets/_aside/index.styl +0 -90
- package/source/css/_widgets/_aside/info.styl +0 -263
- package/source/css/_widgets/_aside/newPost.styl +0 -61
- package/source/css/_widgets/_aside/toc.styl +0 -108
- package/source/css/_widgets/_aside/welcome.styl +0 -14
- package/source/css/_widgets/_extra/fullpage.styl +0 -46
- package/source/css/_widgets/_extra/music.styl +0 -218
- package/source/css/_widgets/_extra/pace.styl +0 -39
- package/source/css/_widgets/_extra/rightmenu.styl +0 -78
- package/source/css/_widgets/_mixins/keyboard.styl +0 -59
- package/source/css/_widgets/index.styl +0 -56
- package/source/img/logo.png +0 -0
- package/source/js/rightside.js +0 -221
- /package/source/css/{_widgets/_comment → _comments}/waline.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/other.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/commentBarrage.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/copyright.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/index.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/meta.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/pagination.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/postAI.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/relatedPost.styl +0 -0
- /package/source/css/{_widgets/_search → _search}/algolia-search.styl +0 -0
- /package/source/css/{_widgets/_search → _search}/local-search.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/button.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/checkbox.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/fold.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/gallery.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/index.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/label.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/link.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/media.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/mermaid.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/note.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/span.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/tabs.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/timeline.styl +0 -0
- /package/source/js/{lately.min.js → third_party/lately.min.js} +0 -0
- /package/source/js/{sco-ai.min.js → third_party/sco-ai.min.js} +0 -0
- /package/source/js/{universe.min.js → third_party/universe.min.js} +0 -0
- /package/source/js/{waterfall.min.js → third_party/waterfall.min.js} +0 -0
@@ -1,125 +1,127 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
width calc(100% / 3 - 9px)
|
25
|
-
|
26
|
-
+maxWidth899()
|
27
|
-
width calc(100% / 2 - 9px)
|
28
|
-
|
29
|
-
+maxWidth600()
|
30
|
-
width 100%
|
1
|
+
.hexo-douban-items
|
2
|
+
display flex
|
3
|
+
flex-wrap wrap
|
4
|
+
gap 12px
|
5
|
+
flex-direction row
|
6
|
+
|
7
|
+
.hexo-douban-comment
|
8
|
+
display none
|
9
|
+
|
10
|
+
.hexo-douban-item
|
11
|
+
position relative
|
12
|
+
width calc(100% / 4 - 9px)
|
13
|
+
border-radius 12px
|
14
|
+
border var(--style-border)
|
15
|
+
box-shadow var(--efu-shadow-border)
|
16
|
+
background var(--efu-card-bg)
|
17
|
+
transition .3s
|
18
|
+
animation slide-in 0.6s 0.3s backwards
|
19
|
+
border var(--style-border)
|
20
|
+
margin 8px 0
|
21
|
+
height 160px
|
22
|
+
min-height 160px !important
|
23
|
+
overflow hidden
|
31
24
|
|
32
|
-
|
33
|
-
|
25
|
+
+maxWidth1200()
|
26
|
+
width calc(100% / 3 - 9px)
|
34
27
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
28
|
+
+maxWidth899()
|
29
|
+
width calc(100% / 2 - 9px)
|
30
|
+
|
31
|
+
+maxWidth600()
|
32
|
+
width 100%
|
33
|
+
|
34
|
+
&:hover
|
35
|
+
border-color var(--efu-main)
|
36
|
+
|
37
|
+
.hexo-douban-picture
|
38
|
+
width 120px
|
39
|
+
height 100%
|
40
|
+
top 0
|
41
|
+
padding 10px
|
42
|
+
|
43
|
+
img
|
44
|
+
margin 0
|
51
45
|
height 100%
|
52
|
-
|
46
|
+
max-width 100%
|
47
|
+
border-radius 6px
|
48
|
+
|
49
|
+
.hexo-douban-info
|
50
|
+
display flex
|
51
|
+
flex-wrap wrap
|
52
|
+
align-content flex-start
|
53
|
+
height 100%
|
54
|
+
position relative
|
53
55
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
56
|
+
.hexo-douban-rating
|
57
|
+
position absolute
|
58
|
+
bottom 5px
|
59
|
+
line-height 16px
|
58
60
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
61
|
+
.hexo-douban-meta
|
62
|
+
display -webkit-box
|
63
|
+
overflow hidden
|
64
|
+
-webkit-box-orient vertical
|
63
65
|
|
64
|
-
|
65
|
-
|
66
|
+
+maxWidth1300()
|
67
|
+
-webkit-line-clamp 3 !important
|
66
68
|
|
67
|
-
|
68
|
-
|
69
|
+
+maxWidth899()
|
70
|
+
-webkit-line-clamp 4 !important
|
69
71
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
72
|
+
.hexo-douban-title
|
73
|
+
transition all .2s ease 0s
|
74
|
+
white-space nowrap
|
75
|
+
overflow hidden
|
76
|
+
text-overflow ellipsis
|
77
|
+
width 100%
|
76
78
|
|
77
|
-
|
78
|
-
|
79
|
+
a
|
80
|
+
border-bottom 0
|
79
81
|
|
80
|
-
|
81
|
-
|
82
|
-
|
82
|
+
&:hover
|
83
|
+
background none
|
84
|
+
color var(--efu-main)
|
83
85
|
|
84
|
-
|
85
|
-
|
86
|
-
|
86
|
+
.hexo-douban-pagination
|
87
|
+
margin-top 1.25rem
|
88
|
+
animation slide-in 0.6s 0.3s backwards
|
87
89
|
|
88
|
-
|
89
|
-
background var(--efu-card-bg)
|
90
|
-
height 2rem
|
91
|
-
line-height calc(2rem - 2px)
|
92
|
-
border-radius 8px !important
|
93
|
-
margin 0 0.3rem
|
94
|
-
padding 6px 12px
|
95
|
-
box-shadow var(--efu-shadow-border)
|
96
|
-
border var(--style-border)
|
97
|
-
transition 0.3s
|
98
|
-
display inline-flex
|
99
|
-
align-items center
|
100
|
-
|
101
|
-
&:hover
|
102
|
-
background var(--efu-main)
|
103
|
-
|
104
|
-
.hexo-douban-tabs
|
105
|
-
white-space nowrap
|
106
|
-
overflow hidden
|
107
|
-
display flex
|
108
|
-
padding 0.4rem 1rem 0.4rem 1rem
|
90
|
+
.hexo-douban-button
|
109
91
|
background var(--efu-card-bg)
|
110
|
-
|
92
|
+
height 2rem
|
93
|
+
line-height calc(2rem - 2px)
|
94
|
+
border-radius 8px !important
|
95
|
+
margin 0 0.3rem
|
96
|
+
padding 6px 12px
|
97
|
+
box-shadow var(--efu-shadow-border)
|
111
98
|
border var(--style-border)
|
112
|
-
|
99
|
+
transition 0.3s
|
100
|
+
display inline-flex
|
101
|
+
align-items center
|
113
102
|
|
114
103
|
&:hover
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
104
|
+
background var(--efu-main)
|
105
|
+
|
106
|
+
.hexo-douban-tabs
|
107
|
+
white-space nowrap
|
108
|
+
overflow hidden
|
109
|
+
display flex
|
110
|
+
padding 0.4rem 1rem 0.4rem 1rem
|
111
|
+
background var(--efu-card-bg)
|
112
|
+
border-radius 12px
|
113
|
+
border var(--style-border)
|
114
|
+
animation slide-in 0.6s 0.3s backwards
|
115
|
+
|
116
|
+
&:hover
|
117
|
+
border-color var(--efu-main)
|
118
|
+
|
119
|
+
a
|
120
|
+
padding 0.1rem 0.5rem
|
121
|
+
margin-right 6px
|
122
|
+
font-weight 700
|
123
|
+
border-radius 8px !important
|
124
|
+
border-bottom 0
|
125
|
+
|
126
|
+
.hexo-douban-tab-active
|
127
|
+
background var(--efu-main)
|
@@ -28,7 +28,7 @@
|
|
28
28
|
top 0
|
29
29
|
width 100px
|
30
30
|
height 50px
|
31
|
-
background-image -webkit-linear-gradient(0deg,rgba(255,255,255,0),rgba(255,255,255
|
31
|
+
background-image -webkit-linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0))
|
32
32
|
animation light_tag 4s both infinite
|
33
33
|
|
34
34
|
&.vip
|
@@ -73,7 +73,6 @@
|
|
73
73
|
width calc(50% - 16px)
|
74
74
|
|
75
75
|
.img
|
76
|
-
-webkit-mask-image -webkit-radial-gradient(center, #fff, #000)
|
77
76
|
border-radius 0
|
78
77
|
height 120px
|
79
78
|
width 100%
|
@@ -81,7 +80,6 @@
|
|
81
80
|
border none
|
82
81
|
padding 0
|
83
82
|
transition all .3s ease 0s
|
84
|
-
background #f6f6f6
|
85
83
|
overflow hidden
|
86
84
|
|
87
85
|
img
|
@@ -114,6 +112,7 @@
|
|
114
112
|
height 20px
|
115
113
|
min-width 20px
|
116
114
|
min-height 20px
|
115
|
+
transform scale(1.1)
|
117
116
|
background var(--efu-secondbg)
|
118
117
|
|
119
118
|
.site-card-text
|
@@ -147,15 +146,17 @@
|
|
147
146
|
&:hover
|
148
147
|
border var(--style-border-hover)
|
149
148
|
box-shadow var(--efu-shadow-main)
|
149
|
+
background var(--efu-main)
|
150
150
|
|
151
151
|
.site-card-tag
|
152
152
|
left: -60px
|
153
153
|
|
154
154
|
.img
|
155
|
-
transform scale(1
|
155
|
+
transform scale(1)
|
156
156
|
filter brightness(.3)
|
157
157
|
border-radius 12px
|
158
158
|
background var(--efu-lighttext)
|
159
|
+
background var(--efu-main)
|
159
160
|
+minWidth768()
|
160
161
|
height 80px
|
161
162
|
|
@@ -191,7 +192,6 @@
|
|
191
192
|
padding 0
|
192
193
|
margin 0.5rem -6px 1rem -6px
|
193
194
|
overflow-x hidden
|
194
|
-
overflow auto
|
195
195
|
text-align center
|
196
196
|
|
197
197
|
&.mini
|
@@ -262,20 +262,4 @@ div#banners
|
|
262
262
|
font-size 1.5rem
|
263
263
|
|
264
264
|
.banner-button-text
|
265
|
-
display none
|
266
|
-
|
267
|
-
|
268
|
-
p
|
269
|
-
a
|
270
|
-
&:not(.headerlink)
|
271
|
-
text-decoration none
|
272
|
-
border-bottom 2px dotted var(--efu-lighttext)
|
273
|
-
color var(--efu-fontcolor)
|
274
|
-
font-weight 700
|
275
|
-
padding 0 4px
|
276
|
-
border-radius 4px 4px 0 0
|
277
|
-
|
278
|
-
&:hover
|
279
|
-
color var(--efu-white)
|
280
|
-
border-radius 4px
|
281
|
-
background var(--efu-main)
|
265
|
+
display none
|
@@ -62,6 +62,19 @@
|
|
62
62
|
|
63
63
|
img
|
64
64
|
margin auto
|
65
|
+
a
|
66
|
+
&:not(.fancybox)
|
67
|
+
text-decoration none
|
68
|
+
border-bottom 2px dotted var(--efu-lighttext)
|
69
|
+
color var(--efu-fontcolor)
|
70
|
+
font-weight 700
|
71
|
+
padding 0 4px
|
72
|
+
border-radius 4px 4px 0 0
|
73
|
+
|
74
|
+
&:hover
|
75
|
+
color var(--efu-white)
|
76
|
+
border-radius 4px
|
77
|
+
background var(--efu-main)
|
65
78
|
|
66
79
|
code:not([class*='language-'])
|
67
80
|
color var(--efu-white)
|
@@ -151,9 +164,6 @@
|
|
151
164
|
content counter(li, lower-roman)
|
152
165
|
counter-increment li
|
153
166
|
|
154
|
-
|
155
|
-
// 文章内容样式
|
156
|
-
|
157
167
|
&.post-content
|
158
168
|
h1, h2, h3, h4
|
159
169
|
display flex
|
@@ -108,6 +108,7 @@
|
|
108
108
|
.reward-title
|
109
109
|
font-weight 700
|
110
110
|
color var(--efu-red)
|
111
|
+
text-wrap wrap
|
111
112
|
|
112
113
|
.reward-group
|
113
114
|
display flex
|
@@ -119,14 +120,6 @@
|
|
119
120
|
list-style-type none
|
120
121
|
vertical-align top
|
121
122
|
|
122
|
-
&:first-child
|
123
|
-
img
|
124
|
-
border-color var(--efu-green)
|
125
|
-
|
126
|
-
&:last-child
|
127
|
-
img
|
128
|
-
border-color var(--efu-blue)
|
129
|
-
|
130
123
|
img
|
131
124
|
width 130px
|
132
125
|
height 130px
|
@@ -156,7 +149,7 @@
|
|
156
149
|
&:hover
|
157
150
|
color var(--efu-white)
|
158
151
|
background var(--efu-red)
|
159
|
-
background-image url(
|
152
|
+
background-image url(/img/flower.gif)
|
160
153
|
box-shadow var(--efu-shadow-red)
|
161
154
|
|
162
155
|
.reward-text
|
@@ -165,6 +158,7 @@
|
|
165
158
|
|
166
159
|
.reward-dec
|
167
160
|
font-size .6rem
|
161
|
+
text-wrap wrap
|
168
162
|
|
169
163
|
// rss
|
170
164
|
|
package/source/css/index.styl
CHANGED
@@ -3,15 +3,30 @@
|
|
3
3
|
if hexo-config('css_prefix')
|
4
4
|
@import 'nib'
|
5
5
|
|
6
|
+
@import "third_party/snackbar.min.css"
|
6
7
|
// project
|
8
|
+
@import "var.styl"
|
7
9
|
@import '_global/*'
|
8
10
|
@import '_layout/*'
|
9
11
|
@import '_page/index.styl'
|
10
|
-
|
11
|
-
// widgets
|
12
|
-
@import '_widgets/index.styl'
|
13
|
-
|
12
|
+
@import '_post/index.styl'
|
14
13
|
@import '_mode/*'
|
15
14
|
|
16
15
|
// highlight
|
17
|
-
@import '_highlight/index'
|
16
|
+
@import '_highlight/index'
|
17
|
+
|
18
|
+
// search
|
19
|
+
if hexo-config('search.enable')
|
20
|
+
if hexo-config('search.type') == 'algolia'
|
21
|
+
@import '_search/algolia-search'
|
22
|
+
else if hexo-config('search.type') == 'local'
|
23
|
+
@import '_search/local-search'
|
24
|
+
|
25
|
+
// tags plugin
|
26
|
+
@import "_tags/*"
|
27
|
+
|
28
|
+
// comment
|
29
|
+
if hexo-config('comment.enable')
|
30
|
+
@import '_comments/index.styl'
|
31
|
+
@import '_comments/twikoo.styl' when hexo-config('comment.type') == 'twikoo'
|
32
|
+
@import '_comments/waline.styl' when hexo-config('comment.type') == 'waline'
|
@@ -0,0 +1 @@
|
|
1
|
+
@keyframes snackbar-progress{0%{width:0}to{width:100%}}.snackbar-container{transition:all .5s ease;font-family:Roboto,sans-serif;font-size:14px;position:fixed;align-items:center;line-height:22px;padding:18px 24px;bottom:-100px;top:-100px;opacity:0;z-index:9999;background:var(--efu-lighttext)!important;color:var(--efu-card-bg);border-radius:0;display:flex;justify-content:center;max-width:none;min-width:100%!important;margin:0!important;left:0!important;height:60px;transform:none!important}.snackbar-container p{color:var(--efu-card-bg)!important;font-weight:700!important;text-align:center;font-size:.8rem!important;display:flex;justify-content:center}.snackbar-container .action{display:inline-block;font-size:inherit;margin:0 0 0 24px;min-width:min-content;cursor:pointer;color:var(--efu-card-bg);background:var(--efu-lighttext);padding:4px 6px;font-weight:700;border-radius:8px;transition:.3s;border:var(--style-border)}.snackbar-container .action:hover{background:var(--efu-card-bg);color:var(--efu-lighttext)}.snackbar-container:after{position:absolute;width:0;height:100%;left:0;top:0;background:var(--efu-white);opacity:.1;content:"";animation:snackbar-progress var(--efu-snackbar-time) linear forwards;pointer-events:none}@media (min-width:640px){.snackbar-container{min-width:288px;max-width:568px;display:inline-flex;border-radius:2px;margin:24px}}@media (max-width:640px){.snackbar-container{left:0;right:0;width:100%}}.snackbar-pos.bottom-center{top:auto!important;bottom:0;left:50%;transform:translate(-50%,0)}.snackbar-pos.bottom-left{top:auto!important;bottom:0;left:0}.snackbar-pos.bottom-right{top:auto!important;bottom:0;right:0}.snackbar-pos.top-center,.snackbar-pos.top-left{bottom:auto!important;top:0;left:0}.snackbar-pos.top-center{left:50%;transform:translate(-50%,0)}.snackbar-pos.top-right{bottom:auto!important;top:0;right:0}@media (max-width:640px){.snackbar-pos.bottom-center,.snackbar-pos.top-center{left:0;transform:none}}
|
@@ -23,4 +23,10 @@ else if hexo-config('highlight.theme') == 'mac'
|
|
23
23
|
$hl_bg_dark = #1C1E1E
|
24
24
|
$hltools_bg_dark = #454a50
|
25
25
|
|
26
|
-
$line-height-code-block = 1.6
|
26
|
+
$line-height-code-block = 1.6
|
27
|
+
|
28
|
+
// font-family
|
29
|
+
$font-size = unquote(hexo-config('font.font-size'))
|
30
|
+
$code-font-size = unquote(hexo-config('font.code-font-size'))
|
31
|
+
$font-family = unquote(hexo-config('font.font-family'))
|
32
|
+
$code-font-family = unquote(hexo-config('font.code-font-family'))
|
Binary file
|
package/source/img/default.png
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -102,15 +102,9 @@ function initializeCommentBarrage() {
|
|
102
102
|
const commentBarrageSwitch = localStorage.getItem("commentBarrageSwitch");
|
103
103
|
if (commentBarrageSwitch != null) {
|
104
104
|
document.querySelector(".comment-barrage").style.display = "flex";
|
105
|
-
if (GLOBAL_CONFIG.rightside.enable) {
|
106
|
-
document.querySelector(".menu-commentBarrage-text").textContent = "关闭热评";
|
107
|
-
}
|
108
105
|
document.querySelector("#consoleCommentBarrage").classList.add("on");
|
109
106
|
} else {
|
110
107
|
document.querySelector(".comment-barrage").style.display = "none";
|
111
|
-
if (GLOBAL_CONFIG.rightside.enable) {
|
112
|
-
document.querySelector(".menu-commentBarrage-text").textContent = "显示热评";
|
113
|
-
}
|
114
108
|
document.querySelector("#consoleCommentBarrage").classList.remove("on");
|
115
109
|
}
|
116
110
|
const comments = await this.fetchComments();
|
@@ -108,11 +108,9 @@ function initializeCommentBarrage() {
|
|
108
108
|
|
109
109
|
if (localStorage.getItem("commentBarrageSwitch") != null) {
|
110
110
|
commentBarrage.style.display = "flex";
|
111
|
-
GLOBAL_CONFIG.rightside.enable && (menuCommentBarrageText.textContent = "关闭热评");
|
112
111
|
consoleCommentBarrage.classList.add("on");
|
113
112
|
} else {
|
114
113
|
commentBarrage.style.display = "none";
|
115
|
-
GLOBAL_CONFIG.rightside.enable && (menuCommentBarrageText.textContent = "显示热评");
|
116
114
|
consoleCommentBarrage.classList.remove("on");
|
117
115
|
}
|
118
116
|
|