hexo-theme-volantis 4.3.1 → 5.0.0-alpha.112

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 (309) hide show
  1. package/README.md +6 -4
  2. package/_config.yml +599 -246
  3. package/languages/en.yml +7 -0
  4. package/languages/zh-CN.yml +13 -2
  5. package/languages/zh-TW.yml +7 -0
  6. package/layout/404.ejs +1 -1
  7. package/layout/_meta/author.ejs +4 -4
  8. package/layout/_meta/category.ejs +11 -8
  9. package/layout/_meta/counter.ejs +29 -7
  10. package/layout/_meta/date.ejs +1 -1
  11. package/layout/_meta/music.ejs +1 -1
  12. package/layout/_meta/share.ejs +1 -1
  13. package/layout/_meta/tags.ejs +3 -0
  14. package/layout/_meta/thumbnail.ejs +3 -1
  15. package/layout/_meta/updated.ejs +1 -1
  16. package/layout/_meta/walinecount.ejs +2 -1
  17. package/layout/{_cover → _partial/_cover}/blank.ejs +0 -0
  18. package/layout/{_cover → _partial/_cover}/dock.ejs +1 -1
  19. package/layout/{_cover → _partial/_cover}/featured.ejs +1 -1
  20. package/layout/{_cover → _partial/_cover}/focus.ejs +1 -1
  21. package/layout/_partial/_cover/layout.ejs +8 -0
  22. package/layout/{_cover → _partial/_cover}/search.ejs +2 -2
  23. package/layout/_partial/archive.ejs +2 -2
  24. package/layout/_partial/article.ejs +21 -16
  25. package/layout/_partial/categories.ejs +1 -1
  26. package/layout/_partial/cover.ejs +8 -28
  27. package/layout/_partial/footer.ejs +19 -11
  28. package/layout/_partial/head.ejs +70 -116
  29. package/layout/_partial/header.ejs +17 -11
  30. package/layout/_partial/meta.ejs +18 -4
  31. package/layout/_partial/post.ejs +35 -9
  32. package/layout/_partial/scripts/_ctrl/cdnCtrl.ejs +126 -0
  33. package/layout/_partial/scripts/{coverCtrl.ejs → _ctrl/coverCtrl.ejs} +17 -25
  34. package/layout/_partial/scripts/_ctrl.ejs +2 -0
  35. package/layout/_partial/scripts/content-visibility-scroll-fix.ejs +88 -0
  36. package/layout/_partial/scripts/global.ejs +422 -109
  37. package/layout/_partial/scripts/index.ejs +91 -46
  38. package/layout/_partial/scripts/toc.ejs +98 -68
  39. package/layout/_partial/side.ejs +4 -1
  40. package/layout/_plugins/_page_plugins/artitalk/index.ejs +15 -0
  41. package/layout/_plugins/_page_plugins/bbtalk/index.ejs +10 -0
  42. package/layout/_plugins/_page_plugins/fcircle/index.ejs +12 -0
  43. package/layout/_plugins/_page_plugins/gitter/index.ejs +14 -0
  44. package/layout/_plugins/_page_plugins/indent/index.ejs +16 -0
  45. package/layout/_plugins/_page_plugins/index.ejs +27 -0
  46. package/layout/_plugins/_page_plugins/katex/index.ejs +13 -0
  47. package/layout/{_third-party/math/mathjax/script.ejs → _plugins/_page_plugins/mathjax/index.ejs} +2 -2
  48. package/layout/_plugins/_page_plugins/snackbar/index.ejs +55 -0
  49. package/layout/{_partial/scripts/counter.ejs → _plugins/analytics/LCCounter.ejs} +0 -0
  50. package/layout/{_third-party → _plugins}/analytics/script.ejs +43 -5
  51. package/layout/{_third-party → _plugins}/aplayer/layout.ejs +0 -0
  52. package/layout/_plugins/aplayer/script.ejs +74 -0
  53. package/layout/_plugins/chat/gitter/script.ejs +17 -0
  54. package/layout/_plugins/chat/index.ejs +1 -0
  55. package/layout/_plugins/chat/tidio/script.ejs +1 -0
  56. package/layout/_plugins/comments/artalk/script.ejs +59 -0
  57. package/layout/_plugins/comments/beaudar/script.ejs +61 -0
  58. package/layout/_plugins/comments/discuss/script.ejs +30 -0
  59. package/layout/_plugins/comments/disqus/script.ejs +98 -0
  60. package/layout/_plugins/comments/disqusjs/script.ejs +35 -0
  61. package/layout/_plugins/comments/giscus/script.ejs +47 -0
  62. package/layout/_plugins/comments/gitalk/script.ejs +24 -0
  63. package/layout/_plugins/comments/hashover/script.ejs +5 -0
  64. package/layout/{_third-party → _plugins}/comments/index.ejs +10 -3
  65. package/layout/_plugins/comments/isso/script.ejs +27 -0
  66. package/layout/_plugins/comments/livere/script.ejs +15 -0
  67. package/layout/_plugins/comments/twikoo/script.ejs +40 -0
  68. package/layout/_plugins/comments/utterances/script.ejs +43 -0
  69. package/layout/_plugins/comments/vssue/script.ejs +37 -0
  70. package/layout/_plugins/comments/waline/script.ejs +62 -0
  71. package/layout/_plugins/comments/z-custom/script.ejs +1 -0
  72. package/layout/_plugins/darkmode/script.ejs +114 -0
  73. package/layout/{_third-party → _plugins}/end-of-support/script.ejs +25 -8
  74. package/layout/_plugins/github-api/script.ejs +27 -0
  75. package/layout/_plugins/highlight/highlightjs/script.ejs +26 -0
  76. package/layout/_plugins/highlight/prismjs/script.ejs +25 -0
  77. package/layout/_plugins/highlight/script.ejs +1 -0
  78. package/layout/{_third-party → _plugins}/lazyload/script.ejs +1 -1
  79. package/layout/{_third-party → _plugins}/nodewaves/script.ejs +1 -1
  80. package/layout/_plugins/parallax/script.ejs +74 -0
  81. package/layout/{_third-party → _plugins}/pjax/animate.ejs +31 -31
  82. package/layout/_plugins/pjax/index.ejs +73 -0
  83. package/layout/_plugins/pjax/pdata.ejs +56 -0
  84. package/layout/{_third-party → _plugins}/preload/script.ejs +3 -3
  85. package/layout/_plugins/rightmenu/layout.ejs +119 -0
  86. package/layout/_plugins/rightmenus/layout.ejs +137 -0
  87. package/layout/_plugins/scrollreveal/script.ejs +25 -0
  88. package/layout/_plugins/search/script.ejs +50 -0
  89. package/layout/{_third-party → _plugins}/share/layout.ejs +0 -0
  90. package/layout/_plugins/swiper/script.ejs +37 -0
  91. package/layout/_pre.ejs +2 -2
  92. package/layout/_widget/_pre.ejs +5 -0
  93. package/layout/_widget/blogger.ejs +1 -1
  94. package/layout/_widget/category.ejs +2 -2
  95. package/layout/_widget/copyright.ejs +1 -1
  96. package/layout/_widget/grid.ejs +3 -3
  97. package/layout/_widget/lastupdate.ejs +27 -0
  98. package/layout/_widget/list.ejs +2 -2
  99. package/layout/_widget/load.ejs +18 -0
  100. package/layout/_widget/music.ejs +3 -2
  101. package/layout/_widget/page.ejs +1 -1
  102. package/layout/_widget/qrcode.ejs +1 -1
  103. package/layout/_widget/related_posts.ejs +1 -1
  104. package/layout/_widget/tagcloud.ejs +1 -1
  105. package/layout/_widget/text.ejs +1 -1
  106. package/layout/_widget/toc.ejs +6 -2
  107. package/layout/_widget/webinfo.ejs +13 -76
  108. package/layout/archive.ejs +4 -4
  109. package/layout/category.ejs +9 -4
  110. package/layout/docs.ejs +1 -1
  111. package/layout/friends.ejs +6 -25
  112. package/layout/index.ejs +1 -1
  113. package/layout/layout.ejs +30 -12
  114. package/layout/list.ejs +1 -1
  115. package/layout/page.ejs +1 -1
  116. package/layout/post.ejs +1 -1
  117. package/layout/tag.ejs +8 -3
  118. package/package.json +5 -3
  119. package/scripts/events/index.js +13 -0
  120. package/scripts/events/lib/check-configuration.js +43 -0
  121. package/scripts/events/lib/check-environment.js +74 -0
  122. package/scripts/events/lib/config.js +34 -9
  123. package/scripts/events/lib/render-stylus.js +78 -0
  124. package/scripts/events/lib/stellar-tag-utils.js +76 -0
  125. package/scripts/filters/content-visibility.js +25 -0
  126. package/scripts/{render → filters}/img.js +0 -0
  127. package/scripts/filters/replace.js +15 -0
  128. package/scripts/{z-lazyload/lib/process.js → filters/z-lazyload.js} +6 -3
  129. package/scripts/helpers/custom-files.js +165 -0
  130. package/scripts/helpers/first-style.js +19 -0
  131. package/scripts/helpers/head/autoCanonical.js +15 -0
  132. package/scripts/helpers/head/generate_preload_fontfamily.js +22 -0
  133. package/scripts/helpers/head/generate_seo.js +24 -0
  134. package/scripts/helpers/head/generate_title__keywords__description.js +101 -0
  135. package/scripts/{related_posts/index.js → helpers/related-posts.js} +1 -1
  136. package/scripts/helpers/revisioned.js +158 -0
  137. package/scripts/helpers/structured-data/index.js +2 -0
  138. package/scripts/helpers/structured-data/lib/blogposting.js +77 -0
  139. package/scripts/helpers/structured-data/lib/breadcrumblist.js +152 -0
  140. package/scripts/helpers/structured-data/lib/config.js +31 -0
  141. package/scripts/helpers/structured-data/lib/index.js +30 -0
  142. package/scripts/helpers/structured-data/lib/organization.js +15 -0
  143. package/scripts/helpers/structured-data/lib/person.js +16 -0
  144. package/scripts/helpers/structured-data/lib/website.js +42 -0
  145. package/scripts/tags/btn.js +6 -1
  146. package/scripts/tags/btns.js +7 -2
  147. package/scripts/tags/checkbox.js +12 -2
  148. package/scripts/tags/contributors.js +100 -0
  149. package/scripts/tags/dropmenu.js +18 -3
  150. package/scripts/tags/fancybox.js +44 -10
  151. package/scripts/tags/folding.js +6 -1
  152. package/scripts/tags/frame.js +6 -1
  153. package/scripts/tags/friends.js +99 -0
  154. package/scripts/tags/ghcard.js +6 -1
  155. package/scripts/tags/image.js +14 -2
  156. package/scripts/tags/link.js +6 -1
  157. package/scripts/tags/md.js +59 -0
  158. package/scripts/tags/media.js +25 -1
  159. package/scripts/tags/note.js +36 -3
  160. package/scripts/tags/site.js +87 -51
  161. package/scripts/tags/span.js +12 -2
  162. package/scripts/tags/swiper.js +38 -0
  163. package/scripts/tags/tabs.js +33 -3
  164. package/scripts/tags/timeline.js +6 -1
  165. package/source/css/Readme.md +28 -0
  166. package/source/css/_defines/AutoPrefixCSS.styl +347 -0
  167. package/source/css/_defines/Readme.md +3 -0
  168. package/source/css/_defines/color.styl +41 -1
  169. package/source/css/_defines/effect.styl +0 -13
  170. package/source/css/_defines/fonts.styl +17 -18
  171. package/source/css/_defines/func.styl +12 -30
  172. package/source/css/_first/base_first.styl +118 -0
  173. package/source/css/_first/{cover.styl → cover_first.styl} +113 -87
  174. package/source/css/_first/dark_first.styl +76 -0
  175. package/source/css/_first/fontfamily_first.styl +17 -0
  176. package/source/css/_first/{navbar.styl → navbar_first.styl} +4 -10
  177. package/source/css/_first/search_first.styl +12 -0
  178. package/source/css/{_base/index.styl → _style/_base/base.styl} +9 -93
  179. package/source/css/_style/_base/fontfamily_async.styl +8 -0
  180. package/source/css/{_layout → _style/_layout}/archive.styl +0 -0
  181. package/source/css/{_layout → _style/_layout}/article.styl +3 -30
  182. package/source/css/{_layout → _style/_layout}/footer.styl +0 -0
  183. package/source/css/_style/_layout/friends-simpleuser.styl +23 -0
  184. package/source/css/_style/_layout/friends-traditional.styl +81 -0
  185. package/source/css/{_layout → _style/_layout}/img.styl +0 -0
  186. package/source/css/_style/_layout/loading.styl +14 -0
  187. package/source/css/{_layout → _style/_layout}/main.styl +19 -7
  188. package/source/css/{_layout → _style/_layout}/md.styl +0 -0
  189. package/source/css/{_layout → _style/_layout}/pagination.styl +1 -1
  190. package/source/css/{_layout → _style/_layout}/posts.styl +2 -0
  191. package/source/css/{_first → _style/_layout}/search.styl +0 -103
  192. package/source/css/{_layout → _style/_layout}/sidebar.styl +23 -3
  193. package/source/css/{_layout → _style/_layout}/snackbar.styl +0 -0
  194. package/source/css/{_layout → _style/_layout}/toc.styl +3 -3
  195. package/source/css/{_layout → _style/_layout}/video.styl +0 -0
  196. package/source/css/_style/_plugins/_dark/dark_async.styl +41 -0
  197. package/source/css/_style/_plugins/_dark/dark_plugins.styl +136 -0
  198. package/source/css/_style/_plugins/_highlight/highlightjs/clipboard.styl +36 -0
  199. package/source/css/_style/_plugins/_highlight/highlightjs/color.styl +96 -0
  200. package/source/css/_style/_plugins/_highlight/highlightjs/index.styl +102 -0
  201. package/source/css/_style/_plugins/_highlight/highlightjs/language.styl +63 -0
  202. package/source/css/_style/_plugins/_highlight/index.styl +1 -0
  203. package/source/css/_style/_plugins/_highlight/prismjs/clipboard.styl +33 -0
  204. package/source/css/_style/_plugins/_highlight/prismjs/index.styl +8 -0
  205. package/source/css/_style/_plugins/_highlight/prismjs/language.styl +63 -0
  206. package/source/css/_style/_plugins/_rightmenu/reading.styl +56 -0
  207. package/source/css/{_plugins → _style/_plugins/_rightmenu}/rightmenu.styl +22 -2
  208. package/source/css/{_plugins → _style/_plugins}/aplayer.styl +8 -1
  209. package/source/css/{_plugins → _style/_plugins}/cursor.styl +49 -19
  210. package/source/css/_style/_plugins/fontcolor.styl +84 -0
  211. package/source/css/{_plugins → _style/_plugins}/gitalk.styl +0 -0
  212. package/source/css/_style/_plugins/index.styl +24 -0
  213. package/source/css/{_plugins → _style/_plugins}/mathjax.styl +0 -0
  214. package/source/css/_style/_plugins/message.styl +14 -0
  215. package/source/css/{_plugins → _style/_plugins}/pjaxanimate.styl +0 -0
  216. package/source/css/_style/_tag-plugins/Readme.md +6 -0
  217. package/source/css/{_tag-plugins → _style/_tag-plugins}/btns.styl +0 -0
  218. package/source/css/{_tag-plugins → _style/_tag-plugins}/checkbox.styl +0 -0
  219. package/source/css/{_tag-plugins → _style/_tag-plugins}/dropmenu.styl +0 -0
  220. package/source/css/{_plugins → _style/_tag-plugins}/fancybox.styl +8 -9
  221. package/source/css/{_tag-plugins → _style/_tag-plugins}/folding.styl +0 -0
  222. package/source/css/{_tag-plugins → _style/_tag-plugins}/frame.styl +0 -0
  223. package/source/css/_style/_tag-plugins/friends.styl +72 -0
  224. package/source/css/{_tag-plugins → _style/_tag-plugins}/ghcard.styl +0 -0
  225. package/source/css/{_tag-plugins → _style/_tag-plugins}/image.styl +0 -0
  226. package/source/css/{_tag-plugins → _style/_tag-plugins}/link.styl +0 -0
  227. package/source/css/{_tag-plugins → _style/_tag-plugins}/media.styl +0 -0
  228. package/source/css/{_tag-plugins → _style/_tag-plugins}/note.styl +0 -0
  229. package/source/css/_style/_tag-plugins/sites.styl +87 -0
  230. package/source/css/{_tag-plugins → _style/_tag-plugins}/span.styl +0 -0
  231. package/source/css/_style/_tag-plugins/swiper.styl +44 -0
  232. package/source/css/{_tag-plugins → _style/_tag-plugins}/table.styl +0 -0
  233. package/source/css/{_tag-plugins → _style/_tag-plugins}/tabs.styl +0 -0
  234. package/source/css/_style/_tag-plugins/tag.json +35 -0
  235. package/source/css/_style/_tag-plugins/text.styl +31 -0
  236. package/source/css/{_tag-plugins → _style/_tag-plugins}/timeline.styl +0 -0
  237. package/source/css/_style/index.styl +8 -0
  238. package/source/css/first.styl +17 -6
  239. package/source/css/style.styl +9 -7
  240. package/source/js/app.js +1051 -278
  241. package/source/js/plugins/aplayer.js +186 -0
  242. package/source/js/plugins/parallax.js +191 -0
  243. package/source/js/plugins/rightMenu.js +577 -0
  244. package/source/js/plugins/rightMenus.js +616 -0
  245. package/source/js/plugins/tags/contributors.js +92 -0
  246. package/source/js/plugins/tags/friends.js +93 -0
  247. package/source/js/plugins/tags/sites.js +96 -0
  248. package/source/js/search/hexo.js +180 -373
  249. package/.eslintrc.json +0 -111
  250. package/layout/_meta/valinecount.ejs +0 -15
  251. package/layout/_partial/rightmenu.ejs +0 -199
  252. package/layout/_partial/scripts/cover.ejs +0 -45
  253. package/layout/_partial/scripts/darkmode.ejs +0 -85
  254. package/layout/_partial/scripts/import.ejs +0 -3
  255. package/layout/_partial/scripts/issues.ejs +0 -18
  256. package/layout/_partial/scripts/search.ejs +0 -62
  257. package/layout/_partial/snackbar.ejs +0 -22
  258. package/layout/_third-party/aplayer/script.ejs +0 -26
  259. package/layout/_third-party/clipboard/script.ejs +0 -54
  260. package/layout/_third-party/comments/disqus/layout.ejs +0 -5
  261. package/layout/_third-party/comments/disqus/script.ejs +0 -90
  262. package/layout/_third-party/comments/disqusjs/layout.ejs +0 -1
  263. package/layout/_third-party/comments/disqusjs/script.ejs +0 -34
  264. package/layout/_third-party/comments/gitalk/layout.ejs +0 -1
  265. package/layout/_third-party/comments/gitalk/script.ejs +0 -22
  266. package/layout/_third-party/comments/hashover/layout.ejs +0 -2
  267. package/layout/_third-party/comments/hashover/script.ejs +0 -1
  268. package/layout/_third-party/comments/isso/layout.ejs +0 -1
  269. package/layout/_third-party/comments/isso/script.ejs +0 -1
  270. package/layout/_third-party/comments/livere/layout.ejs +0 -3
  271. package/layout/_third-party/comments/livere/script.ejs +0 -10
  272. package/layout/_third-party/comments/minivaline/layout.ejs +0 -3
  273. package/layout/_third-party/comments/minivaline/script.ejs +0 -34
  274. package/layout/_third-party/comments/twikoo/layout.ejs +0 -3
  275. package/layout/_third-party/comments/twikoo/script.ejs +0 -32
  276. package/layout/_third-party/comments/valine/layout.ejs +0 -3
  277. package/layout/_third-party/comments/valine/script.ejs +0 -49
  278. package/layout/_third-party/comments/vssue/layout.ejs +0 -1
  279. package/layout/_third-party/comments/vssue/script.ejs +0 -21
  280. package/layout/_third-party/comments/waline/layout.ejs +0 -3
  281. package/layout/_third-party/comments/waline/script.ejs +0 -33
  282. package/layout/_third-party/fancybox/script.ejs +0 -61
  283. package/layout/_third-party/highlightjs/script.ejs +0 -11
  284. package/layout/_third-party/pjax/index.ejs +0 -78
  285. package/layout/_third-party/pjax/pdata.ejs +0 -53
  286. package/layout/_third-party/scrollreveal/script.ejs +0 -21
  287. package/layout/_third-party/tidio/script.ejs +0 -3
  288. package/layout/artitalk.ejs +0 -13
  289. package/layout/bb.ejs +0 -10
  290. package/package-lock.json +0 -916
  291. package/scripts/tags/issues.js +0 -41
  292. package/scripts/z-lazyload/index.js +0 -4
  293. package/source/css/_highlight/index.styl +0 -316
  294. package/source/css/_layout/friends.styl +0 -79
  295. package/source/css/_plugins/clipboard.styl +0 -37
  296. package/source/css/_plugins/dark.styl +0 -149
  297. package/source/css/_plugins/darkmode.styl +0 -9
  298. package/source/css/_plugins/index.styl +0 -18
  299. package/source/css/_plugins/twikoo.styl +0 -21
  300. package/source/css/_plugins/valine.styl +0 -183
  301. package/source/css/_tag-plugins/simpleuser.styl +0 -21
  302. package/source/css/_tag-plugins/site-card.styl +0 -70
  303. package/source/js/aplayer.js +0 -167
  304. package/source/js/issues.js +0 -186
  305. package/source/js/search/algolia.js +0 -344
  306. package/source/js/search/azure.js +0 -355
  307. package/source/js/search/baidu.js +0 -340
  308. package/source/js/search/google.js +0 -339
  309. package/source/js/valine.js +0 -5137
