hexo-theme-lnote 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. package/README.md +122 -122
  2. package/_config.yml +19 -19
  3. package/config/links.yml +63 -63
  4. package/config/svg.yml +33 -33
  5. package/index.d.ts +4 -0
  6. package/languages/de.yml +69 -69
  7. package/languages/en.yml +69 -69
  8. package/languages/eo.yml +69 -69
  9. package/languages/es.yml +69 -69
  10. package/languages/ja.yml +69 -69
  11. package/languages/ru.yml +69 -69
  12. package/languages/zh-CN.yml +69 -69
  13. package/languages/zh-HK.yml +69 -69
  14. package/languages/zh-TW.yml +69 -69
  15. package/layout/404.ejs +8 -8
  16. package/layout/_partials/archive-list.ejs +17 -17
  17. package/layout/_partials/category-chains.ejs +19 -19
  18. package/layout/_partials/category-list.ejs +62 -62
  19. package/layout/_partials/comments/changyan.ejs +11 -11
  20. package/layout/_partials/comments/cusdis.ejs +25 -25
  21. package/layout/_partials/comments/discuss.ejs +17 -17
  22. package/layout/_partials/comments/disqus.ejs +32 -32
  23. package/layout/_partials/comments/giscus.ejs +36 -36
  24. package/layout/_partials/comments/gitalk.ejs +19 -19
  25. package/layout/_partials/comments/livere.ejs +10 -10
  26. package/layout/_partials/comments/remark42.ejs +29 -29
  27. package/layout/_partials/comments/twikoo.ejs +25 -25
  28. package/layout/_partials/comments/utterances.ejs +27 -27
  29. package/layout/_partials/comments/valine.ejs +23 -23
  30. package/layout/_partials/comments/waline.ejs +24 -24
  31. package/layout/_partials/comments.ejs +8 -8
  32. package/layout/_partials/css.ejs +9 -9
  33. package/layout/_partials/footer/beian.ejs +33 -33
  34. package/layout/_partials/footer/statistics.ejs +39 -39
  35. package/layout/_partials/footer.ejs +7 -7
  36. package/layout/_partials/head.ejs +46 -46
  37. package/layout/_partials/header/banner.ejs +24 -24
  38. package/layout/_partials/header/navigation.ejs +56 -56
  39. package/layout/_partials/header.ejs +4 -4
  40. package/layout/_partials/markdown-plugins.ejs +24 -24
  41. package/layout/_partials/paginator.ejs +14 -14
  42. package/layout/_partials/plugins/CSR.ejs +4 -0
  43. package/layout/_partials/plugins/analytics.ejs +75 -75
  44. package/layout/_partials/plugins/anchorjs.ejs +39 -39
  45. package/layout/_partials/plugins/code-widget.ejs +7 -7
  46. package/layout/_partials/plugins/encrypt.ejs +18 -18
  47. package/layout/_partials/plugins/fancybox.ejs +11 -11
  48. package/layout/_partials/plugins/highlight.ejs +13 -13
  49. package/layout/_partials/plugins/math.ejs +51 -51
  50. package/layout/_partials/plugins/mermaid.ejs +4 -4
  51. package/layout/_partials/plugins/nprogress.ejs +7 -7
  52. package/layout/_partials/plugins/typed.ejs +20 -20
  53. package/layout/_partials/post/category-bar.ejs +18 -18
  54. package/layout/_partials/post/copyright.ejs +50 -50
  55. package/layout/_partials/post/css.ejs +3 -3
  56. package/layout/_partials/post/meta-bottom.ejs +16 -16
  57. package/layout/_partials/post/meta-top.ejs +27 -27
  58. package/layout/_partials/post/scripts.ejs +8 -7
  59. package/layout/_partials/post/sidebar-left.ejs +1 -1
  60. package/layout/_partials/post/sidebar-right.ejs +2 -2
  61. package/layout/_partials/post/toc.ejs +6 -6
  62. package/layout/_partials/scripts.ejs +10 -10
  63. package/layout/_partials/search.ejs +19 -19
  64. package/layout/about.ejs +22 -22
  65. package/layout/archive.ejs +10 -10
  66. package/layout/categories.ejs +20 -20
  67. package/layout/category.ejs +12 -12
  68. package/layout/index.ejs +61 -61
  69. package/layout/layout.ejs +60 -60
  70. package/layout/links.ejs +31 -31
  71. package/layout/page.ejs +15 -15
  72. package/layout/post.ejs +77 -77
  73. package/layout/tag.ejs +12 -12
  74. package/layout/tags.ejs +26 -26
  75. package/package.json +73 -70
  76. package/source/css/_functions/base.styl +8 -8
  77. package/source/css/_mixins/base.styl +23 -23
  78. package/source/css/_pages/_about/about.styl +32 -32
  79. package/source/css/_pages/_archive/archive.styl +32 -32
  80. package/source/css/_pages/_base/_widget/anchorjs.styl +8 -8
  81. package/source/css/_pages/_base/_widget/banner.styl +29 -29
  82. package/source/css/_pages/_base/_widget/board.styl +11 -11
  83. package/source/css/_pages/_base/_widget/code-widget.styl +37 -36
  84. package/source/css/_pages/_base/_widget/copyright.styl +91 -90
  85. package/source/css/_pages/_base/_widget/footer.styl +65 -65
  86. package/source/css/_pages/_base/_widget/footnote.styl +26 -25
  87. package/source/css/_pages/_base/_widget/header.styl +173 -173
  88. package/source/css/_pages/_base/_widget/modal.styl +100 -100
  89. package/source/css/_pages/_base/_widget/navlink.styl +15 -15
  90. package/source/css/_pages/_base/_widget/ngrogress.styl +12 -12
  91. package/source/css/_pages/_base/_widget/noscript.styl +13 -12
  92. package/source/css/_pages/_base/_widget/pagination.styl +23 -23
  93. package/source/css/_pages/_base/_widget/qrcode.styl +17 -17
  94. package/source/css/_pages/_base/_widget/scroll-btn.styl +48 -48
  95. package/source/css/_pages/_base/_widget/text.styl +20 -19
  96. package/source/css/_pages/_base/_widget/toc.styl +75 -75
  97. package/source/css/_pages/_base/base.styl +68 -68
  98. package/source/css/_pages/_base/color-schema.styl +75 -75
  99. package/source/css/_pages/_base/inline.styl +51 -51
  100. package/source/css/_pages/_base/keyframes.styl +31 -31
  101. package/source/css/_pages/_base/print.styl +39 -38
  102. package/source/css/_pages/_category/category-bar.styl +58 -58
  103. package/source/css/_pages/_category/category-chain.styl +6 -6
  104. package/source/css/_pages/_category/category-list.styl +62 -62
  105. package/source/css/_pages/_index/index.styl +75 -75
  106. package/source/css/_pages/_links/links.styl +80 -79
  107. package/source/css/_pages/_post/comment.styl +28 -27
  108. package/source/css/_pages/_post/highlight.styl +75 -75
  109. package/source/css/_pages/_post/markdown.styl +96 -96
  110. package/source/css/_pages/_post/post-page.styl +179 -179
  111. package/source/css/_pages/_post/post-plugin.styl +10 -0
  112. package/source/css/_pages/_post/post-tag.styl +43 -29
  113. package/source/css/_pages/_tag/tags.styl +9 -9
  114. package/source/css/_pages/pages.styl +8 -8
  115. package/source/css/_variables/base.styl +72 -72
  116. package/source/css/gitalk.css +546 -546
  117. package/source/css/main.styl +19 -19
  118. package/source/js/color-schema.js +279 -279
  119. package/source/js/events.js +72 -72
  120. package/source/js/img-lazyload.js +10 -10
  121. package/source/js/local-search.js +70 -70
  122. package/source/js/post/copying-code.js +34 -34
  123. package/source/js/post/enable.js +6 -6
  124. package/source/js/post/img-swipe-bf.js +47 -47
  125. package/source/js/post/img-swipe.js +81 -35
  126. package/source/js/post/mermaiding.js +9 -9
  127. package/source/js/post/play-imgs.js +58 -58
  128. package/source/js/post/toc.js +24 -24
  129. package/source/js/post/view-imgs.js +27 -27
  130. package/source/js/utils.js +245 -245
  131. package/source/xml/local-search.xml +45 -45
  132. package/templates/footer.ejs +12 -12
  133. package/templates/noun.vue +14 -17
  134. package/templates/utils/uri.ts +12 -0
  135. package/scripts/index.js +0 -1
  136. package/source/css/_pages/_tag/tag.styl +0 -9
