hexo-theme-lnote 1.2.5 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/README.md +36 -123
  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 +3 -3
  6. package/languages/de.yml +69 -69
  7. package/languages/en.yml +73 -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 +73 -69
  13. package/languages/zh-HK.yml +73 -69
  14. package/languages/zh-TW.yml +73 -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 -4
  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 -8
  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 -73
  76. package/scripts/index.js +1 -0
  77. package/source/css/_functions/base.styl +8 -8
  78. package/source/css/_mixins/base.styl +23 -23
  79. package/source/css/_pages/_about/about.styl +32 -32
  80. package/source/css/_pages/_archive/archive.styl +32 -32
  81. package/source/css/_pages/_base/_widget/anchorjs.styl +8 -8
  82. package/source/css/_pages/_base/_widget/banner.styl +29 -29
  83. package/source/css/_pages/_base/_widget/board.styl +11 -11
  84. package/source/css/_pages/_base/_widget/code-widget.styl +36 -36
  85. package/source/css/_pages/_base/_widget/copyright.styl +90 -90
  86. package/source/css/_pages/_base/_widget/footer.styl +65 -65
  87. package/source/css/_pages/_base/_widget/footnote.styl +25 -25
  88. package/source/css/_pages/_base/_widget/header.styl +173 -173
  89. package/source/css/_pages/_base/_widget/modal.styl +100 -100
  90. package/source/css/_pages/_base/_widget/navlink.styl +15 -15
  91. package/source/css/_pages/_base/_widget/ngrogress.styl +12 -12
  92. package/source/css/_pages/_base/_widget/noscript.styl +12 -12
  93. package/source/css/_pages/_base/_widget/pagination.styl +23 -23
  94. package/source/css/_pages/_base/_widget/qrcode.styl +17 -17
  95. package/source/css/_pages/_base/_widget/scroll-btn.styl +48 -48
  96. package/source/css/_pages/_base/_widget/text.styl +19 -19
  97. package/source/css/_pages/_base/_widget/toc.styl +75 -75
  98. package/source/css/_pages/_base/base.styl +67 -68
  99. package/source/css/_pages/_base/color-schema.styl +79 -75
  100. package/source/css/_pages/_base/inline.styl +51 -51
  101. package/source/css/_pages/_base/keyframes.styl +31 -31
  102. package/source/css/_pages/_base/print.styl +38 -38
  103. package/source/css/_pages/_category/category-bar.styl +58 -58
  104. package/source/css/_pages/_category/category-chain.styl +6 -6
  105. package/source/css/_pages/_category/category-list.styl +62 -62
  106. package/source/css/_pages/_index/index.styl +75 -75
  107. package/source/css/_pages/_links/links.styl +79 -79
  108. package/source/css/_pages/_post/comment.styl +27 -27
  109. package/source/css/_pages/_post/highlight.styl +76 -75
  110. package/source/css/_pages/_post/markdown.styl +96 -96
  111. package/source/css/_pages/_post/post-page.styl +179 -179
  112. package/source/css/_pages/_post/post-plugin.styl +9 -9
  113. package/source/css/_pages/_post/post-tag.styl +75 -43
  114. package/source/css/_pages/_tag/tags.styl +9 -9
  115. package/source/css/_pages/pages.styl +8 -8
  116. package/source/css/_variables/base.styl +72 -72
  117. package/source/css/gitalk.css +546 -546
  118. package/source/css/main.styl +19 -19
  119. package/source/img/chat/responder.jpg +0 -0
  120. package/source/img/chat/sender.jpg +0 -0
  121. package/source/img/default8.jpg +0 -0
  122. package/source/js/color-schema.js +279 -279
  123. package/source/js/events.js +72 -72
  124. package/source/js/img-lazyload.js +10 -10
  125. package/source/js/local-search.js +70 -70
  126. package/source/js/post/copying-code.js +34 -34
  127. package/source/js/post/enable.js +6 -6
  128. package/source/js/post/img-swipe-bf.js +47 -47
  129. package/source/js/post/img-swipe.js +83 -80
  130. package/source/js/post/mermaiding.js +9 -9
  131. package/source/js/post/play-imgs.js +58 -58
  132. package/source/js/post/toc.js +24 -24
  133. package/source/js/post/view-imgs.js +27 -27
  134. package/source/js/utils.js +245 -245
  135. package/source/xml/local-search.xml +45 -45
  136. package/templates/Chat.vue +52 -0
  137. package/templates/GroupImage.vue +36 -0
  138. package/templates/MenuNav.vue +39 -0
  139. package/templates/Note.vue +33 -0
  140. package/templates/Noun.vue +25 -0
  141. package/templates/NounContent.vue +29 -0
  142. package/templates/Tab.vue +40 -0
  143. package/templates/footer.ejs +12 -12
  144. package/templates/utils/uri.ts +39 -11
  145. package/templates/noun.vue +0 -15
