hexo-theme-volantis 4.2.0 → 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 (302) hide show
  1. package/README.md +7 -5
  2. package/_config.yml +651 -234
  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 -2
  7. package/layout/_meta/author.ejs +4 -4
  8. package/layout/_meta/category.ejs +11 -8
  9. package/layout/_meta/counter.ejs +51 -2
  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/{valinecount.ejs → walinecount.ejs} +16 -15
  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 -13
  25. package/layout/_partial/categories.ejs +1 -1
  26. package/layout/_partial/cover.ejs +10 -30
  27. package/layout/_partial/footer.ejs +19 -11
  28. package/layout/_partial/head.ejs +70 -110
  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} +22 -26
  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 +423 -0
  37. package/layout/_partial/scripts/index.ejs +89 -73
  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/_plugins/analytics/script.ejs +74 -0
  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/_plugins/end-of-support/script.ejs +62 -0
  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/_plugins/nodewaves/script.ejs +12 -0
  80. package/layout/_plugins/parallax/script.ejs +74 -0
  81. package/layout/{_third-party → _plugins}/pjax/animate.ejs +31 -26
  82. package/layout/_plugins/pjax/index.ejs +73 -0
  83. package/layout/_plugins/pjax/pdata.ejs +56 -0
  84. package/layout/_plugins/preload/script.ejs +14 -0
  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 +40 -24
  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 +6 -2
  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 +35 -10
  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 +1 -1
  127. package/scripts/filters/replace.js +15 -0
  128. package/scripts/{z-lazyload/lib/process.js → filters/z-lazyload.js} +18 -15
  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} +9 -9
  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 +31 -26
  146. package/scripts/tags/btns.js +18 -13
  147. package/scripts/tags/checkbox.js +32 -22
  148. package/scripts/tags/contributors.js +100 -0
  149. package/scripts/tags/dropmenu.js +50 -35
  150. package/scripts/tags/fancybox.js +44 -10
  151. package/scripts/tags/folding.js +14 -9
  152. package/scripts/tags/frame.js +8 -3
  153. package/scripts/tags/friends.js +99 -0
  154. package/scripts/tags/ghcard.js +11 -6
  155. package/scripts/tags/image.js +18 -6
  156. package/scripts/tags/link.js +15 -10
  157. package/scripts/tags/md.js +59 -0
  158. package/scripts/tags/media.js +32 -8
  159. package/scripts/tags/note.js +41 -8
  160. package/scripts/tags/site.js +87 -51
  161. package/scripts/tags/span.js +16 -6
  162. package/scripts/tags/swiper.js +38 -0
  163. package/scripts/tags/table.js +1 -1
  164. package/scripts/tags/tabs.js +33 -3
  165. package/scripts/tags/timeline.js +9 -4
  166. package/source/css/Readme.md +28 -0
  167. package/source/css/_defines/AutoPrefixCSS.styl +347 -0
  168. package/source/css/_defines/Readme.md +3 -0
  169. package/source/css/_defines/color.styl +41 -1
  170. package/source/css/_defines/effect.styl +0 -13
  171. package/source/css/_defines/fonts.styl +17 -18
  172. package/source/css/_defines/func.styl +12 -30
  173. package/source/css/_first/base_first.styl +118 -0
  174. package/source/css/_first/{cover.styl → cover_first.styl} +113 -87
  175. package/source/css/_first/dark_first.styl +76 -0
  176. package/source/css/_first/fontfamily_first.styl +17 -0
  177. package/source/css/_first/{navbar.styl → navbar_first.styl} +4 -10
  178. package/source/css/_first/search_first.styl +12 -0
  179. package/source/css/{_base/index.styl → _style/_base/base.styl} +9 -93
  180. package/source/css/_style/_base/fontfamily_async.styl +8 -0
  181. package/source/css/{_layout → _style/_layout}/archive.styl +0 -0
  182. package/source/css/{_layout → _style/_layout}/article.styl +3 -30
  183. package/source/css/{_layout → _style/_layout}/footer.styl +0 -0
  184. package/source/css/_style/_layout/friends-simpleuser.styl +23 -0
  185. package/source/css/_style/_layout/friends-traditional.styl +81 -0
  186. package/source/css/{_layout → _style/_layout}/img.styl +0 -0
  187. package/source/css/_style/_layout/loading.styl +14 -0
  188. package/source/css/{_layout → _style/_layout}/main.styl +20 -7
  189. package/source/css/{_layout → _style/_layout}/md.styl +0 -0
  190. package/source/css/{_layout → _style/_layout}/pagination.styl +1 -1
  191. package/source/css/{_layout → _style/_layout}/posts.styl +2 -0
  192. package/source/css/{_first → _style/_layout}/search.styl +0 -103
  193. package/source/css/{_layout → _style/_layout}/sidebar.styl +23 -3
  194. package/source/css/{_layout → _style/_layout}/snackbar.styl +2 -1
  195. package/source/css/{_layout → _style/_layout}/toc.styl +3 -3
  196. package/source/css/{_layout → _style/_layout}/video.styl +0 -0
  197. package/source/css/_style/_plugins/_dark/dark_async.styl +41 -0
  198. package/source/css/_style/_plugins/_dark/dark_plugins.styl +136 -0
  199. package/source/css/_style/_plugins/_highlight/highlightjs/clipboard.styl +36 -0
  200. package/source/css/_style/_plugins/_highlight/highlightjs/color.styl +96 -0
  201. package/source/css/_style/_plugins/_highlight/highlightjs/index.styl +102 -0
  202. package/source/css/_style/_plugins/_highlight/highlightjs/language.styl +63 -0
  203. package/source/css/_style/_plugins/_highlight/index.styl +1 -0
  204. package/source/css/_style/_plugins/_highlight/prismjs/clipboard.styl +33 -0
  205. package/source/css/_style/_plugins/_highlight/prismjs/index.styl +8 -0
  206. package/source/css/_style/_plugins/_highlight/prismjs/language.styl +63 -0
  207. package/source/css/_style/_plugins/_rightmenu/reading.styl +56 -0
  208. package/source/css/{_plugins → _style/_plugins/_rightmenu}/rightmenu.styl +22 -2
  209. package/source/css/{_plugins → _style/_plugins}/aplayer.styl +11 -0
  210. package/source/css/{_plugins → _style/_plugins}/cursor.styl +49 -19
  211. package/source/css/_style/_plugins/fontcolor.styl +84 -0
  212. package/source/css/{_plugins → _style/_plugins}/gitalk.styl +0 -0
  213. package/source/css/_style/_plugins/index.styl +24 -0
  214. package/source/css/{_plugins → _style/_plugins}/mathjax.styl +0 -0
  215. package/source/css/_style/_plugins/message.styl +14 -0
  216. package/source/css/{_plugins → _style/_plugins}/pjaxanimate.styl +0 -0
  217. package/source/css/_style/_tag-plugins/Readme.md +6 -0
  218. package/source/css/{_tag-plugins → _style/_tag-plugins}/btns.styl +0 -0
  219. package/source/css/{_tag-plugins → _style/_tag-plugins}/checkbox.styl +0 -0
  220. package/source/css/{_tag-plugins → _style/_tag-plugins}/dropmenu.styl +0 -0
  221. package/source/css/{_plugins → _style/_tag-plugins}/fancybox.styl +8 -9
  222. package/source/css/{_tag-plugins → _style/_tag-plugins}/folding.styl +0 -0
  223. package/source/css/{_tag-plugins → _style/_tag-plugins}/frame.styl +0 -0
  224. package/source/css/_style/_tag-plugins/friends.styl +72 -0
  225. package/source/css/{_tag-plugins → _style/_tag-plugins}/ghcard.styl +0 -0
  226. package/source/css/{_tag-plugins → _style/_tag-plugins}/image.styl +0 -0
  227. package/source/css/{_tag-plugins → _style/_tag-plugins}/link.styl +0 -0
  228. package/source/css/{_tag-plugins → _style/_tag-plugins}/media.styl +0 -0
  229. package/source/css/{_tag-plugins → _style/_tag-plugins}/note.styl +0 -0
  230. package/source/css/_style/_tag-plugins/sites.styl +87 -0
  231. package/source/css/{_tag-plugins → _style/_tag-plugins}/span.styl +0 -0
  232. package/source/css/_style/_tag-plugins/swiper.styl +44 -0
  233. package/source/css/{_tag-plugins → _style/_tag-plugins}/table.styl +0 -0
  234. package/source/css/{_tag-plugins → _style/_tag-plugins}/tabs.styl +0 -0
  235. package/source/css/_style/_tag-plugins/tag.json +35 -0
  236. package/source/css/_style/_tag-plugins/text.styl +31 -0
  237. package/source/css/{_tag-plugins → _style/_tag-plugins}/timeline.styl +0 -0
  238. package/source/css/_style/index.styl +8 -0
  239. package/source/css/first.styl +17 -6
  240. package/source/css/style.styl +9 -7
  241. package/source/js/app.js +1128 -359
  242. package/source/js/plugins/aplayer.js +186 -0
  243. package/source/js/plugins/parallax.js +191 -0
  244. package/source/js/plugins/rightMenu.js +577 -0
  245. package/source/js/plugins/rightMenus.js +616 -0
  246. package/source/js/plugins/tags/contributors.js +92 -0
  247. package/source/js/plugins/tags/friends.js +93 -0
  248. package/source/js/plugins/tags/sites.js +96 -0
  249. package/source/js/search/hexo.js +180 -378
  250. package/layout/_partial/rightmenu.ejs +0 -204
  251. package/layout/_partial/scripts/cover.ejs +0 -45
  252. package/layout/_partial/scripts/darkmode.ejs +0 -96
  253. package/layout/_partial/scripts/import.ejs +0 -3
  254. package/layout/_partial/scripts/loadfunction.ejs +0 -72
  255. package/layout/_partial/scripts/search.ejs +0 -62
  256. package/layout/_partial/snackbar.ejs +0 -22
  257. package/layout/_third-party/analytics/script.ejs +0 -24
  258. package/layout/_third-party/aplayer/script.ejs +0 -24
  259. package/layout/_third-party/clipboard/script.ejs +0 -53
  260. package/layout/_third-party/comments/disqus/layout.ejs +0 -5
  261. package/layout/_third-party/comments/disqus/script.ejs +0 -93
  262. package/layout/_third-party/comments/gitalk/layout.ejs +0 -1
  263. package/layout/_third-party/comments/gitalk/script.ejs +0 -29
  264. package/layout/_third-party/comments/hashover/layout.ejs +0 -2
  265. package/layout/_third-party/comments/hashover/script.ejs +0 -1
  266. package/layout/_third-party/comments/isso/layout.ejs +0 -1
  267. package/layout/_third-party/comments/isso/script.ejs +0 -1
  268. package/layout/_third-party/comments/livere/layout.ejs +0 -3
  269. package/layout/_third-party/comments/livere/script.ejs +0 -10
  270. package/layout/_third-party/comments/minivaline/layout.ejs +0 -3
  271. package/layout/_third-party/comments/minivaline/script.ejs +0 -29
  272. package/layout/_third-party/comments/twikoo/layout.ejs +0 -3
  273. package/layout/_third-party/comments/twikoo/script.ejs +0 -17
  274. package/layout/_third-party/comments/valine/layout.ejs +0 -3
  275. package/layout/_third-party/comments/valine/script.ejs +0 -75
  276. package/layout/_third-party/comments/vssue/layout.ejs +0 -1
  277. package/layout/_third-party/comments/vssue/script.ejs +0 -22
  278. package/layout/_third-party/fancybox/script.ejs +0 -50
  279. package/layout/_third-party/issues/script.ejs +0 -15
  280. package/layout/_third-party/pjax/index.ejs +0 -143
  281. package/layout/_third-party/pjax/pdata.ejs +0 -47
  282. package/layout/_third-party/scrollreveal/script.ejs +0 -15
  283. package/layout/artitalk.ejs +0 -48
  284. package/scripts/tags/issues.js +0 -41
  285. package/scripts/z-lazyload/index.js +0 -4
  286. package/source/css/_highlight/index.styl +0 -316
  287. package/source/css/_layout/friends.styl +0 -79
  288. package/source/css/_plugins/clipboard.styl +0 -37
  289. package/source/css/_plugins/dark.styl +0 -149
  290. package/source/css/_plugins/darkmode.styl +0 -9
  291. package/source/css/_plugins/index.styl +0 -16
  292. package/source/css/_plugins/valine.styl +0 -173
  293. package/source/css/_tag-plugins/simpleuser.styl +0 -21
  294. package/source/css/_tag-plugins/site-card.styl +0 -70
  295. package/source/js/aplayer.js +0 -161
  296. package/source/js/issues.js +0 -186
  297. package/source/js/search/algolia.js +0 -348
  298. package/source/js/search/azure.js +0 -359
  299. package/source/js/search/baidu.js +0 -342
  300. package/source/js/search/google.js +0 -343
  301. package/source/js/twikoo.js +0 -13
  302. package/source/js/valine.js +0 -5265
