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,144 @@
|
|
|
1
|
+
@require '../common/variables'
|
|
2
|
+
|
|
3
|
+
.page-title-header
|
|
4
|
+
font-size 3.2rem
|
|
5
|
+
line-height 1
|
|
6
|
+
font-weight bold
|
|
7
|
+
color var(--second-text-color)
|
|
8
|
+
margin 6px 0 36px 0
|
|
9
|
+
|
|
10
|
+
.page-container
|
|
11
|
+
position relative
|
|
12
|
+
box-sizing border-box
|
|
13
|
+
width 100%
|
|
14
|
+
height auto
|
|
15
|
+
background var(--background-color)
|
|
16
|
+
|
|
17
|
+
+redefine-tablet()
|
|
18
|
+
padding-right 0 !important
|
|
19
|
+
|
|
20
|
+
.main-content-container
|
|
21
|
+
padding-top $navbar-height
|
|
22
|
+
position relative
|
|
23
|
+
transition padding 0.2s ease
|
|
24
|
+
|
|
25
|
+
.navbar-shrink &
|
|
26
|
+
padding-top $navbar-shrink-height
|
|
27
|
+
transition padding 0.2s ease
|
|
28
|
+
|
|
29
|
+
+redefine-tablet()
|
|
30
|
+
padding-top: ($navbar-shrink-height * 0.9)
|
|
31
|
+
|
|
32
|
+
+redefine-mobile()
|
|
33
|
+
padding-top: $navbar-shrink-height * 0.8
|
|
34
|
+
|
|
35
|
+
+redefine-tablet()
|
|
36
|
+
padding-top: $navbar-height * 0.9
|
|
37
|
+
|
|
38
|
+
+redefine-mobile()
|
|
39
|
+
padding-top: $navbar-height * 0.8
|
|
40
|
+
|
|
41
|
+
.main-content-header
|
|
42
|
+
position fixed
|
|
43
|
+
top 0
|
|
44
|
+
right 0
|
|
45
|
+
width 100%
|
|
46
|
+
height $navbar-height
|
|
47
|
+
z-index $z-index-5
|
|
48
|
+
box-sizing border-box
|
|
49
|
+
transition-t('transform, padding-left, height', '0, 0, 0', '0.3, 0.2, 0.2', 'ease-out, linear, ease')
|
|
50
|
+
|
|
51
|
+
&.hide
|
|
52
|
+
transform translateY(-105%)
|
|
53
|
+
|
|
54
|
+
.navbar-shrink &
|
|
55
|
+
height $navbar-shrink-height
|
|
56
|
+
|
|
57
|
+
+redefine-tablet()
|
|
58
|
+
height: ($navbar-shrink-height * 0.9)
|
|
59
|
+
|
|
60
|
+
+redefine-mobile()
|
|
61
|
+
height: $navbar-shrink-height * 0.8
|
|
62
|
+
|
|
63
|
+
+redefine-tablet()
|
|
64
|
+
height: $navbar-height * 0.9
|
|
65
|
+
padding-left 0 !important
|
|
66
|
+
|
|
67
|
+
+redefine-mobile()
|
|
68
|
+
height: $navbar-height * 0.8
|
|
69
|
+
|
|
70
|
+
.main-content-body
|
|
71
|
+
box-sizing border-box
|
|
72
|
+
width 100%
|
|
73
|
+
display flex
|
|
74
|
+
justify-content center
|
|
75
|
+
padding $spacing-unit 0
|
|
76
|
+
|
|
77
|
+
+redefine-tablet()
|
|
78
|
+
padding ($spacing-unit * 0.8) 0
|
|
79
|
+
|
|
80
|
+
+redefine-mobile()
|
|
81
|
+
border none !important
|
|
82
|
+
padding-top 0
|
|
83
|
+
|
|
84
|
+
.main-content
|
|
85
|
+
position relative
|
|
86
|
+
box-sizing border-box
|
|
87
|
+
width $main-content-width
|
|
88
|
+
max-width $content-max-width
|
|
89
|
+
height 100%
|
|
90
|
+
transition-t('max-width, width', '0, 0', '0.2, 0.2', 'ease, ease')
|
|
91
|
+
|
|
92
|
+
+redefine-tablet()
|
|
93
|
+
width $main-content-width-tablet
|
|
94
|
+
|
|
95
|
+
+redefine-mobile()
|
|
96
|
+
width $main-content-width-mobile
|
|
97
|
+
|
|
98
|
+
&.has-toc
|
|
99
|
+
max-width $has-toc-content-max-width !important
|
|
100
|
+
|
|
101
|
+
.main-content-footer
|
|
102
|
+
width 100%
|
|
103
|
+
|
|
104
|
+
.post-tools
|
|
105
|
+
position fixed
|
|
106
|
+
top: $navbar-height + $spacing-unit
|
|
107
|
+
right $spacing-unit
|
|
108
|
+
transition-t('top', '0', '0.2', 'ease')
|
|
109
|
+
|
|
110
|
+
.navbar-shrink &
|
|
111
|
+
top: $navbar-shrink-height + $spacing-unit
|
|
112
|
+
|
|
113
|
+
+redefine-tablet()
|
|
114
|
+
top ($navbar-shrink-height * 0.9) + $spacing-unit
|
|
115
|
+
|
|
116
|
+
+redefine-mobile()
|
|
117
|
+
top: ($navbar-shrink-height * 0.8 + $spacing-unit)
|
|
118
|
+
|
|
119
|
+
+redefine-tablet()
|
|
120
|
+
top: ($navbar-height * 0.9 + $spacing-unit)
|
|
121
|
+
right 10px
|
|
122
|
+
transform scale(0.82)
|
|
123
|
+
transform-origin right top
|
|
124
|
+
|
|
125
|
+
+redefine-mobile()
|
|
126
|
+
display none
|
|
127
|
+
top: ($navbar-height * 0.8 + $spacing-unit)
|
|
128
|
+
right 5px
|
|
129
|
+
transform scale(0.72)
|
|
130
|
+
|
|
131
|
+
.right-side-tools-container
|
|
132
|
+
position fixed
|
|
133
|
+
bottom 5%
|
|
134
|
+
right $spacing-unit
|
|
135
|
+
opacity 1
|
|
136
|
+
transition opacity 0.2s ease
|
|
137
|
+
|
|
138
|
+
&.hide
|
|
139
|
+
opacity 0
|
|
140
|
+
pointer-events none
|
|
141
|
+
transition opacity 0.2s ease
|
|
142
|
+
|
|
143
|
+
+redefine-mobile()
|
|
144
|
+
right 12px
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@require '../common/variables'
|
|
2
|
+
|
|
3
|
+
$tag-name-font-size = 3rem
|
|
4
|
+
|
|
5
|
+
.tag-container
|
|
6
|
+
redefine-container(
|
|
7
|
+
false,
|
|
8
|
+
0,
|
|
9
|
+
0,
|
|
10
|
+
30px,
|
|
11
|
+
30px
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
.tag-name
|
|
15
|
+
color var(--second-text-color)
|
|
16
|
+
font-size $tag-name-font-size
|
|
17
|
+
|
|
18
|
+
i
|
|
19
|
+
color var(--second-text-color)
|
|
20
|
+
|
|
21
|
+
font-weight 600
|
|
22
|
+
padding-bottom 20px
|
|
23
|
+
margin-bottom $spacing-unit
|
|
24
|
+
border-bottom 1px solid var(--shadow-color-1)
|
|
25
|
+
|
|
26
|
+
+redefine-tablet()
|
|
27
|
+
font-size: $tag-name-font-size * 0.9
|
|
28
|
+
|
|
29
|
+
+redefine-mobile()
|
|
30
|
+
font-size: $tag-name-font-size * 0.8
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@require 'common/animated.styl'
|
|
2
|
+
@require 'common/variables.styl'
|
|
3
|
+
|
|
4
|
+
@require 'common/basic.styl'
|
|
5
|
+
@require 'common/markdown.styl'
|
|
6
|
+
@require 'common/redefine-theme.styl'
|
|
7
|
+
|
|
8
|
+
@require 'common/codeblock/code-theme.styl'
|
|
9
|
+
@require 'common/codeblock/highlight.styl'
|
|
10
|
+
@require 'common/codeblock/code-block.styl'
|
|
11
|
+
|
|
12
|
+
@require 'layout/_partials/*'
|
|
13
|
+
@require 'layout/_partials/comments/comment.styl'
|
|
14
|
+
@require 'layout/_modules/*'
|
|
15
|
+
|
|
16
|
+
@require 'layout/page.styl'
|
|
17
|
+
@require 'layout/animations.styl'
|
|
18
|
+
@require 'layout/category-list.styl'
|
|
19
|
+
@require 'layout/home-content.styl'
|
|
20
|
+
@require 'layout/archive-content.styl'
|
|
21
|
+
@require 'layout/article-content.styl'
|
|
22
|
+
@require 'layout/category-content.styl'
|
|
23
|
+
@require 'layout/tag-content.styl'
|
|
24
|
+
|
|
25
|
+
if (hexo-config('home.sidebar.enable') == true)
|
|
26
|
+
@require 'layout/home-sidebar.styl'
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
@custom-variant dark (&:is(.dark *));
|
|
4
|
+
|
|
5
|
+
@theme {
|
|
6
|
+
--spacing-unit: 38px;
|
|
7
|
+
|
|
8
|
+
--margin-spacing-unit: 38px;
|
|
9
|
+
|
|
10
|
+
--container-content: 1000px;
|
|
11
|
+
--container-has-toc-content: 120%;
|
|
12
|
+
|
|
13
|
+
--z-index-1: 1001;
|
|
14
|
+
--z-index-2: 1002;
|
|
15
|
+
--z-index-3: 1003;
|
|
16
|
+
--z-index-4: 1004;
|
|
17
|
+
--z-index-5: 1005;
|
|
18
|
+
--z-index-6: 1006;
|
|
19
|
+
--z-index-7: 1007;
|
|
20
|
+
--z-index-8: 1008;
|
|
21
|
+
--z-index-9: 1009;
|
|
22
|
+
|
|
23
|
+
--radius-none: 0px;
|
|
24
|
+
--radius-xsmall: 4px;
|
|
25
|
+
--radius-small: 9px;
|
|
26
|
+
--radius-medium: 14px;
|
|
27
|
+
--radius-large: 18px;
|
|
28
|
+
--radius-xlarge: 24px;
|
|
29
|
+
--radius-xxlarge: 48px;
|
|
30
|
+
|
|
31
|
+
--font-english: Geist Variable, sans-serif;
|
|
32
|
+
--font-default: Geist Variable, system-ui, sans-serif;
|
|
33
|
+
|
|
34
|
+
--text-default: 16px;
|
|
35
|
+
|
|
36
|
+
--leading-default: 1.5;
|
|
37
|
+
|
|
38
|
+
--color-primary: var(--primary-color);
|
|
39
|
+
--color-nav-color-1: var(--nav-color-1);
|
|
40
|
+
--color-nav-color-2: var(--nav-color-2);
|
|
41
|
+
--color-nav-color-bg: var(--nav-color-bg);
|
|
42
|
+
--color-background-color: var(--background-color);
|
|
43
|
+
--color-background-color-transparent: var(--background-color-transparent);
|
|
44
|
+
--color-background-color-transparent-15: var(
|
|
45
|
+
--background-color-transparent-15
|
|
46
|
+
);
|
|
47
|
+
--color-background-color-transparent-40: var(
|
|
48
|
+
--background-color-transparent-40
|
|
49
|
+
);
|
|
50
|
+
--color-background-color-transparent-80: var(
|
|
51
|
+
--background-color-transparent-80
|
|
52
|
+
);
|
|
53
|
+
--color-second-background-color: var(--second-background-color);
|
|
54
|
+
--color-third-background-color: var(--third-background-color);
|
|
55
|
+
--color-third-background-color-transparent: var(
|
|
56
|
+
--third-background-color-transparent
|
|
57
|
+
);
|
|
58
|
+
--color-first-text-color: var(--first-text-color);
|
|
59
|
+
--color-second-text-color: var(--second-text-color);
|
|
60
|
+
--color-third-text-color: var(--third-text-color);
|
|
61
|
+
--color-fourth-text-color: var(--fourth-text-color);
|
|
62
|
+
--color-default-text-color: var(--default-text-color);
|
|
63
|
+
--color-invert-text-color: var(--invert-text-color);
|
|
64
|
+
--color-border-color: var(--border-color);
|
|
65
|
+
--color-selection-color: var(--selection-color);
|
|
66
|
+
--color-shadow-color-1: var(--shadow-color-1);
|
|
67
|
+
--color-shadow-color-2: var(--shadow-color-2);
|
|
68
|
+
--color-shadow-hover-color: var(--shadow-hover-color);
|
|
69
|
+
--color-scrollbar-color: var(--scrollbar-color);
|
|
70
|
+
--color-scrollbar-color-hover: var(--scrollbar-color-hover);
|
|
71
|
+
--color-scroll-bar-bg-color: var(--scroll-bar-bg-color);
|
|
72
|
+
--color-link-color: var(--link-color);
|
|
73
|
+
--color-copyright-info-color: var(--copyright-info-color);
|
|
74
|
+
--color-avatar-background-color: var(--avatar-background-color);
|
|
75
|
+
--color-pjax-progress-bar-color: var(--pjax-progress-bar-color);
|
|
76
|
+
--color-archive-timeline-last-child-color: var(
|
|
77
|
+
--archive-timeline-last-child-color
|
|
78
|
+
);
|
|
79
|
+
--color-note-blue-title-bg: var(--note-blue-title-bg);
|
|
80
|
+
--color-note-red-title-bg: var(--note-red-title-bg);
|
|
81
|
+
--color-note-cyan-title-bg: var(--note-cyan-title-bg);
|
|
82
|
+
--color-note-green-title-bg: var(--note-green-title-bg);
|
|
83
|
+
--color-note-yellow-title-bg: var(--note-yellow-title-bg);
|
|
84
|
+
--color-note-gray-title-bg: var(--note-gray-title-bg);
|
|
85
|
+
--color-note-type-title-bg: var(--note-type-title-bg);
|
|
86
|
+
--color-note-black-title-bg: var(--note-black-title-bg);
|
|
87
|
+
--color-note-purple-title-bg: var(--note-purple-title-bg);
|
|
88
|
+
--color-home-banner-img: var(--home-banner-img);
|
|
89
|
+
--color-home-banner-text-color: var(--home-banner-text-color);
|
|
90
|
+
--color-home-banner-icons-container-border-color: var(
|
|
91
|
+
--home-banner-icons-container-border-color
|
|
92
|
+
);
|
|
93
|
+
--color-home-banner-icons-container-background-color: var(
|
|
94
|
+
--home-banner-icons-container-background-color
|
|
95
|
+
);
|
|
96
|
+
--color-border: hsl(var(--border));
|
|
97
|
+
--color-input: hsl(var(--input));
|
|
98
|
+
--color-ring: hsl(var(--ring));
|
|
99
|
+
--color-background: hsl(var(--background));
|
|
100
|
+
--color-foreground: hsl(var(--foreground));
|
|
101
|
+
|
|
102
|
+
--color-secondary: hsl(var(--secondary));
|
|
103
|
+
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
104
|
+
|
|
105
|
+
--color-destructive: hsl(var(--destructive));
|
|
106
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
107
|
+
|
|
108
|
+
--color-muted: hsl(var(--muted));
|
|
109
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
110
|
+
|
|
111
|
+
--color-accent: hsl(var(--accent));
|
|
112
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
113
|
+
|
|
114
|
+
--color-popover: hsl(var(--popover));
|
|
115
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
116
|
+
|
|
117
|
+
--color-card: hsl(var(--card));
|
|
118
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
119
|
+
|
|
120
|
+
--shadow-redefine:
|
|
121
|
+
0px 6px 24px 0px var(--shadow-color-2),
|
|
122
|
+
0px 0px 0px 1px var(--shadow-color-1);
|
|
123
|
+
--shadow-redefine-hover:
|
|
124
|
+
0px 6px 24px 0px var(--shadow-color-2),
|
|
125
|
+
0px 0px 0px 1px var(--shadow-color-1),
|
|
126
|
+
0px 0px 0px 1px inset var(--shadow-color-1);
|
|
127
|
+
--shadow-redefine-flat:
|
|
128
|
+
0px 1px 4px 0px var(--shadow-color-2), 0px 0px 0px 1px var(--shadow-color-1);
|
|
129
|
+
--shadow-redefine-flat-hover:
|
|
130
|
+
0px 1px 4px 0px var(--shadow-color-2),
|
|
131
|
+
0px 0px 0px 1px var(--shadow-color-1),
|
|
132
|
+
0px 0px 0px 1px inset var(--shadow-color-1);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/*
|
|
136
|
+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
|
|
137
|
+
so we've added these compatibility styles to make sure everything still
|
|
138
|
+
looks the same as it did with Tailwind CSS v3.
|
|
139
|
+
|
|
140
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
141
|
+
color utility to any element that depends on these defaults.
|
|
142
|
+
*/
|
|
143
|
+
@layer base {
|
|
144
|
+
*,
|
|
145
|
+
::after,
|
|
146
|
+
::before,
|
|
147
|
+
::backdrop,
|
|
148
|
+
::file-selector-button {
|
|
149
|
+
border-color: var(--color-gray-200, currentcolor);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@layer base {
|
|
154
|
+
:root {
|
|
155
|
+
--background: 0 0% 100%;
|
|
156
|
+
--foreground: 240 10% 3.9%;
|
|
157
|
+
|
|
158
|
+
--card: 0 0% 100%;
|
|
159
|
+
--card-foreground: 240 10% 3.9%;
|
|
160
|
+
|
|
161
|
+
--popover: 0 0% 100%;
|
|
162
|
+
--popover-foreground: 240 10% 3.9%;
|
|
163
|
+
|
|
164
|
+
--primary: 240 5.9% 10%;
|
|
165
|
+
--primary-foreground: 0 0% 98%;
|
|
166
|
+
|
|
167
|
+
--secondary: 240 4.8% 95.9%;
|
|
168
|
+
--secondary-foreground: 240 5.9% 10%;
|
|
169
|
+
|
|
170
|
+
--muted: 240 4.8% 95.9%;
|
|
171
|
+
--muted-foreground: 240 3.8% 46.1%;
|
|
172
|
+
|
|
173
|
+
--accent: 240 4.8% 95.9%;
|
|
174
|
+
--accent-foreground: 240 5.9% 10%;
|
|
175
|
+
|
|
176
|
+
--destructive: 0 84.2% 60.2%;
|
|
177
|
+
--destructive-foreground: 0 0% 98%;
|
|
178
|
+
|
|
179
|
+
--border: 240 5.9% 90%;
|
|
180
|
+
--input: 240 5.9% 90%;
|
|
181
|
+
--ring: 240 10% 3.9%;
|
|
182
|
+
|
|
183
|
+
--radius: 0.5rem;
|
|
184
|
+
|
|
185
|
+
--chart-1: 12 76% 61%;
|
|
186
|
+
--chart-2: 173 58% 39%;
|
|
187
|
+
--chart-3: 197 37% 24%;
|
|
188
|
+
--chart-4: 43 74% 66%;
|
|
189
|
+
--chart-5: 27 87% 67%;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.dark {
|
|
193
|
+
--background: 240 10% 3.9%;
|
|
194
|
+
--foreground: 0 0% 98%;
|
|
195
|
+
|
|
196
|
+
--card: 240 10% 3.9%;
|
|
197
|
+
--card-foreground: 0 0% 98%;
|
|
198
|
+
|
|
199
|
+
--popover: 240 10% 3.9%;
|
|
200
|
+
--popover-foreground: 0 0% 98%;
|
|
201
|
+
|
|
202
|
+
--primary: 0 0% 98%;
|
|
203
|
+
--primary-foreground: 240 5.9% 10%;
|
|
204
|
+
|
|
205
|
+
--secondary: 240 3.7% 15.9%;
|
|
206
|
+
--secondary-foreground: 0 0% 98%;
|
|
207
|
+
|
|
208
|
+
--muted: 240 3.7% 15.9%;
|
|
209
|
+
--muted-foreground: 240 5% 64.9%;
|
|
210
|
+
|
|
211
|
+
--accent: 240 3.7% 15.9%;
|
|
212
|
+
--accent-foreground: 0 0% 98%;
|
|
213
|
+
|
|
214
|
+
--destructive: 0 62.8% 30.6%;
|
|
215
|
+
--destructive-foreground: 0 0% 98%;
|
|
216
|
+
|
|
217
|
+
--border: 240 3.7% 15.9%;
|
|
218
|
+
--input: 240 3.7% 15.9%;
|
|
219
|
+
--ring: 240 4.9% 83.9%;
|
|
220
|
+
|
|
221
|
+
--chart-1: 220 70% 50%;
|
|
222
|
+
--chart-2: 160 60% 45%;
|
|
223
|
+
--chart-3: 30 80% 55%;
|
|
224
|
+
--chart-4: 280 65% 60%;
|
|
225
|
+
--chart-5: 340 75% 55%;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.scrollbar-hide {
|
|
230
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
231
|
+
scrollbar-width: none; /* Firefox */
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.scrollbar-hide::-webkit-scrollbar {
|
|
235
|
+
display: none; /* Chrome, Safari and Opera */
|
|
236
|
+
}
|