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,347 @@
1
+ // AutoPrefixCSS
2
+ // https://github.com/stylus/nib
3
+
4
+ vendor-prefixes ?= webkit khtml moz o ms
5
+
6
+ vendor(prop, only = null ,vendor-property = true, args)
7
+ if (only and official in only) or !only
8
+ {prop}: args
9
+ if vendor-property
10
+ for prefix in vendor-prefixes
11
+ unless only and !(prefix in only)
12
+ {'-' + prefix + '-' + prop}: args
13
+
14
+ // A
15
+
16
+ animation()
17
+ vendor(prop:'animation', only: null, vendor-property: true, args:arguments)
18
+
19
+ // B
20
+ box-orient()
21
+ vendor(prop:'box-orient', only: webkit moz ms official, vendor-property: true, args:arguments)
22
+
23
+ box-pack()
24
+ vendor(prop:'box-pack', only: webkit moz ms official, vendor-property: true, args:arguments)
25
+
26
+ border-radius()
27
+ vendor(prop:'border-radius', only: webkit official, vendor-property: true, args:arguments)
28
+
29
+ box-shadow()
30
+ vendor(prop:'box-shadow', only: webkit official, vendor-property: true, args:arguments)
31
+
32
+ border-image()
33
+ vendor(prop:'border-image', only: webkit moz o official, vendor-property: true, args:arguments)
34
+
35
+ background-image()
36
+ if match('-gradient\(', ''+arguments)
37
+ vendor(prop:'background-image', only: null, vendor-property: false, args:arguments)
38
+ else
39
+ background-image arguments
40
+
41
+ box-sizing()
42
+ vendor(prop:'box-sizing', only: webkit moz official, vendor-property: true, args:arguments)
43
+
44
+ backface-visibility()
45
+ vendor(prop:'backface-visibility', only: webkit moz ms official, vendor-property: true, args:arguments)
46
+
47
+ background-size()
48
+ vendor(prop:'background-size', only: webkit moz official, vendor-property: true, args:arguments)
49
+
50
+ /*
51
+ * Legacy syntax support for background-clip and background-origin
52
+ */
53
+
54
+ legacy-bg-values(property, args)
55
+ legacy_args = ()
56
+ importance = unquote('')
57
+ for subargs in args
58
+ for arg in subargs
59
+ if arg in (border-box padding-box content-box)
60
+ arg = unquote('border') if arg == border-box
61
+ arg = unquote('padding') if arg == padding-box
62
+ arg = unquote('content') if arg == content-box
63
+ if arg != '!important'
64
+ push(legacy_args,arg)
65
+ else
66
+ importance = !important
67
+ vendor(prop:property, only: moz webkit, vendor-property: true, args: unquote(join(', ',legacy_args)) importance)
68
+
69
+ background-clip()
70
+ if arguments[0] == text
71
+ vendor(prop:'background-clip', only: webkit, vendor-property: true, args:arguments)
72
+ else
73
+ legacy-bg-values('background-clip', arguments)
74
+ background-clip: arguments
75
+ // C
76
+
77
+
78
+ column-count()
79
+ vendor(prop:'column-count', only: webkit moz official, vendor-property: true, args:arguments)
80
+
81
+ column-gap()
82
+ vendor(prop:'column-gap', only: webkit moz official, vendor-property: true, args:arguments)
83
+
84
+ column-rule()
85
+ vendor(prop:'column-rule', only: webkit moz official, vendor-property: true, args:arguments)
86
+
87
+ column-rule-color()
88
+ vendor(prop:'column-rule-color', only: webkit moz official, vendor-property: true, args:arguments)
89
+
90
+ column-rule-width()
91
+ vendor(prop:'column-rule-width', only: webkit moz official, vendor-property: true, args:arguments)
92
+
93
+ column-rule-style()
94
+ vendor(prop:'column-rule-style', only: webkit moz official, vendor-property: true, args:arguments)
95
+
96
+ column-width()
97
+ vendor(prop:'column-width', only: webkit moz official, vendor-property: true, args:arguments)
98
+
99
+ column-span()
100
+ vendor(prop:'column-span', only: webkit official, vendor-property: true, args:arguments)
101
+
102
+ column-fill()
103
+ vendor(prop:'column-fill', only: moz, vendor-property: true, args:arguments)
104
+
105
+
106
+ // D
107
+ display(value)
108
+ // Initializing a flexbox container
109
+ display -webkit-box /* OLD - iOS 6-, Safari 3.1-6 */
110
+ display -moz-box /* OLD - Firefox 19- (buggy but mostly works) */
111
+ if value == inline-flex
112
+ display -ms-inline-flexbox /* TWEENER - IE 10 */
113
+ display -webkit-inline-flex /* NEW - Chrome */
114
+ display value /* NEW, Spec - Opera 12.1, Firefox 20+ */
115
+ else if value == flex
116
+ display -ms-flexbox /* TWEENER - IE 10 */
117
+ display -webkit-flex /* NEW - Chrome */
118
+ display flex /* NEW, Spec - Opera 12.1, Firefox 20+ */
119
+
120
+ if arguments != 'flex'
121
+ display: arguments;
122
+ else
123
+ display: -webkit-box;
124
+ display: -webkit-flex;
125
+ display: -ms-flexbox;
126
+ display: flex;
127
+
128
+ // E
129
+
130
+ // F
131
+ flex-wrap(value)
132
+ // Implementation of the flex-wrap attribute.
133
+ vendor(prop:'flex-wrap',only: null, vendor-property: true, args:value)
134
+
135
+ flex-flow()
136
+ vendor(prop:'flex-flow',only: null, vendor-property: true, args:arguments)
137
+
138
+ flex-direction(value)
139
+ // Implementation of flex-direction attributes.
140
+ if value == row
141
+ -webkit-box-direction normal
142
+ -moz-box-direction normal
143
+ -webkit-box-orient horizontal
144
+ -moz-box-orient horizontal
145
+ else if value == row-reverse
146
+ -webkit-box-direction reverse
147
+ -moz-box-direction reverse
148
+ -webkit-box-orient horizontal
149
+ -moz-box-orient horizontal
150
+ else if value == column
151
+ -webkit-box-direction normal
152
+ -moz-box-direction normal
153
+ -webkit-box-orient vertical
154
+ -moz-box-orient vertical
155
+ else if value == column-reverse
156
+ -webkit-box-direction reverse
157
+ -moz-box-direction reverse
158
+ -webkit-box-orient vertical
159
+ -moz-box-orient vertical
160
+ -webkit-flex-direction value
161
+ -ms-flex-direction value
162
+ flex-direction value
163
+
164
+ flexbox(value)
165
+ // Initializing a flexbox container
166
+ display -webkit-box /* OLD - iOS 6-, Safari 3.1-6 */
167
+ display -moz-box /* OLD - Firefox 19- (buggy but mostly works) */
168
+ if value == inline-flex
169
+ display -ms-inline-flexbox /* TWEENER - IE 10 */
170
+ display -webkit-inline-flex /* NEW - Chrome */
171
+ display value /* NEW, Spec - Opera 12.1, Firefox 20+ */
172
+ else if value == flex
173
+ display -ms-flexbox /* TWEENER - IE 10 */
174
+ display -webkit-flex /* NEW - Chrome */
175
+ display flex /* NEW, Spec - Opera 12.1, Firefox 20+ */
176
+
177
+ flex(grow = 0, shrink = 0)
178
+ // For configuring the flex elements
179
+ -webkit-box-flex grow
180
+ -moz-box-flex grow
181
+ -webkit-flex grow shrink
182
+ -ms-flex grow shrink
183
+ flex grow shrink
184
+
185
+ flex-content(value)
186
+ // Implements the align-content settings
187
+ if value == space-around
188
+ -webkit-align-content value
189
+ -ms-flex-line-pack distribute
190
+ align-content value
191
+ else if value == space-between
192
+ -webkit-align-content value
193
+ -ms-flex-line-pack justify
194
+ align-content value
195
+ else if value == end or value == start
196
+ -webkit-align-content flex-+value
197
+ -ms-flex-line-pack value
198
+ align-content flex-+value
199
+ else
200
+ -webkit-align-content value
201
+ -ms-flex-line-pack value
202
+ align-content value
203
+
204
+ flex-align(value)
205
+ // Function for align-items
206
+ if value == start or value == end
207
+ -webkit-box-align value
208
+ -moz-box-align value
209
+ -webkit-align-items flex-+value
210
+ -ms-flex-align value
211
+ align-items flex-+value
212
+ else
213
+ -webkit-box-align value
214
+ -moz-box-align value
215
+ -webkit-align-items value
216
+ -ms-flex-align value
217
+
218
+ flex-firefox()
219
+ // Helper to manage inline bugs in legacy Firefox
220
+ width 100%
221
+ -moz-box-sizing border-box
222
+
223
+ flex-group(value)
224
+ // Manages ordering of the flex elements within a container
225
+ -webkit-box-ordinal-group value
226
+ -moz-box-ordinal-group value
227
+ -ms-flex-order value
228
+ -webkit-order value
229
+ order value
230
+
231
+ flex-self(value)
232
+ // Function for aligning the flex elements (align-self)
233
+ if value == start or value == end
234
+ -webkit-align-self flex-+value
235
+ -ms-flex-item-align value
236
+ align-self flex-+value
237
+ else
238
+ -webkit-align-self value
239
+ -ms-flex-item-align value
240
+ align-self value
241
+
242
+ flex-justify(value)
243
+ // Implements the justify-content settings.
244
+ if value == start || value == end
245
+ -webkit-box-pack value
246
+ -moz-box-pack value
247
+ -webkit-justify-content flex-+value
248
+ -ms-flex-pack value
249
+ justify-content flex-+value
250
+ else if value == center
251
+ -webkit-box-pack value
252
+ -moz-box-pack value
253
+ -webkit-justify-content value
254
+ -ms-flex-pack value
255
+ justify-content value
256
+ else if value == space-between
257
+ -webkit-box-pack justify
258
+ -moz-box-pack justify
259
+ -webkit-justify-content value
260
+ -ms-flex-pack justify
261
+ justify-content value
262
+ else if value == space-around
263
+ -webkit-box-pack justify
264
+ -moz-box-pack justify
265
+ -webkit-justify-content value
266
+ -ms-flex-pack distribute
267
+ justify-content value
268
+
269
+
270
+ font-smoothing()
271
+ vendor(prop:'font-smoothing', only: webkit, vendor-property: true, args:arguments)
272
+ // G
273
+
274
+ // H
275
+
276
+ // I
277
+
278
+ // J
279
+ justify-content()
280
+ vendor(prop:'justify-content',only: null, vendor-property: true, args:arguments)
281
+
282
+ // K
283
+
284
+ // L
285
+
286
+ // M
287
+
288
+ // N
289
+
290
+ // O
291
+
292
+ opacity()
293
+ vendor(prop:'opacity', only: webkit moz official, vendor-property: true, args:arguments)
294
+
295
+ // P
296
+ print-color-adjust()
297
+ vendor(prop:'print-color-adjust',only: null, vendor-property: true, args:arguments)
298
+
299
+ // Q
300
+
301
+ // R
302
+
303
+ // S
304
+
305
+ // T
306
+ text-size-adjust()
307
+ vendor(prop:'text-size-adjust', only: null, vendor-property: true, args:arguments)
308
+
309
+ transition()
310
+ vendor(prop:'transition', only: null, vendor-property: true, args:arguments)
311
+
312
+ transition-property()
313
+ vendor(prop:'transition-property', only: null, vendor-property: true, args:arguments)
314
+
315
+ transition-duration()
316
+ vendor(prop:'transition-duration', only: null, vendor-property: true, args:arguments)
317
+
318
+ transition-timing-function()
319
+ vendor(prop:'transition-timing-function', only: null, vendor-property: true, args:arguments)
320
+
321
+ transition-delay()
322
+ vendor(prop:'transition-delay', only: null, vendor-property: true, args:arguments)
323
+
324
+ transform()
325
+ vendor(prop:'transform', only: null, vendor-property: true, args:arguments)
326
+
327
+ transform-origin()
328
+ vendor(prop:'transform-origin', only: null, vendor-property: true, args:arguments)
329
+
330
+ transform-style()
331
+ vendor(prop:'transform-style', only: null, vendor-property: true, args:arguments)
332
+
333
+ // U
334
+ user-select()
335
+ vendor(prop:'user-select', only: webkit moz ms official, vendor-property: true, args:arguments)
336
+
337
+
338
+ // V
339
+
340
+ // W
341
+
342
+ // X
343
+
344
+ // Y
345
+
346
+ // Z
347
+
@@ -0,0 +1,3 @@
1
+ # 定义变量
2
+
3
+ 这里存放一些 变量 或 工具函数 ,不建议存放样式
@@ -29,6 +29,9 @@ $color-google-green = #3AA757
29
29
  $color-google-yellow = #FABB2D