@@ -1,23 +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)
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)
@@ -1,17 +1,17 @@
1
- .qr-trigger
2
- cursor pointer
3
- position relative
4
-
5
- &:hover .qr-img
6
- display block
7
- transition all .3s
8
-
9
- .qr-img
10
- max-width 12rem
11
- position absolute
12
- right -5.25rem
13
- z-index 99
14
- display none
15
- border-radius .2rem
16
- background-color transparent
17
- box-shadow 0 0 20px -5px hsla(0, 0%, 62%, .2)
1
+ /* .qr-trigger
2
+ cursor pointer
3
+ position relative
4
+
5
+ &:hover .qr-img
6
+ display block
7
+ transition all .3s
8
+
9
+ .qr-img
10
+ max-width 12rem
11
+ position absolute
12
+ right -5.25rem
13
+ z-index 99
14
+ display none
15
+ border-radius .2rem
16
+ background-color transparent
17
+ box-shadow 0 0 20px -5px hsla(0, 0%, 62%, .2) */
@@ -1,48 +1,48 @@
1
- .scroll-down-bar
2
- position absolute
3
- width 100%
4
- height 6rem
5
- text-align center
6
- cursor pointer
7
- bottom 0
8
-
9
- i.iconfont
10
- font-size 2rem
11
- font-weight bold
12
- display inline-block
13
- position relative
14
- padding-top 2rem
15
- color var(--subtitle-color)
16
- transform translateZ(0)
17
- animation scroll-down 1.5s infinite
18
-
19
- #scroll-top-button
20
- position fixed
21
- z-index 99
22
- background var(--bs-body-bg)
23
- transition background-color .2s ease-in-out, bottom .3s ease
24
- border-radius 4px
25
- min-width 40px
26
- min-height 40px
27
- bottom -60px
28
- outline none
29
- display flex
30
- display -webkit-flex
31
- align-items center
32
- box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
33
- bottom 1.5em
34
- right 1.5em
35
-
36
- i
37
- font-size 32px
38
- margin auto
39
- color var(--sec-text-color)
40
-
41
- &:hover i, &:active i
42
- animation-name scroll-top
43
- animation-duration 1s
44
- animation-delay .1s
45
- animation-timing-function ease-in-out
46
- animation-iteration-count infinite
47
- animation-fill-mode forwards
48
- animation-direction alternate
1
+ .scroll-down-bar
2
+ position absolute
3
+ width 100%
4
+ height 6rem
5
+ text-align center
6
+ cursor pointer
7
+ bottom 0
8
+
9
+ i.iconfont
10
+ font-size 2rem
11
+ font-weight bold
12
+ display inline-block
13
+ position relative
14
+ padding-top 2rem
15
+ color var(--subtitle-color)
16
+ transform translateZ(0)
17
+ animation scroll-down 1.5s infinite
18
+
19
+ #scroll-top-button
20
+ position fixed
21
+ z-index 99
22
+ background var(--bs-body-bg)
23
+ transition background-color .2s ease-in-out, bottom .3s ease
24
+ border-radius 4px
25
+ min-width 40px
26
+ min-height 40px
27
+ bottom -60px
28
+ outline none
29
+ display flex
30
+ display -webkit-flex
31
+ align-items center
32
+ box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
33
+ bottom 1.5em
34
+ right 1.5em
35
+
36
+ i
37
+ font-size 32px
38
+ margin auto
39
+ color var(--sec-text-color)
40
+
41
+ &:hover i, &:active i
42
+ animation-name scroll-top
43
+ animation-duration 1s
44
+ animation-delay .1s
45
+ animation-timing-function ease-in-out
46
+ animation-iteration-count infinite
47
+ animation-fill-mode forwards
48
+ animation-direction alternate
@@ -1,19 +1,20 @@
1
- .text-primary,
2
- .primary-text
3
- color: var(--bs-primary-text-emphasis)!important
4
-
5
- .text-info,
6
- .info-text
7
- color: var(--bs-info-text-emphasis)!important
8
-
9
- .text-success,
10
- .success-text
11
- color: var(--bs-success-text-emphasis)!important
12
-
13
- .text-warning,
14
- .warning-text
15
- color: var(--bs-warning-text-emphasis)!important
16
-
17
- .text-danger,
18
- .danger-text
19
- color: var(--bs-danger-text-emphasis)!important
1
+ /* .text-primary,
2
+ .primary-text
3
+ color: var(--bs-primary-text-emphasis)!important
4
+
5
+ .text-info,
6
+ .info-text
7
+ color: var(--bs-info-text-emphasis)!important
8
+
9
+ .text-success,
10
+ .success-text
11
+ color: var(--bs-success-text-emphasis)!important
12
+
13
+ .text-warning,
14
+ .warning-text
15
+ color: var(--bs-warning-text-emphasis)!important
16
+
17
+ .text-danger,
18
+ .danger-text
19
+ color: var(--bs-danger-text-emphasis)!important
20
+ */
@@ -1,75 +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
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
@@ -1,68 +1,68 @@
1
- @import "_widget/*"
2
-
3
- html
4
- font-size $font-size
5
- letter-spacing $letter-spacing
6
-
7
- html, body
8
- height 100%
9
- font-family $font-family
10
- overflow-wrap break-word
11
-
12
- body
13
- transition color .2s ease-in-out, background-color .2s ease-in-out
14
- background-color var(--body-bg-color)
15
- // color var(--text-color)
16
- -webkit-font-smoothing antialiased
17
- -moz-osx-font-smoothing grayscale
18
-
19
- a
20
- color var(--text-color)
21
- text-decoration none
22
- cursor pointer
23
- transition color .2s ease-in-out, background-color .2s ease-in-out
24
-
25
- &:hover
26
- color var(--link-hover-color)
27
- text-decoration none
28
- transition color .2s ease-in-out, background-color .2s ease-in-out
29
-
30
- code
31
- color inherit
32
-
33
- table
34
- font-size inherit
35
- color var(--post-text-color)
36
-
37
- img[lazyload]
38
- object-fit cover
39
-
40
- *[align="left"]
41
- text-align left
42
-
43
- *[align="center"]
44
- text-align center
45
-
46
- *[align="right"]
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
+ @import "_widget/*"
2
+
3
+ html
4
+ font-size $font-size
5
+ letter-spacing $letter-spacing
6
+
7
+ html, body
8
+ height 100%
9
+ font-family $font-family
10
+ overflow-wrap break-word
11
+
12
+ body
13
+ transition color .2s ease-in-out, background-color .2s ease-in-out
14
+ background-color var(--body-bg-color)
15
+ // color var(--text-color)
16
+ -webkit-font-smoothing antialiased
17
+ -moz-osx-font-smoothing grayscale
18
+
19
+ a
20
+ color var(--text-color)
21
+ text-decoration none
22
+ cursor pointer
23
+ transition color .2s ease-in-out, background-color .2s ease-in-out
24
+
25
+ &:hover
26
+ color var(--link-hover-color)
27
+ text-decoration none
28
+ transition color .2s ease-in-out, background-color .2s ease-in-out
29
+
30
+ code
31
+ color inherit
32
+
33
+ table
34
+ font-size inherit
35
+ color var(--post-text-color)
36
+
37
+ img[lazyload]
38
+ object-fit cover
39
+
40
+ *[align="left"]
41
+ text-align left
42
+
43
+ *[align="center"]
44
+ text-align center
45
+
46
+ *[align="right"]
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,75 +1,75 @@
1
- :root
2
- // --color-mode "light"
3
- --body-bg-color $body-bg-color
4
- --board-bg-color #fff
5
- --text-color $text-color
6
- --sec-text-color $sec-text-color
7
- --post-text-color $post-text-color
8
- --post-heading-color $post-heading-color
9
- --post-link-color $post-link-color
10
- --link-hover-color $link-hover-color
11
- --link-hover-bg-color $link-hover-bg-color
12
- --line-color $line-color
13
- --navbar-bg-color $navbar-bg-color
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
22
- --code-mac-top-bg #f2f2f2
23
- --code-mac-body-bg #fff
24
-
25
- dark-colors()
26
- --body-bg-color $body-bg-color-dark
27
- --board-bg-color #212529
28
- --text-color $text-color-dark
29
- --sec-text-color $sec-text-color-dark
30
- --post-text-color $post-text-color-dark
31
- --post-heading-color $post-heading-color-dark
32
- --post-link-color $post-link-color-dark
33
- --link-hover-color $link-hover-color-dark
34
- --link-hover-bg-color $link-hover-bg-color-dark
35
- --line-color $line-color-dark
36
- --navbar-bg-color $navbar-bg-color-dark
37
- --navbar-text-color $navbar-text-color-dark
38
- --subtitle-color $subtitle-color-dark
39
- --scrollbar-color $scrollbar-color-dark
40
- --scrollbar-hover-color $scrollbar-hover-color-dark
41
- --button-bg-color $button-bg-color-dark
42
- --button-hover-bg-color $button-hover-bg-color-dark
43
- --highlight-bg-color $highlight-bg-color-dark
44
- --inlinecode-bg-color $inlinecode-bg-color-dark
45
- --code-mac-top-bg #181818
46
- --code-mac-body-bg #000
47
-
48
- .navbar .dropdown-collapse, .top-nav-collapse, .navbar-col-show
49
- if $navbar-glass-enable
50
- ground-glass($navbar-glass-px, $navbar-bg-color-dark, $navbar-glass-alpha)
51
-
52
- .license-box
53
- background-color rgba(#3e4b5e, .35)
54
- transition background-color .2s ease-in-out
55
-
56
- .gt-comment-admin .gt-comment-content
57
- background-color transparent
58
- transition background-color .2s ease-in-out
59
-
60
-
61
- @media (prefers-color-scheme: dark)
62
- :root[data-bs-theme=dark]
63
- dark-colors()
64
- // --color-mode "dark"
65
-
66
- /* :root([data-bs-theme="dark"])
67
- dark-colors() */
68
-
69
- /* @media not print
70
- [data-bs-theme="dark"]
71
- dark-colors()
72
-
73
- @media print
74
- :root
75
- --color-mode "light" */
1
+ :root
2
+ // --color-mode "light"
3
+ --body-bg-color $body-bg-color
4
+ --board-bg-color #fff
5
+ --text-color $text-color
6
+ --sec-text-color $sec-text-color
7
+ --post-text-color $post-text-color
8
+ --post-heading-color $post-heading-color
9
+ --post-link-color $post-link-color
10
+ --link-hover-color $link-hover-color
11
+ --link-hover-bg-color $link-hover-bg-color
12
+ --line-color $line-color
13
+ --navbar-bg-color $navbar-bg-color
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
22
+ --code-mac-top-bg #f2f2f2
23
+ --code-mac-body-bg #fff
24
+
25
+ dark-colors()
26
+ --body-bg-color $body-bg-color-dark
27
+ --board-bg-color #212529
28
+ --text-color $text-color-dark
29
+ --sec-text-color $sec-text-color-dark
30
+ --post-text-color $post-text-color-dark
31
+ --post-heading-color $post-heading-color-dark
32
+ --post-link-color $post-link-color-dark
33
+ --link-hover-color $link-hover-color-dark
34
+ --link-hover-bg-color $link-hover-bg-color-dark
35
+ --line-color $line-color-dark
36
+ --navbar-bg-color $navbar-bg-color-dark
37
+ --navbar-text-color $navbar-text-color-dark
38
+ --subtitle-color $subtitle-color-dark
39
+ --scrollbar-color $scrollbar-color-dark
40
+ --scrollbar-hover-color $scrollbar-hover-color-dark
41
+ --button-bg-color $button-bg-color-dark
42
+ --button-hover-bg-color $button-hover-bg-color-dark
43
+ --highlight-bg-color $highlight-bg-color-dark
44
+ --inlinecode-bg-color $inlinecode-bg-color-dark
45
+ --code-mac-top-bg #181818
46
+ --code-mac-body-bg #000
47
+
48
+ .navbar .dropdown-collapse, .top-nav-collapse, .navbar-col-show
49
+ if $navbar-glass-enable
50
+ ground-glass($navbar-glass-px, $navbar-bg-color-dark, $navbar-glass-alpha)
51
+
52
+ .license-box
53
+ background-color rgba(#3e4b5e, .35)
54
+ transition background-color .2s ease-in-out
55
+
56
+ .gt-comment-admin .gt-comment-content
57
+ background-color transparent
58
+ transition background-color .2s ease-in-out
59
+
60
+
61
+ @media (prefers-color-scheme: dark)
62
+ :root[data-bs-theme=dark]
63
+ dark-colors()
64
+ // --color-mode "dark"
65
+
66
+ /* :root([data-bs-theme="dark"])
67
+ dark-colors() */
68
+
69
+ /* @media not print
70
+ [data-bs-theme="dark"]
71
+ dark-colors()
72
+
73
+ @media print
74
+ :root
75
+ --color-mode "light" */