@@ -0,0 +1,102 @@
1
+ @import 'clipboard'
2
+ @import 'language'
3
+ @import 'color'
4
+
5
+ pre
6
+ position: relative
7
+
8
+ .hljs
9
+ margin: 0 - $gap !important
10
+ padding: $gap !important
11
+ -webkit-font-smoothing: auto
12
+ -moz-osx-font-smoothing: auto
13
+ scrollbar()
14
+
15
+
16
+ .highlight
17
+ position: relative
18
+ width: 100%
19
+ margin: $gap-p 0
20
+ display: block
21
+ background: var(--color-block)
22
+ font-size: $fontsize-code
23
+ font-family: $fontfamily-code
24
+ border-radius: $border-codeblock
25
+ // border: 1px solid transparent
26
+ line-height: 1.5
27
+ -webkit-font-smoothing: auto
28
+ -moz-osx-font-smoothing: auto
29
+ // overflow: hidden // 实验中发现 overflow 这个属性设置为 hidden/auto 会导致手机端长文本代码块截断仅显示 70 行, PC端无影响.
30
+ trans()
31
+ if hexo-config('custom_css.body.highlight.grayscale') == true
32
+ filter: grayscale(100%)
33
+ &:hover
34
+ background: var(--color-codeblock)
35
+ if hexo-config('custom_css.body.highlight.grayscale') == true
36
+ filter: grayscale(0%)
37
+ figcaption
38
+ trans()
39
+ background: darken($color-codeblock, 5%)
40
+ .gutter
41
+ background: darken($color-codeblock, 5)
42
+ figcaption
43
+ font-size: 13px
44
+ position: sticky
45
+ left: 0
46
+ padding: $gap * 0.25 $gap * 0.5 $gap * 0.25 $gap * 0.5
47
+ background: darken($color-block, 5%)
48
+ border-top-left-radius: "calc(%s - 1px)" % $border-codeblock
49
+ border-top-right-radius: "calc(%s - 1px)" % $border-codeblock
50
+
51
+ >table
52
+ overflow: auto
53
+ display: block
54
+ scrollbar-codeblock()
55
+ td,th
56
+ padding: 0
57
+ border: none
58
+ line-height: 1.5
59
+ margin: 0
60
+ background-color: transparent
61
+ border: none
62
+ tr
63
+ background-color: transparent
64
+ &:hover
65
+ background-color: transparent
66
+ pre
67
+ overflow-y: hidden
68
+
69
+ .gutter
70
+ disable-user-select()
71
+ padding: 0 12px
72
+ text-align: right
73
+ border-width: 0
74
+ margin-left: 0
75
+ position: sticky
76
+ left: 0
77
+ z-index: 1
78
+ background: darken($color-block, 5)
79
+ pre
80
+ color: var(--color-meta)
81
+
82
+
83
+ pre
84
+ background: transparent
85
+ margin: 0
86
+ padding: 0
87
+ border: none
88
+ .code:before
89
+ display: none
90
+
91
+ .code
92
+ padding: $gap * 1.25 $gap
93
+ vertical-align: top
94
+ background-color: transparent
95
+ &:before
96
+ content: ""
97
+ position: absolute
98
+ top: 0
99
+ right: 0
100
+ color: var(--color-meta)
101
+ font-size: 13px
102
+ padding: 4px 8px
@@ -0,0 +1,63 @@
1
+ if hexo-config('custom_css.body.highlight.language') == true
2
+ .hljs,.highlight
3
+ &:before
4
+ position: absolute
5
+ top: 0
6
+ right: 0
7
+ color: var(--color-meta)
8
+ font-size: 13px
9
+ padding: 4px 8px
10
+ &.md:before,&.markdown:before
11
+ content: "md"
12
+ &.yaml:before
13
+ content: "YAML"
14
+ &.json:before
15
+ content: "JSON"
16
+
17
+ &.html:before
18
+ content: "HTML"
19
+ &.js:before,&.javascript:before
20
+ content: "JS"
21
+ &.css:before
22
+ content: "CSS"
23
+ &.less:before
24
+ content: "Less"
25
+ &.stylus:before
26
+ content: "Stylus"
27
+
28
+ &.bash:before
29
+ content: "bash"
30
+ &.shell:before
31
+ content: "shell"
32
+ &.sh:before
33
+ content: "sh"
34
+ &.ini:before
35
+ content: "ini"
36
+
37
+ &.c:before
38
+ content: "C"
39
+ &.cpp:before
40
+ content: "C++"
41
+ &.objc:before,&.objectivec:before
42
+ content: "Objective-C"
43
+ &.swift:before
44
+ content: "Swift"
45
+
46
+ &.java:before
47
+ content: "Java"
48
+ &.python:before
49
+ content: "Python"
50
+ &.php:before
51
+ content: "PHP"
52
+ &.rust:before
53
+ content: "Rust"
54
+ &.sql:before
55
+ content: "SQL"
56
+ &.ruby:before
57
+ content: "Ruby"
58
+ &.makefile:before
59
+ content: "Makefile"
60
+ &.go:before
61
+ content: "Go"
62
+ &.typescript:before
63
+ content: "TypeScript"
@@ -0,0 +1 @@
1
+ @import hexo-config('plugins.code_highlight')
@@ -0,0 +1,33 @@
1
+ //代码块复制按钮
2
+ .code-toolbar
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-card)
21
+ border-radius: 3px
22
+ box-shadow: $boxshadow-card
23
+ position: absolute
24
+ top: 5px
25
+ right: 5px
26
+ opacity: 0
27
+ trans()
28
+ &:hover
29
+ color: $color-hover
30
+ background: bgcolor($color-hover)
31
+
32
+ .code-toolbar:hover .btn-copy
33
+ opacity: 1
@@ -0,0 +1,8 @@
1
+ @import 'clipboard'
2
+ @import 'language'
3
+
4
+ pre
5
+ position: relative
6
+ -webkit-font-smoothing: auto
7
+ -moz-osx-font-smoothing: auto
8
+ scrollbar()
@@ -0,0 +1,63 @@
1
+ if hexo-config('custom_css.body.highlight.language') == true
2
+ pre
3
+ &:before
4
+ position: absolute
5
+ top: 0
6
+ right: 0
7
+ color: var(--color-meta)
8
+ font-size: 13px
9
+ padding: 4px 8px
10
+ &.language-md:before,&.markdown:before
11
+ content: "md"
12
+ &.language-yaml:before
13
+ content: "YAML"
14
+ &.language-json:before
15
+ content: "JSON"
16
+
17
+ &.language-html:before
18
+ content: "HTML"
19
+ &.language-js:before,&.language-javascript:before
20
+ content: "JS"
21
+ &.language-css:before
22
+ content: "CSS"
23
+ &.language-less:before
24
+ content: "Less"
25
+ &.language-stylus:before
26
+ content: "Stylus"
27
+
28
+ &.language-bash:before
29
+ content: "bash"
30
+ &.language-shell:before
31
+ content: "shell"
32
+ &.language-sh:before
33
+ content: "sh"
34
+ &.language-ini:before
35
+ content: "ini"
36
+
37
+ &.language-c:before
38
+ content: "C"
39
+ &.language-cpp:before
40
+ content: "C++"
41
+ &.language-objc:before,&.language-objectivec:before
42
+ content: "Objective-C"
43
+ &.language-swift:before
44
+ content: "Swift"
45
+
46
+ &.language-java:before
47
+ content: "Java"
48
+ &.language-python:before
49
+ content: "Python"
50
+ &.language-php:before
51
+ content: "PHP"
52
+ &.language-rust:before
53
+ content: "Rust"
54
+ &.language-sql:before
55
+ content: "SQL"
56
+ &.language-ruby:before
57
+ content: "Ruby"
58
+ &.language-makefile:before
59
+ content: "Makefile"
60
+ &.language-go:before
61
+ content: "Go"
62
+ &.language-typescript:before
63
+ content: "TypeScript"
@@ -0,0 +1,56 @@
1
+ .common_read
2
+ z-index: auto !important
3
+ opacity: 1 !important
4
+ overflow: visible !important
5
+ transform: none !important
6
+ animation: none !important
7
+ position: relative !important
8
+
9
+ .body-wrapper.common_read
10
+ display: block
11
+
12
+ #safearea.common_read
13
+ padding-bottom: 16px
14
+ @media screen and (max-width: 900px)
15
+ padding: 0
16
+ margin: 0
17
+
18
+ #l_body.common_read
19
+ z-index: 2147483646 !important;
20
+
21
+ .read_cover
22
+ min-height: 10px !important
23
+ @media screen and (max-width: 900px)
24
+ min-height: 0 !important
25
+
26
+ .common_read_bkg
27
+ background-color: var(--color-read-bkg) !important
28
+ opacity: 1 !important
29
+ display: block !important
30
+ position: fixed !important
31
+ top: 0 !important
32
+ left: 0 !important
33
+ right: 0 !important
34
+ bottom: 0 !important
35
+ z-index: 2147483645 !important
36
+ transition: opacity 1s cubic-bezier(.23,1,.32,1) 0ms !important
37
+
38
+ .common_read_hide
39
+ opacity: 0 !important
40
+ z-index: -2147483645 !important
41
+
42
+ .common_read_main
43
+ width: 840px !important;
44
+ padding: 0 !important;
45
+ margin: 0 auto;
46
+ float: initial !important;
47
+ @media screen and (max-width: 900px)
48
+ width: auto !important;
49
+
50
+ .post_read
51
+ background-color: var(--color-read-post) !important
52
+ z-index: 2147483646 !important
53
+ overflow: visible !important
54
+ font-size: 1.15rem !important
55
+ border-radius: 0 !important;
56
+ box-shadow: 0 6px 12px 3px #00000033
@@ -1,7 +1,7 @@
1
1
  div#rightmenu-wrapper