30
30
  $color-google-red = #E8453C
31
31
 
32
+ $color-read-bkg = #e0d8c8
33
+ $color-read-post = #f8f1e2
34
+
32
35
 
33
36
  // common
34
37
  $color-theme = convert(hexo-config('color_scheme.common.theme'))
@@ -62,8 +65,29 @@ $color-list-hl = convert(hexo-config('color_scheme.light.list_hl'))
62
65
  $color-meta = convert(hexo-config('color_scheme.light.meta'))
63
66
 
64
67
  // 深色配色方案在 darkmode.styl 中按需加载
68
+ $color-dark-site-body = convert(hexo-config('color_scheme.dark.site_bd')) // Dark Grey 1
69
+ $color-dark-read-bkg = convert(hexo-config('color_scheme.dark.site_bg'))
70
+ $color-dark-read-post = convert(hexo-config('color_scheme.dark.card'))
71
+ $color-dark-site-bg = convert(hexo-config('color_scheme.dark.site_bg')) // Dark Grey 2
72
+ $color-dark-site-inner = convert(hexo-config('color_scheme.dark.site_inner'))
73
+ $color-dark-site-footer = convert(hexo-config('color_scheme.dark.site_footer'))
74
+ $color-dark-card = convert(hexo-config('color_scheme.dark.card')) // Dark Grey 3
75
+ $color-dark-text = convert(hexo-config('color_scheme.dark.text'))
65
76
 