@@ -1,80 +1,80 @@
1
- /* .links
2
- .card
3
- box-shadow none
4
- min-width 33%
5
- background-color transparent
6
- border 0
7
-
8
- .card-body
9
- margin 1rem 0
10
- padding 1rem
11
- border-radius .3rem
12
- display block
13
- width 100%
14
- height 100%
15
-
16
- &:hover
17
- .link-avatar
18
- transform scale(1.1)
19
-
20
- .card-content
21
- display flex
22
- flex-wrap nowrap
23
- width 100%
24
- height 3.5rem
25
-
26
- .link-avatar
27
- flex none
28
- width 3rem
29
- height 3rem
30
- margin-right .75rem
31
- object-fit cover
32
- transition-duration .2s
33
- transition-timing-function ease-in-out
34
-
35
- img
36
- width 100%
37
- height 100%
38
- border-radius 50%
39
- background-color transparent
40
- object-fit cover
41
-
42
- .link-text
43
- flex 1
44
- display grid
45
- flex-direction column
46
- line-height 1.5
47
-
48
- .link-title
49
- overflow hidden
50
- text-overflow ellipsis
51
- white-space nowrap
52
- color var(--text-color)
53
- font-weight bold
54
-
55
- .link-intro
56
- max-height 2rem
57
- font-size 0.85rem
58
- line-height 1.2
59
- color var(--sec-text-color)
60
- display -webkit-box
61
- -webkit-box-orient vertical
62
- -webkit-line-clamp 2
63
- text-overflow ellipsis
64
- overflow hidden
65
-
66
- @media (max-width 767px)
67
- .links
68
- display flex
69
- flex-direction column
70
- justify-content center
71
- align-items center
72
-
73
- .card
74
- padding-left 2rem
75
- padding-right 2rem
76
-
77
- @media (min-width 768px)
78
- .link-text:only-child
79
- margin-left 1rem
1
+ /* .links
2
+ .card
3
+ box-shadow none
4
+ min-width 33%
5
+ background-color transparent
6
+ border 0
7
+
8
+ .card-body
9
+ margin 1rem 0
10
+ padding 1rem
11
+ border-radius .3rem
12
+ display block
13
+ width 100%
14
+ height 100%
15
+
16
+ &:hover
17
+ .link-avatar
18
+ transform scale(1.1)
19
+
20
+ .card-content
21
+ display flex
22
+ flex-wrap nowrap
23
+ width 100%
24
+ height 3.5rem
25
+
26
+ .link-avatar
27
+ flex none
28
+ width 3rem
29
+ height 3rem
30
+ margin-right .75rem
31
+ object-fit cover
32
+ transition-duration .2s
33
+ transition-timing-function ease-in-out
34
+
35
+ img
36
+ width 100%
37
+ height 100%
38
+ border-radius 50%
39
+ background-color transparent
40
+ object-fit cover
41
+
42
+ .link-text
43
+ flex 1
44
+ display grid
45
+ flex-direction column
46
+ line-height 1.5
47
+
48
+ .link-title
49
+ overflow hidden
50
+ text-overflow ellipsis
51
+ white-space nowrap
52
+ color var(--text-color)
53
+ font-weight bold
54
+
55
+ .link-intro
56
+ max-height 2rem
57
+ font-size 0.85rem
58
+ line-height 1.2
59
+ color var(--sec-text-color)
60
+ display -webkit-box
61
+ -webkit-box-orient vertical
62
+ -webkit-line-clamp 2
63
+ text-overflow ellipsis
64
+ overflow hidden
65
+
66
+ @media (max-width 767px)
67
+ .links
68
+ display flex
69
+ flex-direction column
70
+ justify-content center
71
+ align-items center
72
+
73
+ .card
74
+ padding-left 2rem
75
+ padding-right 2rem
76
+
77
+ @media (min-width 768px)
78
+ .link-text:only-child
79
+ margin-left 1rem
80
80
  */