@@ -0,0 +1,23 @@
1
+ // layout/friends.ejs
2
+ if hexo-config('pages.friends.layout_scheme') != 'traditional'
3
+ .md .simpleuser-group
4
+ margin: 0
5
+ display: grid
6
+ grid-template-columns: repeat(auto-fill, 112px)
7
+ .md .simpleuser
8
+ text-align: center
9
+ padding: 1em .5em
10
+ border-radius: 4px
11
+ img
12
+ display: block
13
+ width: 50px
14
+ height 50px
15
+ border-radius: 50px
16
+ object-fit: cover
17
+ img+span
18
+ display: block
19
+ font-size: $fontsize-meta
20
+ line-height: 1.2
21
+ color: var(--color-text)
22
+ &:hover
23
+ background: var(--color-site-bg)
@@ -0,0 +1,81 @@
1
+ // layout/friends.ejs
2
+ if hexo-config('pages.friends.layout_scheme') == 'traditional'
3
+ .article.l_friends
4
+ .friends-group
5
+ .friend-content
6
+ display: flex
7
+ flex-wrap: wrap
8
+ margin: -0.5 * $gap
9
+ border-radius: $border-card
10
+ align-items: flex-start
11
+ line-height: 1.3
12
+ .friend-card
13
+ display: flex
14
+ border-radius: $border-codeblock
15
+ box-shadow: $boxshadow-card
16
+ padding: $gap * 0.5 0
17
+ margin: $gap * 0.5
18
+ margin-top: "calc(2.25 * %s + 32px)" % $gap
19
+ color: var(--color-meta)
20
+ background: var(--color-block)
21
+ justify-content: flex-start
22
+ align-content: flex-start
23
+ flex-direction: column
24
+ width: "calc(100%/4 - %s)" % $gap
25
+ @media screen and (max-width: $device-laptop)
26
+ width: "calc(100%/4 - %s)" % $gap
27
+
28
+ @media screen and (max-width: $device-tablet)
29
+ width: "calc(100%/3 - %s)" % $gap
30
+
31
+ @media screen and (max-width: $device-mobile)
32
+ width: "calc(100%/2 - %s)" % $gap
33
+
34
+ &:hover
35
+ .friend-left
36
+ .avatar
37
+ transform: scale(1.2) rotate(12deg)
38
+ box-shadow: $boxshadow-card-float
39
+
40
+
41
+
42
+ .friend-left
43
+ display: flex
44
+ align-self: center
45
+ .avatar
46
+ width: 64px
47
+ height: 64px
48
+ trans()
49
+ box-shadow: $boxshadow-card
50
+ margin: $gap $gap * 0.5 $gap * 0.25 $gap * 0.5
51
+ margin-top: "calc(-1.25 * %s - 32px)" % $gap
52
+ border-radius: 100%
53
+ border: 2px solid white
54
+ background: white
55
+
56
+
57
+ .friend-right
58
+ margin: $gap * 0.25 $gap * 0.5
59
+ display: flex
60
+ flex-direction: column
61
+ text-align: center
62
+ p
63
+ text-align: center
64
+
65
+ .friend-tags-wrapper
66
+ trans()
67
+ margin-left: -2px
68
+ word-break:break-all
69
+ p
70
+ margin: 0
71
+ &.friend-name
72
+ font-size: $fontsize-code
73
+ padding-top: 4px
74
+ font-weight: bold
75
+
76
+ &.tags
77
+ font-size: $fontsize-footnote
78
+ display: inline
79
+ background: none
80
+ word-wrap: break-word
81
+ padding-right: 4px
File without changes
@@ -0,0 +1,14 @@
1
+ svg.loading
2
+ display: block
3
+ position: absolute
4
+ color: var(--text-p3)
5
+ width: 100%
6
+ height: 2rem
7
+ margin: auto
8
+ animation: spin infinite 2s
9
+ animation-timing-function: linear
10
+ @keyframes spin
11
+ from
12
+ transform:rotate(0deg)
13
+ to
14
+ transform:rotate(360deg)
@@ -42,11 +42,16 @@
42
42
  &.hl
