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
@@ -1,7 +1,166 @@
1
+ // Rewrite navbar
2
+ .navbar
3
+ background-color transparent
4
+ font-size 0.875rem
5
+ box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
6
+ -webkit-box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
7
+
8
+ .navbar-brand
9
+ color var(--navbar-text-color)
10
+
11
+ .navbar-toggler .animated-icon span
12
+ background-color var(--navbar-text-color)
13
+
14
+ .nav-item .nav-link
15
+ display block
16
+ color var(--navbar-text-color)
17
+ transition color .2s ease-in-out, background-color .2s ease-in-out
18
+
19
+ &:hover
20
+ color var(--link-hover-color)
21
+
22
+ &:focus
23
+ color var(--navbar-text-color)
24
+
25
+ i
26
+ font-size 0.875rem
27
+
28
+ .navbar-toggler
29
+ border-width 0
30
+ outline 0
31
+
32
+ &.scrolling-navbar
33
+ will-change background, padding
34
+ -webkit-transition background 0.5s ease-in-out, padding 0.5s ease-in-out
35
+ transition background 0.5s ease-in-out, padding 0.5s ease-in-out
36
+
37
+ @media (min-width: 600px)
38
+ &
39
+ padding-top 12px
40
+ padding-bottom 12px
41
+
42
+ & .navbar-nav > li
43
+ -webkit-transition-duration 1s
44
+ transition-duration 1s
45
+
46
+ &.top-nav-collapse
47
+ padding-top 5px
48
+ padding-bottom 5px
49
+
50
+ .dropdown-menu
51
+ font-size 0.875rem
52
+ color var(--navbar-text-color)
53
+ background-color rgba(0, 0, 0, 0.3)
54
+ border none
55
+ -webkit-transition background .5s ease-in-out,padding .5s ease-in-out
56
+ transition background .5s ease-in-out,padding .5s ease-in-out
57
+
58
+ @media (max-width: 991.98px)
59
+ text-align center
60
+
61
+ .dropdown-item
62
+ color var(--navbar-text-color)
63
+
64
+ &:hover, &:focus
65
+ color var(--link-hover-color)
66
+ background-color rgba(0, 0, 0, 0.1)
67
+
68
+ @media (min-width: 992px)
69
+ .dropdown:hover > .dropdown-menu
70
+ display block
71
+
72
+ .dropdown > .dropdown-toggle:active
73
+ pointer-events none
74
+
75
+ .dropdown-menu
76
+ top 95%
77
+
78
+ .animated-icon
79
+ width 30px
80
+ height 20px
81
+ position relative
82
+ margin 0
83
+ -webkit-transform rotate(0deg)
84
+ -moz-transform rotate(0deg)
85
+ -o-transform rotate(0deg)
86
+ transform rotate(0deg)
87
+ -webkit-transition .5s ease-in-out
88
+ -moz-transition .5s ease-in-out
89
+ -o-transition .5s ease-in-out
90
+ transition .5s ease-in-out
91
+ cursor pointer
92
+
93
+ span
94
+ display block
95
+ position absolute
96
+ height 3px
97
+ width 100%
98
+ border-radius 9px
99
+ opacity 1
100
+ left 0
101
+ -webkit-transform rotate(0deg)
102
+ -moz-transform rotate(0deg)
103
+ -o-transform rotate(0deg)
104
+ transform rotate(0deg)
105
+ -webkit-transition .25s ease-in-out
106
+ -moz-transition .25s ease-in-out
107
+ -o-transition .25s ease-in-out
108
+ transition .25s ease-in-out
109
+ background #ffffff
110
+
111
+ &:nth-child(1)
112
+ top 0
113
+
114
+ &:nth-child(2)
115
+ top 10px
116
+
117
+ &:nth-child(3)
118
+ top 20px
119
+
120
+ &.open
121
+ span
122
+ &:nth-child(1)
123
+ top 11px
124
+ -webkit-transform rotate(135deg)
125
+ -moz-transform rotate(135deg)
126
+ -o-transform rotate(135deg)
127
+ transform rotate(135deg)
128
+
129
+ &:nth-child(2)
130
+ opacity 0
131
+ left -60px
132
+
133
+ &:nth-child(3)
134
+ top 11px
135
+ -webkit-transform rotate(-135deg)
136
+ -moz-transform rotate(-135deg)
137
+ -o-transform rotate(-135deg)
138
+ transform rotate(-135deg)
139
+
140
+ .navbar .dropdown-collapse, .top-nav-collapse, .navbar-col-show
141
+ if $navbar-glass-enable
142
+ ground-glass($navbar-glass-px, $navbar-bg-color, $navbar-glass-alpha)
143
+ else
144
+ background-color var(--navbar-bg-color)
145
+
1
146
  @media (max-width: 767px)
