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
@@ -18,28 +18,30 @@
18
18
  position: relative
19
19
  overflow: hidden
20
20
  margin-bottom: -100px
21
- .cover-bg,#cover-backstretch
22
- position: absolute
23
- width: 100%
24
- height: 100%
25
- background-position: center
26
- background-size: cover
27
- &.lazyload
28
- &:not(.loaded)
29
- opacity: 0
30
- &.loaded
31
- animation-delay: 0s
32
- animation-duration: .5s
33
- animation-fill-mode: forwards
34
- animation-timing-function: ease-out
35
- animation-name: fadeIn
36
- @keyframes fadeIn
37
- 0%
38
- opacity: 0
39
- filter blur(12px)
40
- transform: scale(1.02)
41
- 100%
42
- opacity: 1
21
+
22
+ if not hexo-config('plugins.parallax.enable') and hexo-config('cover.background')
23
+ .cover-bg
24
+ position: absolute
25
+ width: 100%
26
+ height: 100%
27
+ background-position: center
28
+ background-size: cover
29
+ &.lazyload
30
+ &:not(.loaded)
31
+ opacity: 0
32
+ &.loaded
33
+ animation-delay: 0s
34
+ animation-duration: .5s
35
+ animation-fill-mode: forwards
36
+ animation-timing-function: ease-out
37
+ animation-name: fadeIn
38
+ @keyframes fadeIn
39
+ 0%
40
+ opacity: 0
41
+ filter blur(12px)
42
+ transform: scale(1.02)
43
+ 100%
44
+ opacity: 1
43
45
 
44
46
  .cover-body
45
47
  z-index: 1
@@ -203,76 +205,100 @@
203
205
  &:hover, &.active, &:active
204
206
  opacity: 1
205
207
  border-bottom: 2px solid var(--color-site-inner)
206
- &.dock .menu, &.featured .menu, &.focus .menu
207
- border-radius: $border-button + 2px
208
- .list-h a
209
- flex-direction: column
210
- align-items: center
211
- padding: $gap * 0.75
212
- line-height: 24px
213
- @media screen and (max-width: $device-mobile)
214
- padding: $gap * 0.75 $gap * 0.5
215
- border-radius: $border-button
216
- border-bottom: none
217
- text-align: center
218
- align-content: flex-end
219
- color: alpha($color-text, .7)
220
- font-size: 1.5rem
221
- i
222
- margin: $gap * 0.5
223
- p
224
- font-size: $fontsize-meta
225
- &.active
226
- i, i+p
227
- color: $color-theme
228
- img+p
229
- color: var(--color-text)
230
- background: var(--color-card)
231
- backdrop-filter: none
232
- &:hover
233
- background: var(--color-card)
234
-
208
+ if hexo-config('cover.layout_scheme') == 'dock' || hexo-config('cover.layout_scheme') == 'featured' || hexo-config('cover.layout_scheme') == 'focus'
209
+ &.dock .menu, &.featured .menu, &.focus .menu
210
+ border-radius: $border-button + 2px
211
+ .list-h a
212
+ flex-direction: column
213
+ align-items: center
214
+ padding: $gap * 0.75
215
+ line-height: 24px
216
+ @media screen and (max-width: $device-mobile)
217
+ padding: $gap * 0.75 $gap * 0.5
218
+ border-radius: $border-button
219
+ border-bottom: none
220
+ text-align: center
221
+ align-content: flex-end
222
+ color: alpha($color-text, .7)
223
+ font-size: 1.5rem
224
+ i
225
+ margin: $gap * 0.5
226
+ p
227
+ font-size: $fontsize-meta
228
+ &.active
229
+ i, i+p
230
+ color: $color-theme
231
+ img+p
232
+ color: var(--color-text)
233
+ background: var(--color-card)
234
+ backdrop-filter: none
235
+ &:hover
236
+ background: var(--color-card)
235
237
 
236
- .cover-wrapper.dock .top
237
- margin-bottom: $gap * 3
238
- .cover-wrapper.dock .menu
239
- background: alpha($color-card, .5)
240
- position: absolute
241
- bottom: 0
242
- max-width: 100%
243
- .list-h
244
- flex-wrap: nowrap
245
- margin: 4px
246
- a+a
247
- margin-left: 4px
248
- @media screen and (max-width: $device-mobile)
249
- overflow-x: scroll
250
- scrollbar(0, 0)
251
- @supports (backdrop-filter: blur(20px))
252
- background: alpha($color-card, .5)
253
- backdrop-filter: saturate(200%) blur(20px)
254
-
255
- .cover-wrapper.featured .menu
256
- .list-h
257
- margin: -2px
258
- .list-h a
259
- margin: 2px
238
+ if hexo-config('cover.layout_scheme') == 'dock'
239
+ .cover-wrapper.dock .top
240
+ margin-bottom: $gap * 3
241
+ .cover-wrapper.dock .menu
260
242
  background: alpha($color-card, .5)