43
43
  box-shadow: $boxshadow-card-float
44
44
 
45
- .l_main
45
+ #l_main
46
46
  width: "calc(100% - 1 * %s)" % $sidebar
47
47
  @media screen and (max-width: $device-tablet)
48
48
  width: 100%
49
- padding-right: $gap
49
+ if hexo-config('sidebar.position') =='right'
50
+ padding-right: $gap
51
+ if hexo-config('sidebar.position') =='left'
52
+ padding-left: $gap
53
+ @media screen and (max-width:$device-tablet)
54
+ padding-left: 0
50
55
  &.no_sidebar
51
56
  width: 100%
52
57
  padding-right: 0
@@ -54,9 +59,15 @@
54
59
  @media screen and (min-width: $device-2k)
55
60
  max-width: "calc(55vw - %s)" % $sidebar
56
61
  margin: auto
57
- ~.l_side
62
+ ~#l_side
58
63
  display: none
59
64
  float: left
65
+ if hexo-config('sidebar.position') =='left'
66
+ -webkit-box-ordinal-group: 2;
67
+ -moz-box-ordinal-group: 2;
68
+ -ms-flex-order: 2;
69
+ -webkit-order: 2;
70
+ order: 2;
60
71
  .post-list
61
72
  position: relative
62
73
  margin-bottom: $gap