2
2
  display: none
3
3
  position:fixed
4
- z-index: 9000
4
+ z-index: 2147483648
5
5
  disable-user-select()
6
6
  ul.list-v.rightmenu
7
7
  display: block
@@ -18,6 +18,26 @@ ul.list-v.rightmenu
18
18
  text-overflow: ellipsis
19
19
  overflow: hidden
20
20
  line-height: $cellH
21
+ font-weight: normal
22
+ >li>span
23
+ trans()
24
+ display: block
25
+ color: var(--color-list)
26
+ font-size: $fontsize-meta
27
+ // font-weight: bold
28
+ line-height: 36px
29
+ @media screen and (max-width: $device-laptop)
30
+ line-height: 40px
31
+ padding: 0 $gap + $border-line + 2px 0 $gap
32
+ text-overflow: ellipsis
33
+ margin: 0 4px
34
+ border-radius: 4px
35
+ >i
36
+ margin-right: 8px
37
+ &:active,&.active
38
+ list_active()
39
+ &:hover
40
+ list_hover()
21
41
  li.navigation, li.music
22
42
  display: flex
23
43
  justify-content: space-between
@@ -51,7 +71,7 @@ ul.list-v.rightmenu
51
71
  overflow: hidden
52
72
  &:hover
53
73
  background: none
