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,24 @@
1
+ @import 'mathjax'
2
+ @import 'fontcolor'
3
+
4
+
5
+ if hexo-config('plugins.code_highlight')
6
+ @import '_highlight'
7
+ if hexo-config('plugins.message.enable')
8
+ @import 'message'
9
+ if hexo-config('plugins.aplayer.enable')
10
+ @import 'aplayer'
11
+ if hexo-config('plugins.pjax.enable') and hexo-config('plugins.pjax.animation')
12
+ @import 'pjaxanimate'
13
+ if hexo-config('comments.service')=='gitalk'
14
+ @import 'gitalk'
15
+ if hexo-config('custom_css.cursor.enable')
16
+ @import 'cursor'
17
+ if hexo-config('rightmenu.enable') or hexo-config('rightmenus.enable')
18
+ @import '_rightmenu/*'
19
+
20
+
21
+
22
+ // 暗黑模式样式放到最后加载
23
+ if hexo-config('plugins.darkmode.enable')
24
+ @import '_dark/dark_async'
@@ -0,0 +1,14 @@
1
+ // 覆盖消息提示的样式
2
+ //.iziToast-wrapper
3
+ // z-index: 2147483647 !important
4
+ .iziToast-texts
5
+ max-width: 300px !important
6
+ min-width: 200px !important
7
+ @media screen and (max-width: 500px)
8
+ max-width: unset !important
9
+ min-width: unset !important
10
+ .iziToast-title
11
+ margin-bottom: 6px !important
12
+ font-size: 1rem !important
13
+ .iziToast-message
14
+ word-break: break-all !important
@@ -0,0 +1,6 @@
1
+ 这里存放 tag 标签 的样式
2
+
3
+ 为便于管理样式, 文件名使用 tag 名称命名
4
+
5
+ tag.json 索引 tag 标签名称和使用的样式文件的对应关系
6
+
@@ -39,22 +39,22 @@ div.gallery
39
39
  flex-wrap: nowrap
40
40
  padding: 0 !important
41
41
  align-items: stretch
42
- &[col]>p
42
+ &[col]
43
43
  flex-wrap: wrap
44
44
  justify-content: flex-start
45
- &[col='2']>p>.fancybox
45
+ &[col='2']>.fancybox
46
46
  width: "calc(50% - 2 * %s)" % $sp
47
- &[col='3']>p>.fancybox
47
+ &[col='3']>.fancybox
48
48
  width: "calc(33.33% - 2 * %s)" % $sp
49
- &[col='4']>p>.fancybox
49
+ &[col='4']>.fancybox
50
50
  width: "calc(25% - 2 * %s)" % $sp
51
- &[col='5']>p>.fancybox
51
+ &[col='5']>.fancybox
52
52
  width: "calc(20% - 2 * %s)" % $sp
53
- &[col='6']>p>.fancybox
53
+ &[col='6']>.fancybox
54
54
  width: "calc(16.66% - 2 * %s)" % $sp
55
- &[col='7']>p>.fancybox
55
+ &[col='7']>.fancybox
56
56
  width: "calc(14.2857% - 2 * %s)" % $sp
57
- &[col='8']>p>.fancybox
57
+ &[col='8']>.fancybox
58
58
  width: "calc(12.5% - 2 * %s)" % $sp
59
59
  >p
60
60
  margin: 0
@@ -89,7 +89,6 @@ div.fancybox
89
89
  line-height: 0
90
90
  margin: 0 auto
91
91
  align-items: stretch
92
- cursor: zoom-in
93
92
  .gallery
94
93
  overflow: hidden
95
94
  .image-caption