@@ -170,6 +181,7 @@
170
181
  align-items: baseline
171
182
  justify-content: center
172
183
  margin: 0 $gap 0 0
184
+ padding: 8px 0 // seo https://web.dev/tap-targets/
173
185
  &:last-child
174
186
  margin-right: 0
175
187
  img,i
@@ -189,7 +201,7 @@
189
201
  img
190
202
  height: 16px
191
203
  width: 16px
192
- margin-right: 5px
204
+ margin-right: 8px // seo https://web.dev/tap-targets/
193
205
  p
194
206
  margin: 0
195
207
  font-weight: normal
@@ -316,9 +328,9 @@ article#comments
316
328
  .white-box
317
329
  background: var(--color-card)
318
330
 
319
- if hexo-config('plugins.scrollreveal.enable')
320
- .reveal
321
- visibility: hidden
331
+ // if hexo-config('plugins.scrollreveal.enable')
332
+ // .reveal
333
+ // visibility: hidden
322
334
 
323
335
  img
324
336
  max-width 100%
File without changes
@@ -1,4 +1,4 @@
1
- .l_main
1
+ #l_main
2
2
  .prev-next
3
3
  width: 100%
4
4
  display: flex
@@ -8,6 +8,8 @@
8
8
  color: $color-hover
9
9
  &[pin]
