hexo-theme-solitude 1.2.6 → 1.3.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/CONTRIBUTING.md +41 -0
- package/README.md +8 -8
- package/README_EN.md +6 -6
- package/_config.yml +502 -297
- package/languages/en-US.yml +105 -8
- package/languages/zh-CN.yml +98 -1
- package/layout/archive.pug +4 -5
- package/layout/category.pug +4 -5
- package/layout/includes/body/mode.pug +40 -0
- package/layout/includes/console.pug +15 -16
- package/layout/includes/footer.pug +26 -28
- package/layout/includes/head/config.pug +27 -8
- package/layout/includes/head/fest.pug +22 -0
- package/layout/includes/head/opengraph.pug +11 -0
- package/layout/includes/head.pug +1 -3
- package/layout/includes/header.pug +1 -1
- package/layout/includes/inject/body.pug +36 -13
- package/layout/includes/inject/head.pug +30 -20
- package/layout/includes/layout.pug +12 -8
- package/layout/includes/loading.pug +1 -64
- package/layout/includes/mixins/articleSort.pug +4 -4
- package/layout/includes/mixins/pagination.pug +1 -1
- package/layout/includes/nav.pug +10 -10
- package/layout/includes/page/about.pug +1 -0
- package/layout/includes/page/categories.pug +3 -3
- package/layout/includes/page/default.pug +1 -1
- package/layout/includes/page/echarts.pug +3 -3
- package/layout/includes/page/equipment.pug +0 -1
- package/layout/includes/page/links.pug +5 -26
- package/layout/includes/page/moments.pug +0 -1
- package/layout/includes/page/music.pug +19 -0
- package/layout/includes/page/not_configured.pug +18 -0
- package/layout/includes/page/rss.pug +20 -22
- package/layout/includes/page/says.pug +1 -2
- package/layout/includes/page/tags.pug +3 -3
- package/layout/includes/page/tlink.pug +0 -1
- package/layout/includes/sidebar.pug +7 -7
- package/layout/includes/widgets/aside/aside.pug +13 -1
- package/layout/includes/widgets/aside/asideArchive.pug +5 -3
- package/layout/includes/widgets/aside/asideCustom.pug +6 -0
- package/layout/includes/widgets/aside/asideHistory.pug +3 -3
- package/layout/includes/widgets/aside/asideInfoCard.pug +4 -6
- package/layout/includes/widgets/aside/asideNewestPost.pug +1 -1
- package/layout/includes/widgets/aside/asideSwitch.pug +0 -11
- package/layout/includes/widgets/aside/asideTag.pug +2 -2
- package/layout/includes/widgets/aside/asideToc.pug +1 -1
- package/layout/includes/widgets/aside/asideWebInfo.pug +6 -6
- package/layout/includes/widgets/aside/asideWelcome.pug +1 -1
- package/layout/includes/widgets/home/banner.pug +2 -2
- package/layout/includes/widgets/home/bbTimeList.pug +3 -3
- package/layout/includes/widgets/home/categoryBar.pug +3 -3
- package/layout/includes/widgets/home/categoryGroup.pug +2 -2
- package/layout/includes/widgets/home/hometop.pug +7 -7
- package/layout/includes/widgets/home/postList.pug +12 -8
- package/layout/includes/widgets/home/topGroup.pug +17 -13
- package/layout/includes/widgets/nav/left.pug +6 -6
- package/layout/includes/widgets/nav/menu.pug +4 -4
- package/layout/includes/widgets/nav/right.pug +14 -14
- package/layout/includes/widgets/page/about/authorinfo.pug +1 -1
- package/layout/includes/widgets/page/about/award.pug +11 -9
- package/layout/includes/widgets/page/about/contentinfo.pug +7 -7
- package/layout/includes/widgets/page/about/hobbies.pug +1 -1
- package/layout/includes/widgets/page/about/motto.pug +2 -2
- package/layout/includes/widgets/page/about/other.pug +10 -9
- package/layout/includes/widgets/page/about/personalities.pug +2 -2
- package/layout/includes/widgets/page/about/skillsinfo.pug +10 -12
- package/layout/includes/widgets/page/about/tenyear.pug +48 -0
- package/layout/includes/widgets/page/banner.pug +2 -2
- package/layout/includes/widgets/page/links/banner.pug +12 -14
- package/layout/includes/widgets/page/links/linksItem.pug +0 -1
- package/layout/includes/widgets/page/moments/angle.pug +7 -12
- package/layout/includes/widgets/page/moments/index.pug +7 -2
- package/layout/includes/widgets/post/award.pug +12 -8
- package/layout/includes/widgets/post/copyright.pug +16 -14
- package/layout/includes/widgets/post/postMeta.pug +36 -25
- package/layout/includes/widgets/post/postNav.pug +15 -15
- package/layout/includes/widgets/randomlink.pug +10 -5
- package/layout/includes/widgets/rightside/index.pug +9 -8
- package/layout/includes/widgets/third-party/ai/index.pug +12 -0
- package/layout/includes/widgets/third-party/comments/comment.pug +6 -1
- package/layout/includes/widgets/third-party/comments/twikoo.pug +5 -4
- package/layout/includes/widgets/third-party/comments/waline.pug +4 -5
- package/layout/includes/widgets/third-party/music.pug +1 -1
- package/layout/includes/widgets/third-party/pjax.pug +6 -1
- package/layout/includes/widgets/third-party/search/algolia-search.pug +4 -3
- package/layout/includes/widgets/third-party/search/index.pug +2 -2
- package/layout/includes/widgets/third-party/search/local-search.pug +3 -3
- package/layout/index.pug +5 -6
- package/layout/page.pug +34 -29
- package/layout/post.pug +3 -23
- package/layout/tag.pug +3 -3
- package/package.json +2 -2
- package/scripts/filter/checkThemeConfig.js +0 -5
- package/scripts/helper/cdn.js +12 -0
- package/scripts/helper/page.js +13 -0
- package/scripts/helper/related_post.js +0 -1
- package/scripts/tags/button.js +21 -0
- package/scripts/tags/card.js +9 -0
- package/scripts/tags/checkbox.js +51 -0
- package/scripts/tags/fold.js +0 -5
- package/scripts/tags/image.js +75 -0
- package/scripts/tags/inline-image.js +12 -0
- package/scripts/tags/label.js +10 -0
- package/scripts/tags/link.js +2 -0
- package/scripts/tags/media.js +29 -0
- package/scripts/tags/span.js +17 -0
- package/scripts/tags/timeline.js +2 -15
- package/scripts/tags/u.js +7 -0
- package/source/css/_global/animation.css +57 -0
- package/source/css/_global/index.styl +5 -20
- package/source/css/_global/var.styl +16 -1
- package/source/css/_layout/{base.styl → basic.styl} +24 -116
- package/source/css/_layout/header.styl +204 -616
- package/source/css/_layout/index.styl +29 -271
- package/source/css/_mode/index.styl +102 -93
- package/source/css/_page/_home/category-bar.styl +74 -0
- package/source/css/_page/_home/home-top.styl +541 -0
- package/source/css/_page/_home/index.styl +15 -0
- package/source/css/_page/_home/pagination.styl +176 -0
- package/source/css/_page/_home/recent-post.styl +204 -0
- package/source/css/_page/about/index.styl +1 -0
- package/source/css/_page/about/tenyear.styl +56 -0
- package/source/css/_page/about.styl +555 -626
- package/source/css/_page/category.styl +95 -119
- package/source/css/_page/douban.styl +126 -0
- package/source/css/_page/equipment.styl +100 -99
- package/source/css/_page/error.styl +130 -146
- package/source/css/_page/home.styl +41 -50
- package/source/css/_page/index.styl +42 -10
- package/source/css/_page/links.styl +306 -0
- package/source/css/_page/moment.styl +51 -51
- package/source/css/_page/music.styl +506 -0
- package/source/css/_page/rss.styl +62 -67
- package/source/css/_page/says.styl +375 -344
- package/source/css/_page/tag.styl +15 -13
- package/source/css/_widgets/{aside → _aside}/flip.styl +7 -5
- package/source/css/_widgets/{aside → _aside}/history.styl +9 -2
- package/source/css/_widgets/_aside/index.styl +96 -0
- package/source/css/_widgets/{aside → _aside}/info.styl +86 -89
- package/source/css/_widgets/{aside → _aside}/newPost.styl +7 -1
- package/source/css/_widgets/{aside → _aside}/toc.styl +28 -5
- package/source/css/_widgets/{comment → _comment}/index.styl +4 -12
- package/source/css/_widgets/{comment → _comment}/twikoo.styl +5 -2
- package/source/css/_widgets/{comment → _comment}/waline.styl +21 -5
- package/source/css/{_extra → _widgets/_extra}/console.styl +33 -10
- package/source/css/_widgets/_extra/fullpage.styl +46 -0
- package/source/css/_widgets/_extra/music.styl +218 -0
- package/source/css/_widgets/_extra/pace.styl +39 -0
- package/source/css/_widgets/_extra/rightmenu.styl +78 -0
- package/source/css/_widgets/_mixins/article-sort.styl +93 -0
- package/source/css/_widgets/_mixins/footer.styl +273 -0
- package/source/css/_widgets/_mixins/other.styl +34 -0
- package/source/css/_widgets/_mixins/sidebar.styl +230 -0
- package/source/css/_widgets/_post/_highlight/diff.styl +75 -0
- package/source/css/_widgets/_post/_highlight/index.styl +144 -0
- package/source/css/_widgets/_post/_highlight/theme/default.styl +12 -0
- package/source/css/_widgets/_post/_highlight/theme/mac.styl +25 -0
- package/source/css/_widgets/_post/_highlight/theme.styl +68 -0
- package/source/css/_widgets/_post/commentBarrage.styl +144 -0
- package/source/css/_widgets/_post/content.styl +152 -0
- package/source/css/_widgets/_post/copyright.styl +98 -0
- package/source/css/_widgets/_post/index.styl +20 -0
- package/source/css/_widgets/_post/meta.styl +420 -0
- package/source/css/_widgets/_post/pagination.styl +177 -0
- package/source/css/_widgets/_post/postAI.styl +131 -0
- package/source/css/{_post → _widgets/_post}/relatedPost.styl +4 -1
- package/source/css/_widgets/_post/tools.styl +249 -0
- package/source/css/{_search → _widgets/_search}/algolia-search.styl +4 -0
- package/source/css/{_search → _widgets/_search}/local-search.styl +15 -5
- package/source/css/_widgets/_tags/button.styl +60 -0
- package/source/css/_widgets/_tags/bvideo.styl +8 -0
- package/source/css/_widgets/_tags/card.styl +52 -0
- package/source/css/_widgets/_tags/checkbox.styl +85 -0
- package/source/css/_widgets/_tags/fold.styl +79 -0
- package/source/css/_widgets/_tags/image.styl +10 -0
- package/source/css/_widgets/_tags/index.styl +61 -0
- package/source/css/_widgets/_tags/inline-image.styl +6 -0
- package/source/css/_widgets/_tags/label.styl +3 -0
- package/source/css/_widgets/_tags/link.styl +80 -0
- package/source/css/_widgets/_tags/note.styl +101 -0
- package/source/css/_widgets/_tags/span.styl +61 -0
- package/source/css/_widgets/_tags/tabs.styl +105 -0
- package/source/css/_widgets/_tags/timeline.styl +80 -0
- package/source/css/_widgets/index.styl +50 -1
- package/source/css/index.styl +0 -25
- package/source/js/{commentBarrage.js → extend/comment/twikoo/commentBarrage.js} +0 -4
- package/source/js/extend/comment/{twikoo.js → twikoo/twikoo.js} +12 -40
- package/source/js/extend/comment/waline/commentBarrage.js +155 -0
- package/source/js/extend/comment/{waline.js → waline/waline.js} +10 -11
- package/source/js/extend/search/algolia-search.js +1 -5
- package/source/js/extend/search/local-search.js +33 -13
- package/source/js/main.js +135 -171
- package/source/js/music.js +129 -0
- package/source/js/utils.js +4 -7
- package/source/lib/cover-color.min.js +7 -0
- package/source/lib/rightside.min.js +1 -0
- package/source/lib/sco-ai.min.js +8 -0
- package/source/lib/snackbar.min.css +1 -1
- package/source/lib/txmap.min.js +1 -0
- package/source/lib/universe.min.js +1 -0
- package/source/lib/view-image.min.js +1 -1
- package/layout/includes/widgets/aside/asidePower.pug +0 -19
- package/layout/includes/widgets/home/rencentPost.pug +0 -26
- package/source/css/_extra/rightmenu.styl +0 -83
- package/source/css/_layout/articleSort.styl +0 -199
- package/source/css/_layout/footer.styl +0 -359
- package/source/css/_layout/sidebar.styl +0 -226
- package/source/css/_page/homeTop.styl +0 -1035
- package/source/css/_page/link.styl +0 -433
- package/source/css/_post/commentBarrage.styl +0 -149
- package/source/css/_post/externalTags.styl +0 -694
- package/source/css/_post/highlight.styl +0 -96
- package/source/css/_post/index.styl +0 -935
- package/source/css/_post/pagination.styl +0 -467
- package/source/css/_post/postContent.styl +0 -957
- package/source/css/_post/reward.styl +0 -217
- package/source/css/_widgets/aside/index.styl +0 -156
- package/source/css/_widgets/aside/power.styl +0 -90
- package/source/img/logo-horizontal_version.png +0 -0
- package/source/img/pwa/16.png +0 -0
- package/source/img/pwa/180.png +0 -0
- package/source/img/pwa/192.png +0 -0
- package/source/img/pwa/32.png +0 -0
- package/source/img/pwa/512.png +0 -0
- package/source/img/pwa/logo.png +0 -0
- package/source/img/pwa/siteicon/splash-1125x2436.png +0 -0
- package/source/img/pwa/siteicon/splash-1136x640.png +0 -0
- package/source/img/pwa/siteicon/splash-1170x2532.png +0 -0
- package/source/img/pwa/siteicon/splash-1179x2556.png +0 -0
- package/source/img/pwa/siteicon/splash-1242x2208.png +0 -0
- package/source/img/pwa/siteicon/splash-1242x2688.png +0 -0
- package/source/img/pwa/siteicon/splash-1248x2778.png +0 -0
- package/source/img/pwa/siteicon/splash-1290x2796.png +0 -0
- package/source/img/pwa/siteicon/splash-1334x750.png +0 -0
- package/source/img/pwa/siteicon/splash-1536x2048.png +0 -0
- package/source/img/pwa/siteicon/splash-1620x2160.png +0 -0
- package/source/img/pwa/siteicon/splash-1668x2224.png +0 -0
- package/source/img/pwa/siteicon/splash-1668x2388.png +0 -0
- package/source/img/pwa/siteicon/splash-1792x828.png +0 -0
- package/source/img/pwa/siteicon/splash-2048x1536.png +0 -0
- package/source/img/pwa/siteicon/splash-2048x2732.png +0 -0
- package/source/img/pwa/siteicon/splash-2160x1620.png +0 -0
- package/source/img/pwa/siteicon/splash-2208x1242.png +0 -0
- package/source/img/pwa/siteicon/splash-2224x1668.png +0 -0
- package/source/img/pwa/siteicon/splash-2388x1668.png +0 -0
- package/source/img/pwa/siteicon/splash-2436x1125.png +0 -0
- package/source/img/pwa/siteicon/splash-2532x1170.png +0 -0
- package/source/img/pwa/siteicon/splash-2556x1179.png +0 -0
- package/source/img/pwa/siteicon/splash-2688x1242.png +0 -0
- package/source/img/pwa/siteicon/splash-2732x2048.png +0 -0
- package/source/img/pwa/siteicon/splash-2778x1248.png +0 -0
- package/source/img/pwa/siteicon/splash-2796x1290.png +0 -0
- package/source/img/pwa/siteicon/splash-640x1136.png +0 -0
- package/source/img/pwa/siteicon/splash-750x1334.png +0 -0
- package/source/img/pwa/siteicon/splash-828x1792.png +0 -0
- package/source/img/solitude-show.jpg +0 -0
- package/source/js/extend/covercolor/local.js +0 -160
- package/source/js/rightside.js +0 -402
- package/source/js/txmap.js +0 -236
- package/source/lib/chuckle-post-ai.js +0 -1
- /package/source/css/_widgets/{aside → _aside}/allinfo.styl +0 -0
- /package/source/css/_widgets/{aside → _aside}/welcome.styl +0 -0
- /package/source/img/{theme/avatar.png → avatar.png} +0 -0
@@ -0,0 +1,80 @@
|
|
1
|
+
#article-container .tag-Link
|
2
|
+
background var(--sco-secondbg)
|
3
|
+
border-radius 8px !important
|
4
|
+
display flex
|
5
|
+
border var(--style-border)
|
6
|
+
flex-direction column
|
7
|
+
padding .3rem 1rem .6rem
|
8
|
+
border-width 1px !important
|
9
|
+
margin-top 1rem
|
10
|
+
|
11
|
+
&:hover
|
12
|
+
border var(--style-border-hover)
|
13
|
+
|
14
|
+
.tag-link-tips
|
15
|
+
border-bottom var(--style-border-always)
|
16
|
+
padding-bottom 4px
|
17
|
+
font-size .6rem
|
18
|
+
color var(--sco-gray)
|
19
|
+
font-weight 400
|
20
|
+
pointer-events none
|
21
|
+
|
22
|
+
&:hover .tag-link-tips
|
23
|
+
color var(--sco-fontcolor)
|
24
|
+
|
25
|
+
.tag-link-bottom
|
26
|
+
display flex
|
27
|
+
margin-top .5rem
|
28
|
+
align-items center
|
29
|
+
justify-content space-around
|
30
|
+
pointer-events none
|
31
|
+
|
32
|
+
.tag-link-left
|
33
|
+
width 60px
|
34
|
+
min-width 60px
|
35
|
+
height 60px
|
36
|
+
background-size cover !important
|
37
|
+
border-radius 8px
|
38
|
+
background var(--sco-card-bg)
|
39
|
+
pointer-events none
|
40
|
+
display flex
|
41
|
+
|
42
|
+
i
|
43
|
+
padding 0
|
44
|
+
margin auto
|
45
|
+
font-size 24px
|
46
|
+
color var(--sco-fontcolor)
|
47
|
+
|
48
|
+
.tag-link-right
|
49
|
+
margin-left 1rem
|
50
|
+
pointer-events none
|
51
|
+
|
52
|
+
.tag-link-title
|
53
|
+
font-size 16px
|
54
|
+
line-height 1.2
|
55
|
+
pointer-events none
|
56
|
+
word-break break-all
|
57
|
+
text-overflow ellipsis
|
58
|
+
display -webkit-box
|
59
|
+
-webkit-box-orient vertical
|
60
|
+
-webkit-line-clamp 2
|
61
|
+
overflow hidden
|
62
|
+
|
63
|
+
.tag-link-sitename
|
64
|
+
font-size .7rem
|
65
|
+
color var(--sco-gray)
|
66
|
+
font-weight 400
|
67
|
+
margin-top 8px
|
68
|
+
pointer-events none
|
69
|
+
line-height 1
|
70
|
+
overflow hidden
|
71
|
+
text-overflow ellipsis
|
72
|
+
white-space nowrap
|
73
|
+
|
74
|
+
&:hover .tag-link-bottom .tag-link-right .tag-link-sitename
|
75
|
+
color var(--sco-fontcolor)
|
76
|
+
|
77
|
+
.tag-link-bottom i
|
78
|
+
margin-left auto
|
79
|
+
padding-left .5rem
|
80
|
+
pointer-events none
|
@@ -0,0 +1,101 @@
|
|
1
|
+
$colors = {
|
2
|
+
info: #428bca,
|
3
|
+
danger: #d9534f,
|
4
|
+
primary: #6f42c1,
|
5
|
+
warning: #f0ad4e,
|
6
|
+
success: #5cb85c,
|
7
|
+
default: #777
|
8
|
+
}
|
9
|
+
|
10
|
+
.note
|
11
|
+
position relative
|
12
|
+
margin 1rem 0
|
13
|
+
padding 15px
|
14
|
+
border-radius 3px
|
15
|
+
|
16
|
+
&.default:not(.no-icon)::before
|
17
|
+
content: '\e0a9'
|
18
|
+
|
19
|
+
&.info:not(.no-icon)::before
|
20
|
+
content: '\e0a7'
|
21
|
+
|
22
|
+
&.danger:not(.no-icon)::before
|
23
|
+
content: '\e0aa'
|
24
|
+
|
25
|
+
&.primary:not(.no-icon)::before
|
26
|
+
content: '\e0a8'
|
27
|
+
|
28
|
+
&.warning:not(.no-icon)::before
|
29
|
+
content: '\e0a5'
|
30
|
+
|
31
|
+
&.success:not(.no-icon)::before
|
32
|
+
content: '\e0a4'
|
33
|
+
|
34
|
+
&::before
|
35
|
+
font-family 'scoicon'
|
36
|
+
|
37
|
+
&.icon
|
38
|
+
padding-left 2.25rem
|
39
|
+
|
40
|
+
> .note-icon
|
41
|
+
position absolute
|
42
|
+
top calc(50% - .4rem)
|
43
|
+
left .7rem
|
44
|
+
font-size larger
|
45
|
+
|
46
|
+
for $color, $value in $colors
|
47
|
+
&.{$color}:not(.no-icon)::before
|
48
|
+
color $value
|
49
|
+
&.{$color}:not(.disabled)
|
50
|
+
border-left-color $value
|
51
|
+
|
52
|
+
&.modern
|
53
|
+
color $value
|
54
|
+
|
55
|
+
&:not(.simple)
|
56
|
+
background lighten($value, 75%)
|
57
|
+
|
58
|
+
> .note-icon
|
59
|
+
color $value
|
60
|
+
|
61
|
+
&.simple
|
62
|
+
border-width 1px 1px 1px 5px
|
63
|
+
border-style solid
|
64
|
+
border-color #eee
|
65
|
+
border-image initial
|
66
|
+
|
67
|
+
&.modern
|
68
|
+
background-color #f5f5f5
|
69
|
+
color #4c4948
|
70
|
+
border 1px solid transparent !important
|
71
|
+
|
72
|
+
&.flat
|
73
|
+
border-top initial
|
74
|
+
border-right initial
|
75
|
+
border-bottom initial
|
76
|
+
border-image initial
|
77
|
+
border-left 5px solid #eee
|
78
|
+
background-color #f9f9f9
|
79
|
+
color #4c4948
|
80
|
+
|
81
|
+
h2, h3, h4, h5, h6
|
82
|
+
margin-top 3px
|
83
|
+
margin-bottom 0
|
84
|
+
border-bottom initial
|
85
|
+
padding-top 0
|
86
|
+
|
87
|
+
blockquote:first-child, img:first-child, ol:first-child, p:first-child, pre:first-child, table:first-child, ul:first-child
|
88
|
+
margin-top 0 !important
|
89
|
+
|
90
|
+
blockquote:last-child, img:last-child, ol:last-child, p:last-child, pre:last-child, table:last-child, ul:last-child
|
91
|
+
margin-bottom 0 !important
|
92
|
+
font-size 14px !important
|
93
|
+
|
94
|
+
&:not(.no-icon)
|
95
|
+
padding-left 2.25rem
|
96
|
+
|
97
|
+
&::before
|
98
|
+
position absolute
|
99
|
+
top calc(50% - 19px)
|
100
|
+
left .7rem
|
101
|
+
font-size larger
|
@@ -0,0 +1,61 @@
|
|
1
|
+
#article-container
|
2
|
+
p.p.subtitle
|
3
|
+
font-weight: bold
|
4
|
+
color: mix(#44D7B6, #444, 75)
|
5
|
+
font-size: 1.25rem
|
6
|
+
padding-top: 1.5rem
|
7
|
+
&:first-child
|
8
|
+
padding-top: 1rem
|
9
|
+
|
10
|
+
span.p,p.p
|
11
|
+
&.left
|
12
|
+
display: block
|
13
|
+
text-align: left
|
14
|
+
&.center
|
15
|
+
display: block
|
16
|
+
text-align: center
|
17
|
+
&.right
|
18
|
+
display: block
|
19
|
+
text-align: right
|
20
|
+
|
21
|
+
span.p,p.p
|
22
|
+
&.small
|
23
|
+
font-size: var(--global-font-size)
|
24
|
+
&.large
|
25
|
+
font-size: 2.5rem
|
26
|
+
line-height: 1.4
|
27
|
+
&.huge
|
28
|
+
font-size: 4rem
|
29
|
+
line-height: 1.4
|
30
|
+
&.ultra
|
31
|
+
font-size: 6rem
|
32
|
+
line-height: 1.4
|
33
|
+
&.small,&.large,&.huge,&.ultra
|
34
|
+
margin: 0
|
35
|
+
padding: 0
|
36
|
+
&.bold
|
37
|
+
font-weight: bold
|
38
|
+
&.h1,&.h2
|
39
|
+
padding-bottom: .2rem
|
40
|
+
font-weight: 500
|
41
|
+
&.h1
|
42
|
+
font-size: 1.625rem
|
43
|
+
color: var(--color-h1)
|
44
|
+
padding-top: 1em * 2
|
45
|
+
&.h2
|
46
|
+
font-size: 1.625rem
|
47
|
+
color: var(--color-h2)
|
48
|
+
padding-top: 1em * 2
|
49
|
+
border-bottom: 1px solid alpha(#444, .1)
|
50
|
+
&.h3
|
51
|
+
font-size: 1.375rem
|
52
|
+
color: var(--color-h3)
|
53
|
+
padding-top: 1em * 2
|
54
|
+
&.h4
|
55
|
+
font-size: 1.125rem
|
56
|
+
color: var(--color-h4)
|
57
|
+
padding-top: 1em * 2
|
58
|
+
&.h5
|
59
|
+
font-size: 1rem
|
60
|
+
color: var(--color-h5)
|
61
|
+
padding-top: 1em * 1.5
|
@@ -0,0 +1,105 @@
|
|
1
|
+
#article-container .tabs
|
2
|
+
position relative
|
3
|
+
border 1px solid var(--tab-border-color)
|
4
|
+
|
5
|
+
> .nav-tabs
|
6
|
+
> .tab
|
7
|
+
margin 4px
|
8
|
+
padding 0
|
9
|
+
list-style none
|
10
|
+
|
11
|
+
+maxWidth768()
|
12
|
+
-webkit-box-flex 1
|
13
|
+
flex-grow 1
|
14
|
+
|
15
|
+
button i
|
16
|
+
width 1.5em
|
17
|
+
font-size inherit
|
18
|
+
|
19
|
+
&.active button
|
20
|
+
border var(--style-border-hover-always)
|
21
|
+
background var(--sco-background)
|
22
|
+
border-radius 8px;
|
23
|
+
|
24
|
+
&:not(.active) button:hover
|
25
|
+
border-top 2px solid var(--tab-button-hover-bg)
|
26
|
+
background var(--tab-button-hover-bg)
|
27
|
+
|
28
|
+
> .tab-contents .tab-item-content
|
29
|
+
position relative
|
30
|
+
display none
|
31
|
+
padding 1.8rem 1.2rem
|
32
|
+
background var(--sco-background)
|
33
|
+
border var(--style-border-always)
|
34
|
+
|
35
|
+
+maxWidth768()
|
36
|
+
padding 1.2rem .7rem
|
37
|
+
|
38
|
+
&.active
|
39
|
+
display block
|
40
|
+
animation .5s ease 0s 1 normal none running tabshow
|
41
|
+
|
42
|
+
.tab-to-top
|
43
|
+
position relative
|
44
|
+
display block
|
45
|
+
margin 16px 0 0 auto
|
46
|
+
color #99a9bf
|
47
|
+
|
48
|
+
margin 1rem 0 !important
|
49
|
+
border-radius 12px
|
50
|
+
overflow hidden
|
51
|
+
box-shadow var(--sco-shadow-border)
|
52
|
+
padding 8px
|
53
|
+
background var(--sco-card-bg)
|
54
|
+
border var(--style-border)
|
55
|
+
|
56
|
+
.nav-tabs
|
57
|
+
background var(--sco-card-bg)
|
58
|
+
padding 16px
|
59
|
+
display flex
|
60
|
+
justify-content center
|
61
|
+
flex-wrap wrap
|
62
|
+
flex-direction row
|
63
|
+
|
64
|
+
+maxWidth768()
|
65
|
+
padding 0
|
66
|
+
margin-bottom 8px
|
67
|
+
|
68
|
+
> .nav-tabs > .tab button
|
69
|
+
-webkit-transition all 0s
|
70
|
+
background var(--sco-secondbg)
|
71
|
+
transition .3s
|
72
|
+
border var(--style-border-always)
|
73
|
+
border-radius 8px
|
74
|
+
font-size 14px
|
75
|
+
line-height 1
|
76
|
+
padding 8px 16px
|
77
|
+
display flex
|
78
|
+
width 100%
|
79
|
+
justify-content center
|
80
|
+
align-items center
|
81
|
+
color var(--sco-fontcolor)
|
82
|
+
|
83
|
+
> .nav-tabs > .tab:not(.active) button:hover
|
84
|
+
background var(--sco-main)
|
85
|
+
color var(--sco-white)
|
86
|
+
transition .3s
|
87
|
+
border var(--style-border-hover-always)
|
88
|
+
|
89
|
+
.tab-item-content
|
90
|
+
background var(--sco-card-bg)
|
91
|
+
|
92
|
+
#article-container .tabs
|
93
|
+
|
94
|
+
> .tab-contents .tab-item-content.active
|
95
|
+
animation tabshow 0s
|
96
|
+
-webkit-animation tabshow 0s
|
97
|
+
padding 1.2rem 1.2rem
|
98
|
+
border-radius 8px
|
99
|
+
|
100
|
+
+maxWidth768()
|
101
|
+
padding .5rem .5rem
|
102
|
+
|
103
|
+
.tab-contents
|
104
|
+
border-radius 8px
|
105
|
+
overflow hidden
|
@@ -0,0 +1,80 @@
|
|
1
|
+
div.timenode
|
2
|
+
position relative
|
3
|
+
|
4
|
+
&:before,
|
5
|
+
&:after
|
6
|
+
content ''
|
7
|
+
z-index 1
|
8
|
+
position absolute
|
9
|
+
background var(--sco-theme)
|
10
|
+
width 2px
|
11
|
+
left 7px
|
12
|
+
|
13
|
+
&:before
|
14
|
+
top 0
|
15
|
+
height 6px
|
16
|
+
|
17
|
+
&:after
|
18
|
+
top 26px
|
19
|
+
height 100%
|
20
|
+
|
21
|
+
&:last-child:after
|
22
|
+
height calc(100% - 26px - 16px)
|
23
|
+
border-bottom-left-radius 2px
|
24
|
+
border-bottom-right-radius 2px
|
25
|
+
|
26
|
+
.meta
|
27
|
+
position relative
|
28
|
+
color var(--tab-botton-color)
|
29
|
+
line-height 32px
|
30
|
+
height 32px
|
31
|
+
left 27px
|
32
|
+
|
33
|
+
&:before,
|
34
|
+
&:after
|
35
|
+
content ''
|
36
|
+
position absolute
|
37
|
+
top 8px
|
38
|
+
z-index 2
|
39
|
+
left -27px
|
40
|
+
|
41
|
+
&:before
|
42
|
+
background var(--sco-theme)
|
43
|
+
width 16px
|
44
|
+
height 16px
|
45
|
+
border-radius 8px
|
46
|
+
|
47
|
+
&:after
|
48
|
+
background var(--sco-card-bg)
|
49
|
+
margin-left 2px
|
50
|
+
margin-top 2px
|
51
|
+
width 12px
|
52
|
+
height 12px
|
53
|
+
border-radius 6px
|
54
|
+
transform scale(0.5)
|
55
|
+
transition all 0.28s ease
|
56
|
+
|
57
|
+
p
|
58
|
+
font-weight 500
|
59
|
+
margin 0 0 0 24px
|
60
|
+
|
61
|
+
.body
|
62
|
+
margin 4px 0 16px 24px
|
63
|
+
padding 16px
|
64
|
+
border-radius 8px
|
65
|
+
background var(--blockquote-bg)
|
66
|
+
|
67
|
+
p:first-child
|
68
|
+
margin-top 0
|
69
|
+
|
70
|
+
p:last-child
|
71
|
+
margin-bottom 0
|
72
|
+
|
73
|
+
&:hover
|
74
|
+
.meta
|
75
|
+
&:before
|
76
|
+
background var(--sco-theme)
|
77
|
+
|
78
|
+
&:after
|
79
|
+
background var(--sco-theme-op)
|
80
|
+
transform scale(1)
|
@@ -1,3 +1,52 @@
|
|
1
1
|
// aside(侧边栏)
|
2
|
+
@import "_aside/index.styl"
|
2
3
|
|
3
|
-
|
4
|
+
// 手机端侧边栏
|
5
|
+
@import "_mixins/sidebar.styl"
|
6
|
+
|
7
|
+
// article-sort (归档)
|
8
|
+
@import "_mixins/article-sort.styl"
|
9
|
+
|
10
|
+
// footer
|
11
|
+
@import "_mixins/footer.styl"
|
12
|
+
|
13
|
+
// 零散的样式
|
14
|
+
@import "_mixins/other.styl"
|
15
|
+
|
16
|
+
// 短标签
|
17
|
+
@import "_tags/*"
|
18
|
+
|
19
|
+
// comment
|
20
|
+
if hexo-config('comment.enable')
|
21
|
+
@import '_widgets/_comment/index.styl'
|
22
|
+
@import '_widgets/_comment/twikoo.styl' when hexo-config('comment.type') == 'twikoo'
|
23
|
+
@import '_widgets/_comment/waline.styl' when hexo-config('comment.type') == 'waline'
|
24
|
+
|
25
|
+
// search
|
26
|
+
if hexo-config('thirdparty.search.enable')
|
27
|
+
if hexo-config('thirdparty.search.type') == 'algolia'
|
28
|
+
@import '_search/algolia-search'
|
29
|
+
else if hexo-config('thirdparty.search.type') == 'local'
|
30
|
+
@import '_search/local-search'
|
31
|
+
|
32
|
+
// 控制台样式
|
33
|
+
@import '_extra/console.styl'
|
34
|
+
|
35
|
+
// rightmenu
|
36
|
+
if hexo-config('rightside.enable')
|
37
|
+
@import '_extra/rightmenu.styl'
|
38
|
+
|
39
|
+
// pace
|
40
|
+
if hexo-config('loading.pace')
|
41
|
+
@import "_extra/pace.styl"
|
42
|
+
|
43
|
+
// fullpage
|
44
|
+
if hexo-config('loading.fullpage')
|
45
|
+
@import "_extra/fullpage.styl"
|
46
|
+
|
47
|
+
// 音乐胶囊
|
48
|
+
if hexo-config('thirdparty.aplayer.enable')
|
49
|
+
@import "_extra/music.styl"
|
50
|
+
|
51
|
+
// post
|
52
|
+
@import "_post/index.styl"
|
package/source/css/index.styl
CHANGED
@@ -8,34 +8,9 @@ if hexo-config('css_prefix')
|
|
8
8
|
@import '_global/*'
|
9
9
|
@import '_layout/*'
|
10
10
|
@import '_page/index.styl'
|
11
|
-
@import '_post/*'
|
12
11
|
|
13
12
|
// widgets
|
14
13
|
@import '_widgets/index.styl'
|
15
14
|
|
16
|
-
// comment
|
17
|
-
if hexo-config('comment.enable')
|
18
|
-
@import '_widgets/comment/index.styl'
|
19
|
-
@import '_widgets/comment/twikoo.styl' when hexo-config('comment.type') == 'twikoo'
|
20
|
-
@import '_widgets/comment/waline.styl' when hexo-config('comment.type') == 'waline'
|
21
|
-
|
22
|
-
// commentBarrage
|
23
|
-
if hexo-config('thirdparty.comment.enable')
|
24
|
-
@import '_post/commentBarrage.styl'
|
25
|
-
|
26
|
-
// extra
|
27
|
-
@import '_extra/console.styl'
|
28
|
-
|
29
|
-
// rightmenu
|
30
|
-
if hexo-config('rightside.enable')
|
31
|
-
@import '_extra/rightmenu.styl'
|
32
|
-
|
33
|
-
// search
|
34
|
-
if hexo-config('thirdparty.search.enable')
|
35
|
-
if hexo-config('thirdparty.search.type') == 'algolia'
|
36
|
-
@import '_search/algolia-search'
|
37
|
-
else if hexo-config('thirdparty.search.type') == 'local'
|
38
|
-
@import '_search/local-search'
|
39
|
-
|
40
15
|
// dark
|
41
16
|
@import '_mode/*'
|
@@ -1,17 +1,16 @@
|
|
1
1
|
const changeContent = (content) => {
|
2
|
-
if (content === '') return content
|
2
|
+
if (content === '') return content;
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
const replacements = [
|
5
|
+
{ regex: /<img.*?src="(.*?)"?[^\>]+>/ig, replacement: '[图片]' },
|
6
|
+
{ regex: /<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi, replacement: '[链接]' },
|
7
|
+
{ regex: /<pre><code>.*?<\/pre>/gi, replacement: '[代码]' },
|
8
|
+
{ regex: /<[^>]+>/g, replacement: "" }
|
9
|
+
];
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
return content
|
11
|
+
content = replacements.reduce((str, { regex, replacement }) => str.replace(regex, replacement), content);
|
12
|
+
|
13
|
+
return content.length > 150 ? content.substring(0, 150) + '...' : content;
|
15
14
|
}
|
16
15
|
|
17
16
|
const getComment = () => {
|
@@ -31,35 +30,6 @@ const getComment = () => {
|
|
31
30
|
'url': `${e.url}#${e.id}`,
|
32
31
|
'date': new Date(e.created).toISOString()
|
33
32
|
}))
|
34
|
-
|
35
|
-
if (window.location.pathname === "/links/" || window.location.pathname === "/links") {
|
36
|
-
let submit = document.getElementsByClassName('tk-submit ')
|
37
|
-
let text = document.getElementsByClassName("el-textarea__inner");
|
38
|
-
text[0].value += `昵称(请勿包含博客等字样):
|
39
|
-
网站地址(要求博客地址,请勿提交个人主页):
|
40
|
-
头像图片url(请提供尽可能清晰的图片,我会上传到我的图床):
|
41
|
-
描述:`;
|
42
|
-
text[0].style.height = "142px"
|
43
|
-
submit.item(0).style.display = "none";
|
44
|
-
|
45
|
-
window.checkForm = function () {
|
46
|
-
const checkboxes = document.querySelectorAll('input[onclick="checkForm()"]');
|
47
|
-
let allChecked = true;
|
48
|
-
|
49
|
-
checkboxes.forEach(checkbox => {
|
50
|
-
if (!checkbox.checked) {
|
51
|
-
allChecked = false;
|
52
|
-
}
|
53
|
-
});
|
54
|
-
|
55
|
-
if (allChecked) {
|
56
|
-
submit.item(0).style.display = "block";
|
57
|
-
} else {
|
58
|
-
submit.item(0).style.display = "none";
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
|
63
33
|
generateHtml(twikooArray)
|
64
34
|
}).catch(function (err) {
|
65
35
|
$dom.innerHTML = "无法获取评论,请确认相关配置是否正确"
|
@@ -93,3 +63,5 @@ const newestCommentInit = () => {
|
|
93
63
|
getComment()
|
94
64
|
}
|
95
65
|
}
|
66
|
+
|
67
|
+
newestCommentInit()
|