@@ -1,28 +1,28 @@
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
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
28
28
  */
@@ -1,75 +1,76 @@
1
- .markdown-body
2
- .highlight pre, pre
3
- padding 1.45rem 1rem
4
-
5
- pre code.hljs
6
- padding 0
7
-
8
- .highlight
9
- position relative
10
- border-radius 8px
11
- padding-top: 28px
12
- background-color: var(--code-mac-top-bg)
13
- &::before
14
- background: #fc625d
15
- border-radius: 50%
16
- box-shadow: 1.2em 0 #fdbc40, 2.4em 0 #35cd4b
17
- content: ' '
18
- height: 0.8em
19
- width: 0.8em
20
- left: 0.8em
21
- margin-top: -1.2em
22
- position: absolute
23
- .btn-clipboard
24
- position: absolute
25
- top: 0.3em
26
- right: 0.5em
27
- cursor: pointer
28
- z-index: 2
29
- border: 0
30
- background-color: transparent
31
- padding: 0
32
- line-height: 1
33
- table
34
- background-color: var(--code-mac-body-bg)
35
- table-layout: fixed
36
- width: 100%
37
-
38
- figure
39
- margin 1rem 0
40
-
41
- figure.highlight
42
- position relative
43
-
44
- table
45
- border 0
46
- margin 0
47
- width auto
48
- border-radius 4px
49
-
50
- td
51
- border 0
52
- padding 0
53
-
54
- tr
55
- border 0
56
-
57
- td.code
58
- width 100%
59
-
60
- td.gutter
61
- display table-cell
62
- width: 3em
63
-
64
- pre
65
- text-align right
66
- padding 0 .75rem
67
- border-radius initial
68
- border-right 1px solid #999
69
-
70
- span.line
71
- color #999
72
-
73
- td.code > pre
74
- border-top-left-radius 0
75
- border-bottom-left-radius 0
1
+ .markdown-body
2
+ .highlight pre, pre
3
+ padding 1.45rem 1rem
4
+
5
+ pre code.hljs
6
+ padding 0
7
+
8
+ .highlight
9
+ position relative
10
+ border-radius 0.5rem
11
+ padding-top: 1.75rem
12
+ margin-top: 1rem
13
+ background-color: var(--code-mac-top-bg)
14
+ &::before
15
+ background: #fc625d
16
+ border-radius: 50%
17
+ box-shadow: 1.2em 0 #fdbc40, 2.4em 0 #35cd4b
18
+ content: ' '
19
+ height: 0.8em
20
+ width: 0.8em
21
+ left: 0.8em
22
+ margin-top: -1.2em
23
+ position: absolute
24
+ .btn-clipboard
25
+ position: absolute
26
+ top: 0.3em
27
+ right: 0.5em
28
+ cursor: pointer
29
+ z-index: 2
30
+ border: 0
31
+ background-color: transparent
32
+ padding: 0
33
+ line-height: 1
34
+ table
35
+ background-color: var(--code-mac-body-bg)
36
+ table-layout: fixed
37
+ width: 100%
38
+
39
+ /* figure
40
+ margin 1rem 0 */
41
+
42
+ figure.highlight
43
+ position relative
44
+
45
+ table
46
+ border 0
47
+ margin 0
48
+ width auto
49
+ border-radius 4px
50
+
51
+ td
52
+ border 0
53
+ padding 0
54
+
55
+ tr
56
+ border 0
57
+
58
+ td.code
59
+ width 100%
60
+
61
+ td.gutter
62
+ display table-cell
63
+ width: 3em
64
+
65
+ pre
66
+ text-align right
67
+ padding 0 .75rem
68
+ border-radius initial
69
+ border-right 1px solid #999
70
+
71
+ span.line
72
+ color #999
73
+
74
+ td.code > pre
75
+ border-top-left-radius 0
76
+ border-bottom-left-radius 0
@@ -1,96 +1,96 @@
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: 1px solid var(--line-color)
11
- margin-bottom: 0.75em
12
- margin-top: 2em
13
- padding-bottom: 1rem
14
-
15
- & > h3
16
- margin-top: 1.2em
17
- margin-bottom: 0.4em
18
-
19
- & > h1, > h2, > h3, > h4, > h5, > h6
20
- color var(--post-heading-color)
21
- transition color .2s ease-in-out, border-bottom-color 0.2s ease-in-out
22
- font-weight bold
23
-
24
- &:focus
25
- outline none
26
-
27
- a
28
- color var(--bs-link-color);
29
-
30
- strong
31
- font-weight bold
32
-
33
- /* code
34
- tab-size 4
35
- background-color var(--inlinecode-bg-color)
36
- transition background-color .2s ease-in-out */
37
-
38
- /* table
39
- tr
40
- background-color var(--board-bg-color)
41
- transition background-color .2s ease-in-out
42
- tr:nth-child(2n)
43
- background-color var(--board-bg-color)
44
- transition background-color .2s ease-in-out
45
- th, td
46
- border-color var(--line-color)
47
- transition border-color .2s ease-in-out */
48
-
49
- pre
50
- font-size $code-font-size !important
51
-
52
- .mermaid
53
- text-align center
54
-
55
- & > svg
56
- min-width 100%
57
-
58
- /* p > img, p > a > img, figure > img, figure > a > img
59
- max-width 90%
60
- margin 1.5rem autoss
61
- display block
62
- box-shadow $img-shadow
63
- border-radius 4px
64
- background-color transparent */
65
-
66
- blockquote
67
- color var(--sec-text-color)
68
-
69
- details
70
- cursor pointer
71
-
72
- summary
73
- outline none
74
-
75
- // Rewrite hr
76
- hr, .markdown-body hr
77
- background-color initial
78
- border-top 1px solid var(--line-color)
79
- transition border-top-color .2s ease-in-out
80
-
81
- .markdown-body hr
82
- height 0
83
- margin 2rem 0
84
-
85
- // Rewrite figcaption
86
- .markdown-body
87
- figcaption.image-caption
88
- font-size .8rem
89
- color var(--post-text-color)
90
- opacity 0.65
91
- line-height 1
92
- margin -0.75rem auto 2rem
93
- text-align center
94
-
95
- figcaption:not(.image-caption)
96
- display none
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: 1px solid var(--line-color)
11
+ margin-bottom: 0.75em
12
+ margin-top: 2em
13
+ padding-bottom: 1rem
14
+
15
+ & > h3
16
+ margin-top: 1.2em
17
+ margin-bottom: 0.4em
18
+
19
+ & > h1, > h2, > h3, > h4, > h5, > h6
20
+ color var(--post-heading-color)
21
+ transition color .2s ease-in-out, border-bottom-color 0.2s ease-in-out
22
+ font-weight bold
23
+
24
+ &:focus
25
+ outline none
26
+
27
+ /* a
28
+ color var(--bs-link-color); */
29
+
30
+ strong
31
+ font-weight bold
32
+
33
+ /* code
34
+ tab-size 4
35
+ background-color var(--inlinecode-bg-color)
36
+ transition background-color .2s ease-in-out */
37
+
38
+ /* table
39
+ tr
40
+ background-color var(--board-bg-color)
41
+ transition background-color .2s ease-in-out
42
+ tr:nth-child(2n)
43
+ background-color var(--board-bg-color)
44
+ transition background-color .2s ease-in-out
45
+ th, td
46
+ border-color var(--line-color)
47
+ transition border-color .2s ease-in-out */
48
+
49
+ pre
50
+ font-size $code-font-size !important
51
+
52
+ .mermaid
53
+ text-align center
54
+
55
+ & > svg
56
+ min-width 100%
57
+
58
+ /* p > img, p > a > img, figure > img, figure > a > img
59
+ max-width 90%
60
+ margin 1.5rem autoss
61
+ display block
62
+ box-shadow $img-shadow
63
+ border-radius 4px
64
+ background-color transparent */
65
+
66
+ blockquote
67
+ color var(--sec-text-color)
68
+
69
+ details
70
+ cursor pointer
71
+
72
+ summary
73
+ outline none
74
+
75
+ // Rewrite hr
76
+ hr, .markdown-body hr
77
+ background-color initial
78
+ border-top 1px solid var(--line-color)
79
+ transition border-top-color .2s ease-in-out
80
+
81
+ .markdown-body hr
82
+ height 0
83
+ margin 2rem 0
84
+
85
+ // Rewrite figcaption
86
+ /* .markdown-body
87
+ figcaption.image-caption
88
+ font-size .8rem
89
+ color var(--post-text-color)
90
+ opacity 0.65
91
+ line-height 1
92
+ margin -0.75rem auto 2rem
93
+ text-align center
94
+
95
+ figcaption:not(.image-caption)
96
+ display none */