10
10
  margin-right: 36px
11
+ .article-desc
12
+ word-break: break-word
11
13
  .post-v3
12
14
  overflow: hidden
13
15
  text-align: justify
@@ -1,15 +1,4 @@
1
1
  #u-search
2
- $border-card = 4px
3
- display: none
4
- position: fixed
5
- top: 0
6
- left: 0
7
- width: 100%
8
- height: 100%
9
- padding: 60px 20px
10
- z-index: 1001
11
- @media screen and (max-width: $modal-threshold)
12
- padding: 0px
13
2
  .modal
14
3
  position: fixed
15
4
  height: 80%
@@ -32,14 +21,7 @@
32
21
  border-radius: 0
33
22
 
34
23
 
35
- .modal-ajax-content
36
- opacity: 0
37
- visibility: hidden
38
- trans()
39
24
 
40
- &.loaded
41
- opacity: 1
42
- visibility: visible
43
25
 
44
26
 
45
27
  .modal-header
@@ -74,24 +56,6 @@
74
56
  &:hover
75
57
  transform: rotate(90deg)
76
58
 
77
-
78
- .modal-loading
79
- position: absolute
80
- bottom: 0
81
- left: 0
82
- width: 100%
83
- height: 2px
84
- background: transparent
85
- z-index: 1
86
-
87
- .modal-loading-bar
88
- display: block
89
- position: relative
90
- width: 0%
91
- height: 100%
92
- background: $color-theme
93
- trans()
94
-
95
59
  #u-search-modal-form