@@ -0,0 +1,72 @@
1
+ .users-wrap
2
+ overflow: hidden
3
+ .group-header
4
+ margin: 0 0 1rem
5
+ p
6
+ margin: 0
7
+ font-size: $fs-14
8
+ &:first-child
9
+ font-size: 1.25rem
10
+ font-weight: 500
11
+ .group-body
12
+ width: 100%
13
+ display: flex
14
+ flex-wrap: wrap
15
+ align-items: stretch
16
+ margin-bottom: 2rem
17
+ .friendsjs-wrap
18
+ display: block
19
+ .loading-wrap
20
+ min-height: 50px
21
+ margin: 2rem 0
22
+ text-align: center
23
+
24
+ .users-wrap .user-card
25
+ flex-shrink: 1
26
+ display: flex
27
+ align-items: stretch
28
+ width: 12.5%
29
+ @media screen and (max-width: 980px)
30
+ width: 14.28%
31
+ @media screen and (max-width: 900px)
32
+ width: 16.66%
33
+ @media screen and (max-width: 820px)
34
+ width: 20%
35
+ @media screen and (max-width: $device-tablet)
36
+ width: 16.66%
37
+ @media screen and (max-width: $device-mobile)
38
+ width: 25%
39
+ .card-link
40
+ margin: 0
41
+ width: 100%
42
+ color: var(--text-p1)
43
+ font-size: 10px
44
+ font-weight: 500
45
+ display: flex
46
+ justify-content: flex-start
47
+ flex-direction: column
48
+ align-items: center
49
+ text-align: center
50
+ line-height: 1.2
51
+ border-radius: 4px
52
+ overflow: hidden
53
+ position: relative
54
+ padding: 1rem 0.5rem
55
+ img
56
+ object-fit: cover
57
+ display: block
58
+ width: 48px
59
+ height: 48px
60
+ background: var(--card)
61
+ border-radius: 64px
62
+ margin: 0 0 0.5rem
63
+
64
+ // transform
65
+ .users-wrap .user-card .card-link
66
+ >img
67
+ trans2 transform box-shadow
68
+ &:hover
69
+ background: var(--block-hover)
70
+ img
71
+ transform: scale(1.2) rotate(8deg)
72
+ box-shadow: $boxshadow-card-float
@@ -0,0 +1,87 @@
1
+ .sites-wrap
2
+ .group-header
3
+ margin: 0 0 1rem
4
+ p
5
+ margin: 0
6
+ font-size: $fs-14
7
+ &:first-child
8
+ font-size: 1.25rem
9
+ font-weight: 500
10
+ .group-body
11
+ width: 100%
12
+ margin-bottom: 2rem
13
+ .sitesjs-wrap
14
+ display: block
15
+ .loading-wrap
16
+ min-height: 50px
17
+ margin: 2rem 0
18
+ text-align: center
19
+
20
+ .sites-wrap .group-body
21
+ display: grid
22
+ grid-gap: 1rem 1rem
23
+ grid-template-columns: repeat(auto-fill, "calc((100% - 3 * %s) / 4)" % 1rem)
24
+ @media screen and (max-width: $device-laptop)
25
+ grid-template-columns: repeat(auto-fill, "calc((100% - 2 * %s) / 3)" % 1rem)
26
+ @media screen and (max-width: 900px)
27
+ grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 1rem)
28
+ @media screen and (max-width: $device-tablet)
29
+ grid-template-columns: repeat(auto-fill, "calc((100% - 2 * %s) / 3)" % 1rem)
30
+ @media screen and (max-width: $device-mobile)
31
+ grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 1rem)
32
+ margin-bottom: 2rem
33
+
34
+ .sites-wrap .group-body .site-card .card-link
35
+ width: 100%
36
+ display: flex
37
+ flex-direction: column
38
+ >img
39
+ width: 100%
40
+ height 120px
41
+ border-radius: 4px
42
+ @media screen and (max-width: $device-laptop)
43
+ height: 150px
44
+ @media screen and (max-width: 900px)
45
+ height: 180px
46
+ @media screen and (max-width: $device-tablet)
47
+ height: 150px
48
+ object-fit: cover
49
+ box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.2)
50
+ .info
51
+ margin-top: 0.5rem
52
+ line-height: 1.2
53
+ >img
54
+ width: 28px
55
+ height: @width
56
+ border-radius: @width
57
+ float: left
58
+ margin-right: 8px
59
+ margin-top: 2px
60
+ span
61
+ display: block
62
+ .title
63
+ font-weight: 500
64
+ color: var(--text-p1)
65
+ font-size: $fs-14
66
+ margin-top: 1px
67
+ display: -webkit-box
68
+ -webkit-box-orient: vertical
69
+ overflow: hidden
70
+ -webkit-line-clamp: 1
71
+ .desc
72
+ font-size: 10px
73
+ margin-top: 2px
74
+ word-wrap: break-word
75
+ color: var(--text-p3)
76
+ display: -webkit-box
77
+ -webkit-box-orient: vertical
78
+ overflow: hidden
79
+ -webkit-line-clamp: 2
80
+
81
+ // transform
82
+ .sites-wrap .site-card .card-link
83
+ >img
84
+ trans()
85
+ &:hover
86
+ >img
87
+ box-shadow: $boxshadow-float, $boxshadow-card-float
@@ -0,0 +1,44 @@
1
+ .swiper-container
2
+ width: 100%
3
+ border-radius: 4px
4
+ --gap-p: 2rem
5
+ .swiper-container:not(.swiper-container-initialized)
6
+ display: none
7
+ div.swiper-slide
8
+ text-align: center
9
+ display: -webkit-box
10
+ display: -ms-flexbox
11
+ display: -webkit-flex
12
+ display: flex
13
+ align-self: center
14
+ -webkit-box-pack: center
15
+ -ms-flex-pack: center
16
+ -webkit-justify-content: center
17
+ justify-content: center
18
+ -webkit-box-align: center
19
+ -ms-flex-align: center
20
+ -webkit-align-items: center
21
+ align-items: center
22
+ width: 50%
23
+ img
24
+ border-radius: 4px
25
+
26
+ .swiper-container[width='max'] div.swiper-slide
27
+ width: 100%
28
+
29
+ .swiper-container[width='min'] div.swiper-slide
30
+ width: 25%
31
+
32
+ .swiper-button-prev,.swiper-button-next
33
+ padding: 1rem 0.5rem
34
+ margin-top: -2rem !important
35
+ border-radius: 4px
36
+ background: alpha(white, 0.25)
37
+ trans1 background
38
+ --swiper-theme-color: black !important
39
+ &:after
40
+ font-size: 1.2rem !important
41
+ font-weight: 700 !important
42
+ &:hover
43
+ background: white !important
44
+ --swiper-theme-color: $color-hover !important
@@ -0,0 +1,35 @@
1
+ {
2
+ "note": ["note.styl"],
3
+ "tabs": ["tabs.styl"],
4
+ "u": ["text.styl"],
5
+ "emp": ["text.styl"],
6
+ "wavy": ["text.styl"],
7
+ "del": ["text.styl"],
8
+ "kbd": ["text.styl"],
9
+ "psw": ["text.styl"],
10
+ "span": ["span.styl"],
11
+ "p": ["span.styl"],
12
+ "noteblock": ["note.styl"],
13
+ "folding": ["folding.styl"],
14
+ "checkbox": ["checkbox.styl"],
15
+ "radio": ["checkbox.styl"],
16
+ "timeline": ["timeline.styl"],
17
+ "timenode": ["timeline.styl"],
18
+ "link": ["link.styl"],
19
+ "btn": ["btns.styl"],
20
+ "btns": ["btns.styl"],
21
+ "table": ["table.styl"],
22
+ "ghcard": ["ghcard.styl"],
23
+ "sites": ["sites.styl"],
24
+ "menu": ["dropmenu.styl"],
25
+ "inlineimage": ["image.styl"],
26
+ "image": ["image.styl"],
27
+ "gallery": ["fancybox.styl"],
28
+ "audio": ["media.styl"],
29
+ "video": ["media.styl"],
30
+ "videos": ["media.styl"],
31
+ "frame": ["frame.styl"],
32
+ "contributors": ["friends.styl"],
33
+ "friends": ["friends.styl"],
34
+ "swiper": ["swiper.styl"]
35
+ }
@@ -0,0 +1,31 @@
1
+ .article
2
+ del
3
+ color: mix($color-p, $color-card, 60)
4
+ text-decoration-color: @color
5
+ u
6
+ color: var(--color-text)
7
+ text-decoration: none
8
+ border-bottom: 1px solid $color-mac-red
9
+ emp
10
+ color: var(--color-text)
11
+ border-bottom: 4px dotted $color-mac-red
12
+ wavy
13
+ color: var(--color-text)
14
+ text-decoration-style: wavy
15
+ text-decoration-line: underline
16
+ text-decoration-color: $color-mac-red
17
+ psw
18
+ color: transparent
19
+ background: mix($color-text, $color-card, 50)
20
+ border-radius: 2px
21
+ trans()
22
+ &:hover
23
+ color: var(--color-p)
24
+ background: none
25
+ kbd
26
+ border-radius: 4px
27
+ border: 1px solid mix($color-block, $color-text, 80)
28
+ border-bottom-width: 2px
29
+ background: mix($color-block, $color-card, 50)
30
+ padding-left: 4px
31
+ padding-right: 4px
@@ -0,0 +1,8 @@
1
+ @import '_base/*'
2
+
3
+ @import '_layout/*'
4
+
5
+ @import '_tag-plugins/*'
6
+
7
+ // 暗黑模式样式放到最后加载
8
+ @import '_plugins/index'
@@ -1,12 +1,23 @@
1
- // 本文件样式最佳方案是内联写在HTML中 暂未找到内联自动化方案
2
- // https://blog.skk.moe/post/improve-fcp-for-my-blog/
3
- #safearea{
1
+ #safearea {
4
2
  display: none
