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.
Files changed (155) hide show
  1. package/LICENSE +674 -21
  2. package/README.md +17 -21
  3. package/_config.yml +164 -79
  4. package/languages/de.yml +58 -33
  5. package/languages/en.yml +58 -33
  6. package/languages/eo.yml +58 -33
  7. package/languages/es.yml +69 -0
  8. package/languages/ja.yml +58 -33
  9. package/languages/zh-CN.yml +58 -33
  10. package/languages/zh-HK.yml +69 -0
  11. package/languages/zh-TW.yml +58 -33
  12. package/layout/.DS_Store +0 -0
  13. package/layout/404.ejs +3 -1
  14. package/layout/{_partial → _partials}/archive-list.ejs +4 -4
  15. package/layout/_partials/category-chains.ejs +19 -0
  16. package/layout/_partials/category-list.ejs +62 -0
  17. package/layout/{_partial → _partials}/comments/changyan.ejs +0 -0
  18. package/layout/{_partial → _partials}/comments/cusdis.ejs +0 -0
  19. package/layout/{_partial → _partials}/comments/disqus.ejs +0 -0
  20. package/layout/_partials/comments/giscus.ejs +36 -0
  21. package/layout/{_partial → _partials}/comments/gitalk.ejs +0 -0
  22. package/layout/{_partial → _partials}/comments/livere.ejs +0 -0
  23. package/layout/{_partial → _partials}/comments/remark42.ejs +0 -0
  24. package/layout/{_partial → _partials}/comments/twikoo.ejs +3 -1
  25. package/layout/{_partial → _partials}/comments/utterances.ejs +1 -1
  26. package/layout/{_partial → _partials}/comments/valine.ejs +3 -1
  27. package/layout/{_partial → _partials}/comments/waline.ejs +6 -3
  28. package/layout/_partials/comments.ejs +5 -0
  29. package/layout/_partials/css.ejs +26 -0
  30. package/layout/_partials/footer/beian.ejs +33 -0
  31. package/layout/_partials/footer/statistics.ejs +39 -0
  32. package/layout/_partials/footer.ejs +18 -0
  33. package/layout/{_partial → _partials}/head.ejs +7 -1
  34. package/layout/_partials/header/banner.ejs +33 -0
  35. package/layout/{_partial/nav.ejs → _partials/header/navigation.ejs} +3 -2
  36. package/layout/_partials/header.ejs +8 -0
  37. package/layout/{_partial → _partials}/paginator.ejs +0 -0
  38. package/layout/_partials/plugins/analytics.ejs +87 -0
  39. package/layout/_partials/plugins/anchorjs.ejs +24 -0
  40. package/layout/_partials/plugins/code-widget.ejs +71 -0
  41. package/layout/_partials/plugins/fancybox.ejs +11 -0
  42. package/layout/_partials/plugins/highlight.ejs +13 -0
  43. package/layout/_partials/plugins/math.ejs +46 -0
  44. package/layout/_partials/plugins/mermaid.ejs +5 -0
  45. package/layout/{_partial → _partials}/plugins/nprogress.ejs +0 -0
  46. package/layout/_partials/plugins/typed.ejs +48 -0
  47. package/layout/_partials/post/category-bar.ejs +18 -0
  48. package/layout/_partials/post/copyright.ejs +56 -0
  49. package/layout/_partials/post/meta-bottom.ejs +16 -0
  50. package/layout/_partials/post/meta-top.ejs +63 -0
  51. package/layout/_partials/post/sidebar-left.ejs +10 -0
  52. package/layout/_partials/post/sidebar-right.ejs +10 -0
  53. package/layout/_partials/post/toc.ejs +34 -0
  54. package/layout/_partials/scripts.ejs +32 -0
  55. package/layout/{_partial → _partials}/search.ejs +2 -3
  56. package/layout/about.ejs +5 -3
  57. package/layout/archive.ejs +1 -1
  58. package/layout/categories.ejs +10 -59
  59. package/layout/category.ejs +1 -1
  60. package/layout/index.ejs +13 -15
  61. package/layout/layout.ejs +19 -39
  62. package/layout/links.ejs +2 -8
  63. package/layout/page.ejs +28 -12
  64. package/layout/post.ejs +65 -59
  65. package/layout/tag.ejs +1 -1
  66. package/package.json +11 -3
  67. package/scripts/.DS_Store +0 -0
  68. package/scripts/events/.DS_Store +0 -0
  69. package/scripts/events/index.js +1 -0
  70. package/scripts/events/lib/compatible-configs.js +7 -8
  71. package/scripts/events/lib/footnote.js +1 -1
  72. package/scripts/events/lib/hello.js +6 -2
  73. package/scripts/events/lib/highlight.js +93 -24
  74. package/scripts/events/lib/injects.js +118 -0
  75. package/scripts/events/lib/merge-configs.js +37 -7
  76. package/scripts/filters/default-injects.js +27 -0
  77. package/scripts/filters/post-filter.js +7 -0
  78. package/scripts/helpers/date.js +25 -0
  79. package/scripts/helpers/engine.js +9 -0
  80. package/scripts/helpers/export-config.js +8 -0
  81. package/scripts/helpers/import.js +24 -0
  82. package/scripts/helpers/injects.js +7 -0
  83. package/scripts/helpers/scope.js +44 -0
  84. package/scripts/helpers/utils.js +17 -2
  85. package/scripts/tags/checkbox.js +4 -2
  86. package/scripts/utils/.DS_Store +0 -0
  87. package/scripts/utils/object.js +5 -0
  88. package/scripts/utils/resolve.js +15 -0
  89. package/source/.DS_Store +0 -0
  90. package/source/css/_pages/_archive/archive.styl +28 -0
  91. package/source/css/_pages/_base/_widget/anchorjs.styl +8 -0
  92. package/source/css/_pages/_base/_widget/banner.styl +2 -11
  93. package/source/css/_pages/_base/_widget/board.styl +1 -4
  94. package/source/css/_pages/_base/_widget/code-widget.styl +36 -0
  95. package/source/css/_pages/_base/_widget/copyright.styl +90 -0
  96. package/source/css/_pages/_base/_widget/footer.styl +4 -1
  97. package/source/css/_pages/_base/_widget/header.styl +161 -2
  98. package/source/css/_pages/_base/_widget/modal.styl +100 -0
  99. package/source/css/_pages/_base/_widget/ngrogress.styl +12 -0
  100. package/source/css/_pages/_base/_widget/noscript.styl +12 -0
  101. package/source/css/_pages/_base/_widget/pagination.styl +23 -0
  102. package/source/css/_pages/_base/_widget/scroll-btn.styl +2 -15
  103. package/source/css/_pages/_base/_widget/toc.styl +75 -0
  104. package/source/css/_pages/_base/base.styl +23 -3
  105. package/source/css/_pages/_base/color-schema.styl +30 -58
  106. package/source/css/_pages/_base/inline.styl +2 -2
  107. package/source/css/_pages/_category/category-bar.styl +59 -0
  108. package/source/css/_pages/_category/category-chain.styl +6 -0
  109. package/source/css/_pages/_category/{categories.styl → category-list.styl} +17 -11
  110. package/source/css/_pages/_index/index.styl +7 -5
  111. package/source/css/_pages/_links/links.styl +2 -1
  112. package/source/css/_pages/_post/comment.styl +27 -0
  113. package/source/css/_pages/_post/highlight.styl +65 -0
  114. package/source/css/_pages/_post/markdown.styl +91 -0
  115. package/source/css/_pages/_post/{post.styl → post-page.styl} +44 -75
  116. package/source/css/_pages/_post/{tag_plugin.styl → post-tag.styl} +29 -27
  117. package/source/css/_variables/base.styl +30 -9
  118. package/source/css/highlight-dark.styl +6 -0
  119. package/source/css/highlight.styl +6 -0
  120. package/source/css/main.styl +7 -0
  121. package/source/img/.DS_Store +0 -0
  122. package/source/img/default.png +0 -0
  123. package/source/img/{favicon.png → fluid.png} +0 -0
  124. package/source/js/boot.js +1 -9
  125. package/source/js/color-schema.js +52 -7
  126. package/source/js/events.js +15 -15
  127. package/source/js/leancloud.js +9 -2
  128. package/source/js/local-search.js +2 -2
  129. package/source/js/plugins.js +26 -94
  130. package/source/js/utils.js +28 -12
  131. package/.editorconfig +0 -13
  132. package/.eslintrc +0 -224
  133. package/.gitattributes +0 -1
  134. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -28
  135. package/.github/ISSUE_TEMPLATE/bug_report_zh.md +0 -33
  136. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  137. package/.github/ISSUE_TEMPLATE/feature_request_zh.md +0 -20
  138. package/.github/ISSUE_TEMPLATE/question.md +0 -11
  139. package/.github/ISSUE_TEMPLATE/question_zh.md +0 -14
  140. package/.github/workflows/limit.yaml +0 -18
  141. package/README_en.md +0 -125
  142. package/layout/_partial/beian.ejs +0 -36
  143. package/layout/_partial/css.ejs +0 -47
  144. package/layout/_partial/footer.ejs +0 -11
  145. package/layout/_partial/plugins/analytics.ejs +0 -66
  146. package/layout/_partial/plugins/math.ejs +0 -69
  147. package/layout/_partial/plugins/mermaid.ejs +0 -24
  148. package/layout/_partial/plugins/typed.ejs +0 -41
  149. package/layout/_partial/post-meta.ejs +0 -51
  150. package/layout/_partial/scripts.ejs +0 -72
  151. package/layout/_partial/statistics.ejs +0 -43
  152. package/layout/_partial/toc.ejs +0 -4
  153. package/source/css/_pages/_base/_widget/copy-btn.styl +0 -42
  154. package/source/css/_pages/_base/rewrite.styl +0 -556
  155. 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