66
-
77
+ $color-dark-block = convert(hexo-config('color_scheme.dark.block')) // Dark Grey 4
78
+ $color-dark-codeblock = convert(hexo-config('color_scheme.dark.codeblock'))
79
+ $color-dark-inlinecode = convert(hexo-config('color_scheme.dark.inlinecode'))
80
+ $color-dark-h1 = convert(hexo-config('color_scheme.dark.h1'))
81
+ $color-dark-h2 = convert(hexo-config('color_scheme.dark.h2'))
82
+ $color-dark-h3 = convert(hexo-config('color_scheme.dark.h3'))
83
+ $color-dark-h4 = convert(hexo-config('color_scheme.dark.h4'))
84
+ $color-dark-h5 = convert(hexo-config('color_scheme.dark.h5'))
85
+ $color-dark-h6 = convert(hexo-config('color_scheme.dark.h6'))
86
+ $color-dark-p = convert(hexo-config('color_scheme.dark.p'))
87
+ $color-dark-list = convert(hexo-config('color_scheme.dark.list'))
88
+ $color-dark-list-hl = convert(hexo-config('color_scheme.dark.list_hl'))
89
+ $color-dark-meta = convert(hexo-config('color_scheme.dark.meta'))
90
+ $color-dark-link = convert(hexo-config('color_scheme.dark.meta'))
67
91
 