96
60
  position: relative
97
61
  width: 100%
@@ -131,73 +95,6 @@
131
95
  color: $color-theme
132
96
  z-index: 2
133
97
 
134
-
135
- .modal-footer
136
- position: absolute
137
- display: none
138
- bottom: 0
139
- left: 0
140
- width: 100%
141
- height: 50px
142
- padding: 0px 15px
143
- background: var(--color-card)
144
- .logo
145
- position: absolute
146
- top: 0
147
- left: 0
148
- width: 100%
149
- height: 100%
150
- text-align: center
151
- z-index: 0
152
- a
153
- display: inline-block
154
- height: 50px
155
- &.google img
156
- height: 24px
157
- margin-top: 13px
158
- &.baidu img
159
- height: 22px
160
- margin-top: 14px
161
- img
162
- position: relative
163
- display: inline-block
164
- width: auto
165
- height: 18px
166
- margin-top: 16px
167
- .modal-error
168
- position: relative
169
- float: left
170
- vertical-align: middle
171
- line-height: 50px
172
- font-size: 13px
173
- z-index: 1
174
-
175
- .modal-metadata
176
- position: relative
177
- float: left
178
- vertical-align: middle
179
- line-height: 50px
180
- font-size: 13px
181
- z-index: 1
182
-
183
- .nav
184
- position: relative
185
- display: block
186
- float: right
187
- vertical-align: middle
188
- font-size: $fontsize-meta
189
- font-weight: bold
190
- line-height: 50px
191
- color: var(--color-meta)
192
- cursor: pointer
193
- z-index: 1
194
- &:hover
195
- color: $color-hover
196
- &.btn-next
197
- margin-left: $gap
198
- .icon
199
- font-size: $fontsize-meta
200
-
201
98
  .modal-body
202
99
  position: absolute
203
100
  padding: $gap
@@ -1,6 +1,12 @@
1
- .l_side
1
+ #l_side
2
2
  width: $sidebar
3
3
  float: right