2
- #subtitle
147
+ .navbar
148
+ font-size 1rem
149
+ line-height 2.5rem
150
+
151
+ .banner-text
152
+ color var(--subtitle-color)
153
+ max-width calc(960px - 6rem)
154
+ width 80%
155
+ overflow-wrap break-word
156
+
157
+ @media (max-width: 767px)
158
+ #subtitle, .typed-cursor
3
159
  font-size 1.5rem
4
160
 
5
161
  @media (max-width: 575px)
6
- #subtitle
162
+ .banner-text
163
+ font-size 0.9rem
164
+
165
+ #subtitle, .typed-cursor
7
166
  font-size 1.35rem
@@ -0,0 +1,100 @@
1
+ // Rewrite modal
2
+ .modal-dialog .modal-content
3
+ background-color var(--board-bg-color)
4
+ border 0
5
+ border-radius .125rem
6
+ -webkit-box-shadow 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15)
7
+ box-shadow 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15)
8
+
9
+ .modal-dialog .modal-content .modal-header
10
+ border-bottom-color var(--line-color)
11
+ transition border-bottom-color .2s ease-in-out
12
+
13
+ .close
14
+ color var(--text-color)
15
+
16
+ &:hover
17
+ color var(--link-hover-color)
18
+
19
+ &:focus
20
+ outline 0
21
+
22
+ .modal-dialog .modal-content .modal-header
23
+ border-top-left-radius .125rem
24
+ border-top-right-radius .125rem
25
+ border-bottom 1px solid #dee2e6
26
+
27
+ .md-form
28
+ position relative
29
+ margin-top 1.5rem
30
+ margin-bottom 1.5rem
31
+
32
+ .md-form
33
+ input[type]
34
+ -webkit-box-sizing content-box
35
+ box-sizing content-box
36
+ background-color transparent
37
+ border none
38
+ border-bottom 1px solid #ced4da
39
+ border-radius 0
40
+ outline none
41
+ -webkit-box-shadow none
42
+ box-shadow none
43
+ transition border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out
44
+
45
+ $normal = #4285f4
46
+
47
+ &:focus:not([readonly])
48
+ border-bottom 1px solid $normal
49
+ -webkit-box-shadow 0 1px 0 0 $normal
50
+ box-shadow 0 1px 0 0 $normal
51
+
52
+ & + label
53
+ color: $normal
54
+
55
+ $valid = #00c851
56
+
57
+ &.valid, &:focus.valid
58
+ border-bottom 1px solid $valid
59
+ -webkit-box-shadow 0 1px 0 0 $valid
60
+ box-shadow 0 1px 0 0 $valid
61
+
62
+ & + label
63
+ color: $valid
64
+
65
+ $invalid = #f44336
66
+
67
+ &.invalid, &:focus.invalid
68
+ border-bottom 1px solid $invalid
69
+ -webkit-box-shadow 0 1px 0 0 $invalid
70
+ box-shadow 0 1px 0 0 $invalid
71
+
72
+ & + label
73
+ color $invalid
74
+
75
+ &.validate
76
+ margin-bottom 2.5rem
77
+
78
+ &.form-control
79
+ height auto
80
+ padding .6rem 0 .4rem 0
81
+ margin 0 0 .5rem 0
82
+ color var(--text-color)
83
+ background-color transparent
84
+ border-radius 0
85
+
86
+ label
87
+ font-size 0.8rem
88
+ position absolute
89
+ top -1rem
90
+ left 0
91
+ color #757575
92
+ cursor text
93
+ transition color .2s ease-out
94
+
95
+ .modal-open[style]
96
+ padding-right: 0 !important
97
+ overflow auto
98
+
99
+ #navbar[style]
100
+ padding-right 1rem !important
@@ -0,0 +1,12 @@
1
+ // Rewrite nprogress
2
+ $npColor = theme-config("fun_features.progressbar.color", "#29d")
3
+ #nprogress
4
+ .bar
5
+ height theme-config-unit("fun_features.progressbar.height_px", 3, "px") !important
6
+ background-color $npColor !important
7
+ .peg
8
+ box-shadow 0 0 14px $npColor, 0 0 8px $npColor !important
9
+
10
+ @media (max-width: 575px)
11
+ .bar
12
+ display none
@@ -0,0 +1,12 @@
1
+ .noscript-warning
2
+ background-color #f55
3
+ color #fff
4
+ font-family sans-serif
5
+ font-size 1rem
6
+ font-weight bold
7
+ position fixed
8
+ left 0
9
+ bottom 0
10
+ text-align center
11
+ width 100%
12
+ z-index 99
@@ -0,0 +1,23 @@
1
+ // Rewrite pagination
2
+ .pagination
3
+ margin-top 3rem
4
+ justify-content center
5
+
6
+ .space
7
+ align-self flex-end
8
+
9
+ .page-number, .current, .extend
10
+ outline 0
11
+ border 0
12
+ background-color transparent
13
+ font-size .9rem
14
+ padding .5rem .75rem
15
+ line-height 1.25
16
+ border-radius .125rem
17
+
18
+ .page-number
19
+ margin 0 .05rem
20
+
21
+ .page-number:hover, .current
22
+ transition background-color .2s ease-in-out
23
+ background-color var(--link-hover-bg-color)
@@ -6,19 +6,14 @@
6
6
  cursor pointer