68
92
  bgcolor($c, $mix = 10)
69
93
  return mix($c, $color-card, $mix)
@@ -73,3 +97,19 @@ list_active()
73
97
  list_hover()
74
98
  color: var(--color-list-hl)
75
99
  background: var(--color-site-bg)
100
+
101
+ // tag plugin from stellar : color
102
+ // 浅色页面
103
+ $c-site-bg-light = #f8f8f8
104
+ $c-block-light = #f2f2f2
105
+ $c-title-light = #000
106
+ $c-text-light = #222
107
+ $c-card-light = white
108
+
109
+ // 深色页面
110
+ $c-site-bg-dark = black
111
+ $c-block-dark = #111
112
+ $c-title-dark = #fff
113
+ $c-text-dark = #fff
114
+ $c-card-dark = #333
115
+
@@ -9,16 +9,3 @@ $boxshadow-dropmenu = 0 2px 4px 0px rgba(0, 0, 0, 0.08), 0 4px 8px 0px rgba(0, 0
9
9
 
10
10
  $textshadow = 0 1px 2px 0px rgba(0, 0, 0, 0.1)
11
11
 
12
-
13
- .blur
14
- @supports (backdrop-filter: blur(20px))
15
- background: alpha($color-card, .9) !important
16
- backdrop-filter: saturate(200%) blur(20px)
17
-
18
-
19
- .shadow
20
- box-shadow: $boxshadow-card
21
- &.floatable
22
- trans()
23
- &:hover
24
- box-shadow: $boxshadow-card-float
@@ -1,23 +1,11 @@
1
1
  $fontfamily = "PingFang SC", "Microsoft YaHei", Helvetica, Arial, Menlo, Monaco, monospace, "Lucida Console", sans-serif
2
2
  if hexo-config('custom_css.fontfamily.bodyfont')
3
- if hexo-config('custom_css.fontfamily.bodyfont.name')
4
- @font-face
5
- font-family: hexo-config('custom_css.fontfamily.bodyfont.name')
6
- src: url(hexo-config('custom_css.fontfamily.bodyfont.url'))
7
- font-weight: hexo-config('custom_css.fontfamily.bodyfont.weight')
8
- font-style: hexo-config('custom_css.fontfamily.bodyfont.style')
9
3
  if hexo-config('custom_css.fontfamily.bodyfont.fontfamily')
10
4
  $fontfamily = convert(hexo-config('custom_css.fontfamily.bodyfont.fontfamily')), Menlo, Monaco, monospace, sans-serif
11
5
 
12
6
 
13
7
  $fontfamily-code = Menlo, Monaco, monospace, courier, sans-serif
14
8
  if hexo-config('custom_css.fontfamily.codefont')
15
- if hexo-config('custom_css.fontfamily.codefont.name')
16
- @font-face
17
- font-family: hexo-config('custom_css.fontfamily.codefont.name')
18
- src: url(hexo-config('custom_css.fontfamily.codefont.url'))
19
- font-weight: hexo-config('custom_css.fontfamily.codefont.weight')
20
- font-style: hexo-config('custom_css.fontfamily.codefont.style')
21
9
  if hexo-config('custom_css.fontfamily.codefont.fontfamily')
22
10
  $fontfamily-code = convert(hexo-config('custom_css.fontfamily.codefont.fontfamily')), monospace, courier, sans-serif
23
11
 
@@ -25,12 +13,6 @@ if hexo-config('custom_css.fontfamily.codefont')
25
13
 
26
14
  $fontfamily-logo = $fontfamily
27
15
  if hexo-config('custom_css.fontfamily.logofont')
28
- if hexo-config('custom_css.fontfamily.logofont.name')
29
- @font-face
30
- font-family: hexo-config('custom_css.fontfamily.logofont.name')
31
- src: url(hexo-config('custom_css.fontfamily.logofont.url'))
32
- font-weight: hexo-config('custom_css.fontfamily.logofont.weight')
33
- font-style: hexo-config('custom_css.fontfamily.logofont.style')
34
16
  if hexo-config('custom_css.fontfamily.logofont.fontfamily')
35
17
  $fontfamily-logo = convert(hexo-config('custom_css.fontfamily.logofont.fontfamily')), Helvetica, monospace
36
18
 
@@ -56,3 +38,20 @@ $lineheight = hexo-config('custom_css.gap.line_height') || 1.7
56
38
  $fontsize-large = 2.5rem
57
39
  $fontsize-huge = 4rem
58
40
  $fontsize-ultra = 6rem
41
+
42
+
43
+ // font size
44
+ $fs-root = 16px
45
+ $fs-15 = .9375rem
46
+ $fs-14 = .875rem
47
+ $fs-13 = .8125rem
48
+ $fs-12 = .75rem
49
+
50
+ $fs-h1 = 2rem // 32px
51
+ $fs-h2 = 1.5rem // 24px
52
+ $fs-h3 = 1.375rem // 22px
53
+ $fs-h4 = 1.125rem // 18px
54
+ $fs-h5 = $fs-15
55
+ $fs-h6 = $fs-12
56
+ $fs-p = $fs-15
57
+ $fs-code = $fs-13
@@ -1,11 +1,19 @@
1
+ // 为1个属性设置动画
2
+ trans1($op, $time = 0.2s)
3
+ transition: $op $time ease-out
1
4
 
5
+ // 为2个属性设置动画
6
+ trans2($op1, $op2)
7
+ transition: $op1 0.2s ease-out, $op2 0.2s ease-out
8
+
9
+ trans2pro($op1, $t1, $op2, $t2)
10
+ transition: $op1 $t1 ease-out, $op2 $t2 ease-out
11
+
12
+ trans3($op1, $op2, $op3)
13
+ transition: $op1 0.2s ease-out, $op2 0.2s ease-out, $op3 0.2s ease-out
2
14
 
3
15
  trans($time = 0.28s)
4
16
  transition: all $time ease
5
- -moz-transition: all $time ease
6
- -webkit-transition: all $time ease
7
- -o-transition: all $time ease
8
-
9
17
 
10
18
  hoverable-card()
11
19
  trans()
@@ -28,9 +36,6 @@ placeholder(rules)
28
36
  rules()
29
37
 
30
38
  disable-user-select()
31
- -moz-user-select: none
32
- -ms-user-select: none
33
- -webkit-user-select: none
34
39
  user-select: none
35
40
 
36
41
  scrollbar($w = 4px, $b = 2px, $c = $color-theme, $h = $color-hover)
@@ -62,26 +67,3 @@ scrollbar-codeblock()
62
67
  background: alpha($color-text, .5)
63
68
  &:hover
64
69
  background: $color-hover
65
-
66
- dark()
67
- --color-site-body: black
68
- --color-site-bg: convert(hexo-config('color_scheme.dark.site_bg'))
69
- --color-site-inner: convert(hexo-config('color_scheme.dark.site_inner'))
70
- --color-site-footer: convert(hexo-config('color_scheme.dark.site_footer'))
71
- --color-card: convert(hexo-config('color_scheme.dark.card'))
72
- --color-text: convert(hexo-config('color_scheme.dark.text'))
73
-
74
- --color-block: convert(hexo-config('color_scheme.dark.block'))
75
- --color-codeblock: convert(hexo-config('color_scheme.dark.codeblock'))
76
- --color-inlinecode: convert(hexo-config('color_scheme.dark.inlinecode'))
77
- --color-h1: convert(hexo-config('color_scheme.dark.h1'))
78
- --color-h2: convert(hexo-config('color_scheme.dark.h2'))
79
- --color-h3: convert(hexo-config('color_scheme.dark.h3'))
80
- --color-h4: convert(hexo-config('color_scheme.dark.h4'))
81
- --color-h5: convert(hexo-config('color_scheme.dark.h5'))
82
- --color-h6: convert(hexo-config('color_scheme.dark.h6'))
83
- --color-p: convert(hexo-config('color_scheme.dark.p'))
84
- --color-list: convert(hexo-config('color_scheme.dark.list'))
85
- --color-list-hl: convert(hexo-config('color_scheme.dark.list_hl'))
86
- --color-meta: convert(hexo-config('color_scheme.dark.meta'))
87
- --color-link: convert(hexo-config('color_scheme.dark.meta'))
@@ -0,0 +1,118 @@
1
+ :root
2
+ --color-site-body: $color-site-bg
3
+ --color-site-bg: $color-site-bg
4
+ --color-site-inner: $color-site-inner
5
+ --color-site-footer: $color-site-footer
6
+ --color-card: $color-card
7
+ --color-text: $color-text
8
+ --color-block: $color-block
9
+ --color-inlinecode: $color-inlinecode
10
+ --color-codeblock: $color-codeblock
11
+ --color-h1: $color-h1
12
+ --color-h2: $color-h2
13
+ --color-h3: $color-h3
14
+ --color-h4: $color-h4
15
+ --color-h5: $color-h5
16
+ --color-h6: $color-h6
17
+ --color-p: $color-p
18
+ --color-list: $color-list
19
+ --color-list-hl: $color-list-hl
20
+ --color-meta: $color-meta
21
+ --color-read-bkg: $color-read-bkg
22
+ --color-read-post: $color-read-post
23
+
24
+ *
25
+ box-sizing: border-box
26
+ outline: none
27
+ margin: 0
28
+ padding: 0
29
+ scrollbar()
30
+
31
+ html
32
+ color: var(--color-text)
33
+ width: 100%
34
+ height: 100%
35
+ font-family: $fontfamily
36
+ font-size: $fontsize-root
37
+ >
38
+ if hexo-config('custom_css.scrollbar.size')
39
+ scrollbar(convert(hexo-config('custom_css.scrollbar.size')), convert(hexo-config('custom_css.scrollbar.border')) || 0px)
40
+
41
+ body
42
+ background-color: var(--color-site-body)
43
+ text-rendering: optimizelegibility
44
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
45
+ line-height: $lineheight
46
+ -webkit-text-size-adjust: 100%
47
+ -ms-text-size-adjust: 100%
48
+ &.modal-active
49
+ overflow: hidden
50
+ @media screen and (max-width: $modal-threshold)
51
+ position: fixed
52
+ top: 0
53
+ right: 0
54
+ bottom: 0
55
+ left: 0
56
+
57
+ a
58
+ color: $color-link
59
+ cursor: pointer
60
+ text-decoration: none
61
+ trans()
62
+ &:hover
63
+ color: $color-hover
64
+ &:active,&:hover
65
+ outline: 0
66
+
67
+ ul,ol
68
+ padding-left: 0
69
+ li
70
+ list-style: none
71
+
72
+ header
73
+ display: block
74
+
75
+ img
76
+ border: 0
77
+ background: none
78
+ max-width: 100%
79
+
80
+ svg:not(:root)
81
+ overflow: hidden
82
+
83
+ hr
84
+ -moz-box-sizing: content-box
85
+ box-sizing: content-box
86
+ height: 0
87
+ border: 0
88
+ border-radius: 1px
89
+ border-bottom: 1px solid alpha($color-text, .1)
90
+
91
+ button,input
92
+ color: inherit
93
+ font: inherit
94
+ margin: 0
95
+
96
+ button
97
+ overflow: visible
98
+ text-transform: none
99
+ -webkit-appearance: button
100
+ cursor: pointer
101
+
102
+
103
+ .blur
104
+ @supports (backdrop-filter: blur(20px))
105
+ background: alpha($color-card, .9) !important
106
+ backdrop-filter: saturate(200%) blur(20px)
107
+
108
+ if hexo-config('comments.service')=='discuss' || hexo-config('comments.service')=='twikoo' || hexo-config('comments.service')=='waline'
109
+ .blur#comments
110
+ @supports (backdrop-filter: blur(20px))
111
+ backdrop-filter: unset
112
+
113
+ .shadow
114
+ box-shadow: $boxshadow-card
115
+ &.floatable
116
+ trans()
117
+ &:hover
118
+ box-shadow: $boxshadow-card-float