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,96 @@
1
+ $hl-keyword = #9c27b0
2
+ $hl-blue = #1E80F0
3
+ $hl-cyan = #17AFCA
4
+ $hl-green = #3FA33F
5
+ $hl-light-blue = #6ECDF9
6
+ $hl-red = #EE2B29
7
+ $hl-orange = #FB3F1B
8
+ $hl-amber = #FD8607
9
+ $hl-text = alpha($color-text, .9)
10
+ .highlight pre
11
+ // 行
12
+ .line,.params
13
+ color: $hl-text
14
+
15
+ .line .addition
16
+ color: $hl-green
17
+ .line .deletion
18
+ color: $hl-red
19
+
20
+ .marked
21
+ background-color: alpha(#FED542, .4)
22
+ padding: 2px 8px 2px 0
23
+ border-radius: 2px
24
+ width: 100%
25
+
26
+ .title, .attr, .attribute
27
+ color: $color-md-indigo
28
+
29
+ // 注释
30
+ .comment
31
+ color: var(--color-meta)
32
+
33
+ .keyword, .meta-keyword, .javascript .function
34
+ color: $hl-keyword
35
+
36
+ .type, .built_in, .tag .name
37
+ color: $color-md-light-blue
38
+
39
+ .variable, .regexp, .ruby .constant, .xml .tag .title, .xml .pi, .xml .doctype, .html .doctype, .css .id, .css .class, .css .pseudo
40
+ color: $hl-amber
41
+
42
+ .number, .preprocessor, .literal, .constant
43
+ color: $hl-amber
44
+
45
+ .class, .ruby .class .title, .css .rules .attribute
46
+ color: $color-md-orange
47
+
48
+ .string, .meta-string
49
+ color: darken($color-md-green, 10%)
50
+
51
+ .value, .inheritance, .header, .ruby .symbol, .xml .cdata
52
+ color: $color-md-green
53
+
54
+ .css .hexcolor
55
+ color: #66cccc
56
+
57
+ .function, .python .decorator, .python .title, .ruby .function .title, .ruby .title .keyword, .perl .sub, .javascript .title, .coffeescript .title
58
+ color: #6699cc
59
+
60
+
61
+ .highlight.html,.highlight.css,.highlight.less,.highlight.stylus
62
+ .line
63
+ .tag .name, .selector-tag
64
+ color: $hl-red
65
+ .selector-class, .selector-attr
66
+ color: $hl-amber
67
+ .attribute
68
+ color: $color-md-indigo
69
+ .number
70
+ color: $hl-cyan
71
+
72
+
73
+ .highlight.objc,.highlight.objectivec,.highlight.swift,.highlight.c
74
+ .line
75
+ .meta
76
+ color: $hl-keyword
77
+ .meta-string,.string
78
+ color: $hl-orange
79
+ .class
80
+ color: $hl-text
81
+ .title
82
+ color: $hl-blue
83
+ .comment
84
+ color: $hl-green
85
+
86
+ .highlight.json
87
+ .line
88
+ .attr
89
+ color: #E24F5A
90
+ .literal
91
+ color: $color-md-indigo
92
+
93
+ .highlight.yaml
94
+ .line
95
+ .attr
96
+ color: #E24F5A
@@ -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
@@ -26,4 +26,11 @@
26
26
 
27
27
  .l_header
28
28
  .aplayer-volume-wrap
29
- display: none !important // 隐藏导航栏播放器音量调节 see: https://github.com/volantis-x/hexo-theme-volantis/issues/328
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