54
- a.nav.volume
74
+ .nav.volume
55
75
  width: 100%
56
76
  padding: 0 $gap * 0.5
57
77
  &:hover
@@ -23,3 +23,14 @@
23
23
  text-align: left
24
24
  @media screen and (max-width: $device-mobile)
25
25
  border-radius: $border-card
26
+
27
+ .l_header
28
+ .aplayer-volume-wrap
29
+ display: none !important // 隐藏导航栏播放器音量调节 see: https://github.com/volantis-x/hexo-theme-volantis/issues/328
30
+
31
+
32
+ if hexo-config('plugins.aplayer.autoHide')
33
+ .aplayer.aplayer-fixed.aplayer-narrow .aplayer-body
34
+ left: -66px !important
35
+ &:hover
36
+ left: 0px !important
@@ -15,22 +15,25 @@ $grab = url(hexo-config('custom_css.cursor.grab'))
15
15
  p,
16
16
  input,
17
17
  pre>span,
18
- textarea,
19
- cursor: $text,text !important
18
+ textarea
19
+ cursor: $text,text
20
20
 
21
21
 
22
- .fancybox-container .fancybox-stage
23
- cursor: $zoom-out,zoom-out !important
22
+ .fancybox-container .fancybox-stage,
23
+ .fancybox__carousel .is-draggable
24
+ cursor: $zoom-out,zoom-out
24
25
 
