hexo-theme-solitude 3.0.5 → 3.0.7
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 +3 -21
- package/layout/404.pug +1 -1
- package/layout/includes/console.pug +21 -7
- package/layout/includes/footer.pug +1 -1
- package/layout/includes/keyboard.pug +1 -1
- package/layout/includes/mixins/articleSort.pug +1 -1
- package/layout/includes/mixins/pagination.pug +2 -2
- package/layout/includes/nav.pug +1 -1
- package/layout/includes/page/brevity.pug +4 -4
- package/layout/includes/page/categories.pug +1 -1
- package/layout/includes/page/tags.pug +1 -1
- package/layout/includes/rightmenu.pug +19 -19
- package/layout/includes/sidebar.pug +4 -7
- package/layout/includes/widgets/aside/aside.pug +2 -2
- package/layout/includes/widgets/aside/asideAllInfo.pug +0 -3
- package/layout/includes/widgets/aside/asideInfoCard.pug +12 -13
- package/layout/includes/widgets/aside/asideNewestPost.pug +2 -2
- package/layout/includes/widgets/aside/asideNewstComments.pug +2 -2
- package/layout/includes/widgets/aside/asideSwitch.pug +0 -4
- package/layout/includes/widgets/aside/asideToc.pug +1 -1
- package/layout/includes/widgets/aside/asideWebInfo.pug +10 -22
- package/layout/includes/widgets/home/bbTimeList.pug +6 -6
- package/layout/includes/widgets/home/categoryBar.pug +4 -4
- package/layout/includes/widgets/home/postList.pug +2 -2
- package/layout/includes/widgets/home/topGroup.pug +1 -1
- package/layout/includes/widgets/nav/right.pug +4 -4
- package/layout/includes/widgets/page/about/award.pug +2 -2
- 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/kit/content.pug +1 -1
- package/layout/includes/widgets/page/links/banner.pug +16 -26
- package/layout/includes/widgets/page/recentcomment/artalk.pug +1 -1
- package/layout/includes/widgets/page/recentcomment/twikoo.pug +1 -1
- package/layout/includes/widgets/page/recentcomment/valine.pug +1 -1
- package/layout/includes/widgets/page/recentcomment/waline.pug +1 -1
- package/layout/includes/widgets/post/award.pug +1 -1
- package/layout/includes/widgets/post/copyright.pug +2 -2
- package/layout/includes/widgets/post/postInfo.pug +16 -16
- package/layout/includes/widgets/sidebar/artalk.pug +1 -1
- package/layout/includes/widgets/sidebar/twikoo.pug +1 -1
- package/layout/includes/widgets/sidebar/valine.pug +1 -1
- package/layout/includes/widgets/sidebar/waline.pug +1 -1
- package/layout/includes/widgets/third-party/comments/comment.pug +4 -4
- package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -1
- package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
- package/layout/post.pug +1 -1
- package/layout/tag.pug +1 -1
- package/package.json +1 -1
- package/scripts/event/merge_config.js +0 -7
- package/scripts/helper/related_post.js +1 -1
- package/source/css/_global/index.styl +13 -13
- package/source/css/_layout/article-container.styl +11 -20
- package/source/css/_layout/aside.styl +271 -620
- package/source/css/_layout/console.styl +9 -8
- package/source/css/_layout/header.styl +4 -4
- package/source/css/_layout/sidebar.styl +0 -1
- package/source/css/_page/_about/reward.styl +1 -0
- package/source/css/_page/other.styl +1 -1
- package/source/css/_post/meta.styl +3 -3
- package/source/css/_tags/gallery.styl +0 -1
- package/source/js/covercolor/api.js +1 -1
- package/source/js/covercolor/ave.js +1 -1
- package/source/js/covercolor/local.js +1 -1
- package/source/js/main.js +6 -6
- package/layout/includes/widgets/aside/asideArchive.pug +0 -17
- package/layout/includes/widgets/aside/asideFlipCard.pug +0 -5
@@ -250,13 +250,14 @@
|
|
250
250
|
display flex
|
251
251
|
flex-direction row
|
252
252
|
flex-wrap wrap
|
253
|
-
|
253
|
+
justify-content flex-start
|
254
254
|
gap .5rem
|
255
|
+
height 164px
|
255
256
|
|
256
|
-
li.
|
257
|
-
flex
|
257
|
+
li.item
|
258
|
+
flex 1 1 calc(100% / 4 - 1.5rem)
|
258
259
|
|
259
|
-
|
260
|
+
a
|
260
261
|
border-radius 8px
|
261
262
|
display flex
|
262
263
|
flex-direction column
|
@@ -271,15 +272,15 @@
|
|
271
272
|
color var(--efu-white)
|
272
273
|
cursor pointer
|
273
274
|
|
274
|
-
.
|
275
|
+
.date
|
275
276
|
font-size 14px
|
276
277
|
opacity .6
|
277
278
|
|
278
|
-
.
|
279
|
+
.count-group
|
279
280
|
display flex
|
280
281
|
flex-direction row
|
281
282
|
|
282
|
-
.
|
283
|
+
.count
|
283
284
|
width auto
|
284
285
|
text-align left
|
285
286
|
font-size 1.1rem
|
@@ -287,7 +288,7 @@
|
|
287
288
|
margin-right 2px
|
288
289
|
font-weight 700
|
289
290
|
|
290
|
-
.
|
291
|
+
.unit
|
291
292
|
width auto
|
292
293
|
text-align left
|
293
294
|
font-size 14px
|
@@ -406,11 +406,11 @@
|
|
406
406
|
i, span, img
|
407
407
|
opacity 0
|
408
408
|
|
409
|
-
i.
|
409
|
+
i.fas.fa-home
|
410
410
|
+minWidth900()
|
411
411
|
opacity: 1
|
412
412
|
|
413
|
-
i.
|
413
|
+
i.fas.fa-home
|
414
414
|
opacity 0
|
415
415
|
position absolute
|
416
416
|
display flex
|
@@ -808,13 +808,13 @@ if hexo-config('nav.group')
|
|
808
808
|
+minWidth900()
|
809
809
|
align-items center
|
810
810
|
|
811
|
-
i.
|
811
|
+
i.fas.fa-home
|
812
812
|
color var(--efu-white)
|
813
813
|
|
814
814
|
.nav-fixed
|
815
815
|
#nav
|
816
816
|
#site-name
|
817
|
-
i.
|
817
|
+
i.fas.fa-home
|
818
818
|
color var(--efu-card-bg)
|
819
819
|
|
820
820
|
.not-top-img
|
@@ -9,7 +9,7 @@
|
|
9
9
|
height: 25rem
|
10
10
|
|
11
11
|
+maxWidth768()
|
12
|
-
height
|
12
|
+
height 15rem
|
13
13
|
background-color var(--efu-main) !important
|
14
14
|
transition 0s
|
15
15
|
margin-bottom -12px
|
@@ -128,7 +128,7 @@
|
|
128
128
|
transform rotate(0) translateY(0) scale(1)
|
129
129
|
filter blur(0)
|
130
130
|
width 100%
|
131
|
-
height
|
131
|
+
height 15rem
|
132
132
|
|
133
133
|
&:after
|
134
134
|
box-shadow 0 0 205px 59px var(--efu-main) inset
|
@@ -165,7 +165,7 @@
|
|
165
165
|
+maxWidth768()
|
166
166
|
padding 0 6%
|
167
167
|
justify-content normal
|
168
|
-
padding-top
|
168
|
+
padding-top 4rem
|
169
169
|
|
170
170
|
.post-title
|
171
171
|
color var(--efu-white)
|
@@ -71,7 +71,7 @@ function adjustBrightness(r, g, b) {
|
|
71
71
|
[...document.getElementsByClassName('card-content')].forEach(item => {
|
72
72
|
item.style.setProperty('--efu-card-bg', 'var(--efu-white)');
|
73
73
|
});
|
74
|
-
[...document.getElementsByClassName('
|
74
|
+
[...document.getElementsByClassName('sayhi')].forEach(item => {
|
75
75
|
item.style.setProperty('background', 'var(--efu-white-op)');
|
76
76
|
item.style.setProperty('color', 'var(--efu-white)');
|
77
77
|
});
|
@@ -69,7 +69,7 @@ const adjustBrightness = (r, g, b) => {
|
|
69
69
|
document.querySelectorAll('.card-content').forEach(item => {
|
70
70
|
item.style.setProperty('--efu-card-bg', 'var(--efu-white)');
|
71
71
|
});
|
72
|
-
document.querySelectorAll('.
|
72
|
+
document.querySelectorAll('.sayhi').forEach(item => {
|
73
73
|
item.style.setProperty('background', 'var(--efu-white-op)');
|
74
74
|
item.style.setProperty('color', 'var(--efu-white)');
|
75
75
|
});
|
@@ -87,7 +87,7 @@ const adjustCardStyles = () => {
|
|
87
87
|
item.style.setProperty('--efu-card-bg', 'var(--efu-white)');
|
88
88
|
});
|
89
89
|
|
90
|
-
const authorInfo = document.querySelectorAll('.
|
90
|
+
const authorInfo = document.querySelectorAll('.sayhi');
|
91
91
|
authorInfo.forEach(item => {
|
92
92
|
item.style.setProperty('background', 'var(--efu-white-op)');
|
93
93
|
item.style.setProperty('color', 'var(--efu-white)');
|
package/source/js/main.js
CHANGED
@@ -234,7 +234,7 @@ const sco = {
|
|
234
234
|
},
|
235
235
|
changeWittyWord() {
|
236
236
|
const greetings = GLOBAL_CONFIG.aside.witty_words;
|
237
|
-
const greetingElement = document.getElementById("
|
237
|
+
const greetingElement = document.getElementById("sayhi");
|
238
238
|
let randomGreeting;
|
239
239
|
do {
|
240
240
|
randomGreeting = greetings[Math.floor(Math.random() * greetings.length)];
|
@@ -312,7 +312,7 @@ const sco = {
|
|
312
312
|
},
|
313
313
|
scrollToComment: () => utils.scrollToDest(utils.getEleTop(document.getElementById('post-comment')), 300),
|
314
314
|
setTimeState() {
|
315
|
-
const el = document.getElementById('
|
315
|
+
const el = document.getElementById('sayhi');
|
316
316
|
if (el) {
|
317
317
|
const hours = new Date().getHours();
|
318
318
|
const lang = GLOBAL_CONFIG.aside.state;
|
@@ -404,7 +404,7 @@ const sco = {
|
|
404
404
|
return;
|
405
405
|
}
|
406
406
|
pageText.addEventListener("keydown", (event) => {
|
407
|
-
if (event.
|
407
|
+
if (event.key === 'Enter') {
|
408
408
|
sco.toPage();
|
409
409
|
pjax.loadUrl(pageButton.href);
|
410
410
|
}
|
@@ -788,11 +788,11 @@ document.addEventListener('visibilitychange', () => {
|
|
788
788
|
});
|
789
789
|
|
790
790
|
window.onkeydown = e => {
|
791
|
-
const {
|
792
|
-
if (
|
791
|
+
const { code, ctrlKey, shiftKey } = e;
|
792
|
+
if (code === 'F12' || (ctrlKey && shiftKey && (code === 'KeyI' || code === 'KeyC'))) {
|
793
793
|
utils.snackbarShow(GLOBAL_CONFIG.lang.f12, false, 3000);
|
794
794
|
}
|
795
|
-
if (
|
795
|
+
if (code === 'Escape') {
|
796
796
|
sco.hideConsole();
|
797
797
|
}
|
798
798
|
};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
- var archive = theme.aside.archive
|
2
|
-
|
3
|
-
ul.card-archive-list
|
4
|
-
- var type = archive.type ? archive.type : 'year'
|
5
|
-
each value, key in getArchiveLength(type)
|
6
|
-
li.card-archive-list-item
|
7
|
-
a.card-archive-list-link(href=`/archives/${key}/`)
|
8
|
-
span.card-archive-list-date= key
|
9
|
-
.card-archive-list-count-group
|
10
|
-
span.card-archive-list-count= value
|
11
|
-
span.card-archive-list-count-unit= __('console.archive_unit')
|
12
|
-
li.card-archive-list-item
|
13
|
-
a.card-archive-list-link(href='/archives/')
|
14
|
-
span.card-archive-list-date= __('console.archive_all')
|
15
|
-
.card-archive-list-count-group
|
16
|
-
span.card-archive-list-count= site.posts.length
|
17
|
-
span.card-archive-list-count-unit= __('console.archive_unit')
|