hexo-theme-solitude 1.3.0 → 1.4.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/.github/FUNDING.yml +13 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +107 -0
- package/.github/ISSUE_TEMPLATE/config.yml +13 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +14 -0
- package/.github/workflows/npm-publish.yml +21 -0
- package/CONTRIBUTING.md +0 -0
- package/LICENSE +0 -0
- package/README.md +60 -43
- package/README_EN.md +60 -42
- package/_config.yml +606 -444
- package/languages/en-US.yml +3 -23
- package/languages/zh-CN.yml +3 -23
- package/layout/404.pug +0 -0
- package/layout/archive.pug +2 -3
- package/layout/category.pug +0 -0
- package/layout/includes/body/mode.pug +35 -0
- package/layout/includes/console.pug +3 -3
- package/layout/includes/footer.pug +16 -15
- package/layout/includes/head/config.pug +38 -30
- package/layout/includes/head/opengraph.pug +0 -0
- package/layout/includes/head/pwa.pug +5 -44
- package/layout/includes/head.pug +3 -1
- package/layout/includes/header.pug +0 -0
- package/layout/includes/inject/body.pug +115 -63
- package/layout/includes/inject/head.pug +11 -46
- package/layout/includes/layout.pug +1 -1
- package/layout/includes/loading.pug +0 -0
- package/layout/includes/mixins/articleSort.pug +0 -0
- package/layout/includes/mixins/pagination.pug +0 -0
- package/layout/includes/nav.pug +1 -1
- package/layout/includes/page/about.pug +1 -1
- package/layout/includes/page/categories.pug +0 -0
- package/layout/includes/page/default.pug +0 -0
- package/layout/includes/page/equipment.pug +0 -0
- package/layout/includes/page/links.pug +2 -2
- package/layout/includes/page/music.pug +0 -0
- package/layout/includes/page/not_configured.pug +0 -0
- package/layout/includes/page/rss.pug +3 -3
- package/layout/includes/page/says.pug +15 -15
- package/layout/includes/page/tags.pug +0 -0
- package/layout/includes/page/tlink.pug +1 -0
- package/layout/includes/recent-posts.pug +0 -0
- package/layout/includes/sidebar.pug +0 -0
- package/layout/includes/widgets/aside/aside.pug +6 -6
- package/layout/includes/widgets/aside/asideAllInfo.pug +0 -0
- package/layout/includes/widgets/aside/asideArchive.pug +0 -0
- package/layout/includes/widgets/aside/asideCustom.pug +1 -1
- package/layout/includes/widgets/aside/asideFlipCard.pug +0 -0
- package/layout/includes/widgets/aside/asideInfoCard.pug +3 -3
- package/layout/includes/widgets/aside/asideNewestPost.pug +0 -0
- package/layout/includes/widgets/aside/asideSwitch.pug +0 -4
- package/layout/includes/widgets/aside/asideTag.pug +1 -1
- package/layout/includes/widgets/aside/asideToc.pug +0 -0
- package/layout/includes/widgets/aside/asideWebInfo.pug +2 -2
- package/layout/includes/widgets/home/banner.pug +0 -0
- package/layout/includes/widgets/home/bb/json.pug +22 -0
- package/layout/includes/widgets/home/bb/local.pug +17 -0
- package/layout/includes/widgets/home/bb/memos.pug +25 -0
- package/layout/includes/widgets/home/bbTimeList.pug +11 -7
- package/layout/includes/widgets/home/categoryBar.pug +0 -0
- package/layout/includes/widgets/home/categoryGroup.pug +1 -1
- package/layout/includes/widgets/home/hometop.pug +0 -0
- package/layout/includes/widgets/home/postList.pug +0 -0
- package/layout/includes/widgets/home/topGroup.pug +0 -0
- package/layout/includes/widgets/nav/left.pug +0 -0
- package/layout/includes/widgets/nav/menu.pug +1 -1
- package/layout/includes/widgets/nav/right.pug +6 -5
- package/layout/includes/widgets/page/about/authorinfo.pug +10 -9
- package/layout/includes/widgets/page/about/award.pug +0 -0
- package/layout/includes/widgets/page/about/contentinfo.pug +35 -34
- package/layout/includes/widgets/page/about/hobbies.pug +21 -17
- package/layout/includes/widgets/page/about/motto.pug +17 -16
- package/layout/includes/widgets/page/about/other.pug +16 -16
- package/layout/includes/widgets/page/about/personalities.pug +15 -14
- package/layout/includes/widgets/page/about/skillsinfo.pug +37 -36
- package/layout/includes/widgets/page/about/tenyear.pug +0 -0
- package/layout/includes/widgets/page/banner.pug +9 -3
- package/layout/includes/widgets/page/equipment/content.pug +0 -0
- package/layout/includes/widgets/page/links/banner.pug +14 -12
- package/layout/includes/widgets/page/links/linksCard.pug +4 -6
- package/layout/includes/widgets/page/links/linksDiscn.pug +8 -0
- package/layout/includes/widgets/page/links/linksItem.pug +4 -6
- package/layout/includes/widgets/page/says/json.pug +80 -0
- package/layout/includes/widgets/page/says/local.pug +48 -0
- package/layout/includes/widgets/page/says/memos.pug +109 -0
- package/layout/includes/widgets/post/award.pug +0 -0
- package/layout/includes/widgets/post/copyright.pug +2 -2
- package/layout/includes/widgets/post/post-ai.pug +12 -0
- package/layout/includes/widgets/post/postMeta.pug +2 -2
- package/layout/includes/widgets/post/postNav.pug +0 -0
- package/layout/includes/widgets/post/wave.pug +0 -0
- package/layout/includes/widgets/randomlink.pug +1 -1
- package/layout/includes/widgets/rightside/index.pug +6 -5
- package/layout/includes/widgets/third-party/comments/comment.pug +1 -5
- package/layout/includes/widgets/third-party/comments/twikoo.pug +1 -1
- package/layout/includes/widgets/third-party/comments/waline.pug +9 -11
- package/layout/includes/widgets/third-party/music.pug +1 -1
- package/layout/includes/widgets/third-party/news-comment/newest-comment.pug +6 -0
- package/layout/includes/widgets/third-party/news-comment/twikoo.pug +70 -0
- package/layout/includes/widgets/third-party/news-comment/waline.pug +64 -0
- package/layout/includes/widgets/third-party/pjax.pug +0 -0
- package/layout/includes/widgets/third-party/search/algolia-search.pug +0 -0
- package/layout/includes/widgets/third-party/search/index.pug +8 -7
- package/layout/includes/widgets/third-party/search/local-search.pug +0 -0
- package/layout/index.pug +3 -3
- package/layout/page.pug +0 -4
- package/layout/post.pug +2 -2
- package/layout/tag.pug +0 -0
- package/package.json +18 -9
- package/plugins.yml +109 -0
- package/scripts/event/cdn.js +129 -0
- package/scripts/event/init.js +0 -0
- package/scripts/event/page.js +1 -21
- package/scripts/event/welcome.js +1 -1
- package/scripts/filter/checkThemeConfig.js +0 -0
- package/scripts/filter/default.js +0 -0
- package/scripts/filter/lazyload.js +1 -1
- package/scripts/filter/randomPosts.js +0 -0
- package/scripts/helper/cdn.js +0 -0
- package/scripts/helper/getArchiveLength.js +0 -0
- package/scripts/helper/page.js +0 -0
- package/scripts/helper/related_post.js +0 -0
- package/scripts/helper/stylus.js +0 -0
- package/scripts/tags/button.js +0 -0
- package/scripts/tags/bvideo.js +0 -0
- package/scripts/tags/card.js +0 -0
- package/scripts/tags/checkbox.js +0 -0
- package/scripts/tags/fold.js +0 -0
- package/scripts/tags/image.js +0 -0
- package/scripts/tags/inline-image.js +0 -0
- package/scripts/tags/label.js +0 -0
- package/scripts/tags/link.js +0 -0
- package/scripts/tags/media.js +0 -0
- package/scripts/tags/note.js +0 -0
- package/scripts/tags/span.js +0 -0
- package/scripts/tags/tabs.js +0 -0
- package/scripts/tags/timeline.js +0 -0
- package/scripts/tags/u.js +0 -0
- package/source/css/_global/animation.css +0 -0
- package/source/css/_global/function.styl +42 -42
- package/source/css/_global/index.styl +1 -1
- package/source/css/_global/var.styl +0 -0
- package/source/css/_layout/basic.styl +10 -12
- package/source/css/_layout/header.styl +8 -3
- package/source/css/_layout/index.styl +59 -5
- package/source/css/_mode/index.styl +0 -0
- package/source/css/_page/_home/category-bar.styl +0 -0
- package/source/css/_page/_home/home-top.styl +10 -31
- package/source/css/_page/_home/index.styl +0 -0
- package/source/css/_page/_home/pagination.styl +3 -0
- package/source/css/_page/_home/recent-post.styl +10 -3
- package/source/css/_page/about/index.styl +0 -0
- package/source/css/_page/about/tenyear.styl +0 -0
- package/source/css/_page/about.styl +9 -0
- package/source/css/_page/category.styl +0 -0
- package/source/css/_page/douban.styl +0 -1
- package/source/css/_page/equipment.styl +0 -0
- package/source/css/_page/error.styl +0 -0
- package/source/css/_page/home.styl +0 -0
- package/source/css/_page/index.styl +2 -3
- package/source/css/_page/links.styl +85 -49
- package/source/css/_page/moment.styl +0 -0
- package/source/css/_page/music.styl +1 -1
- package/source/css/_page/rss.styl +0 -0
- package/source/css/_page/says.styl +10 -0
- package/source/css/_page/tag.styl +0 -0
- package/source/css/_widgets/_aside/allinfo.styl +34 -0
- package/source/css/_widgets/_aside/flip.styl +0 -0
- package/source/css/_widgets/_aside/index.styl +1 -7
- package/source/css/_widgets/_aside/info.styl +0 -0
- package/source/css/_widgets/_aside/newPost.styl +0 -0
- package/source/css/_widgets/_aside/toc.styl +0 -0
- package/source/css/_widgets/_aside/welcome.styl +0 -0
- package/source/css/_widgets/_comment/index.styl +0 -0
- package/source/css/_widgets/_comment/twikoo.styl +0 -2
- package/source/css/_widgets/_comment/waline.styl +0 -0
- package/source/css/_widgets/_extra/console.styl +0 -0
- package/source/css/_widgets/_extra/fullpage.styl +0 -0
- package/source/css/_widgets/_extra/music.styl +1 -1
- package/source/css/_widgets/_extra/pace.styl +0 -0
- package/source/css/_widgets/_extra/rightmenu.styl +0 -0
- package/source/css/_widgets/_mixins/article-sort.styl +0 -0
- package/source/css/_widgets/_mixins/footer.styl +1 -2
- package/source/css/_widgets/_mixins/other.styl +0 -4
- package/source/css/_widgets/_mixins/sidebar.styl +0 -0
- package/source/css/_widgets/_post/_highlight/diff.styl +0 -0
- package/source/css/_widgets/_post/_highlight/index.styl +0 -1
- package/source/css/_widgets/_post/_highlight/theme/default.styl +0 -0
- package/source/css/_widgets/_post/_highlight/theme/mac.styl +0 -0
- package/source/css/_widgets/_post/_highlight/theme.styl +0 -0
- package/source/css/_widgets/_post/commentBarrage.styl +0 -0
- package/source/css/_widgets/_post/content.styl +42 -11
- package/source/css/_widgets/_post/copyright.styl +0 -0
- package/source/css/_widgets/_post/index.styl +1 -1
- package/source/css/_widgets/_post/meta.styl +0 -3
- package/source/css/_widgets/_post/pagination.styl +1 -1
- package/source/css/_widgets/_post/postAI.styl +0 -0
- package/source/css/_widgets/_post/relatedPost.styl +0 -0
- package/source/css/_widgets/_post/tools.styl +0 -0
- package/source/css/_widgets/_search/algolia-search.styl +0 -0
- package/source/css/_widgets/_search/local-search.styl +0 -0
- package/source/css/_widgets/_tags/button.styl +0 -0
- package/source/css/_widgets/_tags/bvideo.styl +0 -0
- package/source/css/_widgets/_tags/card.styl +0 -0
- package/source/css/_widgets/_tags/checkbox.styl +0 -0
- package/source/css/_widgets/_tags/fold.styl +0 -0
- package/source/css/_widgets/_tags/image.styl +0 -0
- package/source/css/_widgets/_tags/index.styl +0 -0
- package/source/css/_widgets/_tags/inline-image.styl +0 -0
- package/source/css/_widgets/_tags/label.styl +0 -0
- package/source/css/_widgets/_tags/link.styl +4 -2
- package/source/css/_widgets/_tags/note.styl +0 -0
- package/source/css/_widgets/_tags/span.styl +0 -0
- package/source/css/_widgets/_tags/tabs.styl +0 -0
- package/source/css/_widgets/_tags/timeline.styl +0 -1
- package/source/css/_widgets/index.styl +4 -4
- package/source/css/index.styl +0 -0
- package/source/img/avatar.png +0 -0
- package/source/img/default.png +0 -0
- package/source/img/error_load.png +0 -0
- package/source/js/{extend/comment/twikoo/commentBarrage.js → comment/twikoo_commentBarrage.js} +0 -0
- package/source/js/{extend/comment/waline/commentBarrage.js → comment/waline_commentBarrage.js} +0 -0
- package/source/js/covercolor/api.js +95 -0
- package/source/js/covercolor/local.js +154 -0
- package/source/js/main.js +28 -252
- package/source/js/music.js +0 -0
- package/source/js/rightside.js +404 -0
- package/source/js/{extend/search/algolia-search.js → search/algolia.js} +10 -0
- package/source/js/{extend/search/local-search.js → search/local.js} +24 -2
- package/source/js/utils.js +75 -1
- package/layout/includes/head/fest.pug +0 -22
- package/layout/includes/page/echarts.pug +0 -7
- package/layout/includes/page/moments.pug +0 -4
- package/layout/includes/widgets/aside/asideHistory.pug +0 -8
- package/layout/includes/widgets/aside/asideWelcome.pug +0 -12
- package/layout/includes/widgets/page/moments/angle.pug +0 -19
- package/layout/includes/widgets/page/moments/index.pug +0 -23
- package/layout/includes/widgets/page/says/saysBottom.pug +0 -11
- package/layout/includes/widgets/page/says/saysContent.pug +0 -6
- package/layout/includes/widgets/page/says/saysFunction.pug +0 -10
- package/layout/includes/widgets/page/says/saysMeta.pug +0 -7
- package/layout/includes/widgets/third-party/ai/index.pug +0 -12
- package/layout/includes/widgets/third-party/comments/gitalk.pug +0 -0
- package/layout/includes/widgets/third-party/comments/valine.pug +0 -0
- package/scripts/helper/echarts.js +0 -407
- package/source/css/_widgets/_aside/history.styl +0 -42
- package/source/js/extend/comment/twikoo/twikoo.js +0 -67
- package/source/js/extend/comment/waline/waline.js +0 -60
- package/source/lib/bundle.min.js +0 -27
- package/source/lib/circle.min.js +0 -1
- package/source/lib/cover-color.min.js +0 -7
- package/source/lib/friends_post.js +0 -4
- package/source/lib/lazyload.min.js +0 -1
- package/source/lib/rightside.min.js +0 -1
- package/source/lib/snackbar.min.css +0 -1
- package/source/lib/snackbar.min.js +0 -9
- package/source/lib/txmap.min.js +0 -1
- package/source/lib/view-image.min.js +0 -6
- package/source/lib/waterfall.min.js +0 -1
- /package/source/{lib → js}/sco-ai.min.js +0 -0
@@ -0,0 +1,129 @@
|
|
1
|
+
/**
|
2
|
+
* Solitude
|
3
|
+
* Merge CDN
|
4
|
+
*/
|
5
|
+
|
6
|
+
'use strict'
|
7
|
+
|
8
|
+
const { version } = require('../../package.json')
|
9
|
+
const path = require('path')
|
10
|
+
|
11
|
+
hexo.extend.filter.register('before_generate', () => {
|
12
|
+
const themeConfig = hexo.theme.config
|
13
|
+
const { CDN } = themeConfig
|
14
|
+
|
15
|
+
const thirdPartySrc = hexo.render.renderSync({ path: path.join(hexo.theme_dir, '/plugins.yml'), engine: 'yaml' })
|
16
|
+
const internalSrc = {
|
17
|
+
main: {
|
18
|
+
name: 'hexo-theme-solitude',
|
19
|
+
file: 'js/main.js',
|
20
|
+
version
|
21
|
+
},
|
22
|
+
utils: {
|
23
|
+
name: 'hexo-theme-solitude',
|
24
|
+
file: 'js/utils.js',
|
25
|
+
version
|
26
|
+
},
|
27
|
+
local_search: {
|
28
|
+
name: 'hexo-theme-solitude',
|
29
|
+
file: 'js/search/local.js',
|
30
|
+
version
|
31
|
+
},
|
32
|
+
algolia_js: {
|
33
|
+
name: 'hexo-theme-solitude',
|
34
|
+
file: 'js/search/algolia.js',
|
35
|
+
version
|
36
|
+
},
|
37
|
+
cover_local: {
|
38
|
+
name: 'hexo-theme-solitude',
|
39
|
+
file: 'js/covercolor/local.js',
|
40
|
+
version
|
41
|
+
},
|
42
|
+
cover_api: {
|
43
|
+
name: 'hexo-theme-solitude',
|
44
|
+
file: 'js/covercolor/api.js',
|
45
|
+
version
|
46
|
+
},
|
47
|
+
rightside_js: {
|
48
|
+
name: 'hexo-theme-solitude',
|
49
|
+
file: 'js/rightside.js',
|
50
|
+
version
|
51
|
+
},
|
52
|
+
music_js: {
|
53
|
+
name: 'hexo-theme-solitude',
|
54
|
+
file: 'js/music.js',
|
55
|
+
version
|
56
|
+
},
|
57
|
+
sco_ai_js: {
|
58
|
+
name: 'hexo-theme-solitude',
|
59
|
+
file: 'js/sco-ai.min.js',
|
60
|
+
version
|
61
|
+
},
|
62
|
+
twikoo_commentBarrage: {
|
63
|
+
name: 'hexo-theme-solitude',
|
64
|
+
file: 'js/comment/twikoo_commentBarrage.js',
|
65
|
+
version
|
66
|
+
},
|
67
|
+
waline_commentBarrage: {
|
68
|
+
name: 'hexo-theme-solitude',
|
69
|
+
file: 'js/comment/waline_commentBarrage.js',
|
70
|
+
version
|
71
|
+
},
|
72
|
+
}
|
73
|
+
|
74
|
+
const minFile = file => {
|
75
|
+
return file.replace(/(?<!\.min)\.(js|css)$/g, ext => '.min' + ext)
|
76
|
+
}
|
77
|
+
|
78
|
+
const createCDNLink = (data, type, cond = '') => {
|
79
|
+
Object.keys(data).forEach(key => {
|
80
|
+
let { name, version, file, other_name } = data[key]
|
81
|
+
const cdnjs_name = other_name || name
|
82
|
+
const cdnjs_file = file.replace(/^[lib|dist]*\/|browser\//g, '')
|
83
|
+
const min_cdnjs_file = minFile(cdnjs_file)
|
84
|
+
if (cond === 'internal') file = `source/${file}`
|
85
|
+
const min_file = minFile(file)
|
86
|
+
const verType = CDN.version ? (type === 'local' ? `?v=${version}` : `@${version}`) : ''
|
87
|
+
|
88
|
+
const value = {
|
89
|
+
version,
|
90
|
+
name,
|
91
|
+
file,
|
92
|
+
cdnjs_file,
|
93
|
+
min_file,
|
94
|
+
min_cdnjs_file,
|
95
|
+
cdnjs_name
|
96
|
+
}
|
97
|
+
|
98
|
+
const cdnSource = {
|
99
|
+
local: cond === 'internal' ? `${cdnjs_file + verType}` : `/pluginsSrc/${name}/${file + verType}`,
|
100
|
+
jsdelivr: `https://cdn.jsdelivr.net/npm/${name}${verType}/${min_file}`,
|
101
|
+
unpkg: `https://unpkg.com/${name}${verType}/${file}`,
|
102
|
+
cdnjs: `https://cdnjs.cloudflare.com/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file}`,
|
103
|
+
custom: (CDN.custom_format || '').replace(/\$\{(.+?)\}/g, (match, $1) => value[$1]),
|
104
|
+
custom_cdn: `${CDN.custom_cdn + cdnjs_file}`,
|
105
|
+
cdncbd: `https://cdn.cbd.int/${name}${verType}/${file}`,
|
106
|
+
}
|
107
|
+
|
108
|
+
data[key] = cdnSource[type]
|
109
|
+
})
|
110
|
+
|
111
|
+
if (cond === 'internal') data.main_css = 'css/index.css' + (CDN.version ? `?v=${version}` : '')
|
112
|
+
return data
|
113
|
+
}
|
114
|
+
|
115
|
+
// delete null value
|
116
|
+
const deleteNullValue = obj => {
|
117
|
+
if (!obj) return
|
118
|
+
for (const i in obj) {
|
119
|
+
obj[i] === null && delete obj[i]
|
120
|
+
}
|
121
|
+
return obj
|
122
|
+
}
|
123
|
+
|
124
|
+
themeConfig.cdn = Object.assign(
|
125
|
+
createCDNLink(internalSrc, CDN.internal, 'internal'),
|
126
|
+
createCDNLink(thirdPartySrc, CDN.third_party),
|
127
|
+
deleteNullValue(CDN.option)
|
128
|
+
)
|
129
|
+
})
|
package/scripts/event/init.js
CHANGED
File without changes
|
package/scripts/event/page.js
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
|
1
|
+
// generate 404 Page
|
2
2
|
hexo.extend.generator.register('404', function (locals) {
|
3
3
|
if(!this.theme.config.page.error)return
|
4
4
|
return {
|
5
5
|
path: '404.html',
|
6
6
|
layout: ['404'],
|
7
7
|
data: {
|
8
|
-
title: '404',
|
9
8
|
type: '404',
|
10
9
|
comment: false
|
11
10
|
}
|
@@ -15,12 +14,10 @@ hexo.extend.generator.register('404', function (locals) {
|
|
15
14
|
// generate tags Page
|
16
15
|
hexo.extend.generator.register('tags', function(locals) {
|
17
16
|
if(!this.theme.config.page.tags)return
|
18
|
-
const lang = hexo.theme.i18n.get(this.config.language || 'zh-CN')
|
19
17
|
return {
|
20
18
|
path: 'tags/index.html',
|
21
19
|
layout: ['page'],
|
22
20
|
data: {
|
23
|
-
title: lang["page.tag"],
|
24
21
|
type: 'tags',
|
25
22
|
comment: false
|
26
23
|
}
|
@@ -30,29 +27,12 @@ hexo.extend.generator.register('tags', function(locals) {
|
|
30
27
|
// generate categories Page
|
31
28
|
hexo.extend.generator.register('categories', function(locals) {
|
32
29
|
if(!this.theme.config.page.categories)return
|
33
|
-
const lang = hexo.theme.i18n.get(this.config.language || 'zh-CN')
|
34
30
|
return {
|
35
31
|
path: 'categories/index.html',
|
36
32
|
layout: ['page'],
|
37
33
|
data: {
|
38
|
-
title: lang["page.category"],
|
39
34
|
type: 'categories',
|
40
35
|
comment: false
|
41
36
|
}
|
42
37
|
};
|
43
|
-
});
|
44
|
-
|
45
|
-
// generate echarts Page
|
46
|
-
hexo.extend.generator.register('echarts', function(locals) {
|
47
|
-
if(!this.theme.config.about.echarts && !this.theme.config.about.enable)return
|
48
|
-
const lang = hexo.theme.i18n.get(this.config.language || 'zh-CN')
|
49
|
-
return {
|
50
|
-
path: 'echart/index.html',
|
51
|
-
layout: ['page'],
|
52
|
-
data: {
|
53
|
-
title: lang["page.echarts"],
|
54
|
-
type: 'echarts',
|
55
|
-
comment: false
|
56
|
-
}
|
57
|
-
};
|
58
38
|
});
|
package/scripts/event/welcome.js
CHANGED
@@ -9,6 +9,6 @@ hexo.on('ready', () => {
|
|
9
9
|
###### #### ##### ##### # ### ###### ######
|
10
10
|
${version}
|
11
11
|
===================================================================
|
12
|
-
主题链接:https://github.com/
|
12
|
+
主题链接:https://github.com/wleelw/Hexo-theme-solitude
|
13
13
|
`)
|
14
14
|
})
|
File without changes
|
File without changes
|
File without changes
|
package/scripts/helper/cdn.js
CHANGED
File without changes
|
File without changes
|
package/scripts/helper/page.js
CHANGED
File without changes
|
File without changes
|
package/scripts/helper/stylus.js
CHANGED
File without changes
|
package/scripts/tags/button.js
CHANGED
File without changes
|
package/scripts/tags/bvideo.js
CHANGED
File without changes
|
package/scripts/tags/card.js
CHANGED
File without changes
|
package/scripts/tags/checkbox.js
CHANGED
File without changes
|
package/scripts/tags/fold.js
CHANGED
File without changes
|
package/scripts/tags/image.js
CHANGED
File without changes
|
File without changes
|
package/scripts/tags/label.js
CHANGED
File without changes
|
package/scripts/tags/link.js
CHANGED
File without changes
|
package/scripts/tags/media.js
CHANGED
File without changes
|
package/scripts/tags/note.js
CHANGED
File without changes
|
package/scripts/tags/span.js
CHANGED
File without changes
|
package/scripts/tags/tabs.js
CHANGED
File without changes
|
package/scripts/tags/timeline.js
CHANGED
File without changes
|
package/scripts/tags/u.js
CHANGED
File without changes
|
File without changes
|
@@ -1,83 +1,83 @@
|
|
1
1
|
maxWidth600()
|
2
|
-
|
3
|
-
|
2
|
+
@media screen and (max-width: 600px)
|
3
|
+
{block}
|
4
4
|
|
5
5
|
maxWidth768()
|
6
|
-
|
7
|
-
|
6
|
+
@media screen and (max-width: 768px)
|
7
|
+
{block}
|
8
8
|
|
9
9
|
minWidth768()
|
10
|
-
|
11
|
-
|
10
|
+
@media screen and (min-width: 768px)
|
11
|
+
{block}
|
12
12
|
|
13
13
|
maxWidth798()
|
14
|
-
|
15
|
-
|
14
|
+
@media screen and (max-width: 798px)
|
15
|
+
{block}
|
16
16
|
|
17
17
|
minWidth798()
|
18
|
-
|
19
|
-
|
18
|
+
@media screen and (min-width: 798px)
|
19
|
+
{block}
|
20
20
|
|
21
21
|
maxWidth899()
|
22
|
-
|
23
|
-
|
22
|
+
@media screen and (max-width: 899px)
|
23
|
+
{block}
|
24
24
|
|
25
25
|
minWidth899()
|
26
|
-
|
27
|
-
|
26
|
+
@media screen and (min-width: 899px)
|
27
|
+
{block}
|
28
28
|
|
29
29
|
maxWidth900()
|
30
|
-
|
31
|
-
|
30
|
+
@media screen and (max-width: 900px)
|
31
|
+
{block}
|
32
32
|
|
33
33
|
minWidth900()
|
34
|
-
|
35
|
-
|
34
|
+
@media screen and (min-width: 900px)
|
35
|
+
{block}
|
36
36
|
|
37
37
|
maxWidth1300()
|
38
|
-
|
39
|
-
|
38
|
+
@media screen and (max-width: 1300px)
|
39
|
+
{block}
|
40
40
|
|
41
41
|
minWidth1300()
|
42
|
-
|
43
|
-
|
42
|
+
@media screen and (min-width: 1300px)
|
43
|
+
{block}
|
44
44
|
|
45
45
|
maxWidth1400()
|
46
|
-
|
47
|
-
|
46
|
+
@media screen and (max-width: 1400px)
|
47
|
+
{block}
|
48
48
|
|
49
49
|
minWidth1400()
|
50
|
-
|
51
|
-
|
50
|
+
@media screen and (min-width: 1400px)
|
51
|
+
{block}
|
52
52
|
|
53
53
|
maxWidth1200()
|
54
|
-
|
55
|
-
|
54
|
+
@media screen and (max-width: 1200px)
|
55
|
+
{block}
|
56
56
|
|
57
57
|
minWidth1200()
|
58
|
-
|
59
|
-
|
58
|
+
@media screen and (min-width: 1200px)
|
59
|
+
{block}
|
60
60
|
|
61
61
|
maxWidth1024()
|
62
|
-
|
63
|
-
|
62
|
+
@media screen and (max-width: 1024px)
|
63
|
+
{block}
|
64
64
|
|
65
65
|
maxWidth900()
|
66
|
-
|
67
|
-
|
66
|
+
@media screen and (max-width: 900px)
|
67
|
+
{block}
|
68
68
|
|
69
69
|
minWidth901()
|
70
|
-
|
71
|
-
|
70
|
+
@media screen and (min-width: 901px)
|
71
|
+
{block}
|
72
72
|
|
73
73
|
minWidth900()
|
74
|
-
|
75
|
-
|
74
|
+
@media screen and (min-width: 900px)
|
75
|
+
{block}
|
76
76
|
|
77
77
|
minWidth2000()
|
78
|
-
|
79
|
-
|
78
|
+
@media screen and (min-width: 2000px)
|
79
|
+
{block}
|
80
80
|
|
81
81
|
maxHeight800()
|
82
|
-
|
83
|
-
|
82
|
+
@media screen and (max-height: 800px)
|
83
|
+
{block}
|
File without changes
|
@@ -24,8 +24,8 @@ body
|
|
24
24
|
margin 0
|
25
25
|
|
26
26
|
::selection
|
27
|
-
background var(--sco-
|
28
|
-
color var(--sco-
|
27
|
+
background var(--sco-main)
|
28
|
+
color var(--sco-white)
|
29
29
|
|
30
30
|
i.scoicon
|
31
31
|
font-size 22px
|
@@ -59,6 +59,9 @@ a
|
|
59
59
|
overflow-wrap break-word
|
60
60
|
-webkit-user-drag none
|
61
61
|
|
62
|
+
&:hover
|
63
|
+
color var(--sco-lighttext)
|
64
|
+
|
62
65
|
abbr[title]
|
63
66
|
border-bottom none
|
64
67
|
text-decoration underline dotted
|
@@ -95,7 +98,7 @@ button, input
|
|
95
98
|
overflow visible
|
96
99
|
|
97
100
|
input::placeholder
|
98
|
-
color var(--sco-gray)
|
101
|
+
color var(--sco-gray)
|
99
102
|
|
100
103
|
button, select
|
101
104
|
text-transform none
|
@@ -179,10 +182,6 @@ table td, table th
|
|
179
182
|
border 1px solid var(--light-grey)
|
180
183
|
vertical-align middle
|
181
184
|
|
182
|
-
::selection
|
183
|
-
background #0079ff
|
184
|
-
color #f7f7f7
|
185
|
-
|
186
185
|
button
|
187
186
|
padding 0
|
188
187
|
outline 0
|
@@ -192,9 +191,11 @@ button
|
|
192
191
|
cursor pointer
|
193
192
|
|
194
193
|
img
|
195
|
-
max-width 100%
|
196
|
-
transition all .2s ease 0s;
|
197
194
|
border-style none
|
195
|
+
border-radius 8px
|
196
|
+
max-width 100%
|
197
|
+
transition all .2s ease 0s
|
198
|
+
-webkit-user-drag none
|
198
199
|
|
199
200
|
img:not([src]), img[src=""]
|
200
201
|
opacity 0
|
@@ -205,9 +206,6 @@ img:not([src]), img[src=""]
|
|
205
206
|
margin-top 8px
|
206
207
|
color var(--sco-secondtext)
|
207
208
|
|
208
|
-
.img-alt:hover
|
209
|
-
text-decoration none !important
|
210
|
-
|
211
209
|
.is-center
|
212
210
|
text-align center
|
213
211
|
display flex
|
@@ -332,7 +332,7 @@
|
|
332
332
|
transition .3s
|
333
333
|
display flex
|
334
334
|
height 35px
|
335
|
-
min-width
|
335
|
+
min-width 50px
|
336
336
|
justify-content center
|
337
337
|
align-items center
|
338
338
|
border-radius 40px
|
@@ -375,7 +375,12 @@
|
|
375
375
|
transition all .3s, color 0s, opacity .3s
|
376
376
|
|
377
377
|
if hexo-config('site.name.class') == text
|
378
|
-
span
|
378
|
+
span.title
|
379
|
+
letter-spacing normal
|
380
|
+
font-size 1rem
|
381
|
+
font-weight 700
|
382
|
+
padding 0 5px
|
383
|
+
line-height 2rem
|
379
384
|
+maxWidth768()
|
380
385
|
padding-left 8px
|
381
386
|
|
@@ -464,7 +469,7 @@
|
|
464
469
|
border-radius 5px
|
465
470
|
margin 0 4px
|
466
471
|
|
467
|
-
a
|
472
|
+
#page-header & a
|
468
473
|
letter-spacing 0
|
469
474
|
display flex
|
470
475
|
align-items center
|
@@ -19,21 +19,22 @@
|
|
19
19
|
width calc(100% - 300px)
|
20
20
|
|
21
21
|
+maxWidth1200()
|
22
|
-
width 100%
|
22
|
+
width 100%
|
23
23
|
|
24
24
|
> div:first-child:not(.recent-posts)
|
25
25
|
box-shadow var(--sco-shadow-border)
|
26
26
|
padding 1rem 2rem
|
27
27
|
border-radius 12px
|
28
|
-
|
29
|
-
|
30
|
-
border var(--style-border);
|
28
|
+
background var(--sco-card-bg)
|
29
|
+
border var(--style-border)
|
31
30
|
align-self flex-start
|
32
31
|
animation slide-in .6s .1s backwards
|
33
32
|
position relative
|
34
33
|
overflow hidden
|
35
34
|
|
36
35
|
+maxWidth768()
|
36
|
+
box-shadow none
|
37
|
+
border none
|
37
38
|
padding 0 1rem
|
38
39
|
background var(--sco-background)
|
39
40
|
|
@@ -41,6 +42,7 @@ span.tags-punctuation::before
|
|
41
42
|
content: "\e071"
|
42
43
|
font-family: scoicon, serif !important
|
43
44
|
font-size: 12px
|
45
|
+
transition none
|
44
46
|
margin-right: 2px
|
45
47
|
opacity: .4
|
46
48
|
|
@@ -49,4 +51,56 @@ span.tags-punctuation::before
|
|
49
51
|
|
50
52
|
#post-info &
|
51
53
|
font-size 14px
|
52
|
-
line-height 32px
|
54
|
+
line-height 32px
|
55
|
+
|
56
|
+
// snackbar
|
57
|
+
.snackbar-container
|
58
|
+
background var(--sco-lighttext)!important
|
59
|
+
color var(--sco-card-bg)!important
|
60
|
+
border-radius 0!important
|
61
|
+
display flex
|
62
|
+
justify-content center!important
|
63
|
+
max-width none!important
|
64
|
+
min-width 100%!important
|
65
|
+
margin 0!important
|
66
|
+
left 0!important
|
67
|
+
height 60px!important
|
68
|
+
transform none!important
|
69
|
+
|
70
|
+
.snackbar-container p
|
71
|
+
color var(--sco-card-bg)!important
|
72
|
+
font-weight 700!important
|
73
|
+
text-align center!important
|
74
|
+
font-size .8rem!important
|
75
|
+
display flex!important
|
76
|
+
justify-content center!important
|
77
|
+
|
78
|
+
.snackbar-container .action
|
79
|
+
color var(--sco-card-bg)!important
|
80
|
+
background var(--sco-lighttext)!important
|
81
|
+
padding 4px 6px!important
|
82
|
+
font-weight 700
|
83
|
+
border-radius 8px!important
|
84
|
+
transition .3s
|
85
|
+
border var(--style-border)!important
|
86
|
+
.snackbar-container .action:hover
|
87
|
+
color var(--sco-lighttext)!important
|
88
|
+
background var(--sco-card-bg)!important
|
89
|
+
|
90
|
+
.snackbar-container::after
|
91
|
+
position absolute
|
92
|
+
width 0
|
93
|
+
height 100%
|
94
|
+
left 0
|
95
|
+
top 0
|
96
|
+
background var(--sco-white)
|
97
|
+
opacity .1
|
98
|
+
content ""
|
99
|
+
animation snackbar-progress var(--sco-snackbar-time) linear forwards
|
100
|
+
pointer-events none
|
101
|
+
|
102
|
+
@keyframes snackbar-progress
|
103
|
+
from
|
104
|
+
width 0
|
105
|
+
to
|
106
|
+
width 100%
|
File without changes
|
File without changes
|
@@ -337,55 +337,32 @@ div#banners
|
|
337
337
|
display flex
|
338
338
|
flex-direction row
|
339
339
|
flex-wrap wrap
|
340
|
-
|
340
|
+
justify-content space-between
|
341
|
+
height calc(328px + 0.5rem)
|
341
342
|
align-content space-between
|
342
343
|
width calc(50% - 0.25rem)
|
343
344
|
position relative
|
344
345
|
animation slide-in .6s .1s backwards
|
345
|
-
overflow-x visible
|
346
|
-
gap 0.5rem
|
347
346
|
|
348
347
|
.recent-post-item
|
349
348
|
display flex
|
350
|
-
width 200px
|
351
349
|
flex-direction column
|
350
|
+
width calc(100% / 3 - 0.25rem)
|
352
351
|
align-items flex-start
|
353
|
-
margin-left .5rem
|
354
352
|
background var(--sco-card-bg)
|
355
353
|
border-radius 12px
|
356
354
|
overflow hidden
|
357
|
-
min-width 200px
|
358
355
|
height 164px
|
359
356
|
max-height 164px
|
360
357
|
border var(--style-border-always)
|
361
358
|
transition .3s
|
362
359
|
position relative
|
363
360
|
box-shadow var(--sco-shadow-border)
|
364
|
-
+minWidth1300()
|
365
|
-
width calc(100% / 3 - 0.35rem)
|
366
|
-
margin-left 0
|
367
361
|
|
368
|
-
+
|
369
|
-
|
370
|
-
width calc(100% / 3 - 0.35rem)
|
371
|
-
flex-direction column
|
372
|
-
align-items flex-start
|
373
|
-
margin-left 0
|
374
|
-
background var(--sco-card-bg)
|
375
|
-
border-radius 12px
|
376
|
-
overflow hidden
|
362
|
+
+maxWidth1200()
|
363
|
+
width 200px
|
377
364
|
min-width 200px
|
378
|
-
|
379
|
-
max-height 164px
|
380
|
-
border var(--style-border-always)
|
381
|
-
transition .3s
|
382
|
-
position relative
|
383
|
-
box-shadow var(--sco-shadow-border)
|
384
|
-
|
385
|
-
+maxWidth768()
|
386
|
-
border-radius 8px
|
387
|
-
box-shadow none
|
388
|
-
clip-path inset(0 0 0 0 round 8px)
|
365
|
+
margin-left .5rem
|
389
366
|
|
390
367
|
&:last-child
|
391
368
|
margin-right 1rem
|
@@ -395,7 +372,6 @@ div#banners
|
|
395
372
|
|
396
373
|
.post_cover
|
397
374
|
width 100%
|
398
|
-
-webkit-mask-image -webkit-radial-gradient(center, #fff, #000)
|
399
375
|
|
400
376
|
a
|
401
377
|
height 100px
|
@@ -421,7 +397,7 @@ div#banners
|
|
421
397
|
transition .3s
|
422
398
|
cursor pointer
|
423
399
|
|
424
|
-
|
400
|
+
/.recent-post-info
|
425
401
|
padding .3rem .5rem .3rem .5rem
|
426
402
|
transition .3s
|
427
403
|
|
@@ -438,6 +414,9 @@ div#banners
|
|
438
414
|
font-size .8rem
|
439
415
|
padding 0
|
440
416
|
|
417
|
+
&:hover
|
418
|
+
color var(--sco-fontcolor)
|
419
|
+
|
441
420
|
|
442
421
|
.todayCard
|
443
422
|
display none
|
File without changes
|