25
26
 
26
27
  .fancybox a,
27
- .fancybox-can-zoomIn .fancybox-content
28
- cursor: $zoom-in,zoom-in !important
28
+ .fancybox-can-zoomIn .fancybox-content,
29
+ .fancybox__carousel .fancybox__slide.can-zoom_in .fancybox__content
30
+ cursor: $zoom-in,zoom-in
29
31
 
30
32
  span.btn>a:not([href]):hover,
31
33
  .fancybox-button[disabled], .fancybox-button[disabled]:hover,
32
- .gt-container .gt-btn.is--disable
33
- cursor: $not-allowed,not-allowed !important
34
+ .gt-container .gt-btn.is--disable,
35
+ span.not-select
36
+ cursor: $not-allowed,not-allowed
34
37
 
35
38
 
36
39
  html,
@@ -42,19 +45,24 @@ button[disabled],html input[disabled],
42
45
  ul.list-v.rightmenu a,
43
46
  span.btn a:not([href]),
44
47
  div.tabs ul.nav-tabs li.tab.active a,
45
- article#comments #valine_container .vcards .vhead span.vnick,
46
48
  kbd,
47
49
  .a > p,
48
50
  .not-select,
49
51
  .not-select p,
50
- .MiniValine *,
51
52
  .aplayer .aplayer-info .aplayer-music,
