hexo-theme-solitude 1.2.6 → 1.3.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 (263) hide show
  1. package/CONTRIBUTING.md +41 -0
  2. package/README.md +8 -8
  3. package/README_EN.md +6 -6
  4. package/_config.yml +502 -297
  5. package/languages/en-US.yml +105 -8
  6. package/languages/zh-CN.yml +98 -1
  7. package/layout/archive.pug +4 -5
  8. package/layout/category.pug +4 -5
  9. package/layout/includes/body/mode.pug +40 -0
  10. package/layout/includes/console.pug +15 -16
  11. package/layout/includes/footer.pug +26 -28
  12. package/layout/includes/head/config.pug +27 -8
  13. package/layout/includes/head/fest.pug +22 -0
  14. package/layout/includes/head/opengraph.pug +11 -0
  15. package/layout/includes/head.pug +1 -3
  16. package/layout/includes/header.pug +1 -1
  17. package/layout/includes/inject/body.pug +36 -13
  18. package/layout/includes/inject/head.pug +30 -20
  19. package/layout/includes/layout.pug +12 -8
  20. package/layout/includes/loading.pug +1 -64
  21. package/layout/includes/mixins/articleSort.pug +4 -4
  22. package/layout/includes/mixins/pagination.pug +1 -1
  23. package/layout/includes/nav.pug +10 -10
  24. package/layout/includes/page/about.pug +1 -0
  25. package/layout/includes/page/categories.pug +3 -3
  26. package/layout/includes/page/default.pug +1 -1
  27. package/layout/includes/page/echarts.pug +3 -3
  28. package/layout/includes/page/equipment.pug +0 -1
  29. package/layout/includes/page/links.pug +5 -26
  30. package/layout/includes/page/moments.pug +0 -1
  31. package/layout/includes/page/music.pug +19 -0
  32. package/layout/includes/page/not_configured.pug +18 -0
  33. package/layout/includes/page/rss.pug +20 -22
  34. package/layout/includes/page/says.pug +1 -2
  35. package/layout/includes/page/tags.pug +3 -3
  36. package/layout/includes/page/tlink.pug +0 -1
  37. package/layout/includes/sidebar.pug +7 -7
  38. package/layout/includes/widgets/aside/aside.pug +13 -1
  39. package/layout/includes/widgets/aside/asideArchive.pug +5 -3
  40. package/layout/includes/widgets/aside/asideCustom.pug +6 -0
  41. package/layout/includes/widgets/aside/asideHistory.pug +3 -3
  42. package/layout/includes/widgets/aside/asideInfoCard.pug +4 -6
  43. package/layout/includes/widgets/aside/asideNewestPost.pug +1 -1
  44. package/layout/includes/widgets/aside/asideSwitch.pug +0 -11
  45. package/layout/includes/widgets/aside/asideTag.pug +2 -2
  46. package/layout/includes/widgets/aside/asideToc.pug +1 -1
  47. package/layout/includes/widgets/aside/asideWebInfo.pug +6 -6
  48. package/layout/includes/widgets/aside/asideWelcome.pug +1 -1
  49. package/layout/includes/widgets/home/banner.pug +2 -2
  50. package/layout/includes/widgets/home/bbTimeList.pug +3 -3
  51. package/layout/includes/widgets/home/categoryBar.pug +3 -3
  52. package/layout/includes/widgets/home/categoryGroup.pug +2 -2
  53. package/layout/includes/widgets/home/hometop.pug +7 -7
  54. package/layout/includes/widgets/home/postList.pug +12 -8
  55. package/layout/includes/widgets/home/topGroup.pug +17 -13
  56. package/layout/includes/widgets/nav/left.pug +6 -6
  57. package/layout/includes/widgets/nav/menu.pug +4 -4
  58. package/layout/includes/widgets/nav/right.pug +14 -14
  59. package/layout/includes/widgets/page/about/authorinfo.pug +1 -1
  60. package/layout/includes/widgets/page/about/award.pug +11 -9
  61. package/layout/includes/widgets/page/about/contentinfo.pug +7 -7
  62. package/layout/includes/widgets/page/about/hobbies.pug +1 -1
  63. package/layout/includes/widgets/page/about/motto.pug +2 -2
  64. package/layout/includes/widgets/page/about/other.pug +10 -9
  65. package/layout/includes/widgets/page/about/personalities.pug +2 -2
  66. package/layout/includes/widgets/page/about/skillsinfo.pug +10 -12
  67. package/layout/includes/widgets/page/about/tenyear.pug +48 -0
  68. package/layout/includes/widgets/page/banner.pug +2 -2
  69. package/layout/includes/widgets/page/links/banner.pug +12 -14
  70. package/layout/includes/widgets/page/links/linksItem.pug +0 -1
  71. package/layout/includes/widgets/page/moments/angle.pug +7 -12
  72. package/layout/includes/widgets/page/moments/index.pug +7 -2
  73. package/layout/includes/widgets/post/award.pug +12 -8
  74. package/layout/includes/widgets/post/copyright.pug +16 -14
  75. package/layout/includes/widgets/post/postMeta.pug +36 -25
  76. package/layout/includes/widgets/post/postNav.pug +15 -15
  77. package/layout/includes/widgets/randomlink.pug +10 -5
  78. package/layout/includes/widgets/rightside/index.pug +9 -8
  79. package/layout/includes/widgets/third-party/ai/index.pug +12 -0
  80. package/layout/includes/widgets/third-party/comments/comment.pug +6 -1
  81. package/layout/includes/widgets/third-party/comments/twikoo.pug +5 -4
  82. package/layout/includes/widgets/third-party/comments/waline.pug +4 -5
  83. package/layout/includes/widgets/third-party/music.pug +1 -1
  84. package/layout/includes/widgets/third-party/pjax.pug +6 -1
  85. package/layout/includes/widgets/third-party/search/algolia-search.pug +4 -3
  86. package/layout/includes/widgets/third-party/search/index.pug +2 -2
  87. package/layout/includes/widgets/third-party/search/local-search.pug +3 -3
  88. package/layout/index.pug +5 -6
  89. package/layout/page.pug +34 -29
  90. package/layout/post.pug +3 -23
  91. package/layout/tag.pug +3 -3
  92. package/package.json +2 -2
  93. package/scripts/filter/checkThemeConfig.js +0 -5
  94. package/scripts/helper/cdn.js +12 -0
  95. package/scripts/helper/page.js +13 -0
  96. package/scripts/helper/related_post.js +0 -1
  97. package/scripts/tags/button.js +21 -0
  98. package/scripts/tags/card.js +9 -0
  99. package/scripts/tags/checkbox.js +51 -0
  100. package/scripts/tags/fold.js +0 -5
  101. package/scripts/tags/image.js +75 -0
  102. package/scripts/tags/inline-image.js +12 -0
  103. package/scripts/tags/label.js +10 -0
  104. package/scripts/tags/link.js +2 -0
  105. package/scripts/tags/media.js +29 -0
  106. package/scripts/tags/span.js +17 -0
  107. package/scripts/tags/timeline.js +2 -15
  108. package/scripts/tags/u.js +7 -0
  109. package/source/css/_global/animation.css +57 -0
  110. package/source/css/_global/index.styl +5 -20
  111. package/source/css/_global/var.styl +16 -1
  112. package/source/css/_layout/{base.styl → basic.styl} +24 -116
  113. package/source/css/_layout/header.styl +204 -616
  114. package/source/css/_layout/index.styl +29 -271
  115. package/source/css/_mode/index.styl +102 -93
  116. package/source/css/_page/_home/category-bar.styl +74 -0
  117. package/source/css/_page/_home/home-top.styl +541 -0
  118. package/source/css/_page/_home/index.styl +15 -0
  119. package/source/css/_page/_home/pagination.styl +176 -0
  120. package/source/css/_page/_home/recent-post.styl +204 -0
  121. package/source/css/_page/about/index.styl +1 -0
  122. package/source/css/_page/about/tenyear.styl +56 -0
  123. package/source/css/_page/about.styl +555 -626
  124. package/source/css/_page/category.styl +95 -119
  125. package/source/css/_page/douban.styl +126 -0
  126. package/source/css/_page/equipment.styl +100 -99
  127. package/source/css/_page/error.styl +130 -146
  128. package/source/css/_page/home.styl +41 -50
  129. package/source/css/_page/index.styl +42 -10
  130. package/source/css/_page/links.styl +306 -0
  131. package/source/css/_page/moment.styl +51 -51
  132. package/source/css/_page/music.styl +506 -0
  133. package/source/css/_page/rss.styl +62 -67
  134. package/source/css/_page/says.styl +375 -344
  135. package/source/css/_page/tag.styl +15 -13
  136. package/source/css/_widgets/{aside → _aside}/flip.styl +7 -5
  137. package/source/css/_widgets/{aside → _aside}/history.styl +9 -2
  138. package/source/css/_widgets/_aside/index.styl +96 -0
  139. package/source/css/_widgets/{aside → _aside}/info.styl +86 -89
  140. package/source/css/_widgets/{aside → _aside}/newPost.styl +7 -1
  141. package/source/css/_widgets/{aside → _aside}/toc.styl +28 -5
  142. package/source/css/_widgets/{comment → _comment}/index.styl +4 -12
  143. package/source/css/_widgets/{comment → _comment}/twikoo.styl +5 -2
  144. package/source/css/_widgets/{comment → _comment}/waline.styl +21 -5
  145. package/source/css/{_extra → _widgets/_extra}/console.styl +33 -10
  146. package/source/css/_widgets/_extra/fullpage.styl +46 -0
  147. package/source/css/_widgets/_extra/music.styl +218 -0
  148. package/source/css/_widgets/_extra/pace.styl +39 -0
  149. package/source/css/_widgets/_extra/rightmenu.styl +78 -0
  150. package/source/css/_widgets/_mixins/article-sort.styl +93 -0
  151. package/source/css/_widgets/_mixins/footer.styl +273 -0
  152. package/source/css/_widgets/_mixins/other.styl +34 -0
  153. package/source/css/_widgets/_mixins/sidebar.styl +230 -0
  154. package/source/css/_widgets/_post/_highlight/diff.styl +75 -0
  155. package/source/css/_widgets/_post/_highlight/index.styl +144 -0
  156. package/source/css/_widgets/_post/_highlight/theme/default.styl +12 -0
  157. package/source/css/_widgets/_post/_highlight/theme/mac.styl +25 -0
  158. package/source/css/_widgets/_post/_highlight/theme.styl +68 -0
  159. package/source/css/_widgets/_post/commentBarrage.styl +144 -0
  160. package/source/css/_widgets/_post/content.styl +152 -0
  161. package/source/css/_widgets/_post/copyright.styl +98 -0
  162. package/source/css/_widgets/_post/index.styl +20 -0
  163. package/source/css/_widgets/_post/meta.styl +420 -0
  164. package/source/css/_widgets/_post/pagination.styl +177 -0
  165. package/source/css/_widgets/_post/postAI.styl +131 -0
  166. package/source/css/{_post → _widgets/_post}/relatedPost.styl +4 -1
  167. package/source/css/_widgets/_post/tools.styl +249 -0
  168. package/source/css/{_search → _widgets/_search}/algolia-search.styl +4 -0
  169. package/source/css/{_search → _widgets/_search}/local-search.styl +15 -5
  170. package/source/css/_widgets/_tags/button.styl +60 -0
  171. package/source/css/_widgets/_tags/bvideo.styl +8 -0
  172. package/source/css/_widgets/_tags/card.styl +52 -0
  173. package/source/css/_widgets/_tags/checkbox.styl +85 -0
  174. package/source/css/_widgets/_tags/fold.styl +79 -0
  175. package/source/css/_widgets/_tags/image.styl +10 -0
  176. package/source/css/_widgets/_tags/index.styl +61 -0
  177. package/source/css/_widgets/_tags/inline-image.styl +6 -0
  178. package/source/css/_widgets/_tags/label.styl +3 -0
  179. package/source/css/_widgets/_tags/link.styl +80 -0
  180. package/source/css/_widgets/_tags/note.styl +101 -0
  181. package/source/css/_widgets/_tags/span.styl +61 -0
  182. package/source/css/_widgets/_tags/tabs.styl +105 -0
  183. package/source/css/_widgets/_tags/timeline.styl +80 -0
  184. package/source/css/_widgets/index.styl +50 -1
  185. package/source/css/index.styl +0 -25
  186. package/source/js/{commentBarrage.js → extend/comment/twikoo/commentBarrage.js} +0 -4
  187. package/source/js/extend/comment/{twikoo.js → twikoo/twikoo.js} +12 -40
  188. package/source/js/extend/comment/waline/commentBarrage.js +155 -0
  189. package/source/js/extend/comment/{waline.js → waline/waline.js} +10 -11
  190. package/source/js/extend/search/algolia-search.js +1 -5
  191. package/source/js/extend/search/local-search.js +33 -13
  192. package/source/js/main.js +135 -171
  193. package/source/js/music.js +129 -0
  194. package/source/js/utils.js +4 -7
  195. package/source/lib/cover-color.min.js +7 -0
  196. package/source/lib/rightside.min.js +1 -0
  197. package/source/lib/sco-ai.min.js +8 -0
  198. package/source/lib/snackbar.min.css +1 -1
  199. package/source/lib/txmap.min.js +1 -0
  200. package/source/lib/universe.min.js +1 -0
  201. package/source/lib/view-image.min.js +1 -1
  202. package/layout/includes/widgets/aside/asidePower.pug +0 -19
  203. package/layout/includes/widgets/home/rencentPost.pug +0 -26
  204. package/source/css/_extra/rightmenu.styl +0 -83
  205. package/source/css/_layout/articleSort.styl +0 -199
  206. package/source/css/_layout/footer.styl +0 -359
  207. package/source/css/_layout/sidebar.styl +0 -226
  208. package/source/css/_page/homeTop.styl +0 -1035
  209. package/source/css/_page/link.styl +0 -433
  210. package/source/css/_post/commentBarrage.styl +0 -149
  211. package/source/css/_post/externalTags.styl +0 -694
  212. package/source/css/_post/highlight.styl +0 -96
  213. package/source/css/_post/index.styl +0 -935
  214. package/source/css/_post/pagination.styl +0 -467
  215. package/source/css/_post/postContent.styl +0 -957
  216. package/source/css/_post/reward.styl +0 -217
  217. package/source/css/_widgets/aside/index.styl +0 -156
  218. package/source/css/_widgets/aside/power.styl +0 -90
  219. package/source/img/logo-horizontal_version.png +0 -0
  220. package/source/img/pwa/16.png +0 -0
  221. package/source/img/pwa/180.png +0 -0
  222. package/source/img/pwa/192.png +0 -0
  223. package/source/img/pwa/32.png +0 -0
  224. package/source/img/pwa/512.png +0 -0
  225. package/source/img/pwa/logo.png +0 -0
  226. package/source/img/pwa/siteicon/splash-1125x2436.png +0 -0
  227. package/source/img/pwa/siteicon/splash-1136x640.png +0 -0
  228. package/source/img/pwa/siteicon/splash-1170x2532.png +0 -0
  229. package/source/img/pwa/siteicon/splash-1179x2556.png +0 -0
  230. package/source/img/pwa/siteicon/splash-1242x2208.png +0 -0
  231. package/source/img/pwa/siteicon/splash-1242x2688.png +0 -0
  232. package/source/img/pwa/siteicon/splash-1248x2778.png +0 -0
  233. package/source/img/pwa/siteicon/splash-1290x2796.png +0 -0
  234. package/source/img/pwa/siteicon/splash-1334x750.png +0 -0
  235. package/source/img/pwa/siteicon/splash-1536x2048.png +0 -0
  236. package/source/img/pwa/siteicon/splash-1620x2160.png +0 -0
  237. package/source/img/pwa/siteicon/splash-1668x2224.png +0 -0
  238. package/source/img/pwa/siteicon/splash-1668x2388.png +0 -0
  239. package/source/img/pwa/siteicon/splash-1792x828.png +0 -0
  240. package/source/img/pwa/siteicon/splash-2048x1536.png +0 -0
  241. package/source/img/pwa/siteicon/splash-2048x2732.png +0 -0
  242. package/source/img/pwa/siteicon/splash-2160x1620.png +0 -0
  243. package/source/img/pwa/siteicon/splash-2208x1242.png +0 -0
  244. package/source/img/pwa/siteicon/splash-2224x1668.png +0 -0
  245. package/source/img/pwa/siteicon/splash-2388x1668.png +0 -0
  246. package/source/img/pwa/siteicon/splash-2436x1125.png +0 -0
  247. package/source/img/pwa/siteicon/splash-2532x1170.png +0 -0
  248. package/source/img/pwa/siteicon/splash-2556x1179.png +0 -0
  249. package/source/img/pwa/siteicon/splash-2688x1242.png +0 -0
  250. package/source/img/pwa/siteicon/splash-2732x2048.png +0 -0
  251. package/source/img/pwa/siteicon/splash-2778x1248.png +0 -0
  252. package/source/img/pwa/siteicon/splash-2796x1290.png +0 -0
  253. package/source/img/pwa/siteicon/splash-640x1136.png +0 -0
  254. package/source/img/pwa/siteicon/splash-750x1334.png +0 -0
  255. package/source/img/pwa/siteicon/splash-828x1792.png +0 -0
  256. package/source/img/solitude-show.jpg +0 -0
  257. package/source/js/extend/covercolor/local.js +0 -160
  258. package/source/js/rightside.js +0 -402
  259. package/source/js/txmap.js +0 -236
  260. package/source/lib/chuckle-post-ai.js +0 -1
  261. /package/source/css/_widgets/{aside → _aside}/allinfo.styl +0 -0
  262. /package/source/css/_widgets/{aside → _aside}/welcome.styl +0 -0
  263. /package/source/img/{theme/avatar.png → avatar.png} +0 -0