4
+ if hexo-config('sidebar.position') =='left'
5
+ -webkit-box-ordinal-group: 1;
6
+ -moz-box-ordinal-group: 1;
7
+ -ms-flex-order: 1;
8
+ -webkit-order: 1;
9
+ order: 1;
4
10
  position: relative
5
11
  display: flex
6
12
  flex-direction: column
@@ -104,7 +110,6 @@
104
110
  trans()
105
111
  .content
106
112
  padding: 0
107
- text-align: center
108
113
  display: flex
109
114
  flex-direction: column
110
115
  align-items: stretch
@@ -142,11 +147,13 @@
142
147
  :first-child
143
148
  margin-top: $gap
144
149
  h2
150
+ text-align: center
145
151
  font-weight: bold
146
152
  margin: $gap * 0.5
147
153
  @media screen and (max-width: $device-tablet)
148
154
  margin: $gap * 0.5
149
155
  p
156
+ text-align: center
150
157
  font-weight: bold
151
158
  margin: $gap * 0.5 $gap * 0.5 0 $gap * 0.5
152
159
  empty-cells: hide
@@ -320,7 +327,7 @@
320
327
  margin-bottom: 4px
321
328
 
322
329
 
323
- .l_side>.widget.page
330
+ #l_side>.widget.page
324
331
  >.content
325
332
  padding-top: 0
326
333
  padding-left: $gap - 4px
@@ -338,3 +345,16 @@
338
345
  &:last-child
339
346
  display inline-block
340
347
  float right
348
+
349
+ .widget-last
350
+ display: block !important
351
+ .item
352
+ display: flex
353
+ justify-content: space-between
354
+ font-size: 0.8rem
355
+ .item-title
356
+ width: 100% // 设定宽度
357
+ display: inline-block // 将 span 当作块级元素
358
+ white-space: nowrap // 不换行
359
+ overflow: hidden // 超出宽度部分隐藏
360
+ text-overflow: ellipsis // 超出部分以点号替代
@@ -1,4 +1,4 @@
1
- .l_side .toc-wrapper
1
+ #l_side .toc-wrapper
2
2
  z-index: 1
3
3
  overflow: hidden
4
4
  border-radius: $border-card
@@ -83,7 +83,7 @@
83
83
  &:empty
84
84
  display:none
85
85
 
86
- .toc-child
86
+ .toc-child
87
87
  font-size: 1rem
88
88
  overflow: hidden
89
89
  transition: max-height 0.6s ease-in
@@ -93,5 +93,5 @@
93
93
  &>.toc-link
94
94
  list_active()
95
95
  border-left: $border-line solid $color-theme
96
- &>.toc-child
96
+ &>.toc-child
97
97
  max-height: 1000px