52
53
  .gt-container a.is--active,
54
+ .iziToast,
55
+ .iziToast p,
56
+ .iframe,
57
+ .embed-show,
58
+ p > img,
59
+ p > svg,
53
60
  .fix-cursor-default
54
- cursor: $default,default !important
61
+ cursor: $default,default
55
62
 
56
63
 
57
64
  a,
65
+ psw,
58
66
  button,
59
67
  html input[type=button],
60
68
  input[type=reset],
@@ -94,14 +102,6 @@ div.tabs ul.nav-tabs li.tab a,
94
102
  .aplayer .aplayer-list ol li .aplayer-list-index,
95
103
  .waves-button, .waves-button-input, .waves-button:hover, .waves-button:visited,
96
104
  .fancybox-button,
97
- .MiniValine .vbtn,
98
- .MiniValine .vcancel-comment-reply,
99
- .MiniValine .vcancel-comment-reply svg,
100
- .MiniValine .vlist .vcard .vcomment-body .vat,
101
- .MiniValine .vlist .vcard .vcomment-body .vhead .vname,
102
- .MiniValine .vinputs-area .btn-wrap .vfunction-btn svg,
103
- .MiniValine .vinputs-area .vextra-area .vsmile-icons img,
104
- .MiniValine .vlist .vcard .vcomment-body .text-wrapper .vcomment a,
105
105
  .gt-container .gt-btn,