7
7
  bottom 0
8
8
 
9
- i
9
+ i.iconfont
10
10
  font-size 2rem
11
11
  font-weight bold
12
12
  display inline-block
13
13
  position relative
14
14
  padding-top 2rem
15
- color #ff
16
- -webkit-transform translateZ(0)
17
- -moz-transform translateZ(0)
18
- -ms-transform translateZ(0)
19
- -o-transform translateZ(0)
15
+ color var(--subtitle-color)
20
16
  transform translateZ(0)
21
- -webkit-animation scroll-down 1.5s infinite
22
17
  animation scroll-down 1.5s infinite
23
18
 
24
19
  #scroll-top-button
@@ -34,7 +29,6 @@
34
29
  display flex
35
30
  display -webkit-flex
36
31
  align-items center
37
- -webkit-box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
38
32
  box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
39
33
 
40
34
  i
@@ -43,17 +37,10 @@
43
37
  color var(--sec-text-color)
44
38
 
45
39
  &:hover i, &:active i
46
- -webkit-animation-name scroll-top
47
40
  animation-name scroll-top
48
- -webkit-animation-duration 1s
49
41
  animation-duration 1s
50
- -webkit-animation-delay .1s
51
42
  animation-delay .1s
52
- -webkit-animation-timing-function ease-in-out
53
43
  animation-timing-function ease-in-out
54
- -webkit-animation-iteration-count infinite
55
44
  animation-iteration-count infinite
56
- -webkit-animation-fill-mode forwards
57
45
  animation-fill-mode forwards
58
- -webkit-animation-direction alternate
59
46
  animation-direction alternate
@@ -0,0 +1,75 @@
1
+ #toc
2
+ visibility hidden
3
+
4
+ .toc-header
5
+ margin-bottom .5rem
6
+ font-weight bold
7
+ line-height 1.2
8
+
9
+ &, & > i
10
+ font-size 1.25rem
11
+
12
+ .toc-body
13
+ max-height 75vh
14
+ overflow-y auto
15
+ overflow -moz-scrollbars-none
16
+ -ms-overflow-style none
17
+
18
+ ol
19
+ list-style none
20
+ padding-inline-start 1rem
21
+
22
+ &::-webkit-scrollbar
23
+ display none
24
+
25
+ .tocbot-list
26
+ position relative
27
+
28
+ ol
29
+ list-style none
30
+ padding-left 1rem
31
+
32
+ a
33
+ font-size 0.95rem
34
+
35
+ .tocbot-link
36
+ color var(--text-color)
37
+
38
+ .tocbot-active-link
39
+ font-weight bold
40
+ color var(--link-hover-color)
41
+
42
+ .tocbot-is-collapsed
43
+ max-height 0
44
+
45
+ .tocbot-is-collapsible
46
+ overflow hidden
47
+ transition all .3s ease-in-out
48
+
49
+ .toc-list-item
50
+ white-space nowrap
51
+ overflow hidden
52
+ text-overflow ellipsis
53
+
54
+ &.is-active-li::before
55
+ height 1rem
56
+ margin 0.25rem 0
57
+ visibility visible
58
+
59
+ &::before
60
+ width 0.15rem
61
+ height 0.2rem
62
+ position absolute
63
+ left 0.25rem
64
+ content ""
65
+ border-radius 2px
66
+ margin 0.65rem 0
67
+ background var(--link-hover-color)
68
+ visibility hidden
69
+ transition height .1s ease-in-out, margin .1s ease-in-out, visibility .1s ease-in-out
70
+
71
+ .sidebar
72
+ position -webkit-sticky
73
+ position sticky
74
+ top 2rem
75
+ padding 3rem 0
@@ -5,10 +5,8 @@ html
5
5
  letter-spacing $letter-spacing
