hexo-theme-fluid 1.8.13 → 1.9.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/LICENSE +674 -21
- package/README.md +17 -21
- package/_config.yml +164 -79
- package/languages/de.yml +58 -33
- package/languages/en.yml +58 -33
- package/languages/eo.yml +58 -33
- package/languages/es.yml +69 -0
- package/languages/ja.yml +58 -33
- package/languages/zh-CN.yml +58 -33
- package/languages/zh-HK.yml +69 -0
- package/languages/zh-TW.yml +58 -33
- package/layout/.DS_Store +0 -0
- package/layout/404.ejs +3 -1
- package/layout/{_partial → _partials}/archive-list.ejs +4 -4
- package/layout/_partials/category-chains.ejs +19 -0
- package/layout/_partials/category-list.ejs +62 -0
- package/layout/{_partial → _partials}/comments/changyan.ejs +0 -0
- package/layout/{_partial → _partials}/comments/cusdis.ejs +0 -0
- package/layout/{_partial → _partials}/comments/disqus.ejs +0 -0
- package/layout/_partials/comments/giscus.ejs +36 -0
- package/layout/{_partial → _partials}/comments/gitalk.ejs +0 -0
- package/layout/{_partial → _partials}/comments/livere.ejs +0 -0
- package/layout/{_partial → _partials}/comments/remark42.ejs +0 -0
- package/layout/{_partial → _partials}/comments/twikoo.ejs +3 -1
- package/layout/{_partial → _partials}/comments/utterances.ejs +1 -1
- package/layout/{_partial → _partials}/comments/valine.ejs +3 -1
- package/layout/{_partial → _partials}/comments/waline.ejs +6 -3
- package/layout/_partials/comments.ejs +5 -0
- package/layout/_partials/css.ejs +26 -0
- package/layout/_partials/footer/beian.ejs +33 -0
- package/layout/_partials/footer/statistics.ejs +39 -0
- package/layout/_partials/footer.ejs +18 -0
- package/layout/{_partial → _partials}/head.ejs +7 -1
- package/layout/_partials/header/banner.ejs +33 -0
- package/layout/{_partial/nav.ejs → _partials/header/navigation.ejs} +3 -2
- package/layout/_partials/header.ejs +8 -0
- package/layout/{_partial → _partials}/paginator.ejs +0 -0
- package/layout/_partials/plugins/analytics.ejs +87 -0
- package/layout/_partials/plugins/anchorjs.ejs +24 -0
- package/layout/_partials/plugins/code-widget.ejs +71 -0
- package/layout/_partials/plugins/fancybox.ejs +11 -0
- package/layout/_partials/plugins/highlight.ejs +13 -0
- package/layout/_partials/plugins/math.ejs +46 -0
- package/layout/_partials/plugins/mermaid.ejs +5 -0
- package/layout/{_partial → _partials}/plugins/nprogress.ejs +0 -0
- package/layout/_partials/plugins/typed.ejs +48 -0
- package/layout/_partials/post/category-bar.ejs +18 -0
- package/layout/_partials/post/copyright.ejs +56 -0
- package/layout/_partials/post/meta-bottom.ejs +16 -0
- package/layout/_partials/post/meta-top.ejs +63 -0
- package/layout/_partials/post/sidebar-left.ejs +10 -0
- package/layout/_partials/post/sidebar-right.ejs +10 -0
- package/layout/_partials/post/toc.ejs +34 -0
- package/layout/_partials/scripts.ejs +32 -0
- package/layout/{_partial → _partials}/search.ejs +2 -3
- package/layout/about.ejs +5 -3
- package/layout/archive.ejs +1 -1
- package/layout/categories.ejs +10 -59
- package/layout/category.ejs +1 -1
- package/layout/index.ejs +13 -15
- package/layout/layout.ejs +19 -39
- package/layout/links.ejs +2 -8
- package/layout/page.ejs +28 -12
- package/layout/post.ejs +65 -59
- package/layout/tag.ejs +1 -1
- package/package.json +11 -3
- package/scripts/.DS_Store +0 -0
- package/scripts/events/.DS_Store +0 -0
- package/scripts/events/index.js +1 -0
- package/scripts/events/lib/compatible-configs.js +7 -8
- package/scripts/events/lib/footnote.js +1 -1
- package/scripts/events/lib/hello.js +6 -2
- package/scripts/events/lib/highlight.js +93 -24
- package/scripts/events/lib/injects.js +118 -0
- package/scripts/events/lib/merge-configs.js +37 -7
- package/scripts/filters/default-injects.js +27 -0
- package/scripts/filters/post-filter.js +7 -0
- package/scripts/helpers/date.js +25 -0
- package/scripts/helpers/engine.js +9 -0
- package/scripts/helpers/export-config.js +8 -0
- package/scripts/helpers/import.js +24 -0
- package/scripts/helpers/injects.js +7 -0
- package/scripts/helpers/scope.js +44 -0
- package/scripts/helpers/utils.js +17 -2
- package/scripts/tags/checkbox.js +4 -2
- package/scripts/utils/.DS_Store +0 -0
- package/scripts/utils/object.js +5 -0
- package/scripts/utils/resolve.js +15 -0
- package/source/.DS_Store +0 -0
- package/source/css/_pages/_archive/archive.styl +28 -0
- package/source/css/_pages/_base/_widget/anchorjs.styl +8 -0
- package/source/css/_pages/_base/_widget/banner.styl +2 -11
- package/source/css/_pages/_base/_widget/board.styl +1 -4
- package/source/css/_pages/_base/_widget/code-widget.styl +36 -0
- package/source/css/_pages/_base/_widget/copyright.styl +90 -0
- package/source/css/_pages/_base/_widget/footer.styl +4 -1
- package/source/css/_pages/_base/_widget/header.styl +161 -2
- package/source/css/_pages/_base/_widget/modal.styl +100 -0
- package/source/css/_pages/_base/_widget/ngrogress.styl +12 -0
- package/source/css/_pages/_base/_widget/noscript.styl +12 -0
- package/source/css/_pages/_base/_widget/pagination.styl +23 -0
- package/source/css/_pages/_base/_widget/scroll-btn.styl +2 -15
- package/source/css/_pages/_base/_widget/toc.styl +75 -0
- package/source/css/_pages/_base/base.styl +23 -3
- package/source/css/_pages/_base/color-schema.styl +30 -58
- package/source/css/_pages/_base/inline.styl +2 -2
- package/source/css/_pages/_category/category-bar.styl +59 -0
- package/source/css/_pages/_category/category-chain.styl +6 -0
- package/source/css/_pages/_category/{categories.styl → category-list.styl} +17 -11
- package/source/css/_pages/_index/index.styl +7 -5
- package/source/css/_pages/_links/links.styl +2 -1
- package/source/css/_pages/_post/comment.styl +27 -0
- package/source/css/_pages/_post/highlight.styl +65 -0
- package/source/css/_pages/_post/markdown.styl +91 -0
- package/source/css/_pages/_post/{post.styl → post-page.styl} +44 -75
- package/source/css/_pages/_post/{tag_plugin.styl → post-tag.styl} +29 -27
- package/source/css/_variables/base.styl +30 -9
- package/source/css/highlight-dark.styl +6 -0
- package/source/css/highlight.styl +6 -0
- package/source/css/main.styl +7 -0
- package/source/img/.DS_Store +0 -0
- package/source/img/default.png +0 -0
- package/source/img/{favicon.png → fluid.png} +0 -0
- package/source/js/boot.js +1 -9
- package/source/js/color-schema.js +52 -7
- package/source/js/events.js +15 -15
- package/source/js/leancloud.js +9 -2
- package/source/js/local-search.js +2 -2
- package/source/js/plugins.js +26 -94
- package/source/js/utils.js +28 -12
- package/.editorconfig +0 -13
- package/.eslintrc +0 -224
- package/.gitattributes +0 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -28
- package/.github/ISSUE_TEMPLATE/bug_report_zh.md +0 -33
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/ISSUE_TEMPLATE/feature_request_zh.md +0 -20
- package/.github/ISSUE_TEMPLATE/question.md +0 -11
- package/.github/ISSUE_TEMPLATE/question_zh.md +0 -14
- package/.github/workflows/limit.yaml +0 -18
- package/README_en.md +0 -125
- package/layout/_partial/beian.ejs +0 -36
- package/layout/_partial/css.ejs +0 -47
- package/layout/_partial/footer.ejs +0 -11
- package/layout/_partial/plugins/analytics.ejs +0 -66
- package/layout/_partial/plugins/math.ejs +0 -69
- package/layout/_partial/plugins/mermaid.ejs +0 -24
- package/layout/_partial/plugins/typed.ejs +0 -41
- package/layout/_partial/post-meta.ejs +0 -51
- package/layout/_partial/scripts.ejs +0 -72
- package/layout/_partial/statistics.ejs +0 -43
- package/layout/_partial/toc.ejs +0 -4
- package/source/css/_pages/_base/_widget/copy-btn.styl +0 -42
- package/source/css/_pages/_base/rewrite.styl +0 -556
- package/source/css/_pages/_category/category.styl +0 -0
|
@@ -3,24 +3,25 @@
|
|
|
3
3
|
&:not(:last-child)
|
|
4
4
|
margin-bottom 1rem
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
.category-sub
|
|
7
7
|
pass
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
font-size 1.25rem
|
|
9
|
+
.category-item, .category-subitem
|
|
11
10
|
font-weight bold
|
|
12
11
|
display flex
|
|
13
12
|
align-items center
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
font-size
|
|
17
|
-
font-weight bold
|
|
14
|
+
.category-item
|
|
15
|
+
font-size 1.25rem
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
.category-subitem
|
|
18
|
+
font-size 1.1rem
|
|
19
|
+
|
|
20
|
+
.category-collapse
|
|
21
|
+
padding-left: 1.25rem
|
|
21
22
|
width 100%
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
.category-count
|
|
24
25
|
font-size .9rem
|
|
25
26
|
font-weight initial
|
|
26
27
|
min-width 1.3em
|
|
@@ -34,7 +35,12 @@
|
|
|
34
35
|
span
|
|
35
36
|
width 2rem
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
.category-post
|
|
39
|
+
white-space nowrap
|
|
40
|
+
overflow hidden
|
|
41
|
+
text-overflow ellipsis
|
|
42
|
+
|
|
43
|
+
.category-item-action
|
|
38
44
|
|
|
39
45
|
&:not(.collapsed) > i
|
|
40
46
|
transform rotate(90deg)
|
|
@@ -45,7 +51,7 @@
|
|
|
45
51
|
display inline-block
|
|
46
52
|
margin-left .25rem
|
|
47
53
|
|
|
48
|
-
|
|
54
|
+
.category:hover
|
|
49
55
|
z-index 1
|
|
50
56
|
color var(--link-hover-color)
|
|
51
57
|
text-decoration none
|
|
@@ -41,21 +41,23 @@
|
|
|
41
41
|
|
|
42
42
|
.index-excerpt
|
|
43
43
|
color var(--sec-text-color)
|
|
44
|
-
|
|
45
44
|
margin 0.5rem 0 0.5rem 0
|
|
46
|
-
|
|
47
|
-
line-height 1.4rem
|
|
45
|
+
height calc(1.4rem * 3)
|
|
48
46
|
overflow hidden
|
|
47
|
+
display flex
|
|
49
48
|
|
|
50
49
|
& > div
|
|
51
|
-
float right
|
|
52
|
-
margin-left -0.25rem
|
|
53
50
|
width 100%
|
|
51
|
+
line-height 1.4rem
|
|
54
52
|
word-break break-word
|
|
55
53
|
display -webkit-box
|
|
56
54
|
-webkit-box-orient vertical
|
|
57
55
|
-webkit-line-clamp 3
|
|
58
56
|
|
|
57
|
+
.index-excerpt__noimg
|
|
58
|
+
height auto
|
|
59
|
+
max-height calc(1.4rem * 3)
|
|
60
|
+
|
|
59
61
|
@media (max-width: 767px)
|
|
60
62
|
.index-info
|
|
61
63
|
padding-top 1.25rem
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Rewrite valine
|
|
2
|
+
#valine.v[data-class=v]
|
|
3
|
+
.status-bar, .veditor, .vinput, .vbtn, p, pre code
|
|
4
|
+
color var(--text-color)
|
|
5
|
+
|
|
6
|
+
.vinput::placeholder
|
|
7
|
+
color var(--sec-text-color)
|
|
8
|
+
|
|
9
|
+
.vicon
|
|
10
|
+
fill var(--text-color)
|
|
11
|
+
|
|
12
|
+
// Rewrite gitalk
|
|
13
|
+
.gt-container
|
|
14
|
+
|
|
15
|
+
.gt-comment-content:hover
|
|
16
|
+
-webkit-box-shadow none
|
|
17
|
+
box-shadow none
|
|
18
|
+
|
|
19
|
+
.gt-comment-body
|
|
20
|
+
color var(--text-color) !important
|
|
21
|
+
transition color .2s ease-in-out
|
|
22
|
+
|
|
23
|
+
// Rewrite remark42
|
|
24
|
+
#remark-km423lmfdslkm34-back
|
|
25
|
+
z-index 1030
|
|
26
|
+
#remark-km423lmfdslkm34-node
|
|
27
|
+
z-index 1031
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.markdown-body
|
|
2
|
+
.highlight pre, pre
|
|
3
|
+
padding 1.45rem 1rem
|
|
4
|
+
|
|
5
|
+
pre code.hljs
|
|
6
|
+
padding 0
|
|
7
|
+
|
|
8
|
+
pre[class*="language-"]
|
|
9
|
+
padding-top 1.45rem
|
|
10
|
+
padding-bottom 1.45rem
|
|
11
|
+
padding-right 1rem
|
|
12
|
+
line-height 1.5
|
|
13
|
+
|
|
14
|
+
.code-wrapper
|
|
15
|
+
position relative
|
|
16
|
+
border-radius 4px
|
|
17
|
+
|
|
18
|
+
.hljs, .highlight pre, .code-wrapper pre, figure.highlight td.gutter
|
|
19
|
+
transition color .2s ease-in-out, background-color .2s ease-in-out
|
|
20
|
+
background-color var(--highlight-bg-color)
|
|
21
|
+
|
|
22
|
+
pre[class*=language-].line-numbers
|
|
23
|
+
position initial
|
|
24
|
+
|
|
25
|
+
figure
|
|
26
|
+
margin 1rem 0
|
|
27
|
+
|
|
28
|
+
figure.highlight
|
|
29
|
+
position relative
|
|
30
|
+
|
|
31
|
+
table
|
|
32
|
+
border 0
|
|
33
|
+
margin 0
|
|
34
|
+
width auto
|
|
35
|
+
border-radius 4px
|
|
36
|
+
|
|
37
|
+
td
|
|
38
|
+
border 0
|
|
39
|
+
padding 0
|
|
40
|
+
|
|
41
|
+
tr
|
|
42
|
+
border 0
|
|
43
|
+
|
|
44
|
+
td.code
|
|
45
|
+
width 100%
|
|
46
|
+
|
|
47
|
+
td.gutter
|
|
48
|
+
display table-cell
|
|
49
|
+
position -webkit-sticky
|
|
50
|
+
position sticky
|
|
51
|
+
left 0
|
|
52
|
+
z-index 1
|
|
53
|
+
|
|
54
|
+
pre
|
|
55
|
+
text-align right
|
|
56
|
+
padding 0 .75rem
|
|
57
|
+
border-radius initial
|
|
58
|
+
border-right 1px solid #999
|
|
59
|
+
|
|
60
|
+
span.line
|
|
61
|
+
color #999
|
|
62
|
+
|
|
63
|
+
td.code > pre
|
|
64
|
+
border-top-left-radius 0
|
|
65
|
+
border-bottom-left-radius 0
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// Rewrite github-markdown.css
|
|
2
|
+
.markdown-body
|
|
3
|
+
font-size 1rem
|
|
4
|
+
line-height 1.6
|
|
5
|
+
font-family $font-family
|
|
6
|
+
margin-bottom 2rem
|
|
7
|
+
color var(--post-text-color)
|
|
8
|
+
|
|
9
|
+
h1, h2
|
|
10
|
+
border-bottom-color var(--line-color)
|
|
11
|
+
|
|
12
|
+
h1, h2, h3, h4, h5, h6
|
|
13
|
+
color var(--post-heading-color)
|
|
14
|
+
transition color .2s ease-in-out, border-bottom-color 0.2s ease-in-out
|
|
15
|
+
font-weight bold
|
|
16
|
+
margin-bottom .75em
|
|
17
|
+
margin-top 2em
|
|
18
|
+
|
|
19
|
+
&:focus
|
|
20
|
+
outline none
|
|
21
|
+
|
|
22
|
+
a
|
|
23
|
+
color var(--post-link-color)
|
|
24
|
+
|
|
25
|
+
strong
|
|
26
|
+
font-weight bold
|
|
27
|
+
|
|
28
|
+
code
|
|
29
|
+
tab-size 4
|
|
30
|
+
background-color var(--inlinecode-bg-color)
|
|
31
|
+
transition background-color .2s ease-in-out
|
|
32
|
+
|
|
33
|
+
table
|
|
34
|
+
tr
|
|
35
|
+
background-color var(--board-bg-color)
|
|
36
|
+
transition background-color .2s ease-in-out
|
|
37
|
+
tr:nth-child(2n)
|
|
38
|
+
background-color var(--board-bg-color)
|
|
39
|
+
transition background-color .2s ease-in-out
|
|
40
|
+
th, td
|
|
41
|
+
border-color var(--line-color)
|
|
42
|
+
transition border-color .2s ease-in-out
|
|
43
|
+
|
|
44
|
+
pre
|
|
45
|
+
font-size $code-font-size !important
|
|
46
|
+
|
|
47
|
+
.mermaid
|
|
48
|
+
text-align center
|
|
49
|
+
|
|
50
|
+
& > svg
|
|
51
|
+
min-width 100%
|
|
52
|
+
|
|
53
|
+
p > img, p > a > img, figure > img, figure > a > img
|
|
54
|
+
max-width 90%
|
|
55
|
+
margin 1.5rem auto
|
|
56
|
+
display block
|
|
57
|
+
box-shadow $img-shadow
|
|
58
|
+
border-radius 4px
|
|
59
|
+
background-color transparent
|
|
60
|
+
|
|
61
|
+
blockquote
|
|
62
|
+
color var(--sec-text-color)
|
|
63
|
+
|
|
64
|
+
details
|
|
65
|
+
cursor pointer
|
|
66
|
+
|
|
67
|
+
summary
|
|
68
|
+
outline none
|
|
69
|
+
|
|
70
|
+
// Rewrite hr
|
|
71
|
+
hr, .markdown-body hr
|
|
72
|
+
background-color initial
|
|
73
|
+
border-top 1px solid var(--line-color)
|
|
74
|
+
transition border-top-color .2s ease-in-out
|
|
75
|
+
|
|
76
|
+
.markdown-body hr
|
|
77
|
+
height 0
|
|
78
|
+
margin 2rem 0
|
|
79
|
+
|
|
80
|
+
// Rewrite figcaption
|
|
81
|
+
.markdown-body
|
|
82
|
+
figcaption.image-caption
|
|
83
|
+
font-size .8rem
|
|
84
|
+
color var(--post-text-color)
|
|
85
|
+
opacity 0.65
|
|
86
|
+
line-height 1
|
|
87
|
+
margin -0.75rem auto 2rem
|
|
88
|
+
text-align center
|
|
89
|
+
|
|
90
|
+
figcaption:not(.image-caption)
|
|
91
|
+
display none
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
padding-left 1rem
|
|
14
14
|
padding-right 1rem
|
|
15
15
|
|
|
16
|
+
.anchorjs-link-left
|
|
17
|
+
opacity 0 !important
|
|
18
|
+
|
|
16
19
|
.post-content
|
|
17
20
|
h1, h2, h3, h4, h5, h6
|
|
18
21
|
anchor-offset()
|
|
@@ -28,25 +31,27 @@
|
|
|
28
31
|
object-fit cover
|
|
29
32
|
max-width 100%
|
|
30
33
|
|
|
34
|
+
@media (max-width: 767px)
|
|
35
|
+
.page-content, .post-content
|
|
36
|
+
overflow-x hidden
|
|
37
|
+
|
|
31
38
|
.post-metas
|
|
32
39
|
display flex
|
|
33
|
-
flex-direction row
|
|
34
40
|
flex-wrap wrap
|
|
41
|
+
font-size .9rem
|
|
35
42
|
|
|
36
43
|
.post-meta
|
|
37
|
-
& > i
|
|
38
|
-
margin-right .15rem
|
|
39
44
|
|
|
40
|
-
& >
|
|
41
|
-
margin-right .
|
|
45
|
+
& > *:not(.hover-with-bg)
|
|
46
|
+
margin-right .2rem
|
|
42
47
|
|
|
43
48
|
.post-prevnext
|
|
44
|
-
margin-top 2rem
|
|
45
49
|
display flex
|
|
46
50
|
flex-wrap wrap
|
|
47
51
|
justify-content space-between
|
|
48
|
-
|
|
49
|
-
margin-
|
|
52
|
+
font-size .9rem
|
|
53
|
+
margin-left -.35rem
|
|
54
|
+
margin-right -.35rem
|
|
50
55
|
|
|
51
56
|
.post-prev, .post-next
|
|
52
57
|
display flex
|
|
@@ -124,75 +129,10 @@
|
|
|
124
129
|
-webkit-transform translateX(0)
|
|
125
130
|
transform translateX(0)
|
|
126
131
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
#toc
|
|
130
|
-
position -webkit-sticky
|
|
131
|
-
position sticky
|
|
132
|
-
top 2rem
|
|
133
|
-
padding 3rem 0 0 0
|
|
134
|
-
visibility hidden
|
|
135
|
-
|
|
136
|
-
.toc-header
|
|
137
|
-
margin-bottom .5rem
|
|
138
|
-
font-weight 500
|
|
139
|
-
line-height 1.2
|
|
140
|
-
|
|
141
|
-
&, & > i
|
|
142
|
-
font-size 1.25rem
|
|
143
|
-
|
|
144
|
-
.toc-body
|
|
145
|
-
max-height 75vh
|
|
146
|
-
overflow-y auto
|
|
147
|
-
overflow -moz-scrollbars-none
|
|
148
|
-
-ms-overflow-style none
|
|
149
|
-
|
|
150
|
-
ol
|
|
151
|
-
list-style none
|
|
152
|
-
padding-inline-start 1rem
|
|
153
|
-
|
|
154
|
-
&::-webkit-scrollbar
|
|
155
|
-
display none
|
|
156
|
-
|
|
157
|
-
.tocbot-list
|
|
158
|
-
ol
|
|
159
|
-
list-style none
|
|
160
|
-
padding-left 1rem
|
|
161
|
-
|
|
162
|
-
a
|
|
163
|
-
font-size 0.95rem
|
|
164
|
-
|
|
165
|
-
.tocbot-link
|
|
166
|
-
color var(--text-color)
|
|
167
|
-
|
|
168
|
-
.tocbot-active-link
|
|
169
|
-
font-weight bold
|
|
170
|
-
color var(--link-hover-color)
|
|
171
|
-
|
|
172
|
-
.tocbot-is-collapsed
|
|
173
|
-
max-height 0
|
|
174
|
-
|
|
175
|
-
.tocbot-is-collapsible
|
|
176
|
-
overflow hidden
|
|
177
|
-
transition all .3s ease-in-out
|
|
178
|
-
|
|
179
|
-
@media (max-width: 1024px)
|
|
180
|
-
.toc-container
|
|
181
|
-
padding-left 0
|
|
182
|
-
padding-right 0
|
|
183
|
-
|
|
184
|
-
.markdown-body .image-caption
|
|
185
|
-
font-size .8rem
|
|
186
|
-
color var(--post-text-color)
|
|
187
|
-
opacity 0.65
|
|
188
|
-
line-height 1
|
|
189
|
-
margin -0.75rem auto 2rem
|
|
190
|
-
text-align center
|
|
191
|
-
|
|
192
|
-
.custom, .comments
|
|
132
|
+
.custom, #comments
|
|
193
133
|
margin-top 2rem
|
|
194
134
|
|
|
195
|
-
|
|
135
|
+
#comments
|
|
196
136
|
noscript
|
|
197
137
|
display block
|
|
198
138
|
text-align center
|
|
@@ -202,3 +142,32 @@
|
|
|
202
142
|
font-size .8em
|
|
203
143
|
padding .45rem
|
|
204
144
|
float right
|
|
145
|
+
|
|
146
|
+
a.fancybox:hover
|
|
147
|
+
text-decoration none
|
|
148
|
+
|
|
149
|
+
// Rewrite mathjax
|
|
150
|
+
mjx-container, .mjx-container
|
|
151
|
+
overflow-x auto
|
|
152
|
+
overflow-y hidden !important
|
|
153
|
+
padding .5em 0
|
|
154
|
+
|
|
155
|
+
&:focus, svg:focus
|
|
156
|
+
outline none
|
|
157
|
+
|
|
158
|
+
.mjx-char
|
|
159
|
+
line-height 1
|
|
160
|
+
|
|
161
|
+
// Rewrite katex
|
|
162
|
+
.katex-block
|
|
163
|
+
overflow-x auto
|
|
164
|
+
|
|
165
|
+
.katex, .mjx-mrow
|
|
166
|
+
white-space pre-wrap !important
|
|
167
|
+
|
|
168
|
+
// Rewrite hint
|
|
169
|
+
.footnote-ref [class*=hint--][aria-label]:after
|
|
170
|
+
max-width 12rem
|
|
171
|
+
white-space nowrap
|
|
172
|
+
overflow hidden
|
|
173
|
+
text-overflow ellipsis
|
|
@@ -4,41 +4,43 @@
|
|
|
4
4
|
border-left 0.35rem solid
|
|
5
5
|
border-radius 0.25rem
|
|
6
6
|
margin 1.5rem 0
|
|
7
|
-
color
|
|
7
|
+
color var(--text-color)
|
|
8
|
+
transition color .2s ease-in-out
|
|
8
9
|
font-size 0.9rem
|
|
9
10
|
|
|
10
11
|
a
|
|
11
|
-
color
|
|
12
|
+
color var(--text-color)
|
|
13
|
+
transition color .2s ease-in-out
|
|
12
14
|
|
|
13
15
|
*:last-child
|
|
14
16
|
margin-bottom 0
|
|
15
17
|
|
|
16
18
|
.note-primary
|
|
17
|
-
background-color #
|
|
19
|
+
background-color rgba(#b7a0e0, 0.25)
|
|
18
20
|
border-color #6f42c1
|
|
19
21
|
|
|
20
22
|
.note-secondary, note-default
|
|
21
|
-
background-color #
|
|
23
|
+
background-color rgba(#bbbbbb, 0.25)
|
|
22
24
|
border-color #777
|
|
23
25
|
|
|
24
26
|
.note-success
|
|
25
|
-
background-color #
|
|
27
|
+
background-color rgba(#aedcae, 0.25)
|
|
26
28
|
border-color #5cb85c
|
|
27
29
|
|
|
28
30
|
.note-danger
|
|
29
|
-
background-color #
|
|
31
|
+
background-color rgba(#eca9a7, 0.25)
|
|
30
32
|
border-color #d9534f
|
|
31
33
|
|
|
32
34
|
.note-warning
|
|
33
|
-
background-color #
|
|
35
|
+
background-color rgba(#f8d6a6, 0.25)
|
|
34
36
|
border-color #f0ad4e
|
|
35
37
|
|
|
36
38
|
.note-info
|
|
37
|
-
background-color #
|
|
39
|
+
background-color rgba(#a0c5e4, 0.25)
|
|
38
40
|
border-color #428bca
|
|
39
41
|
|
|
40
42
|
.note-light
|
|
41
|
-
background-color #fefefe
|
|
43
|
+
background-color rgba(#fefefe, 0.25)
|
|
42
44
|
border-color #0f0f0f
|
|
43
45
|
|
|
44
46
|
// label
|
|
@@ -48,47 +50,42 @@
|
|
|
48
50
|
font-size 85%
|
|
49
51
|
margin 0
|
|
50
52
|
padding .2em .4em
|
|
51
|
-
color
|
|
53
|
+
color var(--text-color)
|
|
54
|
+
transition color .2s ease-in-out
|
|
52
55
|
|
|
53
56
|
.label-default
|
|
54
|
-
background #
|
|
57
|
+
background rgba(#bbbbbb, 0.25)
|
|
55
58
|
|
|
56
59
|
.label-primary
|
|
57
|
-
background #
|
|
60
|
+
background rgba(#b7a0e0, 0.25)
|
|
58
61
|
|
|
59
62
|
.label-info
|
|
60
|
-
background #
|
|
63
|
+
background rgba(#a0c5e4, 0.25)
|
|
61
64
|
|
|
62
65
|
.label-success
|
|
63
|
-
background #
|
|
66
|
+
background rgba(#aedcae, 0.25)
|
|
64
67
|
|
|
65
68
|
.label-warning
|
|
66
|
-
background #
|
|
69
|
+
background rgba(#f8d6a6, 0.25)
|
|
67
70
|
|
|
68
71
|
.label-danger
|
|
69
|
-
background #
|
|
72
|
+
background rgba(#eca9a7, 0.25)
|
|
70
73
|
|
|
71
74
|
// button
|
|
72
75
|
.markdown-body .btn
|
|
73
|
-
|
|
76
|
+
border 1px solid var(--line-color)
|
|
77
|
+
background-color var(--button-bg-color)
|
|
78
|
+
color var(--text-color)
|
|
79
|
+
transition color .2s ease-in-out, background .2s ease-in-out, border-color .2s ease-in-out
|
|
74
80
|
border-radius .25rem
|
|
75
|
-
color #fff !important
|
|
76
81
|
display inline-block
|
|
77
82
|
font-size .875em
|
|
78
83
|
line-height 2
|
|
79
84
|
padding 0 .75rem
|
|
80
|
-
text-decoration none
|
|
81
|
-
transition-property background
|
|
82
|
-
transition-delay 0s
|
|
83
|
-
transition-duration 0.2s
|
|
84
|
-
transition-timing-function ease-in-out
|
|
85
|
-
-webkit-box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
|
|
86
|
-
box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
|
|
87
85
|
margin-bottom 1rem
|
|
88
86
|
|
|
89
87
|
&:hover
|
|
90
|
-
background
|
|
91
|
-
color #fff !important
|
|
88
|
+
background-color var(--button-hover-bg-color)
|
|
92
89
|
text-decoration none
|
|
93
90
|
|
|
94
91
|
// group-image
|
|
@@ -113,3 +110,8 @@
|
|
|
113
110
|
|
|
114
111
|
&:not(:last-child)
|
|
115
112
|
margin-right .25rem
|
|
113
|
+
|
|
114
|
+
// checkbox
|
|
115
|
+
input[type=checkbox]
|
|
116
|
+
margin 0 0.2em 0.2em 0
|
|
117
|
+
vertical-align middle
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
//
|
|
1
|
+
// font
|
|
2
2
|
$font-size = theme-config("font.font_size", "16px")
|
|
3
3
|
$letter-spacing = theme-config("font.letter_spacing", "0.02em")
|
|
4
|
-
$font-family = theme-config("font.font_family",
|
|
4
|
+
$font-family = theme-config("font.font_family", "var(--font-family-sans-serif)")
|
|
5
5
|
$code-font-size = theme-config("font.code_font_size", "85%")
|
|
6
6
|
|
|
7
|
-
// Colors
|
|
8
|
-
|
|
9
7
|
// body
|
|
10
8
|
$body-bg-color = theme-config("color.body_bg_color", "#eee")
|
|
11
9
|
$body-bg-color-dark = theme-config("color.body_bg_color_dark", "#181c27")
|
|
12
10
|
|
|
13
|
-
//
|
|
11
|
+
// text
|
|
14
12
|
$text-color = theme-config("color.text_color", "#3c4858")
|
|
15
13
|
$text-color-dark = theme-config("color.text_color_dark", "#c4c6c9")
|
|
16
14
|
$sec-text-color = theme-config("color.sec_text_color", "#718096")
|
|
17
15
|
$sec-text-color-dark = theme-config("color.sec_text_color_dark", "#a7a9ad")
|
|
16
|
+
|
|
17
|
+
// post
|
|
18
18
|
$post-text-color = theme-config("color.post_text_color", "#2c3e50")
|
|
19
19
|
$post-text-color-dark = theme-config("color.post_text_color_dark", "#c4c6c9")
|
|
20
20
|
$post-heading-color = theme-config("color.post_heading_color", "#1a202c")
|
|
@@ -25,7 +25,12 @@ $link-hover-color = theme-config("color.link_hover_color", "#30a9de")
|
|
|
25
25
|
$link-hover-color-dark = theme-config("color.link_hover_color_dark", "#30a9de")
|
|
26
26
|
$link-hover-bg-color = theme-config("color.link_hover_bg_color", "#ebedef")
|
|
27
27
|
$link-hover-bg-color-dark = theme-config("color.link_hover_bg_color_dark", "#364151")
|
|
28
|
-
$line-color
|
|
28
|
+
$line-color = theme-config("color.line_color", "#eaecef")
|
|
29
|
+
$line-color-dark = theme-config("color.line_color_dark", "#435266")
|
|
30
|
+
$button-bg-color = theme-config("color.button_bg_color", "#f6f8fa")
|
|
31
|
+
$button-bg-color-dark = theme-config("color.button_bg_color_dark", "#2f4154")
|
|
32
|
+
$button-hover-bg-color = theme-config("color.button_hover_bg_color", "#f2f3f5")
|
|
33
|
+
$button-hover-bg-color-dark = theme-config("color.button_hover_bg_color_dark", "#46647e")
|
|
29
34
|
|
|
30
35
|
// navbar
|
|
31
36
|
$navbar-bg-color = theme-config("color.navbar_bg_color", "#2f4154")
|
|
@@ -37,14 +42,30 @@ $navbar-glass-px = theme-config-unit("navbar.ground_glass.px", 0, "px")
|
|
|
37
42
|
$navbar-glass-alpha = theme-config-origin("navbar.ground_glass.alpha", 0)
|
|
38
43
|
|
|
39
44
|
// banner
|
|
40
|
-
$banner-width-height-ratio = theme-config-origin("banner.width_height_ratio",
|
|
45
|
+
$banner-width-height-ratio = theme-config-origin("banner.width_height_ratio", 0)
|
|
46
|
+
|
|
47
|
+
// subtitle
|
|
48
|
+
$subtitle-color = theme-config("color.subtitle_color", "#fff")
|
|
49
|
+
$subtitle-color-dark = theme-config("color.subtitle_color_dark", "d0d0d0")
|
|
41
50
|
|
|
42
51
|
// scroll arrow
|
|
43
|
-
$scroll-arrow-height-limit = theme-config-origin("scroll_down_arrow.banner_height_limit",
|
|
52
|
+
$scroll-arrow-height-limit = theme-config-origin("scroll_down_arrow.banner_height_limit", 0)
|
|
44
53
|
|
|
45
54
|
// board
|
|
46
55
|
$board-bg-color = theme-config("color.board_color", "#fff")
|
|
47
56
|
$board-bg-color-dark = theme-config("color.board_color_dark", "#252d38")
|
|
48
57
|
|
|
49
|
-
//
|
|
58
|
+
// scrollbar
|
|
59
|
+
$scrollbar-color = theme-config("color.scrollbar_color", "#c4c6c9")
|
|
60
|
+
$scrollbar-color-dark = theme-config("color.scrollbar_color_dark", "#687582")
|
|
61
|
+
$scrollbar-hover-color = theme-config("color.scrollbar_hover_color", "#a6a6a6")
|
|
62
|
+
$scrollbar-hover-color-dark = theme-config("color.scrollbar_hover_color_dark", "#9da8b3")
|
|
63
|
+
|
|
64
|
+
// code
|
|
65
|
+
$highlight-bg-color = hexo-config("code.highlight.highlightjs.light.backgroundColor") && hexo-config("code.highlight.highlightjs.light.backgroundColor") != "white" ? unquote(hexo-config("code.highlight.highlightjs.light.backgroundColor")):#f6f8fa
|
|
66
|
+
$highlight-bg-color-dark = hexo-config("code.highlight.highlightjs.dark.backgroundColor") && hexo-config("code.highlight.highlightjs.dark.backgroundColor") != "white" ? unquote(hexo-config("code.highlight.highlightjs.dark.backgroundColor")):#2d333b
|
|
67
|
+
$inlinecode-bg-color = rgba(175, 184, 193, .2)
|
|
68
|
+
$inlinecode-bg-color-dark = rgba(99, 110, 123, .4)
|
|
69
|
+
|
|
70
|
+
// shadow
|
|
50
71
|
$img-shadow = 0 5px 11px 0 rgba(0, 0, 0, .18), 0 4px 15px 0 rgba(0, 0, 0, .15)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
if hexo-config("code.highlight.enable") && hexo-config("dark_mode.enable")
|
|
2
|
+
if hexo-config("code.highlight.highlightjs.dark.file")
|
|
3
|
+
@require hexo-config("code.highlight.highlightjs.dark.file")
|
|
4
|
+
|
|
5
|
+
if hexo-config("code.highlight.prismjs.dark.file")
|
|
6
|
+
@require hexo-config("code.highlight.prismjs.dark.file")
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
if hexo-config("code.highlight.enable")
|
|
2
|
+
if hexo-config("code.highlight.highlightjs.light.file")
|
|
3
|
+
@require hexo-config("code.highlight.highlightjs.light.file")
|
|
4
|
+
|
|
5
|
+
if hexo-config("code.highlight.prismjs.light.file")
|
|
6
|
+
@require hexo-config("code.highlight.prismjs.light.file")
|
package/source/css/main.styl
CHANGED
|
@@ -4,9 +4,16 @@
|
|
|
4
4
|
// --------------------------------------
|
|
5
5
|
|
|
6
6
|
@import "_variables/base"
|
|
7
|
+
for $inject_variable in hexo-config("injects.variable")
|
|
8
|
+
@import $inject_variable;
|
|
7
9
|
|
|
8
10
|
@import "_functions/base"
|
|
9
11
|
|
|
10
12
|
@import "_mixins/base"
|
|
13
|
+
for $inject_mixin in hexo-config("injects.mixin")
|
|
14
|
+
@import $inject_mixin;
|
|
11
15
|
|
|
12
16
|
@import "_pages/pages"
|
|
17
|
+
|
|
18
|
+
for $inject_style in hexo-config("injects.style")
|
|
19
|
+
@import $inject_style;
|
|
Binary file
|
package/source/img/default.png
CHANGED
|
Binary file
|
|
File without changes
|
package/source/js/boot.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* global Fluid
|
|
1
|
+
/* global Fluid */
|
|
2
2
|
|
|
3
3
|
Fluid.boot = {};
|
|
4
4
|
|
|
@@ -11,14 +11,6 @@ Fluid.boot.registerEvents = function() {
|
|
|
11
11
|
Fluid.events.registerImageLoadedEvent();
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
Fluid.boot.initPlugins = function() {
|
|
15
|
-
CONFIG.anchorjs.enable && Fluid.plugins.initAnchor();
|
|
16
|
-
CONFIG.toc.enable && Fluid.plugins.initTocBot();
|
|
17
|
-
CONFIG.image_zoom.enable && Fluid.plugins.initFancyBox();
|
|
18
|
-
CONFIG.copy_btn && Fluid.plugins.initCopyCode();
|
|
19
|
-
};
|
|
20
|
-
|
|
21
14
|
document.addEventListener('DOMContentLoaded', function() {
|
|
22
15
|
Fluid.boot.registerEvents();
|
|
23
|
-
Fluid.boot.initPlugins();
|
|
24
16
|
});
|