243
+ position: absolute
244
+ bottom: 0
245
+ max-width: 100%
246
+ .list-h
247
+ flex-wrap: nowrap
248
+ margin: 4px
249
+ a+a
250
+ margin-left: 4px
251
+ @media screen and (max-width: $device-mobile)
252
+ overflow-x: scroll
253
+ scrollbar(0, 0)
261
254
  @supports (backdrop-filter: blur(20px))
262
255
  background: alpha($color-card, .5)
263
256
  backdrop-filter: saturate(200%) blur(20px)
264
257
 
265
- .cover-wrapper.focus .menu
266
- .list-h
267
- margin: 2px
268
- trans()
269
- &:hover
270
- background: alpha($color-card, .5)
271
- @supports (backdrop-filter: blur(20px))
258
+ if hexo-config('cover.layout_scheme') == 'featured'
259
+ .cover-wrapper.featured .menu
260
+ .list-h
261
+ margin: -2px
262
+ .list-h a
263
+ margin: 2px
272
264
  background: alpha($color-card, .5)
273
- backdrop-filter: saturate(200%) blur(20px)
274
- .list-h a
275
- margin: 2px
265
+ @supports (backdrop-filter: blur(20px))
266
+ background: alpha($color-card, .5)
267
+ backdrop-filter: saturate(200%) blur(20px)
268
+
269
+ if hexo-config('cover.layout_scheme') == 'focus'
270
+ .cover-wrapper.focus .menu
271
+ .list-h
272
+ margin: 2px
273
+ trans()
276
274
  &:hover