@@ -0,0 +1,144 @@
1
+ figure
2
+ &:hover
3
+ box-shadow var(--sco-shadow-border-hover)
4
+
5
+ .copy-btn
6
+ position absolute
7
+ top 1rem
8
+ right 1rem
9
+ z-index 10
10
+ color var(--sco-fontcolor)
11
+ cursor pointer
12
+ transition all .2s ease 0s
13
+
14
+ &:hover
15
+ color var(--sco-lighttext)
16
+
17
+ &.highlight
18
+ background-color var(--sco-hl-bg)
19
+ color var(--sco-fontcolor)
20
+ border var(--style-border-always)
21
+ overflow hidden
22
+ border-radius 8px 8px 4px 4px
23
+ position relative
24
+ margin .5rem 0 .5rem
25
+ padding 0
26
+ line-height 1.6
27
+
28
+ pre
29
+ margin 0
30
+ padding 8px 0
31
+ border none
32
+
33
+ .highlight-tools
34
+ position relative
35
+ display flex
36
+ -webkit-box-align center
37
+ align-items center
38
+ overflow hidden
39
+ min-height 1.2rem
40
+ height 2.15em
41
+ font-size 16px
42
+ background var(--sco-hltools-bg)
43
+ border-bottom var(--style-border-always)
44
+ color var(--sco-fontcolor)
45
+
46
+ .sco-copy-fill
47
+ position absolute
48
+ cursor pointer
49
+ transition color .2s
50
+ font-size 18px
51
+
52
+ .sco-copy-fill:hover
53
+ color var(--sco-main)
54
+
55
+ .expand
56
+ position absolute
57
+ padding 0.4rem 0.3rem
58
+ cursor pointer
59
+ transition transform .3s ease 0s
60
+
61
+ &.closed
62
+ transition all .3s ease 0s
63
+
64
+ .code-lang
65
+ text-transform capitalize
66
+ position absolute
67
+ font-weight 700
68
+ font-size 1.15em
69
+ user-select none
70
+
71
+ .code-expand-btn
72
+ background var(--sco-hltools-bg)
73
+ transition .3s
74
+ backdrop-filter saturate(180%) blur(20px)
75
+ transform translateZ(0)
76
+ border-top var(--style-border-always)
77
+ position absolute
78
+ bottom 0
79
+ z-index 10
80
+ width 100%
81
+ text-align center
82
+ font-size 16px
83
+ cursor pointer
84
+ display flex
85
+ align-items center
86
+ justify-content center
87
+ height 32px
88
+
89
+ i
90
+ color var(--sco-fontcolor)
91
+ font-size 14px
92
+ line-height 1
93
+ animation 1.2s ease 0s infinite normal none running code-expand-key
94
+
95
+ &:hover
96
+ background var(--sco-main)
97
+
98
+ i
99
+ color var(--sco-white)
100
+
101
+ table
102
+ display block
103
+ border none
104
+ overflow-y hidden
105
+ overflow-x auto
106
+
107
+ td
108
+ padding 0
109
+ border none
110
+ height 100%
111
+
112
+ &.gutter
113
+ opacity .6
114
+ user-select none
115
+
116
+ pre
117
+ overflow auto
118
+ line-height 1.6
119
+ margin 0
120
+ padding 8px .5rem
121
+ border none
122
+ color var(--sco-secondtext)
123
+ background var(--sco-secondbg)
124
+ border-right var(--style-border-always)
125
+ text-align right
126
+
127
+ &.code
128
+ width 100%
129
+ display flex
130
+ position relative
131
+
132
+ pre
133
+ padding-right .5rem
134
+ padding-left .5rem
135
+ width 100%
136
+
137
+ .line
138
+ &.marked
139
+ background-color: rgba(97, 97, 97, .314)
140
+
141
+ @import "theme"
142
+ @import "diff"
143
+
144
+ @import "theme/" + hexo-config('hightlight.theme')
@@ -0,0 +1,12 @@
1
+ figure
2
+ &.highlight
3
+ .highlight-tools
4
+ .sco-copy-fill
5
+ right .7rem
6
+
7
+ .expand
8
+ & + .code-lang
9
+ left 1.7rem
10
+
11
+ &.closed
12
+ transform rotate(-90deg)
@@ -0,0 +1,25 @@
1
+ figure
2
+ &.highlight
3
+ .highlight-tools
4
+ .sco-copy-fill
5
+ right 1.7rem
6
+
7
+ &:after
8
+ position absolute
9
+ left 14px
10
+ width 12px
11
+ height 12px
12
+ border-radius 50%
13
+ background #fc625d
14
+ -webkit-box-shadow 20px 0 #fdbc40, 40px 0 #35cd4b
15
+ box-shadow 20px 0 #fdbc40, 40px 0 #35cd4b
16
+ content ' '
17
+
18
+ .expand
19
+ right 0
20
+
21
+ & + .code-lang
22
+ left 75px
23
+
24
+ &.closed
25
+ transform rotate(90deg)
@@ -0,0 +1,68 @@
1
+ $highlight_color = hexo-config('hightlight.color')
2
+
3
+ if $highlight_color == "default"
4
+ $highlight-comment = #969896
5
+ $highlight-red = #FF5370
6
+ $highlight-orange = #F78C6C
7
+ $highlight-yellow = #FFCB6B
8
+ $highlight-green = #C3E88D
9
+ $highlight-aqua = #89DDFF
10
+ $highlight-blue = #82AAFF
11
+ $highlight-purple = #C792EA
12
+ $highlight-deletion = #BF42BF
13
+ $highlight-addition = #105EDE
14
+ else if $highlight_color == "vscode"
15
+ $highlight-comment = #6A9955
16
+ $highlight-red = #D16969
17
+ $highlight-orange = #D7BA7D
18
+ $highlight-yellow = #D7BA7D
19
+ $highlight-green = #608B4E
20
+ $highlight-aqua = #4EC9B0
21
+ $highlight-blue = #569CD6
22
+ $highlight-purple = #C586C0
23
+ $highlight-deletion = #D16969
24
+ $highlight-addition = #608B4E
25
+ else if $highlight_color == "solarized-dark"
26
+ $highlight-comment = #93A1A1
27
+ $highlight-red = #DC322F
28
+ $highlight-orange = #CB4B16
29
+ $highlight-yellow = #B58900
30
+ $highlight-green = #859900
31
+ $highlight-aqua = #2AA198
32
+ $highlight-blue = #268BD2
33
+ $highlight-purple = #6C71C4
34
+ $highlight-deletion = #DC322F
35
+ $highlight-addition = #859900
36
+ else if $highlight_color == "solarized-light"
37
+ $highlight-comment = #586E75
38
+ $highlight-red = #D30102
39
+ $highlight-orange = #BD3613
40
+ $highlight-yellow = #A57705
41
+ $highlight-green = #728A05
42
+ $highlight-aqua = #259185
43
+ $highlight-blue = #2176C7
44
+ $highlight-purple = #6C71C4
45
+ $highlight-deletion = #D30102
46
+ $highlight-addition = #728A05
47
+ else if $highlight_color == "dracula"
48
+ $highlight-comment = #6272A4
49
+ $highlight-red = #FF5555
50
+ $highlight-orange = #FFB86C
51
+ $highlight-yellow = #F1FA8C
52
+ $highlight-green = #50FA7B
53
+ $highlight-aqua = #8BE9FD
54
+ $highlight-blue = #BD93F9
55
+ $highlight-purple = #FF79C6
56
+ $highlight-deletion = #FF5555
57
+ $highlight-addition = #50FA7B
58
+ else if $highlight_color == "monokai"
59
+ $highlight-comment = #75715E
60
+ $highlight-red = #F926
61
+ $highlight-orange = #FD971F
62
+ $highlight-yellow = #E6DB74
63
+ $highlight-green = #A6E22E
64
+ $highlight-aqua = #66D9EF
65
+ $highlight-blue = #AE81FF
66
+ $highlight-purple = #F92672
67
+ $highlight-deletion = #F926
68
+ $highlight-addition = #A6E22E
@@ -0,0 +1,144 @@
1
+ .comment-barrage
2
+ position fixed
3
+ bottom 0
4
+ right 20px
5
+ padding 0 0 20px 10px
6
+ display flex
7
+ flex-direction column
8
+ justify-content flex-end
9
+ z-index 999
10
+ transition all .3s ease 0s
11
+ user-select none
12
+
13
+ +maxWidth768()
14
+ display none !important
15
+
16
+ .comment-barrage-item
17
+ min-width 300px
18
+ max-width 300px
19
+ width fit-content
20
+ min-height 80px
21
+ max-height 150px
22
+ margin 4px
23
+ padding 8px 14px
24
+ background var(--sco-maskbgdeep)
25
+ border-radius 8px
26
+ color var(--sco-fontcolor)
27
+ animation 0.6s cubic-bezier(0.42, 0, 0.3, 1.11) 0s 1 normal none running barrageIn;
28
+ transition all 0.3s ease 0s
29
+ display: flex
30
+ flex-direction column
31
+ border var(--style-border)
32
+ backdrop-filter saturate(180%) blur(20px)
33
+ box-shadow var(--sco-shadow-border)
34
+ overflow hidden
35
+
36
+ &:hover
37
+ border var(--style-border-hover)
38
+ box-shadow var(--sco-shadow-main)
39
+
40
+ &.out
41
+ opacity 0
42
+ animation 0.6s cubic-bezier(0.42, 0, 0.3, 1.11) 0s 1 normal none running barrageOut
43
+
44
+ &.hovered
45
+ opacity 0
46
+
47
+ .comment-barrage-close
48
+ color var(--sco-secondtext)
49
+ cursor pointer
50
+ line-height 1
51
+ margin 4px
52
+
53
+ &:hover
54
+ color var(--sco-main)
55
+
56
+ .scoicon
57
+ color var(--sco-fontcolor)
58
+ font-size 18px
59
+
60
+ .barrageHead
61
+ height 30px
62
+ padding 0 0 6px
63
+ line-height 30px
64
+ font-size 12px
65
+ border-bottom var(--style-border)
66
+ display flex
67
+ justify-content space-between
68
+ align-items center
69
+ font-weight 700
70
+
71
+ .barrageTitle
72
+ color var(--sco-card-bg)
73
+ margin-right 8px
74
+ background var(--sco-fontcolor)
75
+ line-height 1
76
+ padding 4px
77
+ border-radius 4px
78
+ white-space nowrap
79
+
80
+ &:hover
81
+ background var(--sco-main)
82
+ color var(--sco-white)
83
+
84
+ .barrageAvatar
85
+ width 16px
86
+ height 16px
87
+ margin 0 8px 0 auto
88
+ border-radius 50%
89
+ background var(--sco-secondbg)
90
+
91
+ .barrageContent
92
+ height calc(100% - 30px)
93
+ overflow hidden
94
+ width fit-content
95
+ max-height 48px
96
+ font-size 14px !important
97
+ font-weight 400 !important
98
+
99
+ h1, h2, h3, h4
100
+ font-size 14px !important
101
+ font-weight 400 !important
102
+ margin 8px 0 !important
103
+
104
+ a
105
+ pointer-events none
106
+ font-size 14px !important
107
+
108
+ p
109
+ margin 8px 0
110
+ line-height 1.3
111
+ overflow hidden
112
+ text-overflow ellipsis
113
+ -webkit-line-clamp 2
114
+ display -webkit-box
115
+ -webkit-box-orient vertical
116
+ font-size 14px
117
+ max-width 270px
118
+
119
+ img:not(.tk-owo-emotion)
120
+ display none
121
+ img.tk-owo-emotion
122
+ width 16px
123
+ padding 0
124
+ margin 0
125
+ transform translateY(2px)
126
+
127
+ pre
128
+ display none
129
+
130
+ li
131
+ display none
132
+
133
+ blockquote
134
+ display none
135
+
136
+ br
137
+ display none
138
+
139
+ &::-webkit-scrollbar
140
+ height 0
141
+ width 4px
142
+
143
+ &::-webkit-scrollbar-button
144
+ display none
@@ -0,0 +1,152 @@
1
+ #article-container
2
+ overflow-wrap break-word
3
+
4
+ .table-wrap
5
+ margin 1rem 0
6
+ border-radius 8px
7
+ overflow-x scroll
8
+
9
+ .headerlink
10
+ float right
11
+ opacity .08
12
+ position relative
13
+ padding 0
14
+ border none
15
+ border-radius 8px
16
+ line-height 1
17
+ font-size .8rem
18
+
19
+ &::before
20
+ content "\e082"
21
+ font-family scoicon
22
+ cursor pointer
23
+
24
+ &:hover
25
+ opacity 1
26
+
27
+ &::before
28
+ color var(--sco-main)
29
+
30
+ p
31
+ font-size .9rem
32
+ line-height 1.7
33
+ font-weight 400
34
+ margin 1rem 0
35
+ text-align left
36
+ letter-spacing .6px
37
+
38
+ img
39
+ margin auto
40
+
41
+ code
42
+ color var(--sco-white)
43
+ padding 0.2rem 0.4rem
44
+ border-radius 4px
45
+ margin 0 4px
46
+ background var(--sco-pink)
47
+ line-height 2
48
+ box-shadow var(--sco-shadow-border)
49
+
50
+ img
51
+ cursor zoom-in
52
+ border-radius 12px
53
+ object-fit cover
54
+ display block
55
+ margin 0.8rem auto
56
+ max-width 90%
57
+ max-height 450px
58
+
59
+ a:not(.headerlink)
60
+ border-bottom 2px dotted var(--sco-lighttext)
61
+ color var(--sco-fontcolor)
62
+ font-weight 700
63
+ padding 0 4px
64
+ border-radius 4px 4px 0 0
65
+
66
+ &:hover
67
+ text-decoration none
68
+ background var(--sco-main)
69
+ border-width 0
70
+ color var(--sco-white)
71
+ border-radius 4px
72
+
73
+ ul, ol
74
+ padding 0
75
+ margin-top 0.4rem
76
+ list-style none
77
+ counter-reset li 0
78
+
79
+ li
80
+ &:before
81
+ position absolute
82
+ top 0
83
+ left 0
84
+ color var(--sco-fontcolor)
85
+ transition all .3s ease-out 0s
86
+ background var(--sco-lighttext)
87
+
88
+ &:not(.tab)
89
+ position relative
90
+ margin 0.2rem 0
91
+
92
+ ul
93
+ > li
94
+ &:not(.tab)
95
+ padding 0.2em 0.2em 0.2em 1.4em
96
+
97
+ &:before
98
+ top 0.78em
99
+ width 0.42em
100
+ height 0.42em
101
+ border-radius 0.42em
102
+ background 0 0
103
+ content ""
104
+ line-height .42em
105
+ border 0.21em solid var(--sco-lighttext)
106
+ background var(--sco-lighttext)
107
+
108
+ ol
109
+ > li
110
+
111
+ &:not(.tab)
112
+ padding .2em .2em .2em 1.8em
113
+
114
+ &:before
115
+ margin-top .65em
116
+ width 1.45em
117
+ height 1.45em
118
+ border-radius .725em
119
+ content counter(li)
120
+ counter-increment li 1
121
+ text-align center
122
+ font-size .85em
123
+ color var(--sco-white)
124
+ line-height 1.45em
125
+
126
+ // 文章内容样式
127
+
128
+ &.post-content
129
+ h1, h2, h3, h4
130
+ display flex
131
+ align-items center
132
+ justify-content space-between
133
+ flex-direction row-reverse
134
+ transition all .2s ease-out 0s
135
+
136
+ h1
137
+ font-size 1.5rem
138
+ line-height 1.3
139
+
140
+ h2
141
+ font-size 1.3rem
142
+ line-height 1.3
143
+ border-top 1px dashed var(--sco-theme-op)
144
+ padding-top 1.5rem
145
+
146
+ h3
147
+ font-size 1.1rem
148
+ line-height 1.3
149
+
150
+ h4
151
+ font-size 1.1rem
152
+ line-height 1.3
@@ -0,0 +1,98 @@
1
+ #post
2
+ .post-copyright
3
+ background var(--sco-secondbg)
4
+ border-width 1px
5
+ transition 0.3s
6
+ position relative
7
+ margin 80px 0 30px
8
+ border-radius 12px
9
+ padding 34px 0 20px 0
10
+ border var(--style-border-always)
11
+
12
+ +maxWidth768()
13
+ box-shadow var(--sco-shadow-border)
14
+
15
+ .post-copyright__author_group
16
+ .post-copyright__author_img
17
+ width 64px
18
+ height 64px
19
+ margin auto
20
+ border-radius 64px
21
+ overflow hidden
22
+ position absolute
23
+ left calc(50% - 33px)
24
+ top -33px
25
+ border var(--style-border-always)
26
+ box-shadow var(--sco-shadow-main)
27
+
28
+ if hexo-config('post.default.copyright.author.enable')
29
+ &:hover
30
+ img.post-copyright__author_img_front
31
+ transform scale(1) translateY(3px)
32
+
33
+ img.post-copyright__author_img_back
34
+ transform scale(.8)
35
+
36
+ img
37
+ width 100%
38
+ height 100%
39
+ object-fit cover
40
+ object-position center
41
+ position absolute
42
+ bottom 0
43
+ left 0
44
+
45
+ if hexo-config('post.default.copyright.author.enable')
46
+ &_back
47
+ border-radius 66px
48
+ z-index 10
49
+
50
+ if hexo-config('post.default.copyright.author.enable')
51
+ &_front
52
+ z-index 20
53
+ transform scale(1.2) translateY(6px)
54
+
55
+ .post-copyright__author_name
56
+ text-align center
57
+ font-size 20px
58
+ font-weight 700
59
+ margin-top 16px
60
+ color var(--sco-fontcolor)
61
+ line-height 1
62
+
63
+ .post-copyright__author_desc
64
+ text-align center
65
+ font-size 14px
66
+ color var(--sco-secondtext)
67
+ margin-top 4px
68
+
69
+ .post-copyright__notice
70
+ font-size 12px
71
+ margin 0.5rem 0
72
+
73
+ .post-copyright-info
74
+ padding-left 0
75
+ color var(--sco-secondtext)
76
+ overflow hidden
77
+ display -webkit-box
78
+ -webkit-line-clamp 1
79
+ -webkit-box-orient vertical
80
+ text-align center
81
+
82
+ +maxWidth768()
83
+ -webkit-line-clamp 2
84
+
85
+ a
86
+ text-decoration none
87
+ word-break break-word
88
+ padding 0 4px
89
+ border-radius 4px
90
+ color var(--sco-fontcolor)
91
+ font-weight 700
92
+
93
+ &:hover
94
+ text-decoration none
95
+ background-color var(--sco-main)
96
+ color var(--sco-white)
97
+ cursor pointer
98
+ border-radius 4px
@@ -0,0 +1,20 @@
1
+ // commentBarrage
2
+ if hexo-config('comment.commentBarrage')
3
+ @import 'commentBarrage'
4
+
5
+ @import "content"
6
+
7
+ @import "copyright"
8
+
9
+ @import "meta"
10
+
11
+ @import "relatedPost"
12
+
13
+ @import "tools"
14
+
15
+ @import "pagination"
16
+
17
+ @import "_highlight/index"
18
+
19
+ if hexo-config('thirdparty.ai.enable')
20
+ @import "postAI"