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.
- package/README.md +6 -4
- package/_config.yml +599 -246
- package/languages/en.yml +7 -0
- package/languages/zh-CN.yml +13 -2
- package/languages/zh-TW.yml +7 -0
- package/layout/404.ejs +1 -1
- package/layout/_meta/author.ejs +4 -4
- package/layout/_meta/category.ejs +11 -8
- package/layout/_meta/counter.ejs +29 -7
- package/layout/_meta/date.ejs +1 -1
- package/layout/_meta/music.ejs +1 -1
- package/layout/_meta/share.ejs +1 -1
- package/layout/_meta/tags.ejs +3 -0
- package/layout/_meta/thumbnail.ejs +3 -1
- package/layout/_meta/updated.ejs +1 -1
- package/layout/_meta/walinecount.ejs +2 -1
- package/layout/{_cover → _partial/_cover}/blank.ejs +0 -0
- package/layout/{_cover → _partial/_cover}/dock.ejs +1 -1
- package/layout/{_cover → _partial/_cover}/featured.ejs +1 -1
- package/layout/{_cover → _partial/_cover}/focus.ejs +1 -1
- package/layout/_partial/_cover/layout.ejs +8 -0
- package/layout/{_cover → _partial/_cover}/search.ejs +2 -2
- package/layout/_partial/archive.ejs +2 -2
- package/layout/_partial/article.ejs +21 -16
- package/layout/_partial/categories.ejs +1 -1
- package/layout/_partial/cover.ejs +8 -28
- package/layout/_partial/footer.ejs +19 -11
- package/layout/_partial/head.ejs +70 -116
- package/layout/_partial/header.ejs +17 -11
- package/layout/_partial/meta.ejs +18 -4
- package/layout/_partial/post.ejs +35 -9
- package/layout/_partial/scripts/_ctrl/cdnCtrl.ejs +126 -0
- package/layout/_partial/scripts/{coverCtrl.ejs → _ctrl/coverCtrl.ejs} +17 -25
- package/layout/_partial/scripts/_ctrl.ejs +2 -0
- package/layout/_partial/scripts/content-visibility-scroll-fix.ejs +88 -0
- package/layout/_partial/scripts/global.ejs +422 -109
- package/layout/_partial/scripts/index.ejs +91 -46
- package/layout/_partial/scripts/toc.ejs +98 -68
- package/layout/_partial/side.ejs +4 -1
- package/layout/_plugins/_page_plugins/artitalk/index.ejs +15 -0
- package/layout/_plugins/_page_plugins/bbtalk/index.ejs +10 -0
- package/layout/_plugins/_page_plugins/fcircle/index.ejs +12 -0
- package/layout/_plugins/_page_plugins/gitter/index.ejs +14 -0
- package/layout/_plugins/_page_plugins/indent/index.ejs +16 -0
- package/layout/_plugins/_page_plugins/index.ejs +27 -0
- package/layout/_plugins/_page_plugins/katex/index.ejs +13 -0
- package/layout/{_third-party/math/mathjax/script.ejs → _plugins/_page_plugins/mathjax/index.ejs} +2 -2
- package/layout/_plugins/_page_plugins/snackbar/index.ejs +55 -0
- package/layout/{_partial/scripts/counter.ejs → _plugins/analytics/LCCounter.ejs} +0 -0
- package/layout/{_third-party → _plugins}/analytics/script.ejs +43 -5
- package/layout/{_third-party → _plugins}/aplayer/layout.ejs +0 -0
- package/layout/_plugins/aplayer/script.ejs +74 -0
- package/layout/_plugins/chat/gitter/script.ejs +17 -0
- package/layout/_plugins/chat/index.ejs +1 -0
- package/layout/_plugins/chat/tidio/script.ejs +1 -0
- package/layout/_plugins/comments/artalk/script.ejs +59 -0
- package/layout/_plugins/comments/beaudar/script.ejs +61 -0
- package/layout/_plugins/comments/discuss/script.ejs +30 -0
- package/layout/_plugins/comments/disqus/script.ejs +98 -0
- package/layout/_plugins/comments/disqusjs/script.ejs +35 -0
- package/layout/_plugins/comments/giscus/script.ejs +47 -0
- package/layout/_plugins/comments/gitalk/script.ejs +24 -0
- package/layout/_plugins/comments/hashover/script.ejs +5 -0
- package/layout/{_third-party → _plugins}/comments/index.ejs +10 -3
- package/layout/_plugins/comments/isso/script.ejs +27 -0
- package/layout/_plugins/comments/livere/script.ejs +15 -0
- package/layout/_plugins/comments/twikoo/script.ejs +40 -0
- package/layout/_plugins/comments/utterances/script.ejs +43 -0
- package/layout/_plugins/comments/vssue/script.ejs +37 -0
- package/layout/_plugins/comments/waline/script.ejs +62 -0
- package/layout/_plugins/comments/z-custom/script.ejs +1 -0
- package/layout/_plugins/darkmode/script.ejs +114 -0
- package/layout/{_third-party → _plugins}/end-of-support/script.ejs +25 -8
- package/layout/_plugins/github-api/script.ejs +27 -0
- package/layout/_plugins/highlight/highlightjs/script.ejs +26 -0
- package/layout/_plugins/highlight/prismjs/script.ejs +25 -0
- package/layout/_plugins/highlight/script.ejs +1 -0
- package/layout/{_third-party → _plugins}/lazyload/script.ejs +1 -1
- package/layout/{_third-party → _plugins}/nodewaves/script.ejs +1 -1
- package/layout/_plugins/parallax/script.ejs +74 -0
- package/layout/{_third-party → _plugins}/pjax/animate.ejs +31 -31
- package/layout/_plugins/pjax/index.ejs +73 -0
- package/layout/_plugins/pjax/pdata.ejs +56 -0
- package/layout/{_third-party → _plugins}/preload/script.ejs +3 -3
- package/layout/_plugins/rightmenu/layout.ejs +119 -0
- package/layout/_plugins/rightmenus/layout.ejs +137 -0
- package/layout/_plugins/scrollreveal/script.ejs +25 -0
- package/layout/_plugins/search/script.ejs +50 -0
- package/layout/{_third-party → _plugins}/share/layout.ejs +0 -0
- package/layout/_plugins/swiper/script.ejs +37 -0
- package/layout/_pre.ejs +2 -2
- package/layout/_widget/_pre.ejs +5 -0
- package/layout/_widget/blogger.ejs +1 -1
- package/layout/_widget/category.ejs +2 -2
- package/layout/_widget/copyright.ejs +1 -1
- package/layout/_widget/grid.ejs +3 -3
- package/layout/_widget/lastupdate.ejs +27 -0
- package/layout/_widget/list.ejs +2 -2
- package/layout/_widget/load.ejs +18 -0
- package/layout/_widget/music.ejs +3 -2
- package/layout/_widget/page.ejs +1 -1
- package/layout/_widget/qrcode.ejs +1 -1
- package/layout/_widget/related_posts.ejs +1 -1
- package/layout/_widget/tagcloud.ejs +1 -1
- package/layout/_widget/text.ejs +1 -1
- package/layout/_widget/toc.ejs +6 -2
- package/layout/_widget/webinfo.ejs +13 -76
- package/layout/archive.ejs +4 -4
- package/layout/category.ejs +9 -4
- package/layout/docs.ejs +1 -1
- package/layout/friends.ejs +6 -25
- package/layout/index.ejs +1 -1
- package/layout/layout.ejs +30 -12
- package/layout/list.ejs +1 -1
- package/layout/page.ejs +1 -1
- package/layout/post.ejs +1 -1
- package/layout/tag.ejs +8 -3
- package/package.json +5 -3
- package/scripts/events/index.js +13 -0
- package/scripts/events/lib/check-configuration.js +43 -0
- package/scripts/events/lib/check-environment.js +74 -0
- package/scripts/events/lib/config.js +34 -9
- package/scripts/events/lib/render-stylus.js +78 -0
- package/scripts/events/lib/stellar-tag-utils.js +76 -0
- package/scripts/filters/content-visibility.js +25 -0
- package/scripts/{render → filters}/img.js +0 -0
- package/scripts/filters/replace.js +15 -0
- package/scripts/{z-lazyload/lib/process.js → filters/z-lazyload.js} +6 -3
- package/scripts/helpers/custom-files.js +165 -0
- package/scripts/helpers/first-style.js +19 -0
- package/scripts/helpers/head/autoCanonical.js +15 -0
- package/scripts/helpers/head/generate_preload_fontfamily.js +22 -0
- package/scripts/helpers/head/generate_seo.js +24 -0
- package/scripts/helpers/head/generate_title__keywords__description.js +101 -0
- package/scripts/{related_posts/index.js → helpers/related-posts.js} +1 -1
- package/scripts/helpers/revisioned.js +158 -0
- package/scripts/helpers/structured-data/index.js +2 -0
- package/scripts/helpers/structured-data/lib/blogposting.js +77 -0
- package/scripts/helpers/structured-data/lib/breadcrumblist.js +152 -0
- package/scripts/helpers/structured-data/lib/config.js +31 -0
- package/scripts/helpers/structured-data/lib/index.js +30 -0
- package/scripts/helpers/structured-data/lib/organization.js +15 -0
- package/scripts/helpers/structured-data/lib/person.js +16 -0
- package/scripts/helpers/structured-data/lib/website.js +42 -0
- package/scripts/tags/btn.js +6 -1
- package/scripts/tags/btns.js +7 -2
- package/scripts/tags/checkbox.js +12 -2
- package/scripts/tags/contributors.js +100 -0
- package/scripts/tags/dropmenu.js +18 -3
- package/scripts/tags/fancybox.js +44 -10
- package/scripts/tags/folding.js +6 -1
- package/scripts/tags/frame.js +6 -1
- package/scripts/tags/friends.js +99 -0
- package/scripts/tags/ghcard.js +6 -1
- package/scripts/tags/image.js +14 -2
- package/scripts/tags/link.js +6 -1
- package/scripts/tags/md.js +59 -0
- package/scripts/tags/media.js +25 -1
- package/scripts/tags/note.js +36 -3
- package/scripts/tags/site.js +87 -51
- package/scripts/tags/span.js +12 -2
- package/scripts/tags/swiper.js +38 -0
- package/scripts/tags/tabs.js +33 -3
- package/scripts/tags/timeline.js +6 -1
- package/source/css/Readme.md +28 -0
- package/source/css/_defines/AutoPrefixCSS.styl +347 -0
- package/source/css/_defines/Readme.md +3 -0
- package/source/css/_defines/color.styl +41 -1
- package/source/css/_defines/effect.styl +0 -13
- package/source/css/_defines/fonts.styl +17 -18
- package/source/css/_defines/func.styl +12 -30
- package/source/css/_first/base_first.styl +118 -0
- package/source/css/_first/{cover.styl → cover_first.styl} +113 -87
- package/source/css/_first/dark_first.styl +76 -0
- package/source/css/_first/fontfamily_first.styl +17 -0
- package/source/css/_first/{navbar.styl → navbar_first.styl} +4 -10
- package/source/css/_first/search_first.styl +12 -0
- package/source/css/{_base/index.styl → _style/_base/base.styl} +9 -93
- package/source/css/_style/_base/fontfamily_async.styl +8 -0
- package/source/css/{_layout → _style/_layout}/archive.styl +0 -0
- package/source/css/{_layout → _style/_layout}/article.styl +3 -30
- package/source/css/{_layout → _style/_layout}/footer.styl +0 -0
- package/source/css/_style/_layout/friends-simpleuser.styl +23 -0
- package/source/css/_style/_layout/friends-traditional.styl +81 -0
- package/source/css/{_layout → _style/_layout}/img.styl +0 -0
- package/source/css/_style/_layout/loading.styl +14 -0
- package/source/css/{_layout → _style/_layout}/main.styl +19 -7
- package/source/css/{_layout → _style/_layout}/md.styl +0 -0
- package/source/css/{_layout → _style/_layout}/pagination.styl +1 -1
- package/source/css/{_layout → _style/_layout}/posts.styl +2 -0
- package/source/css/{_first → _style/_layout}/search.styl +0 -103
- package/source/css/{_layout → _style/_layout}/sidebar.styl +23 -3
- package/source/css/{_layout → _style/_layout}/snackbar.styl +0 -0
- package/source/css/{_layout → _style/_layout}/toc.styl +3 -3
- package/source/css/{_layout → _style/_layout}/video.styl +0 -0
- package/source/css/_style/_plugins/_dark/dark_async.styl +41 -0
- package/source/css/_style/_plugins/_dark/dark_plugins.styl +136 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/clipboard.styl +36 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/color.styl +96 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/index.styl +102 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/language.styl +63 -0
- package/source/css/_style/_plugins/_highlight/index.styl +1 -0
- package/source/css/_style/_plugins/_highlight/prismjs/clipboard.styl +33 -0
- package/source/css/_style/_plugins/_highlight/prismjs/index.styl +8 -0
- package/source/css/_style/_plugins/_highlight/prismjs/language.styl +63 -0
- package/source/css/_style/_plugins/_rightmenu/reading.styl +56 -0
- package/source/css/{_plugins → _style/_plugins/_rightmenu}/rightmenu.styl +22 -2
- package/source/css/{_plugins → _style/_plugins}/aplayer.styl +8 -1
- package/source/css/{_plugins → _style/_plugins}/cursor.styl +49 -19
- package/source/css/_style/_plugins/fontcolor.styl +84 -0
- package/source/css/{_plugins → _style/_plugins}/gitalk.styl +0 -0
- package/source/css/_style/_plugins/index.styl +24 -0
- package/source/css/{_plugins → _style/_plugins}/mathjax.styl +0 -0
- package/source/css/_style/_plugins/message.styl +14 -0
- package/source/css/{_plugins → _style/_plugins}/pjaxanimate.styl +0 -0
- package/source/css/_style/_tag-plugins/Readme.md +6 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/btns.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/checkbox.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/dropmenu.styl +0 -0
- package/source/css/{_plugins → _style/_tag-plugins}/fancybox.styl +8 -9
- package/source/css/{_tag-plugins → _style/_tag-plugins}/folding.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/frame.styl +0 -0
- package/source/css/_style/_tag-plugins/friends.styl +72 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/ghcard.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/image.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/link.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/media.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/note.styl +0 -0
- package/source/css/_style/_tag-plugins/sites.styl +87 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/span.styl +0 -0
- package/source/css/_style/_tag-plugins/swiper.styl +44 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/table.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/tabs.styl +0 -0
- package/source/css/_style/_tag-plugins/tag.json +35 -0
- package/source/css/_style/_tag-plugins/text.styl +31 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/timeline.styl +0 -0
- package/source/css/_style/index.styl +8 -0
- package/source/css/first.styl +17 -6
- package/source/css/style.styl +9 -7
- package/source/js/app.js +1051 -278
- package/source/js/plugins/aplayer.js +186 -0
- package/source/js/plugins/parallax.js +191 -0
- package/source/js/plugins/rightMenu.js +577 -0
- package/source/js/plugins/rightMenus.js +616 -0
- package/source/js/plugins/tags/contributors.js +92 -0
- package/source/js/plugins/tags/friends.js +93 -0
- package/source/js/plugins/tags/sites.js +96 -0
- package/source/js/search/hexo.js +180 -373
- package/.eslintrc.json +0 -111
- package/layout/_meta/valinecount.ejs +0 -15
- package/layout/_partial/rightmenu.ejs +0 -199
- package/layout/_partial/scripts/cover.ejs +0 -45
- package/layout/_partial/scripts/darkmode.ejs +0 -85
- package/layout/_partial/scripts/import.ejs +0 -3
- package/layout/_partial/scripts/issues.ejs +0 -18
- package/layout/_partial/scripts/search.ejs +0 -62
- package/layout/_partial/snackbar.ejs +0 -22
- package/layout/_third-party/aplayer/script.ejs +0 -26
- package/layout/_third-party/clipboard/script.ejs +0 -54
- package/layout/_third-party/comments/disqus/layout.ejs +0 -5
- package/layout/_third-party/comments/disqus/script.ejs +0 -90
- package/layout/_third-party/comments/disqusjs/layout.ejs +0 -1
- package/layout/_third-party/comments/disqusjs/script.ejs +0 -34
- package/layout/_third-party/comments/gitalk/layout.ejs +0 -1
- package/layout/_third-party/comments/gitalk/script.ejs +0 -22
- package/layout/_third-party/comments/hashover/layout.ejs +0 -2
- package/layout/_third-party/comments/hashover/script.ejs +0 -1
- package/layout/_third-party/comments/isso/layout.ejs +0 -1
- package/layout/_third-party/comments/isso/script.ejs +0 -1
- package/layout/_third-party/comments/livere/layout.ejs +0 -3
- package/layout/_third-party/comments/livere/script.ejs +0 -10
- package/layout/_third-party/comments/minivaline/layout.ejs +0 -3
- package/layout/_third-party/comments/minivaline/script.ejs +0 -34
- package/layout/_third-party/comments/twikoo/layout.ejs +0 -3
- package/layout/_third-party/comments/twikoo/script.ejs +0 -32
- package/layout/_third-party/comments/valine/layout.ejs +0 -3
- package/layout/_third-party/comments/valine/script.ejs +0 -49
- package/layout/_third-party/comments/vssue/layout.ejs +0 -1
- package/layout/_third-party/comments/vssue/script.ejs +0 -21
- package/layout/_third-party/comments/waline/layout.ejs +0 -3
- package/layout/_third-party/comments/waline/script.ejs +0 -33
- package/layout/_third-party/fancybox/script.ejs +0 -61
- package/layout/_third-party/highlightjs/script.ejs +0 -11
- package/layout/_third-party/pjax/index.ejs +0 -78
- package/layout/_third-party/pjax/pdata.ejs +0 -53
- package/layout/_third-party/scrollreveal/script.ejs +0 -21
- package/layout/_third-party/tidio/script.ejs +0 -3
- package/layout/artitalk.ejs +0 -13
- package/layout/bb.ejs +0 -10
- package/package-lock.json +0 -916
- package/scripts/tags/issues.js +0 -41
- package/scripts/z-lazyload/index.js +0 -4
- package/source/css/_highlight/index.styl +0 -316
- package/source/css/_layout/friends.styl +0 -79
- package/source/css/_plugins/clipboard.styl +0 -37
- package/source/css/_plugins/dark.styl +0 -149
- package/source/css/_plugins/darkmode.styl +0 -9
- package/source/css/_plugins/index.styl +0 -18
- package/source/css/_plugins/twikoo.styl +0 -21
- package/source/css/_plugins/valine.styl +0 -183
- package/source/css/_tag-plugins/simpleuser.styl +0 -21
- package/source/css/_tag-plugins/site-card.styl +0 -70
- package/source/js/aplayer.js +0 -167
- package/source/js/issues.js +0 -186
- package/source/js/search/algolia.js +0 -344
- package/source/js/search/azure.js +0 -355
- package/source/js/search/baidu.js +0 -340
- package/source/js/search/google.js +0 -339
- 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'
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -39,22 +39,22 @@ div.gallery
|
|
|
39
39
|
flex-wrap: nowrap
|
|
40
40
|
padding: 0 !important
|
|
41
41
|
align-items: stretch
|
|
42
|
-
&[col]
|
|
42
|
+
&[col]
|
|
43
43
|
flex-wrap: wrap
|
|
44
44
|
justify-content: flex-start
|
|
45
|
-
&[col='2']
|
|
45
|
+
&[col='2']>.fancybox
|
|
46
46
|
width: "calc(50% - 2 * %s)" % $sp
|
|
47
|
-
&[col='3']
|
|
47
|
+
&[col='3']>.fancybox
|
|
48
48
|
width: "calc(33.33% - 2 * %s)" % $sp
|
|
49
|
-
&[col='4']
|
|
49
|
+
&[col='4']>.fancybox
|
|
50
50
|
width: "calc(25% - 2 * %s)" % $sp
|
|
51
|
-
&[col='5']
|
|
51
|
+
&[col='5']>.fancybox
|
|
52
52
|
width: "calc(20% - 2 * %s)" % $sp
|
|
53
|
-
&[col='6']
|
|
53
|
+
&[col='6']>.fancybox
|
|
54
54
|
width: "calc(16.66% - 2 * %s)" % $sp
|
|
55
|
-
&[col='7']
|
|
55
|
+
&[col='7']>.fancybox
|
|
56
56
|
width: "calc(14.2857% - 2 * %s)" % $sp
|
|
57
|
-
&[col='8']
|
|
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
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
package/source/css/first.styl
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
12
|
-
|
|
20
|
+
|
|
21
|
+
// Custom Files
|
|
22
|
+
for $injects_first in hexo-config('injects.first')
|
|
23
|
+
@import $injects_first;
|
package/source/css/style.styl
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
#safearea{
|
|
2
|
+
display: block
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
@import '_defines/*'
|
|
2
6
|
|
|
3
7
|
// Project
|
|
4
|
-
@import '
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
}
|