277
- opacity: 1
278
- background: var(--color-card)
275
+ background: alpha($color-card, .5)
276
+ @supports (backdrop-filter: blur(20px))
277
+ background: alpha($color-card, .5)
278
+ backdrop-filter: saturate(200%) blur(20px)
279
+ .list-h a
280
+ margin: 2px
281
+ &:hover
282
+ opacity: 1
283
+ background: var(--color-card)
284
+
285
+ if hexo-config('plugins.parallax.enable')
286
+ .cover-wrapper
287
+ #parallax-window
288
+ position: absolute
289
+ width: 100%
290
+ height: 100%
291
+ background: transparent
292
+
293
+ .parallax-mirror
294
+ animation-delay: 0s
295
+ animation-duration: .5s
296
+ animation-fill-mode: forwards
297
+ animation-timing-function: ease-out
298
+ animation-name: fadeIn
299
+ @keyframes fadeIn
300
+ 0%
301
+ opacity: 0
302
+ filter blur(12px)
303
+ 100%
304
+ opacity: 1
@@ -0,0 +1,76 @@
1
+ // 首屏加载的暗黑模式
2
+ fitst_dark()
3
+ // Base Dark Color
4
+ --color-site-body: $color-dark-site-body
5
+ --color-read-bkg: $color-dark-read-bkg
6
+ --color-read-post: $color-dark-read-post
7
+ --color-site-bg: $color-dark-site-bg
8
+ --color-site-inner: $color-dark-site-inner
9
+ --color-site-footer: $color-dark-site-footer
10
+ --color-card: $color-dark-card
11
+ --color-text: $color-dark-text
12
+
13
+ --color-block: $color-dark-block
14
+ --color-codeblock: $color-dark-codeblock
15
+ --color-inlinecode: $color-dark-inlinecode
16
+ --color-h1: $color-dark-h1
17
+ --color-h2: $color-dark-h2
18
+ --color-h3: $color-dark-h3
19
+ --color-h4: $color-dark-h4
20
+ --color-h5: $color-dark-h5
21
+ --color-h6: $color-dark-h6
22
+ --color-p: $color-dark-p
23
+ --color-list: $color-dark-list
24
+ --color-list-hl: $color-dark-list-hl
25
+ --color-meta: $color-dark-meta
26
+ --color-link: $color-dark-link
27
+
28
+ img
29
+ filter: brightness(convert(hexo-config('color_scheme.dark.brightness'))) !important
30
+ //header
31
+ .blur
32
+ background: rgba($color-dark-site-bg, .9) !important
33
+ .white-box.blur
34
+ background: rgba($color-dark-card, .9) !important
35
+ .nav-main
36
+ .u-search-input
37
+ background: var(--color-card) !important
38
+ #l_main .article .prev-next>a
39
+ background: var(--color-block) !important
40
+ &:hover
41
+ background: var(--color-site-bg) !important
42
+ .article blockquote
43
+ background: var(--color-block) !important
44
+ .article-title a
45
+ color: var(--color-h1) !important
46
+ details>summary
47
+ color: var(--color-p) !important
48
+ background: var(--color-site-bg) !important
49
+ details
50
+ border: 1px solid var(--color-site-bg) !important
51
+ background: var(--color-site-bg) !important
52
+
53
+ //search
54
+ #u-search .modal,
55
+ #u-search .modal-header,
56
+ #u-search .modal-body
57
+ background: var(--color-card) !important
58
+ #u-search .modal-body .modal-results .result:hover
59
+ background: var(--color-block) !important
60
+ .u-search-input:hover
61
+ background: var(--color-block) !important
62
+ .u-search-input:focus
63
+ background: var(--color-site-body) !important
64
+ //phone search
65
+ .l_header .m_search
66
+ @media screen and (max-width: $device-mobile)
67
+ background: var(--color-site-bg) !important
68
+
69
+ if hexo-config('plugins.darkmode.enable')
70
+ @media (prefers-color-scheme: dark)
71
+ :root
72
+ --color-mode: 'dark'
73
+ :root:not([color-scheme])
74
+ fitst_dark()
75
+ [color-scheme='dark']
76
+ fitst_dark()
@@ -0,0 +1,17 @@
1
+ if hexo-config('custom_css.fontfamily.bodyfont')
2
+ if hexo-config('custom_css.fontfamily.bodyfont.name')
3
+ @font-face
4
+ font-family: hexo-config('custom_css.fontfamily.bodyfont.name')
5
+ src: url(hexo-config('custom_css.fontfamily.bodyfont.url'))
6
+ font-weight: hexo-config('custom_css.fontfamily.bodyfont.weight')
7
+ font-style: hexo-config('custom_css.fontfamily.bodyfont.style')
8
+ font-display: swap
9
+
10
+ if hexo-config('custom_css.fontfamily.logofont')
11
+ if hexo-config('custom_css.fontfamily.logofont.name')
12
+ @font-face
13
+ font-family: hexo-config('custom_css.fontfamily.logofont.name')
14
+ src: url(hexo-config('custom_css.fontfamily.logofont.url'))
15
+ font-weight: hexo-config('custom_css.fontfamily.logofont.weight')
16
+ font-style: hexo-config('custom_css.fontfamily.logofont.style')
17
+ font-display: swap
@@ -28,10 +28,13 @@
28
28
 
29
29
  .nav-main
30
30
  trans()
31
- // transform: translateY(0 - $navbar-height)
31
+
32
+ // https://github.com/volantis-x/hexo-theme-volantis/issues/658
32
33
  &.sub .nav-main
33
34
  transform: translateY(0 - 1 * $navbar-height)
34
35
  .nav-sub
36
+ ::-webkit-scrollbar
37
+ display:none
35
38
  trans()
36
39
  opacity: 0
37
40
  height: $navbar-height
@@ -345,15 +348,6 @@ ul.list-v
345
348
  display: block
346
349
  trans()
347
350
 
348
-
349
- .cover-wrapper
350
- .l_header
351
- trans(0.5s)
352
- transform: translateY(-2 * $navbar-height)
353
- &.show
354
- transform: translateY(0)
355
-
356
-
357
351
  .l_header
358
352
  if hexo-config('custom_css.navbar.width') == 'auto'
359
353
  max-width: 65vw
@@ -0,0 +1,12 @@
1
+ #u-search
2
+ $border-card = 4px
3
+ display: none
4
+ position: fixed
5
+ top: 0
6
+ left: 0
7
+ width: 100%
8
+ height: 100%
9
+ padding: 60px 20px
10
+ z-index: 1001
11
+ @media screen and (max-width: $modal-threshold)
12
+ padding: 0px
@@ -1,57 +1,9 @@
1
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
-
22
- *
23
- box-sizing: border-box
24
- outline: none
25
- margin: 0
26
- padding: 0
27
-
28
- html
29
- color: var(--color-text)
30
- width: 100%
31
- height: 100%
32
- font-family: $fontfamily
33
- font-size: $fontsize-root
34
- >
35
- if hexo-config('custom_css.scrollbar.size')
36
- scrollbar(convert(hexo-config('custom_css.scrollbar.size')), convert(hexo-config('custom_css.scrollbar.border')) || 0px)
37
-
38
- body
39
- background-color: var(--color-site-body)
40
- text-rendering: optimizelegibility
41
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
42
- line-height: $lineheight
43
- -webkit-text-size-adjust: 100%
44
- -ms-text-size-adjust: 100%
45
- &.modal-active
46
- overflow: hidden
47
- @media screen and (max-width: $modal-threshold)
48
- position: fixed
49
- top: 0
50
- right: 0
51
- bottom: 0
52
- left: 0
53
-
54
-
2
+ // tag plugin from stellar
3
+ --block-hover: mix($c-block-light, $c-text-light, 98)
4
+ --text-p1: $c-text-light
5
+ --text-p3: mix($c-text-light, $c-site-bg-light, 60)
6
+ --card: $c-card-light
55
7
 