6
6
 
7
7
  html, body
8
- font-family $font-family
9
-
10
- html, body, header
11
8
  height 100%
9
+ font-family $font-family
12
10
  overflow-wrap break-word
13
11
 
14
12
  body
@@ -34,6 +32,7 @@ code
34
32
 
35
33
  table
36
34
  font-size inherit
35
+ color var(--post-text-color)
37
36
 
38
37
  img[lazyload]
39
38
  object-fit cover
@@ -46,3 +45,24 @@ img[lazyload]
46
45
 
47
46
  *[align="right"]
48
47
  text-align right
48
+
49
+ ::-webkit-scrollbar
50
+ width 6px
51
+ height 6px
52
+
53
+ ::-webkit-scrollbar-thumb
54
+ background-color var(--scrollbar-color)
55
+ border-radius 6px
56
+
57
+ &:hover
58
+ background-color var(--scrollbar-hover-color)
59
+
60
+ ::-webkit-scrollbar-corner
61
+ background-color transparent
62
+
63
+ label
64
+ margin-bottom 0
65
+
66
+ i.iconfont
67
+ font-size 1em
68
+ line-height 1
@@ -1,5 +1,5 @@
1
1
  :root
2
- --color-mode 'light'
2
+ --color-mode "light"
3
3
  --body-bg-color $body-bg-color
4
4
  --board-bg-color $board-bg-color
5
5
  --text-color $text-color
@@ -9,8 +9,16 @@
9
9
  --post-link-color $post-link-color
10
10
  --link-hover-color $link-hover-color
11
11
  --link-hover-bg-color $link-hover-bg-color
12
+ --line-color $line-color
12
13
  --navbar-bg-color $navbar-bg-color
13
14
  --navbar-text-color $navbar-text-color
15
+ --subtitle-color $subtitle-color
16
+ --scrollbar-color $scrollbar-color
17
+ --scrollbar-hover-color $scrollbar-hover-color
18
+ --button-bg-color $button-bg-color
19
+ --button-hover-bg-color $button-hover-bg-color
20
+ --highlight-bg-color $highlight-bg-color
21
+ --inlinecode-bg-color $inlinecode-bg-color
14
22
 
15
23
  dark-colors()
16
24
  --body-bg-color $body-bg-color-dark
@@ -22,77 +30,41 @@ dark-colors()
22
30
  --post-link-color $post-link-color-dark
23
31
  --link-hover-color $link-hover-color-dark
24
32
  --link-hover-bg-color $link-hover-bg-color-dark
33
+ --line-color $line-color-dark
25
34
  --navbar-bg-color $navbar-bg-color-dark
26
35
  --navbar-text-color $navbar-text-color-dark
27
-
28
- img, .note, .label
36
+ --subtitle-color $subtitle-color-dark
37
+ --scrollbar-color $scrollbar-color-dark
38
+ --scrollbar-hover-color $scrollbar-hover-color-dark
39
+ --button-bg-color $button-bg-color-dark
40
+ --button-hover-bg-color $button-hover-bg-color-dark
41
+ --highlight-bg-color $highlight-bg-color-dark
42
+ --inlinecode-bg-color $inlinecode-bg-color-dark
43
+
44
+ img
29
45
  -webkit-filter brightness(.9)
30
46
  filter brightness(.9)
31
47
  transition filter .2s ease-in-out
32
48
 