106
106
  .gt-container .gt-user-inner,
107
107
  .gt-container .gt-avatar-github,
@@ -109,5 +109,35 @@ div.tabs ul.nav-tabs li.tab a,
109
109
  .gt-container .gt-comment-like:hover,
110
110
  .gt-container .gt-comment-edit:hover,
111
111
  .gt-container .gt-comment-reply:hover,
112
+ .tk-icon,
113
+ .tk-avatar img,
114
+ .tk-meta a,
115
+ .tk-action-icon,
116
+ .fancybox,
112
117
  .fix-cursor-pointer
118
+ cursor: $pointer,pointer
119
+
120
+ // 强制覆盖区域
121
+ .cur-default
122
+ cursor: $default,default !important
123
+
124
+ .cur-pointer,
125
+ .carousel__button,
126
+ .fancybox__slide
113
127
  cursor: $pointer,pointer !important
128
+
129
+ .cur-not-allowed
130
+ cursor: $not-allowed,not-allowed !important
131
+
132
+ .cur-zoom-in,
133
+ .fancybox__carousel .fancybox__slide.can-zoom_in .fancybox__content,
134
+ .has-image[data-image-fit=contain].can-zoom_in .fancybox__image
135
+ cursor: $zoom-in,zoom-in !important
136
+
137
+ .cur-zoom-out,
138
+ .fancybox__carousel .is-draggable,
139
+ .has-image[data-image-fit=contain].is-draggable .fancybox__image
140
+ cursor: $zoom-out,zoom-out !important
141
+
142
+ .cur-text
143
+ cursor: $text,text !important
@@ -0,0 +1,84 @@
1
+ // Icon 颜色
2
+ // https://flatuicolors.com/palette/defo
3
+ .fa,
4
+ .fas,
5
+ .far,
6
+ .fad,
7
+ .fal,
8
+ .fa-solid,
9
+ .fa-regular,
10
+ .fa-duotone,
11
+ .fa-light,
12
+ .fa-thin,
13
+ // 图标颜色自定义
14
+ .iziToast>.iziToast-body .iziToast-icon
15
+ &.red
16
+ color: $color-md-red
17
+ &.pink
18
+ color: $color-md-pink
19
+ &.purple
20
+ color: $color-md-purple
21
+ &.indigo
22
+ color: $color-md-indigo
23
+ &.light-blue
24
+ color: $color-md-light-blue
25
+ &.deep-blue
26
+ color: $color-md-deep-blue
27
+ &.teal
28
+ color: $color-md-teal
29
+ &.light-green
30
+ color: $color-md-light-green
31
+ &.orange
32
+ color: $color-md-orange
33
+ &.deep-orange
34
+ color: $color-md-deep-orange
35
+ &.brown
36
+ color: $color-md-brown
37
+ &.blue-grey
38
+ color: $color-md-blue-grey
39
+ &.yellow
40
+ color: $color-md-yellow
41
+
42
+ &.TURQUOISE
43
+ color: #1abc9c
44
+ &.EMERALD
45
+ color: #2ecc71
46
+ &.PETERRIVE
47
+ color: #3498db
48
+ &.AMETHYST
49
+ color: #9b59b6
50
+ &.WETASPHALT
51
+ color: #34495e
52
+
53
+ &.GREENSEA
54
+ color: #16a085
55
+ &.NEPHRITIS
56
+ color: #27ae60
57
+ &.BELIZEHOLE
58
+ color: #2980b9
59
+ &.WISTERIA
60
+ color: #8e44ad
61
+ &.MIDNIGHTBLUE
62
+ color: #2c3e50
63
+
64
+ &.SUNFLOWER
65
+ color: #f1c40f
66
+ &.CARROT
67
+ color: #e67e22
68
+ &.ALIZARIN
69
+ color: #e74c3c
70
+ &.CLOUDS
71
+ color: #ecf0f1
72
+ &.CONCRETE
73
+ color: #95a5a6
74
+
75
+ &.ORANGE
76
+ color: #f39c12
77
+ &.PUMPKIN
78
+ color: #d35400
79
+ &.POMEGRANATE
80
+ color: #c0392b
81
+ &.SILVER
82
+ color: #bdc3c7
83
+ &.ASBESTOS
84
+ color: #7f8c8d
@@ -0,0 +1,24 @@
1
+ @import 'mathjax'
2
+ @import 'fontcolor'
3
+
4
+
5
+ if hexo-config('plugins.code_highlight')
6
+ @import '_highlight'
7
+ if hexo-config('plugins.message.enable')
8
+ @import 'message'
9
+ if hexo-config('plugins.aplayer.enable')
10
+ @import 'aplayer'
11
+ if hexo-config('plugins.pjax.enable') and hexo-config('plugins.pjax.animation')
12
+ @import 'pjaxanimate'
13
+ if hexo-config('comments.service')=='gitalk'
14
+ @import 'gitalk'
15
+ if hexo-config('custom_css.cursor.enable')
16
+ @import 'cursor'
17
+ if hexo-config('rightmenu.enable') or hexo-config('rightmenus.enable')
18
+ @import '_rightmenu/*'
19
+
20
+
21
+
22
+ // 暗黑模式样式放到最后加载
23
+ if hexo-config('plugins.darkmode.enable')
24
+ @import '_dark/dark_async'
@@ -0,0 +1,14 @@
1
+ // 覆盖消息提示的样式
2
+ //.iziToast-wrapper
3
+ // z-index: 2147483647 !important
4
+ .iziToast-texts
5
+ max-width: 300px !important
6
+ min-width: 200px !important
7
+ @media screen and (max-width: 500px)
8
+ max-width: unset !important
9
+ min-width: unset !important
10
+ .iziToast-title
11
+ margin-bottom: 6px !important
12
+ font-size: 1rem !important
13
+ .iziToast-message
14
+ word-break: break-all !important
@@ -0,0 +1,6 @@
1
+ 这里存放 tag 标签 的样式
2
+
3
+ 为便于管理样式, 文件名使用 tag 名称命名
4
+
5
+ tag.json 索引 tag 标签名称和使用的样式文件的对应关系
6
+
@@ -39,22 +39,22 @@ div.gallery
39
39
  flex-wrap: nowrap