56
8
  ::-moz-selection {
57
9
  background: $color-selection
@@ -79,14 +31,6 @@ h1,h2,h3,h4,h6
79
31
  font-weight: normal
80
32
 
81
33
  a
82
- color: $color-link
83
- cursor: pointer
84
- text-decoration: none
85
- trans()
86
- &:hover
87
- color: $color-hover
88
- &:active,&:hover
89
- outline: 0
90
34
  &:not([href])
91
35
  cursor: default
92
36
 
@@ -119,16 +63,10 @@ pre
119
63
  display: table-cell
120
64
  vertical-align: middle
121
65
 
122
-
123
- ul,ol
124
- padding-left: 0
125
- li
126
- list-style: none
127
-
128
- article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary
66
+ article,aside,details,figcaption,figure,footer,hgroup,main,menu,nav,section,summary
129
67
  display: block
130
68
 
131
- article
69
+ article:not(#comments)
132
70
  overflow: hidden
133
71
 
134
72
  abbr[title]
@@ -152,26 +90,10 @@ sup
152
90
  vertical-align: text-top
153
91
  sub
154
92
  vertical-align: text-bottom
155
- img
156
- border: 0
157
- background: none
158
- max-width: 100%
159
-
160
- svg:not(:root)
161
- overflow: hidden
162
93
 
163
94
  figure
164
95
  margin: 1em 40px
165
96
 
166
- hr
167
- -moz-box-sizing: content-box
168
- box-sizing: content-box
169
- height: 0
170
- border: 0
171
- border-radius: 1px
172
- border-bottom: 1px solid alpha($color-text, .1)
173
-
174
-
175
97
  pre
176
98
  overflow: auto
177
99
 
@@ -187,20 +109,14 @@ code,kbd,pre,samp
187
109
  font-family: monospace, monospace
188
110
  font-size: 1em
189
111
 
190
-
191
- button,input,optgroup,select,textarea
112
+ optgroup,select,textarea
192
113
  color: inherit /* 1 */
193
114
  font: inherit /* 2 */
194
115
  margin: 0 /* 3 */
195
116
 
196
- button
197
- overflow: visible
198
-
199
- button,select
117
+ select
200
118
  text-transform: none
201
119
 
202
-
203
- button,
204
120
  html input[type="button"], /* 1 */
205
121
  input[type="reset"],
206
122
  input[type="submit"]
@@ -0,0 +1,8 @@
1
+ if hexo-config('custom_css.fontfamily.codefont')
2
+ if hexo-config('custom_css.fontfamily.codefont.name')
3
+ @font-face
4
+ font-family: hexo-config('custom_css.fontfamily.codefont.name')
5
+ src: url(hexo-config('custom_css.fontfamily.codefont.url'))
6
+ font-weight: hexo-config('custom_css.fontfamily.codefont.weight')
7
+ font-style: hexo-config('custom_css.fontfamily.codefont.style')
8
+ font-display: swap
@@ -55,36 +55,9 @@
55
55
  max-width: 100%
56
56
  margin: 0
57
57
  box-shadow: none
58
- s,del
58
+ s
59
59
  color: mix($color-p, $color-card, 60)
60
60
  text-decoration-color: @color
61
- u
62
- color: var(--color-text)
63
- text-decoration: none
64
- border-bottom: 1px solid $color-mac-red
65
- emp
66
- color: var(--color-text)
67
- border-bottom: 4px dotted $color-mac-red
68
- wavy
69
- color: var(--color-text)
70
- text-decoration-style: wavy
71
- text-decoration-line: underline
72
- text-decoration-color: $color-mac-red
73
- psw
74
- color: transparent
75
- background: mix($color-text, $color-card, 50)
76
- border-radius: 2px
77
- trans()
78
- &:hover
79
- color: var(--color-p)
80
- background: none
81
- kbd
82
- border-radius: 4px
83
- border: 1px solid mix($color-block, $color-text, 80)
84
- border-bottom-width: 2px
85
- background: mix($color-block, $color-card, 50)
86
- padding-left: 4px
87
- padding-right: 4px
88
61
  p
89
62
  margin-top: $gap-p
90
63
  margin-bottom: $gap-p
@@ -166,7 +139,7 @@
166
139
  background: transparent
167
140
  color: alpha($color-text, 90%)
168
141
  code
169
- font-family: $fontfamily
142
+ font-family: $fontfamily-code
170
143
  &:not([class])
171
144
  word-break: break-all
172
145
  color: var(--color-inlinecode)
@@ -300,7 +273,7 @@
300
273
  border-radius: 2px
301
274
  .body .vlts-rps
302
275
  display: flex
303
- overflow: scroll
276
+ // overflow: scroll
304
277
  .item
305
278
  &+.item
306
279
  margin-left: $gap
@@ -0,0 +1,23 @@
1
+ // layout/friends.ejs
2
+ if hexo-config('pages.friends.layout_scheme') != 'traditional'
3
+ .md .simpleuser-group
4
+ margin: 0
5
+ display: grid
6
+ grid-template-columns: repeat(auto-fill, 112px)
7
+ .md .simpleuser
8
+ text-align: center
9
+ padding: 1em .5em
10
+ border-radius: 4px
11
+ img
12
+ display: block
13
+ width: 50px
14
+ height 50px
15
+ border-radius: 50px
16
+ object-fit: cover
17
+ img+span
18
+ display: block
19
+ font-size: $fontsize-meta
20
+ line-height: 1.2
21
+ color: var(--color-text)
22
+ &:hover
23
+ background: var(--color-site-bg)
@@ -0,0 +1,81 @@
1
+ // layout/friends.ejs
2
+ if hexo-config('pages.friends.layout_scheme') == 'traditional'
3
+ .article.l_friends
4
+ .friends-group
5
+ .friend-content
6
+ display: flex
7
+ flex-wrap: wrap
8
+ margin: -0.5 * $gap
9
+ border-radius: $border-card
10
+ align-items: flex-start
11
+ line-height: 1.3
12
+ .friend-card
13
+ display: flex
14
+ border-radius: $border-codeblock
15
+ box-shadow: $boxshadow-card
16
+ padding: $gap * 0.5 0
17
+ margin: $gap * 0.5
18
+ margin-top: "calc(2.25 * %s + 32px)" % $gap
19
+ color: var(--color-meta)
20
+ background: var(--color-block)
21
+ justify-content: flex-start
22
+ align-content: flex-start
23
+ flex-direction: column
24
+ width: "calc(100%/4 - %s)" % $gap
25
+ @media screen and (max-width: $device-laptop)
26
+ width: "calc(100%/4 - %s)" % $gap
27
+
28
+ @media screen and (max-width: $device-tablet)
29
+ width: "calc(100%/3 - %s)" % $gap
30
+
31
+ @media screen and (max-width: $device-mobile)
32
+ width: "calc(100%/2 - %s)" % $gap
33
+
34
+ &:hover
35
+ .friend-left
36
+ .avatar
37
+ transform: scale(1.2) rotate(12deg)
38
+ box-shadow: $boxshadow-card-float
39
+
40
+
41
+
42
+ .friend-left
43
+ display: flex
44
+ align-self: center
45
+ .avatar
46
+ width: 64px
47
+ height: 64px
48
+ trans()
49
+ box-shadow: $boxshadow-card
50
+ margin: $gap $gap * 0.5 $gap * 0.25 $gap * 0.5
51
+ margin-top: "calc(-1.25 * %s - 32px)" % $gap
52
+ border-radius: 100%
53
+ border: 2px solid white
54
+ background: white
55
+
56
+
57
+ .friend-right
58
+ margin: $gap * 0.25 $gap * 0.5
59
+ display: flex
60
+ flex-direction: column
61
+ text-align: center
62
+ p
63
+ text-align: center
64
+
65
+ .friend-tags-wrapper
66
+ trans()
67
+ margin-left: -2px
68
+ word-break:break-all
69
+ p
70
+ margin: 0
71
+ &.friend-name
72
+ font-size: $fontsize-code
73
+ padding-top: 4px
74
+ font-weight: bold
75
+
76
+ &.tags
77
+ font-size: $fontsize-footnote
78
+ display: inline
79
+ background: none
80
+ word-wrap: break-word
81
+ padding-right: 4px
File without changes