5
3
  }
4
+ // https://web.dev/content-visibility/
5
+ // https://www.caniuse.com/?search=content-visibility
6
+ /*
7
+ * Workaround for Chrome bug, part 1
8
+ * Chunk rendering for all but the first article.
9
+ * /layout/_partial/scripts/content-visibility-scroll-fix.ejs
10
+ */
11
+ .post-story + .post-story{
12
+ content-visibility: auto;
13
+ contain-intrinsic-size: 10px 500px;
14
+ }
15
+
6
16
  @import '_defines/*'
7
17
 
8
18
  // Project
9
- @import '_base'
10
19
  @import '_first/*'
11
- if hexo-config('plugins.darkmodejs.enable')
12
- @import '_plugins/darkmode'
20
+
21
+ // Custom Files
22
+ for $injects_first in hexo-config('injects.first')
23
+ @import $injects_first;
@@ -1,11 +1,13 @@
1
+ #safearea{
2
+ display: block
3
+ }
4
+
1
5
  @import '_defines/*'
2
6
 
3
7
  // Project
4
- @import '_tag-plugins/*'
5
- @import '_highlight'
6
- @import '_plugins/index'
7
- @import '_layout/*'
8
+ @import '_style'
9
+
10
+ // Custom Files
11
+ for $injects_style in hexo-config('injects.style')
12
+ @import $injects_style;
8
13
 
9
- #safearea{
10
- display: block
11
- }