40
40
  padding: 0 !important
41
41
  align-items: stretch
42
- &[col]>p
42
+ &[col]
43
43
  flex-wrap: wrap
44
44
  justify-content: flex-start
45
- &[col='2']>p>.fancybox
45
+ &[col='2']>.fancybox
46
46
  width: "calc(50% - 2 * %s)" % $sp
47
- &[col='3']>p>.fancybox
47
+ &[col='3']>.fancybox
48
48
  width: "calc(33.33% - 2 * %s)" % $sp
49
- &[col='4']>p>.fancybox
49
+ &[col='4']>.fancybox
50
50
  width: "calc(25% - 2 * %s)" % $sp
51
- &[col='5']>p>.fancybox
51
+ &[col='5']>.fancybox
52
52
  width: "calc(20% - 2 * %s)" % $sp
53
- &[col='6']>p>.fancybox
53
+ &[col='6']>.fancybox
54
54
  width: "calc(16.66% - 2 * %s)" % $sp
55
- &[col='7']>p>.fancybox
55
+ &[col='7']>.fancybox
56
56
  width: "calc(14.2857% - 2 * %s)" % $sp
57
- &[col='8']>p>.fancybox
57
+ &[col='8']>.fancybox
58
58
  width: "calc(12.5% - 2 * %s)" % $sp
59
59
  >p
60
60
  margin: 0
@@ -89,7 +89,6 @@ div.fancybox
89
89
  line-height: 0
90
90
  margin: 0 auto
91
91
  align-items: stretch
92
- cursor: zoom-in
93
92
  .gallery
94
93
  overflow: hidden
95
94
  .image-caption