hexo-theme-redefine-x 2.8.5
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/.github/ISSUE_TEMPLATE/bug-chinese.yml +115 -0
- package/.github/ISSUE_TEMPLATE/bug-english.yml +106 -0
- package/.github/ISSUE_TEMPLATE/enhancement-chinese.yml +55 -0
- package/.github/ISSUE_TEMPLATE/enhancement-english.yml +55 -0
- package/.github/workflows/build-and-commit.yml +49 -0
- package/.github/workflows/npm-publish.yml +34 -0
- package/.github/workflows/stale-issues.yml +20 -0
- package/CHANGELOG_REDEFINE_X.md +236 -0
- package/CODE_OF_CONDUCT.md +128 -0
- package/CONTRIBUTING.md +51 -0
- package/DONATION.md +82 -0
- package/LICENSE +674 -0
- package/README.md +135 -0
- package/README_zh-CN.md +138 -0
- package/README_zh-TW.md +137 -0
- package/TODO.md +215 -0
- package/_config.yml +489 -0
- package/languages/en.yml +93 -0
- package/languages/es.yml +92 -0
- package/languages/fr.yml +92 -0
- package/languages/ja.yml +92 -0
- package/languages/zh-CN.yml +95 -0
- package/languages/zh-TW.yml +94 -0
- package/layout/404.ejs +1 -0
- package/layout/archive.ejs +1 -0
- package/layout/category.ejs +1 -0
- package/layout/components/comments/comment.ejs +22 -0
- package/layout/components/comments/giscus.ejs +42 -0
- package/layout/components/comments/gitalk.ejs +47 -0
- package/layout/components/comments/twikoo.ejs +50 -0
- package/layout/components/comments/waline.ejs +34 -0
- package/layout/components/footer/footer.ejs +99 -0
- package/layout/components/header/head.ejs +222 -0
- package/layout/components/header/navbar.ejs +163 -0
- package/layout/components/header/preloader.ejs +148 -0
- package/layout/components/header/progress-bar.ejs +12 -0
- package/layout/components/plugins/aplayer.ejs +3 -0
- package/layout/components/scripts.ejs +90 -0
- package/layout/components/sidebar/author.ejs +6 -0
- package/layout/components/sidebar/avatar.ejs +3 -0
- package/layout/components/sidebar/statistics.ejs +14 -0
- package/layout/components/swup.ejs +27 -0
- package/layout/index.ejs +1 -0
- package/layout/layout.ejs +13 -0
- package/layout/page.ejs +57 -0
- package/layout/pages/archive/archive.ejs +3 -0
- package/layout/pages/bookmarks/bookmarks.ejs +68 -0
- package/layout/pages/category/categories.ejs +11 -0
- package/layout/pages/category/category-detail.ejs +6 -0
- package/layout/pages/friends/friends-link.ejs +59 -0
- package/layout/pages/home/home-article.ejs +52 -0
- package/layout/pages/home/home-background.ejs +33 -0
- package/layout/pages/home/home-banner.ejs +234 -0
- package/layout/pages/home/home-content.ejs +62 -0
- package/layout/pages/home/home-sidebar.ejs +78 -0
- package/layout/pages/masonry/masonry.ejs +28 -0
- package/layout/pages/notfound/notfound.ejs +8 -0
- package/layout/pages/page-template.ejs +23 -0
- package/layout/pages/post/article-content.ejs +153 -0
- package/layout/pages/post/article-copyright.ejs +69 -0
- package/layout/pages/post/article-info.ejs +78 -0
- package/layout/pages/post/post-tools.ejs +17 -0
- package/layout/pages/post/toc.ejs +15 -0
- package/layout/pages/shuoshuo/essays.ejs +23 -0
- package/layout/pages/tag/tag-detail.ejs +6 -0
- package/layout/pages/tag/tags.ejs +24 -0
- package/layout/post.ejs +1 -0
- package/layout/tag.ejs +1 -0
- package/layout/tags.ejs +1 -0
- package/layout/utils/image-viewer.ejs +3 -0
- package/layout/utils/local-search.ejs +20 -0
- package/layout/utils/paginator.ejs +8 -0
- package/layout/utils/posts-list.ejs +28 -0
- package/layout/utils/side-tools.ejs +51 -0
- package/package.json +45 -0
- package/scripts/config-export.js +66 -0
- package/scripts/data-handle.js +37 -0
- package/scripts/events/404.js +16 -0
- package/scripts/events/welcome.js +141 -0
- package/scripts/filters/delete-mask-handle.js +27 -0
- package/scripts/filters/encrypt.js +202 -0
- package/scripts/filters/img-handle.js +9 -0
- package/scripts/filters/lazyload-handle.js +350 -0
- package/scripts/filters/lib/hbe.default.js +15 -0
- package/scripts/filters/link-handle.js +42 -0
- package/scripts/filters/stylus-handle.js +9 -0
- package/scripts/filters/table-handle.js +11 -0
- package/scripts/helpers/meta-helpers.js +38 -0
- package/scripts/helpers/page-helpers.js +153 -0
- package/scripts/helpers/recommendation-helpers.js +367 -0
- package/scripts/helpers/theme-helpers.js +251 -0
- package/scripts/helpers/waline-helpers.js +33 -0
- package/scripts/modules/btn.js +85 -0
- package/scripts/modules/btns.js +71 -0
- package/scripts/modules/folding.js +34 -0
- package/scripts/modules/note-large.js +72 -0
- package/scripts/modules/note.js +64 -0
- package/scripts/modules/tabs.js +99 -0
- package/source/assets/hbe.style.css +220 -0
- package/source/assets/odometer-theme-minimal.css +81 -0
- package/source/css/build/tailwind.css +2 -0
- package/source/css/common/animated.styl +71 -0
- package/source/css/common/basic.styl +239 -0
- package/source/css/common/codeblock/code-block.styl +158 -0
- package/source/css/common/codeblock/code-theme.styl +82 -0
- package/source/css/common/codeblock/highlight.styl +189 -0
- package/source/css/common/codeblock/hljs-themes/dark/a11y-dark.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/dark/agate.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/dark/atom-one-dark.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/dark/github-dark.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/dark/monokai-sublime.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/dark/night-owl.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/dark/nord.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/dark/tokyo-night-dark.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/dark/vs2015.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/light/atom-one-light.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/light/default.styl +18 -0
- package/source/css/common/codeblock/hljs-themes/light/github.styl +18 -0
- package/source/css/common/colors.styl +112 -0
- package/source/css/common/markdown.styl +337 -0
- package/source/css/common/redefine-theme.styl +65 -0
- package/source/css/common/theme.styl +72 -0
- package/source/css/common/variables.styl +145 -0
- package/source/css/layout/_modules/aplayer.styl +799 -0
- package/source/css/layout/_modules/buttons.styl +42 -0
- package/source/css/layout/_modules/folding.styl +180 -0
- package/source/css/layout/_modules/notes.styl +181 -0
- package/source/css/layout/_modules/tabs.styl +105 -0
- package/source/css/layout/_partials/404.styl +14 -0
- package/source/css/layout/_partials/archive-list.styl +49 -0
- package/source/css/layout/_partials/article-copyright-info.styl +27 -0
- package/source/css/layout/_partials/article-meta-info.styl +62 -0
- package/source/css/layout/_partials/comments/comment.styl +11 -0
- package/source/css/layout/_partials/comments/gitalk.styl +529 -0
- package/source/css/layout/_partials/comments/twikoo.styl +62 -0
- package/source/css/layout/_partials/comments/waline.styl +1151 -0
- package/source/css/layout/_partials/footer.styl +59 -0
- package/source/css/layout/_partials/home-banner.styl +48 -0
- package/source/css/layout/_partials/image-viewer.styl +37 -0
- package/source/css/layout/_partials/local-search.styl +137 -0
- package/source/css/layout/_partials/navbar.styl +309 -0
- package/source/css/layout/_partials/page-template.styl +147 -0
- package/source/css/layout/_partials/paginator.styl +65 -0
- package/source/css/layout/_partials/post-tools.styl +43 -0
- package/source/css/layout/_partials/progress-bar.styl +33 -0
- package/source/css/layout/_partials/side-tools.styl +87 -0
- package/source/css/layout/_partials/tagcloud.styl +136 -0
- package/source/css/layout/_partials/toc.styl +105 -0
- package/source/css/layout/animations.styl +42 -0
- package/source/css/layout/archive-content.styl +8 -0
- package/source/css/layout/article-content.styl +257 -0
- package/source/css/layout/bookmarks.styl +8 -0
- package/source/css/layout/category-content.styl +21 -0
- package/source/css/layout/category-list.styl +119 -0
- package/source/css/layout/home-content.styl +114 -0
- package/source/css/layout/home-sidebar.styl +126 -0
- package/source/css/layout/page.styl +144 -0
- package/source/css/layout/tag-content.styl +30 -0
- package/source/css/style.styl +26 -0
- package/source/css/tailwind.source.css +236 -0
- package/source/fontawesome/all.min.css +6 -0
- package/source/fontawesome/brands.min.css +6 -0
- package/source/fontawesome/duotone.min.css +6 -0
- package/source/fontawesome/fontawesome.min.css +6 -0
- package/source/fontawesome/light.min.css +6 -0
- package/source/fontawesome/regular.min.css +6 -0
- package/source/fontawesome/sharp-solid.min.css +6 -0
- package/source/fontawesome/solid.min.css +6 -0
- package/source/fontawesome/svg-with-js.min.css +6 -0
- package/source/fontawesome/thin.min.css +6 -0
- package/source/fontawesome/v4-font-face.min.css +6 -0
- package/source/fontawesome/v4-shims.min.css +6 -0
- package/source/fontawesome/v5-font-face.min.css +6 -0
- package/source/fonts/Chillax/Chillax-Variable.eot +0 -0
- package/source/fonts/Chillax/Chillax-Variable.ttf +0 -0
- package/source/fonts/Chillax/Chillax-Variable.woff +0 -0
- package/source/fonts/Chillax/Chillax-Variable.woff2 +0 -0
- package/source/fonts/Chillax/chillax.css +39 -0
- package/source/fonts/Geist/GeistVF.ttf +0 -0
- package/source/fonts/Geist/GeistVF.woff +0 -0
- package/source/fonts/Geist/GeistVF.woff2 +0 -0
- package/source/fonts/Geist/geist.css +16 -0
- package/source/fonts/GeistMono/GeistMonoVF.ttf +0 -0
- package/source/fonts/GeistMono/GeistMonoVF.woff +0 -0
- package/source/fonts/GeistMono/GeistMonoVF.woff2 +0 -0
- package/source/fonts/GeistMono/geist-mono.css +16 -0
- package/source/images/bookmark-placeholder.svg +9 -0
- package/source/images/loading.svg +5 -0
- package/source/images/redefine-avatar.svg +1 -0
- package/source/images/redefine-favicon.svg +1 -0
- package/source/images/redefine-logo.svg +1 -0
- package/source/images/redefine-logo.webp +0 -0
- package/source/images/redefine-og.webp +0 -0
- package/source/images/wallhaven-wqery6-dark.webp +0 -0
- package/source/images/wallhaven-wqery6-light.webp +0 -0
- package/source/js/build/layouts/bookmarkNav.js +2 -0
- package/source/js/build/layouts/bookmarkNav.js.map +1 -0
- package/source/js/build/layouts/categoryList.js +2 -0
- package/source/js/build/layouts/categoryList.js.map +1 -0
- package/source/js/build/layouts/essays.js +2 -0
- package/source/js/build/layouts/essays.js.map +1 -0
- package/source/js/build/layouts/lazyload.js +2 -0
- package/source/js/build/layouts/lazyload.js.map +1 -0
- package/source/js/build/layouts/navbarShrink.js +2 -0
- package/source/js/build/layouts/navbarShrink.js.map +1 -0
- package/source/js/build/layouts/toc.js +2 -0
- package/source/js/build/layouts/toc.js.map +1 -0
- package/source/js/build/libs/APlayer.min.js +2 -0
- package/source/js/build/libs/Swup.min.js +2 -0
- package/source/js/build/libs/SwupPreloadPlugin.min.js +1 -0
- package/source/js/build/libs/SwupProgressPlugin.min.js +1 -0
- package/source/js/build/libs/SwupScriptsPlugin.min.js +1 -0
- package/source/js/build/libs/SwupScrollPlugin.min.js +1 -0
- package/source/js/build/libs/SwupSlideTheme.min.js +1 -0
- package/source/js/build/libs/Typed.min.js +10 -0
- package/source/js/build/libs/anime.min.js +8 -0
- package/source/js/build/libs/mermaid.min.js +2314 -0
- package/source/js/build/libs/minimasonry.min.js +1 -0
- package/source/js/build/libs/moment-with-locales.min.js +2 -0
- package/source/js/build/libs/moment.min.js +2 -0
- package/source/js/build/libs/odometer.min.js +2 -0
- package/source/js/build/libs/pangu.min.js +9 -0
- package/source/js/build/libs/pjax.min.js +1 -0
- package/source/js/build/libs/waline.js +84 -0
- package/source/js/build/main.js +2 -0
- package/source/js/build/main.js.map +1 -0
- package/source/js/build/plugins/aplayer.js +2 -0
- package/source/js/build/plugins/aplayer.js.map +1 -0
- package/source/js/build/plugins/hbe.js +2 -0
- package/source/js/build/plugins/hbe.js.map +1 -0
- package/source/js/build/plugins/masonry.js +2 -0
- package/source/js/build/plugins/masonry.js.map +1 -0
- package/source/js/build/plugins/mermaid.js +2 -0
- package/source/js/build/plugins/mermaid.js.map +1 -0
- package/source/js/build/plugins/pangu.js +2 -0
- package/source/js/build/plugins/pangu.js.map +1 -0
- package/source/js/build/plugins/tabs.js +2 -0
- package/source/js/build/plugins/tabs.js.map +1 -0
- package/source/js/build/plugins/typed.js +2 -0
- package/source/js/build/plugins/typed.js.map +1 -0
- package/source/js/build/tools/codeBlock.js +2 -0
- package/source/js/build/tools/codeBlock.js.map +1 -0
- package/source/js/build/tools/imageViewer.js +2 -0
- package/source/js/build/tools/imageViewer.js.map +1 -0
- package/source/js/build/tools/lightDarkSwitch.js +2 -0
- package/source/js/build/tools/lightDarkSwitch.js.map +1 -0
- package/source/js/build/tools/localSearch.js +2 -0
- package/source/js/build/tools/localSearch.js.map +1 -0
- package/source/js/build/tools/runtime.js +2 -0
- package/source/js/build/tools/runtime.js.map +1 -0
- package/source/js/build/tools/scrollTopBottom.js +2 -0
- package/source/js/build/tools/scrollTopBottom.js.map +1 -0
- package/source/js/build/tools/tocToggle.js +2 -0
- package/source/js/build/tools/tocToggle.js.map +1 -0
- package/source/js/build/utils.js +2 -0
- package/source/js/build/utils.js.map +1 -0
- package/source/js/build.js +148 -0
- package/source/js/layouts/bookmarkNav.js +65 -0
- package/source/js/layouts/categoryList.js +53 -0
- package/source/js/layouts/essays.js +25 -0
- package/source/js/layouts/lazyload.js +199 -0
- package/source/js/layouts/navbarShrink.js +135 -0
- package/source/js/layouts/toc.js +115 -0
- package/source/js/libs/APlayer.min.js +2 -0
- package/source/js/libs/APlayer.min.js.map +1 -0
- package/source/js/libs/Swup.min.js +2 -0
- package/source/js/libs/Swup.min.js.map +1 -0
- package/source/js/libs/SwupPreloadPlugin.min.js +1 -0
- package/source/js/libs/SwupPreloadPlugin.min.js.map +1 -0
- package/source/js/libs/SwupProgressPlugin.min.js +1 -0
- package/source/js/libs/SwupScriptsPlugin.min.js +1 -0
- package/source/js/libs/SwupScrollPlugin.min.js +1 -0
- package/source/js/libs/SwupScrollPlugin.min.js.map +1 -0
- package/source/js/libs/SwupSlideTheme.min.js +1 -0
- package/source/js/libs/Typed.min.js +10 -0
- package/source/js/libs/anime.min.js +8 -0
- package/source/js/libs/mermaid.min.js +2314 -0
- package/source/js/libs/mermaid.min.js.map +7 -0
- package/source/js/libs/minimasonry.min.js +1 -0
- package/source/js/libs/moment-with-locales.min.js +2 -0
- package/source/js/libs/moment.min.js +2 -0
- package/source/js/libs/odometer.min.js +2 -0
- package/source/js/libs/pangu.min.js +9 -0
- package/source/js/libs/pjax.min.js +1 -0
- package/source/js/libs/waline.js +84 -0
- package/source/js/libs/waline.js.map +1 -0
- package/source/js/main.js +95 -0
- package/source/js/plugins/aplayer.js +33 -0
- package/source/js/plugins/hbe.js +350 -0
- package/source/js/plugins/masonry.js +115 -0
- package/source/js/plugins/mermaid.js +7 -0
- package/source/js/plugins/pangu.js +12 -0
- package/source/js/plugins/tabs.js +29 -0
- package/source/js/plugins/typed.js +62 -0
- package/source/js/tools/codeBlock.js +48 -0
- package/source/js/tools/imageViewer.js +194 -0
- package/source/js/tools/lightDarkSwitch.js +165 -0
- package/source/js/tools/localSearch.js +327 -0
- package/source/js/tools/runtime.js +28 -0
- package/source/js/tools/scrollTopBottom.js +34 -0
- package/source/js/tools/tocToggle.js +58 -0
- package/source/js/utils.js +383 -0
- package/source/webfonts/fa-brands-400.ttf +0 -0
- package/source/webfonts/fa-brands-400.woff2 +0 -0
- package/source/webfonts/fa-duotone-900.ttf +0 -0
- package/source/webfonts/fa-duotone-900.woff2 +0 -0
- package/source/webfonts/fa-light-300.ttf +0 -0
- package/source/webfonts/fa-light-300.woff2 +0 -0
- package/source/webfonts/fa-regular-400.ttf +0 -0
- package/source/webfonts/fa-regular-400.woff2 +0 -0
- package/source/webfonts/fa-sharp-solid-900.ttf +0 -0
- package/source/webfonts/fa-sharp-solid-900.woff2 +0 -0
- package/source/webfonts/fa-solid-900.ttf +0 -0
- package/source/webfonts/fa-solid-900.woff2 +0 -0
- package/source/webfonts/fa-thin-100.ttf +0 -0
- package/source/webfonts/fa-thin-100.woff2 +0 -0
- package/source/webfonts/fa-v4compatibility.ttf +0 -0
- package/source/webfonts/fa-v4compatibility.woff2 +0 -0
- package/vercel.json +7 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
$friend-link-item-height = 82px
|
|
2
|
+
$friend-link-item-height-tablet = 68px
|
|
3
|
+
$friend-link-item-interval = 16px
|
|
4
|
+
$friend-link-item-border-radius = 9px
|
|
5
|
+
|
|
6
|
+
@require '../../common/variables'
|
|
7
|
+
|
|
8
|
+
.page-template-container
|
|
9
|
+
redefine-container(
|
|
10
|
+
false,
|
|
11
|
+
0,
|
|
12
|
+
0,
|
|
13
|
+
30px,
|
|
14
|
+
30px
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
+redefine-mobile()
|
|
18
|
+
padding 1.2rem 0.2rem
|
|
19
|
+
box-shadow none
|
|
20
|
+
|
|
21
|
+
&:hover
|
|
22
|
+
box-shadow none
|
|
23
|
+
|
|
24
|
+
.page-template-content
|
|
25
|
+
color var(--default-text-color)
|
|
26
|
+
|
|
27
|
+
h1, h2, h3, h4, h5, h6
|
|
28
|
+
&:first-child
|
|
29
|
+
margin 6px 0 36px 0
|
|
30
|
+
border-bottom none
|
|
31
|
+
line-height 1
|
|
32
|
+
|
|
33
|
+
#shuoshuo-content
|
|
34
|
+
img:hover
|
|
35
|
+
cursor zoom-in
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
#masonry-container
|
|
39
|
+
position relative
|
|
40
|
+
display none
|
|
41
|
+
opacity 0
|
|
42
|
+
transition opacity 0.1s ease-in
|
|
43
|
+
|
|
44
|
+
.masonry-item
|
|
45
|
+
position absolute
|
|
46
|
+
box-sizing border-box
|
|
47
|
+
|
|
48
|
+
&:hover
|
|
49
|
+
img
|
|
50
|
+
box-shadow var(--redefine-box-shadow)
|
|
51
|
+
|
|
52
|
+
img
|
|
53
|
+
width 100%
|
|
54
|
+
border-radius $redefine-border-radius-medium
|
|
55
|
+
box-shadow var(--redefine-box-shadow-flat)
|
|
56
|
+
cursor zoom-in
|
|
57
|
+
|
|
58
|
+
/* Loading */
|
|
59
|
+
.loading-placeholder
|
|
60
|
+
display block
|
|
61
|
+
justify-content center
|
|
62
|
+
align-items center
|
|
63
|
+
opacity 1
|
|
64
|
+
transition opacity 0.1s ease-out
|
|
65
|
+
|
|
66
|
+
.loading
|
|
67
|
+
-webkit-animation gradient-slide 1.1s ease infinite
|
|
68
|
+
animation gradient-slide 1.1s ease infinite
|
|
69
|
+
background 0 0 / 300% 300% linear-gradient(120deg, #9c9c9c20 40%, #83838325 50%, #9c9c9c20 60%)
|
|
70
|
+
|
|
71
|
+
.flex-grid
|
|
72
|
+
display grid
|
|
73
|
+
grid-template-columns repeat(auto-fill, minmax(150px, 1fr))
|
|
74
|
+
gap 10px
|
|
75
|
+
|
|
76
|
+
@media screen and (min-width: 768px)
|
|
77
|
+
grid-template-columns repeat(auto-fill, minmax(255px, 1fr))
|
|
78
|
+
|
|
79
|
+
.card
|
|
80
|
+
border 1px solid var(--border-color)
|
|
81
|
+
border-radius $redefine-border-radius-medium
|
|
82
|
+
box-sizing border-box
|
|
83
|
+
min-height 80vh
|
|
84
|
+
padding 30px
|
|
85
|
+
|
|
86
|
+
@keyframes gradient-slide
|
|
87
|
+
0%
|
|
88
|
+
background-position 100% 50%
|
|
89
|
+
|
|
90
|
+
to
|
|
91
|
+
background-position 0% 50%
|
|
92
|
+
|
|
93
|
+
/* Images */
|
|
94
|
+
.image-container
|
|
95
|
+
position relative
|
|
96
|
+
|
|
97
|
+
.image-title
|
|
98
|
+
position absolute
|
|
99
|
+
top 5px
|
|
100
|
+
left 5px
|
|
101
|
+
color var(--default-text-color)
|
|
102
|
+
background-color var(--background-color-transparent-40)
|
|
103
|
+
padding 5px 10px
|
|
104
|
+
font-size 14px
|
|
105
|
+
opacity 0
|
|
106
|
+
backdrop-filter blur(10px)
|
|
107
|
+
-webkit-backdrop-filter blur(10px)
|
|
108
|
+
border-radius $redefine-border-radius-small
|
|
109
|
+
transition opacity 0.2s ease-out
|
|
110
|
+
|
|
111
|
+
.image-description
|
|
112
|
+
position absolute
|
|
113
|
+
bottom 11px
|
|
114
|
+
right 5px
|
|
115
|
+
color var(--default-text-color)
|
|
116
|
+
background-color var(--background-color-transparent-40)
|
|
117
|
+
padding 5px 10px
|
|
118
|
+
font-size 14px
|
|
119
|
+
opacity 0
|
|
120
|
+
max-width 80%
|
|
121
|
+
backdrop-filter blur(10px)
|
|
122
|
+
-webkit-backdrop-filter blur(10px)
|
|
123
|
+
border-radius $redefine-border-radius-small
|
|
124
|
+
transition opacity 0.2s ease-out
|
|
125
|
+
|
|
126
|
+
figure.image-caption
|
|
127
|
+
img
|
|
128
|
+
margin-bottom 0
|
|
129
|
+
|
|
130
|
+
figcaption
|
|
131
|
+
margin-top 5px
|
|
132
|
+
margin-bottom 10px
|
|
133
|
+
text-align center
|
|
134
|
+
font-size 0.9rem
|
|
135
|
+
color var(--third-text-color)
|
|
136
|
+
|
|
137
|
+
.image-container:hover .image-title, .image-container:hover .image-description
|
|
138
|
+
opacity 1
|
|
139
|
+
|
|
140
|
+
.image-container img
|
|
141
|
+
width 100%
|
|
142
|
+
height auto
|
|
143
|
+
transition box-shadow 0.3s ease-in-out
|
|
144
|
+
overflow hidden
|
|
145
|
+
|
|
146
|
+
.image-container:hover img
|
|
147
|
+
box-shadow var(--redefine-box-shadow-hover)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.paginator
|
|
2
|
+
font-size 1rem
|
|
3
|
+
margin-top 30px
|
|
4
|
+
border-radius 12px
|
|
5
|
+
display flex
|
|
6
|
+
justify-content center
|
|
7
|
+
|
|
8
|
+
a
|
|
9
|
+
margin 0 0.3rem
|
|
10
|
+
|
|
11
|
+
a.active
|
|
12
|
+
color var(--background-color)
|
|
13
|
+
background var(--primary-color)
|
|
14
|
+
|
|
15
|
+
a.prev
|
|
16
|
+
float left
|
|
17
|
+
|
|
18
|
+
+redefine-mobile()
|
|
19
|
+
display none
|
|
20
|
+
|
|
21
|
+
a.next
|
|
22
|
+
float right
|
|
23
|
+
|
|
24
|
+
+redefine-mobile()
|
|
25
|
+
display none
|
|
26
|
+
|
|
27
|
+
.space
|
|
28
|
+
padding 8px 10px
|
|
29
|
+
|
|
30
|
+
+redefine-mobile()
|
|
31
|
+
padding 8px 2px
|
|
32
|
+
|
|
33
|
+
a.page-number, span.page-number, a.prev, a.next
|
|
34
|
+
display inline-block
|
|
35
|
+
position relative
|
|
36
|
+
text-align center
|
|
37
|
+
cursor pointer
|
|
38
|
+
white-space nowrap
|
|
39
|
+
border-radius $redefine-border-radius-small
|
|
40
|
+
padding 8px 16px
|
|
41
|
+
background var(--background-color)
|
|
42
|
+
hover-style(
|
|
43
|
+
true,
|
|
44
|
+
1.06,
|
|
45
|
+
1.06
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
&:hover
|
|
49
|
+
color var(--background-color)
|
|
50
|
+
background var(--primary-color)
|
|
51
|
+
|
|
52
|
+
&:active
|
|
53
|
+
transform scale(0.95)
|
|
54
|
+
transition transform 0.1s ease
|
|
55
|
+
|
|
56
|
+
span.current
|
|
57
|
+
color var(--background-color)
|
|
58
|
+
background var(--primary-color)
|
|
59
|
+
|
|
60
|
+
i.fa-regular
|
|
61
|
+
color var(--default-text-color)
|
|
62
|
+
|
|
63
|
+
.extend:hover
|
|
64
|
+
i.fa-regular
|
|
65
|
+
color var(--background-color)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
$li-border-radius = 10px
|
|
2
|
+
$li-margin-bottom = 5px
|
|
3
|
+
$post-tool-button-width = 42px
|
|
4
|
+
|
|
5
|
+
.post-tools-container
|
|
6
|
+
.article-tools-list
|
|
7
|
+
li
|
|
8
|
+
cursor pointer
|
|
9
|
+
width $post-tool-button-width
|
|
10
|
+
height $post-tool-button-width
|
|
11
|
+
border-radius $li-border-radius
|
|
12
|
+
font-size 1.2rem
|
|
13
|
+
display flex
|
|
14
|
+
align-items center
|
|
15
|
+
justify-content center
|
|
16
|
+
margin-bottom $li-margin-bottom
|
|
17
|
+
background var(--background-color)
|
|
18
|
+
color var(--default-text-color)
|
|
19
|
+
|
|
20
|
+
i
|
|
21
|
+
color var(--default-text-color)
|
|
22
|
+
|
|
23
|
+
&:hover
|
|
24
|
+
background var(--primary-color)
|
|
25
|
+
color var(--background-color)
|
|
26
|
+
|
|
27
|
+
i
|
|
28
|
+
color var(--background-color)
|
|
29
|
+
|
|
30
|
+
&:last-child
|
|
31
|
+
margin-bottom 0
|
|
32
|
+
|
|
33
|
+
hover-style(
|
|
34
|
+
true,
|
|
35
|
+
1.06,
|
|
36
|
+
1.06
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
&.page-aside-toggle
|
|
40
|
+
display none
|
|
41
|
+
|
|
42
|
+
+redefine-tablet()
|
|
43
|
+
display none !important
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.progress-bar-container
|
|
2
|
+
position fixed
|
|
3
|
+
top 0
|
|
4
|
+
left 0
|
|
5
|
+
width 100%
|
|
6
|
+
z-index $z-index-9
|
|
7
|
+
|
|
8
|
+
if (hexo-config('global.scroll_progress.bar') == true)
|
|
9
|
+
.scroll-progress-bar
|
|
10
|
+
position absolute
|
|
11
|
+
top 0
|
|
12
|
+
left 0
|
|
13
|
+
width 0
|
|
14
|
+
height $scroll-progress-bar-height
|
|
15
|
+
visibility hidden
|
|
16
|
+
z-index $z-index-7
|
|
17
|
+
background var(--primary-color)
|
|
18
|
+
transition-t('width, opacity', '0, 0', '0.1, 0.1', 'ease, ease')
|
|
19
|
+
|
|
20
|
+
&.hide
|
|
21
|
+
display none !important
|
|
22
|
+
|
|
23
|
+
html.is-animating
|
|
24
|
+
.scroll-progress-bar
|
|
25
|
+
opacity 0
|
|
26
|
+
transition opacity 0.1s ease-out
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
.swup-progress-bar
|
|
31
|
+
background: #12c2e9;
|
|
32
|
+
height 2px
|
|
33
|
+
background linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
$right-bottom-tools-width = 42px
|
|
2
|
+
$right-bottom-tools-font-size = 1.3rem
|
|
3
|
+
$right-bottom-tools-border-radius = 12px
|
|
4
|
+
|
|
5
|
+
.side-tools-container
|
|
6
|
+
.right-bottom-tools
|
|
7
|
+
width $right-bottom-tools-width
|
|
8
|
+
height $right-bottom-tools-width
|
|
9
|
+
font-size $right-bottom-tools-font-size
|
|
10
|
+
margin-bottom 5px
|
|
11
|
+
cursor pointer
|
|
12
|
+
border-right none
|
|
13
|
+
border-radius $right-bottom-tools-border-radius
|
|
14
|
+
box-shadow var(--redefine-box-shadow)
|
|
15
|
+
color var(--default-text-color)
|
|
16
|
+
background var(--background-color)
|
|
17
|
+
|
|
18
|
+
i
|
|
19
|
+
color var(--default-text-color)
|
|
20
|
+
|
|
21
|
+
&:hover
|
|
22
|
+
color var(--background-color)
|
|
23
|
+
background var(--primary-color)
|
|
24
|
+
box-shadow var(--redefine-box-shadow)
|
|
25
|
+
|
|
26
|
+
i
|
|
27
|
+
color var(--background-color)
|
|
28
|
+
|
|
29
|
+
+redefine-tablet()
|
|
30
|
+
width: $right-bottom-tools-width * 0.9
|
|
31
|
+
height: $right-bottom-tools-width * 0.9
|
|
32
|
+
font-size: $right-bottom-tools-font-size * 0.9
|
|
33
|
+
margin-bottom 2px
|
|
34
|
+
|
|
35
|
+
&.rss
|
|
36
|
+
a
|
|
37
|
+
border-radius $right-bottom-tools-border-radius
|
|
38
|
+
width 100%
|
|
39
|
+
height 100%
|
|
40
|
+
|
|
41
|
+
&:hover
|
|
42
|
+
color var(--background-color)
|
|
43
|
+
background var(--primary-color)
|
|
44
|
+
box-shadow var(--redefine-box-shadow)
|
|
45
|
+
|
|
46
|
+
.hidden-tools-list
|
|
47
|
+
opacity 0
|
|
48
|
+
transform translateX(250%)
|
|
49
|
+
transition-t('transform, opacity', '0, 0', '0.2, 0.2', 'ease, ease')
|
|
50
|
+
|
|
51
|
+
.tool-expand-width
|
|
52
|
+
+redefine-tablet()
|
|
53
|
+
display none
|
|
54
|
+
|
|
55
|
+
&.show
|
|
56
|
+
opacity 1
|
|
57
|
+
transform translateX(0)
|
|
58
|
+
|
|
59
|
+
.visible-tools-list
|
|
60
|
+
if (hexo-config('global.scroll_progress.percentage') == true)
|
|
61
|
+
.tool-scroll-to-top
|
|
62
|
+
display none
|
|
63
|
+
|
|
64
|
+
&.show
|
|
65
|
+
display flex
|
|
66
|
+
|
|
67
|
+
&:hover
|
|
68
|
+
.percent
|
|
69
|
+
display none
|
|
70
|
+
|
|
71
|
+
.arrow-up
|
|
72
|
+
display flex
|
|
73
|
+
|
|
74
|
+
.arrow-up
|
|
75
|
+
display none
|
|
76
|
+
|
|
77
|
+
.percent
|
|
78
|
+
display flex
|
|
79
|
+
font-size 1rem
|
|
80
|
+
|
|
81
|
+
if (hexo-config('plugins.aplayer.enable') == true && hexo-config('plugins.aplayer.type') == 'mini')
|
|
82
|
+
.tool-aplayer
|
|
83
|
+
+redefine-tablet()
|
|
84
|
+
display none
|
|
85
|
+
|
|
86
|
+
+redefine-mobile()
|
|
87
|
+
display none
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
if (hexo-config('page_templates.tags_style') == 'cloud')
|
|
2
|
+
+redefine-mobile()
|
|
3
|
+
padding 1.2rem 0.2rem
|
|
4
|
+
box-shadow none
|
|
5
|
+
|
|
6
|
+
&:hover
|
|
7
|
+
box-shadow none
|
|
8
|
+
|
|
9
|
+
.tagcloud-header
|
|
10
|
+
margin 6px 0 12px 0
|
|
11
|
+
font-size 3.2rem
|
|
12
|
+
padding 0
|
|
13
|
+
line-height 1
|
|
14
|
+
font-weight bold
|
|
15
|
+
color var(--second-text-color)
|
|
16
|
+
|
|
17
|
+
.tagcloud-content
|
|
18
|
+
text-align justify
|
|
19
|
+
|
|
20
|
+
a
|
|
21
|
+
display inline-block
|
|
22
|
+
box-sizing border-box
|
|
23
|
+
padding 0.7rem 0.5rem
|
|
24
|
+
line-height 0.7
|
|
25
|
+
else
|
|
26
|
+
+redefine-mobile()
|
|
27
|
+
padding 1.2rem 0.2rem
|
|
28
|
+
box-shadow none
|
|
29
|
+
|
|
30
|
+
&:hover
|
|
31
|
+
box-shadow none
|
|
32
|
+
|
|
33
|
+
.tagcloud-header
|
|
34
|
+
margin 6px 0 12px 0
|
|
35
|
+
font-size 3.2rem
|
|
36
|
+
padding 0
|
|
37
|
+
line-height 1
|
|
38
|
+
font-weight bold
|
|
39
|
+
color var(--second-text-color)
|
|
40
|
+
|
|
41
|
+
.tagcloud-content
|
|
42
|
+
text-align justify
|
|
43
|
+
|
|
44
|
+
&:hover
|
|
45
|
+
.tag-list
|
|
46
|
+
a
|
|
47
|
+
filter blur(0px) !important
|
|
48
|
+
transition filter 0.3s ease
|
|
49
|
+
|
|
50
|
+
// 定义数量是否显示
|
|
51
|
+
.tag-list[data-show-value] a::after
|
|
52
|
+
content attr(data-weight)
|
|
53
|
+
font-size 1.5rem
|
|
54
|
+
background-color var(--third-background-color)
|
|
55
|
+
padding 4px 8px
|
|
56
|
+
min-width 35px
|
|
57
|
+
margin-left 10px
|
|
58
|
+
border-radius $redefine-border-radius-small
|
|
59
|
+
color var(--third-text-color)
|
|
60
|
+
transition background-color 0.2s ease
|
|
61
|
+
|
|
62
|
+
.tags-punctuation, .tag-list
|
|
63
|
+
list-style none
|
|
64
|
+
padding-left 0
|
|
65
|
+
display flex
|
|
66
|
+
flex-wrap wrap
|
|
67
|
+
align-items center
|
|
68
|
+
justify-content center
|
|
69
|
+
line-height 2.5rem
|
|
70
|
+
|
|
71
|
+
li
|
|
72
|
+
/*
|
|
73
|
+
&:nth-child(1n+1) a { --color: #0cabeb; --opacity: 1 }
|
|
74
|
+
&:nth-child(2n+1) a { --color: #181; --opacity: .9 }
|
|
75
|
+
&:nth-child(3n+1) a { --color: #33a; --opacity: .7 }
|
|
76
|
+
&:nth-child(4n+1) a { --color: #c38; --opacity: .4 }
|
|
77
|
+
&:nth-child(5n+1) a { --color: rgb(184, 174, 62); --opacity: .8 }
|
|
78
|
+
*/
|
|
79
|
+
a
|
|
80
|
+
// 根据自定义data设置样式
|
|
81
|
+
&[data-weight]
|
|
82
|
+
--blur 0
|
|
83
|
+
|
|
84
|
+
&[data-weight='1']
|
|
85
|
+
--blur 3px
|
|
86
|
+
|
|
87
|
+
&[data-weight='2']
|
|
88
|
+
--blur 1.8px
|
|
89
|
+
|
|
90
|
+
&[data-weight='3']
|
|
91
|
+
--blur 0.8px
|
|
92
|
+
|
|
93
|
+
&[data-weight='4']
|
|
94
|
+
--blur 0.4px
|
|
95
|
+
|
|
96
|
+
&[data-weight='5']
|
|
97
|
+
--blur 0
|
|
98
|
+
|
|
99
|
+
font-size 1.4rem
|
|
100
|
+
opacity var(--opacity)
|
|
101
|
+
padding 0.9rem 1.4rem
|
|
102
|
+
display block
|
|
103
|
+
position relative
|
|
104
|
+
flex 1
|
|
105
|
+
border-radius $redefine-border-radius-large
|
|
106
|
+
box-shadow var(--redefine-box-shadow)
|
|
107
|
+
margin 10px
|
|
108
|
+
color var(--default-text-color)
|
|
109
|
+
filter blur(var(--blur))
|
|
110
|
+
transform scaleX(1) scaleY(1)
|
|
111
|
+
background-color var(--default-background-color)
|
|
112
|
+
transition transform 0.2s ease, filter 0.3s ease, color 0.2s ease, background-color 0.2s ease
|
|
113
|
+
|
|
114
|
+
.fa-hashtag
|
|
115
|
+
margin-right 5px
|
|
116
|
+
opacity 0.3
|
|
117
|
+
|
|
118
|
+
&:hover
|
|
119
|
+
transform scaleX(1.05) scaleY(1.05)
|
|
120
|
+
box-shadow var(--redefine-box-shadow-hover)
|
|
121
|
+
background-color var(--primary-color)
|
|
122
|
+
color var(--invert-text-color)
|
|
123
|
+
transition transform 0.3s ease, background-color 0.3s ease, color 0.3s ease
|
|
124
|
+
|
|
125
|
+
.fa-hashtag
|
|
126
|
+
margin-right 5px
|
|
127
|
+
color var(--invert-text-color)
|
|
128
|
+
opacity 0.4
|
|
129
|
+
|
|
130
|
+
&:active
|
|
131
|
+
transform translateY(2px)
|
|
132
|
+
transition transform 0.1s
|
|
133
|
+
|
|
134
|
+
@media (prefers-reduced-motion )
|
|
135
|
+
.tag-list *
|
|
136
|
+
transition none !important
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.post-toc-wrap
|
|
2
|
+
width 100%
|
|
3
|
+
font-size 0.92rem
|
|
4
|
+
box-sizing border-box
|
|
5
|
+
font-family $english-font-family, $chinese-font-family, 'Noto Sans', 'Noto Sans SC', sans-serif
|
|
6
|
+
|
|
7
|
+
.post-toc
|
|
8
|
+
.toc-title
|
|
9
|
+
font-size 0.8rem
|
|
10
|
+
color var(--default-text-color)
|
|
11
|
+
font-weight 500
|
|
12
|
+
margin-bottom 0.2rem
|
|
13
|
+
|
|
14
|
+
.page-title
|
|
15
|
+
white-space normal
|
|
16
|
+
font-size 1.1rem
|
|
17
|
+
color var(--second-text-color)
|
|
18
|
+
font-weight bold
|
|
19
|
+
margin-bottom 0.6rem
|
|
20
|
+
|
|
21
|
+
ol
|
|
22
|
+
ol
|
|
23
|
+
border-left 2px dotted var(--shadow-color-1)
|
|
24
|
+
|
|
25
|
+
list-style none
|
|
26
|
+
margin 0
|
|
27
|
+
padding 0 2px 12px 10px
|
|
28
|
+
text-align left
|
|
29
|
+
|
|
30
|
+
&:last-child
|
|
31
|
+
padding-bottom 0
|
|
32
|
+
|
|
33
|
+
> ol
|
|
34
|
+
padding-left 0
|
|
35
|
+
|
|
36
|
+
a
|
|
37
|
+
transition-property all
|
|
38
|
+
transition()
|
|
39
|
+
|
|
40
|
+
.nav-item
|
|
41
|
+
line-height 2
|
|
42
|
+
overflow hidden
|
|
43
|
+
text-overflow ellipsis
|
|
44
|
+
white-space nowrap
|
|
45
|
+
// word-wrap:break-word
|
|
46
|
+
font-size 0.9rem
|
|
47
|
+
transition all 0.3s ease
|
|
48
|
+
|
|
49
|
+
a > span
|
|
50
|
+
&:first-child::before
|
|
51
|
+
content ' '
|
|
52
|
+
width 10px
|
|
53
|
+
height 1.7rem
|
|
54
|
+
margin auto 0
|
|
55
|
+
transform translate(-12px, 0)
|
|
56
|
+
border-left 2px solid var(--primary-color)
|
|
57
|
+
position absolute
|
|
58
|
+
margin-right 4px
|
|
59
|
+
color var(--primary-color)
|
|
60
|
+
opacity 0
|
|
61
|
+
transition all 0.1s linear
|
|
62
|
+
|
|
63
|
+
.nav
|
|
64
|
+
.nav-child
|
|
65
|
+
display hexo-config('articles.toc.expand') ? block : none
|
|
66
|
+
|
|
67
|
+
.active > .nav-child
|
|
68
|
+
display block
|
|
69
|
+
|
|
70
|
+
.active-current > .nav-child
|
|
71
|
+
display block
|
|
72
|
+
|
|
73
|
+
> .nav-item
|
|
74
|
+
display block
|
|
75
|
+
|
|
76
|
+
.nav-number, .nav-text
|
|
77
|
+
color var(--third-text-color)
|
|
78
|
+
padding-left 0
|
|
79
|
+
transition all 0.3s ease
|
|
80
|
+
|
|
81
|
+
.active > a
|
|
82
|
+
.nav-number, .nav-text
|
|
83
|
+
color var(--primary-color)
|
|
84
|
+
font-weight bold
|
|
85
|
+
|
|
86
|
+
.active-current
|
|
87
|
+
.nav-number, .nav-text
|
|
88
|
+
color var(--primary-color) !important
|
|
89
|
+
font-weight bold
|
|
90
|
+
transition all 0.3s ease
|
|
91
|
+
// padding-left 12px
|
|
92
|
+
|
|
93
|
+
.active-current > span
|
|
94
|
+
&:first-child::before
|
|
95
|
+
content ' '
|
|
96
|
+
width 10px
|
|
97
|
+
height 1.7rem
|
|
98
|
+
margin auto 0
|
|
99
|
+
transform translate(-12px, 0)
|
|
100
|
+
border-left 2px solid var(--primary-color)
|
|
101
|
+
position absolute
|
|
102
|
+
margin-right 4px
|
|
103
|
+
color var(--primary-color)
|
|
104
|
+
opacity 1
|
|
105
|
+
transition all 0.1s linear
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.transition-fade
|
|
2
|
+
transition 0.4s
|
|
3
|
+
opacity 1
|
|
4
|
+
|
|
5
|
+
.transition-fade-up
|
|
6
|
+
transform translateY(0)
|
|
7
|
+
opacity 1
|
|
8
|
+
transition transform 0.4s ease, opacity 0.4s ease
|
|
9
|
+
|
|
10
|
+
.transition-fade-down
|
|
11
|
+
transform translateY(0)
|
|
12
|
+
opacity 1
|
|
13
|
+
transition transform 0.4s ease, opacity 0.4s ease
|
|
14
|
+
|
|
15
|
+
// Define transitions for both classes
|
|
16
|
+
html.is-changing
|
|
17
|
+
.transition-fade
|
|
18
|
+
transition opacity 0.4s ease
|
|
19
|
+
opacity 1
|
|
20
|
+
|
|
21
|
+
.transition-fade-up
|
|
22
|
+
transition transform 0.4s ease, opacity 0.4s ease
|
|
23
|
+
transform translateY(0)
|
|
24
|
+
opacity 1
|
|
25
|
+
|
|
26
|
+
.transition-fade-down
|
|
27
|
+
transition transform 0.4s ease, opacity 0.4s ease
|
|
28
|
+
transform translateY(0)
|
|
29
|
+
opacity 1
|
|
30
|
+
|
|
31
|
+
// Define states for unloaded pages
|
|
32
|
+
html.is-animating
|
|
33
|
+
.transition-fade
|
|
34
|
+
opacity 0
|
|
35
|
+
|
|
36
|
+
.transition-fade-up
|
|
37
|
+
transform translateY(20px)
|
|
38
|
+
opacity 0
|
|
39
|
+
|
|
40
|
+
.transition-fade-down
|
|
41
|
+
transform translateY(-20px)
|
|
42
|
+
opacity 0
|