@@ -0,0 +1,41 @@
1
+ // 异步加载的暗黑模式 暗黑模式 CSS 变量
2
+
3
+ async_dark()
4
+ // tag plugin from stellar
5
+ --block-hover: mix($c-block-dark, $c-text-dark, 95)
6
+ --text-p1: $c-text-dark
7
+ --text-p3: mix($c-text-light, $c-site-bg-light, 60)
8
+ --card: $c-card-light
9
+
10
+ // waline Dark Color https://github.com/volantis-x/hexo-theme-volantis/issues/633
11
+ if hexo-config('comments.service')=='waline'
12
+ --waline-white: #000 !important
13
+ --waline-light-grey: #666 !important
14
+ --waline-dark-grey: #999 !important
15
+ --waline-text-color: #888 !important
16
+ --waline-bgcolor: #1e1e1e !important
17
+ --waline-bgcolor-light: #272727 !important
18
+ --waline-border-color: #333 !important
19
+ --waline-disable-bgcolor: #444 !important
20
+ --waline-disable-color: #272727 !important
21
+ --waline-bq-color: #272727 !important
22
+ --waline-info-bgcolor: #272727 !important
23
+ --waline-info-color: #666 !important
24
+
25
+
26
+ // Custom Files
27
+ for $injects_darkVar in hexo-config('injects.darkVar')
28
+ @import $injects_darkVar;
29
+ // eg:
30
+ // body
31
+ // --color-site-body: blue !important
32
+
33
+ @media (prefers-color-scheme: dark)
34
+ :root
35
+ --color-mode: 'dark'
36
+ :root:not([color-scheme])
37
+ async_dark()
38
+ @import 'dark_plugins'
39
+ [color-scheme='dark']
40
+ async_dark()
41
+ @import 'dark_plugins'
@@ -0,0 +1,136 @@
1
+ // 异步加载的暗黑模式 强制覆盖样式
2
+
3
+ fa-solid,
4
+ fa-regular,
5
+ fa-duotone,
6
+ fa-light,
7
+ fa-thin,
8
+ fal,
9
+ fad,
10
+ fa,
11
+ svg.iconfont,
12
+ img,
13
+ .lazyload
14
+ filter: brightness(convert(hexo-config('color_scheme.dark.brightness'))) !important
15
+
16
+ //side
17
+ .widget.blogger .content .social-wrapper a.social:hover
18
+ background: var(--color-card)
19
+ .widget >.content ul.entry a .badge, .widget >.content ul.popular-posts a .badge
20
+ color: unset !important
21
+ .content
22
+ color: var(--color-p)
23
+ .widget >.content a
24
+ color: var(--color-p) !important
25
+ &:hover
26
+ color: var(--color-list-hl) !important
27
+ .note
28
+ background: var(--color-block) !important
29
+ div.tabs ul.nav-tabs li.tab.active a
30
+ color: var(--color-p)
31
+ background: var(--color-card)
32
+ kbd
33
+ background: var(--color-block) !important
34
+ .cover-wrapper.dock .menu .list-h a:hover, .cover-wrapper.featured .menu .list-h a:hover, .cover-wrapper.focus .menu .list-h a:hover
35
+ color: var(--color-text) !important
36
+
37
+ //highlight
38
+ if hexo-config('plugins.code_highlight') == "highlightjs"
39
+ .gutter
40
+ background: var(--color-card) !important
41
+ background-color: var(--color-card) !important
42
+ .highlight figcaption
43
+ background-color: #14161a
44
+ .highlight pre .line, .highlight pre .params
45
+ color: rgba(158, 142, 142, 0.9)
46
+
47
+ //table
48
+ *:not(.highlight) >table tr
49
+ background-color: var(--color-card)
50
+ *:not(.highlight) >table th
51
+ background: var(--color-site-bg)
52
+ *:not(.highlight) table td,*:not(.highlight) table th
53
+ border-color: var(--color-site-bg)
54
+ *:not(.highlight) >table tr:hover
55
+ background: var(--color-codeblock)
56
+ .timenode .highlight
57
+ border-color: var(--color-site-bg) !important
58
+ blockquote p
59
+ color: var(--color-p)
60
+
61
+ // tags
62
+ #archive-page .archive .all-tags ul li span
63
+ color: var(--color-text)
64
+ background: #6f6f72
65
+
66
+ // btn-copy
67
+ .btn-copy:hover
68
+ background: var(--color-site-body)
69
+
70
+ if hexo-config('comments.service')=='gitalk'
71
+ .gt-container .gt-header-textarea
72
+ background-color: var(--color-card)
73
+ &:hover
74
+ background-color: var(--color-block)
75
+ .gt-container .gt-comment-content
76
+ background-color: var(--color-card)
77
+ &:hover
78
+ box-shadow: none
79
+ .gt-container .gt-comment-admin .gt-comment-content
80
+ background-color: var(--color-card)
81
+
82
+ if hexo-config('plugins.aplayer.enable')
83
+ .aplayer
84
+ background: var(--color-site-bg)
85
+ .aplayer .aplayer-list ol li:hover
86
+ background: rgba($color-theme,.2)
87
+ .aplayer .aplayer-list ol li.aplayer-list-light
88
+ background: var(--color-block)
89
+ .aplayer-info
90
+ background: var(--color-site-bg) !important
91
+ .aplayer .aplayer-lrc:before
92
+ background: linear-gradient(180deg,#282c34 0,hsla(0,0%,100%,0))
93
+ .aplayer .aplayer-lrc:after
94
+ background: linear-gradient(180deg,hsla(0,0%,0%,0) 0,hsla(0,0%,13%,.8))
95
+ .aplayer-pic
96
+ filter: brightness(convert(hexo-config('color_scheme.dark.brightness')))
97
+ .aplayer .aplayer-list ol li
98
+ border-top: 1px solid var(--color-card)
99
+ .aplayer.aplayer-withlist .aplayer-info
100
+ border-bottom: 1px solid var(--color-block)
101
+ .aplayer .aplayer-notice
102
+ background-color: var(--color-site-bg) !important
103
+
104
+ if hexo-config('comments.service')=='twikoo'
105
+ .OwO
106
+ .OwO-body
107
+ color: silver !important
108
+ background-color: #252627 !important
109
+ border-color: #4a4b50 !important
110
+ .OwO-bar
111
+ border-top: 1px solid #4a4b50 !important
112
+ background:#4a4b50 !important
113
+ color: #ccc !important
114
+ .OwO-packages
115
+ li:hover
116
+ background-color: #252627 !important
117
+ .OwO-package-active
118
+ background-color: #252627 !important
119
+ .OwO-items
120
+ .OwO-item
121
+ background:#4a4b50 !important
122
+ color: #ccc !important
123
+ .OwO-items-image
124
+ .OwO-item:hover
125
+ background-color: #252627 !important
126
+
127
+ if hexo-config('comments.service')=='discuss'
128
+ #Discuss .D-emot
129
+ background: #333841
130
+
131
+ // Custom Files
132
+ for $injects_dark in hexo-config('injects.dark')
133
+ @import $injects_dark;
134
+ // eg:
135
+ // body
136
+ // --color-site-body: blue !important
@@ -0,0 +1,36 @@
1
+ //代码块复制按钮
2
+ .highlight
3
+ //方便copy代码按钮(btn-copy)的定位
4
+ position: relative
5
+
6
+ .btn-copy
7
+ z-index: 1
8
+ display: inline-block
9
+ cursor: pointer
10
+ border: none
11
+ disable-user-select()
12
+ -webkit-appearance: none
13
+ font-family: Menlo, $fontfamily-code
14
+ font-size: 11px
15
+ font-weight: bold
16
+ padding: $gap * 0.25 $gap * 0.5
17
+ >i
18
+ margin-right: 4px
19
+ color: var(--color-meta)
20
+ background: var(--color-block)
21
+ border-radius: 3px
22
+ box-shadow: $boxshadow-card
23
+ position: absolute
24
+ top: 1px
25
+ right: 1px
26
+ opacity: 0
27
+ trans()
28
+ &:hover
29
+ color: $color-hover
30
+ background: bgcolor($color-hover)
31
+
32
+ .highlight:hover .btn-copy
33
+ opacity: 1
34
+
35
+ .article pre:hover .btn-copy
36
+ opacity: 1