- &-sub
6
+ .category-sub
7
7
  pass
8
8
 
9
- &-item
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
- &-subitem
16
- font-size 1rem
17
- font-weight bold
14
+ .category-item
15
+ font-size 1.25rem
18
16
 
19
- &-collapse
20
- margin-left: 1.25rem
17
+ .category-subitem
18
+ font-size 1.1rem
19
+
20
+ .category-collapse
21
+ padding-left: 1.25rem
21
22
  width 100%
22
23
 
23
- &-count
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
- &-item-action
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
- &:hover
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
- max-height calc(1.4rem * 3)
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
@@ -43,12 +43,13 @@
43
43
  flex 1
44
44
  display grid
45
45
  flex-direction column
46
+ line-height 1.5
46
47
 
47
48
  .link-title
48
49
  overflow hidden
49
50
  text-overflow ellipsis
50
51
  white-space nowrap
51
- color $text_color
52
+ color var(--text-color)
52
53
  font-weight bold
53
54
 
54
55
  .link-intro
@@ -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
- & > a:not(.hover-with-bg)
41
- margin-right .15rem
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
- margin-left -0.5rem
49
- margin-right -0.5rem
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
- // toc
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
- .comments
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 $text-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 $text-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 #f5f0fa
19
+ background-color rgba(#b7a0e0, 0.25)
18
20
  border-color #6f42c1
19
21
 
20
22
  .note-secondary, note-default
21
- background-color #f7f7f7
23
+ background-color rgba(#bbbbbb, 0.25)
22
24
  border-color #777
23
25
 
24
26
  .note-success
25
- background-color #eff8f0
27
+ background-color rgba(#aedcae, 0.25)
26
28
  border-color #5cb85c
27
29
 
28
30
  .note-danger
29
- background-color #fcf1f2
31
+ background-color rgba(#eca9a7, 0.25)
30
32
  border-color #d9534f
31
33
 
32
34
  .note-warning
33
- background-color #fdf8ea
35
+ background-color rgba(#f8d6a6, 0.25)
34
36
  border-color #f0ad4e
35
37
 
36
38
  .note-info
37
- background-color #eef7fa
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 $text-color
53
+ color var(--text-color)
54
+ transition color .2s ease-in-out
52
55
 
53
56
  .label-default
54
- background #f7f7f7
57
+ background rgba(#bbbbbb, 0.25)
55
58
 
56
59
  .label-primary
57
- background #f5f0fa
60
+ background rgba(#b7a0e0, 0.25)
58
61
 
59
62
  .label-info
60
- background #eef7fa
63
+ background rgba(#a0c5e4, 0.25)
61
64
 
62
65
  .label-success
63
- background #eff8f0
66
+ background rgba(#aedcae, 0.25)
64
67
 
65
68
  .label-warning
66
- background #fdf8ea
69
+ background rgba(#f8d6a6, 0.25)
67
70
 
68
71
  .label-danger
69
- background #fcf1f2
72
+ background rgba(#eca9a7, 0.25)
70
73
 
71
74
  // button
72
75
  .markdown-body .btn
73
- background #2F4154
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 #23ae92
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
- // Font
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", 'var(--font-family-sans-serif)')
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
- // global
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-dark = #435266
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", 1)
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", 80)
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
- // Shadow
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")
@@ -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
Binary file
File without changes
package/source/js/boot.js CHANGED
@@ -1,4 +1,4 @@
1
- /* global Fluid, CONFIG */
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
  });