33
- .page-header
34
- color #ddd
35
- transition color .2s ease-in-out
36
-
37
- .markdown-body
38
-
39
- :not(pre) > code
40
- background-color rgba(#3e4b5e, .35)
41
- transition background-color .2s ease-in-out
42
-
43
- pre, td.gutter, td.code > .code-wrapper
44
- -webkit-filter brightness(.9)
45
- filter brightness(.9)
46
- transition filter .2s ease-in-out
47
-
48
- td.gutter pre
49
- -webkit-filter initial
50
- filter initial
51
-
52
- h1, h2
53
- border-bottom-color $line-color-dark
54
- transition border-bottom-color .2s ease-in-out
55
-
56
- h1, h2, h3, h6, h5, h6
57
- color #ddd
58
- transition all .2s ease-in-out
59
-
60
- table
61
- tr
62
- background-color var(--board-bg-color)
63
- transition background-color .2s ease-in-out
64
- tr:nth-child(2n)
65
- background-color var(--board-bg-color)
66
- transition background-color .2s ease-in-out
67
- th, td
68
- border-color $line-color-dark
69
- transition border-color .2s ease-in-out
70
-
71
- hr, .markdown-body hr
72
- border-top-color $line-color-dark
73
- transition border-top-color .2s ease-in-out
74
-
75
49
  .navbar .dropdown-collapse, .top-nav-collapse, .navbar-col-show
76
50
  if $navbar-glass-enable
77
51
  ground-glass($navbar-glass-px, $navbar-bg-color-dark, $navbar-glass-alpha)
78
52
 
79
- .note :not(pre) > code
80
- background-color rgba(27, 31, 35, .05)
81
-
82
- .modal-dialog .modal-content .modal-header
83
- border-bottom-color $line-color-dark
84
- transition border-bottom-color .2s ease-in-out
53
+ .license-box
54
+ background-color rgba(#3e4b5e, .35)
55
+ transition background-color .2s ease-in-out
85
56
 
86
57
  .gt-comment-admin .gt-comment-content
87
58
  background-color transparent
88
59
  transition background-color .2s ease-in-out
89
60
 
90
- @media (prefers-color-scheme: dark)
91
- :root
92
- --color-mode 'dark'
61
+ if (hexo-config("dark_mode.enable"))
62
+ @media (prefers-color-scheme: dark)
63
+ :root
64
+ --color-mode "dark"
93
65
 
94
- :root:not([data-user-color-scheme])
95
- dark-colors()
66
+ :root:not([data-user-color-scheme])
67
+ dark-colors()
96
68
 
97
- [data-user-color-scheme='dark']
98
- dark-colors()
69
+ [data-user-color-scheme="dark"]
70
+ dark-colors()
@@ -42,10 +42,10 @@
42
42
 
43
43
  .hover-with-bg
44
44
  display inline-block
45
- padding .45rem
45
+ line-height 1
46
46
 
47
47
  &:hover
48
48
  background-color var(--link-hover-bg-color)
49
49
  transition-duration .2s
50
50
  transition-timing-function ease-in-out
51
- border-radius .15rem
51
+ border-radius .2rem
@@ -0,0 +1,59 @@
1
+ .category-bar
2
+
3
+ .category-list
4
+ max-height 85vh
5
+ overflow-y auto
6
+ overflow-x hidden
7
+
8
+ &::-webkit-scrollbar
9
+ display none
10
+
11
+ & > .category-sub > a
12
+ font-weight bold
13
+ font-size 1.2rem
14
+
15
+ .category-item-action i
16
+ margin 0
17
+
18
+ .category-subitem
19
+ &.list-group-item
20
+ padding-left .5rem
21
+ padding-right 0
22
+
23
+ .category-collapse
24
+ .category-post-list
25
+ margin-top .25rem
26
+ margin-bottom .5rem
27
+
28
+ .category-post
29
+ font-size .9rem
30
+ line-height 1.75
31
+
32
+ .category-item-action:hover
33
+ background-color initial
34
+
35
+ .list-group-item
36
+ padding 0
37
+
38
+ &.active
39
+ color var(--link-hover-color)
40
+ background-color initial
41
+ font-weight bold
42
+ font-family "iconfont"
43
+ font-style normal
44
+ -webkit-font-smoothing antialiased
45
+
46
+ &::before
47
+ content "\e61f"
48
+ font-weight initial
49
+ position absolute
50
+ left -1.25rem
51
+
52
+ .list-group-count
53
+ margin-left .2rem
54
+ margin-right .2rem
55
+ font-size .9em
56
+
57
+ .list-group-item-action
58
+ &:focus, &:hover
59
+ background-color initial
@@ -0,0 +1,6 @@
1
+ .category-chains
2
+ display flex
3
+ flex-wrap wrap
4
+
5
+ & > *:not(:last-child)
6
+ margin-right 1em