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,82 @@
|
|
|
1
|
+
@require '../variables.styl'
|
|
2
|
+
|
|
3
|
+
if (hexo-config('articles.code_block.highlight_theme.light') == 'github') {
|
|
4
|
+
@require 'hljs-themes/light/github.styl'
|
|
5
|
+
} else if (hexo-config('articles.code_block.highlight_theme.light') == 'atom-one-light') {
|
|
6
|
+
@require 'hljs-themes/light/atom-one-light.styl'
|
|
7
|
+
} else if (hexo-config('articles.code_block.highlight_theme.light') == 'default') {
|
|
8
|
+
@require 'hljs-themes/light/default.styl'
|
|
9
|
+
} else {
|
|
10
|
+
@require 'hljs-themes/light/github.styl'
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (hexo-config('articles.code_block.highlight_theme.dark') == 'github-dark') {
|
|
14
|
+
@require 'hljs-themes/dark/github-dark.styl'
|
|
15
|
+
} else if (hexo-config('articles.code_block.highlight_theme.dark') == 'vs2015') {
|
|
16
|
+
@require 'hljs-themes/dark/vs2015.styl'
|
|
17
|
+
} else if (hexo-config('articles.code_block.highlight_theme.dark') == 'atom-one-dark') {
|
|
18
|
+
@require 'hljs-themes/dark/atom-one-dark.styl'
|
|
19
|
+
} else if (hexo-config('articles.code_block.highlight_theme.dark') == 'a11y-dark') {
|
|
20
|
+
@require 'hljs-themes/dark/a11y-dark.styl'
|
|
21
|
+
} else if (hexo-config('articles.code_block.highlight_theme.dark') == 'agate') {
|
|
22
|
+
@require 'hljs-themes/dark/agate.styl'
|
|
23
|
+
} else if (hexo-config('articles.code_block.highlight_theme.dark') == 'monokai-sublime') {
|
|
24
|
+
@require 'hljs-themes/dark/monokai-sublime.styl'
|
|
25
|
+
} else if (hexo-config('articles.code_block.highlight_theme.dark') == 'night-owl') {
|
|
26
|
+
@require 'hljs-themes/dark/night-owl.styl'
|
|
27
|
+
} else if (hexo-config('articles.code_block.highlight_theme.dark') == 'nord') {
|
|
28
|
+
@require 'hljs-themes/dark/nord.styl'
|
|
29
|
+
} else if (hexo-config('articles.code_block.highlight_theme.dark') == 'tokyo-night-dark') {
|
|
30
|
+
@require 'hljs-themes/dark/tokyo-night-dark.styl'
|
|
31
|
+
} else {
|
|
32
|
+
@require 'hljs-themes/dark/github-dark.styl'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
$highlight-gutter-color = #6a737d
|
|
36
|
+
$highlight-gutter-bg-color = #f6f8fa
|
|
37
|
+
$dark-highlight-gutter-color = #8b949e
|
|
38
|
+
$dark-highlight-gutter-bg-color = #161b22
|
|
39
|
+
|
|
40
|
+
$inline-code-foreground = #24292e
|
|
41
|
+
$inline-code-background = #f1f1f1
|
|
42
|
+
$dark-inline-code-foreground = #c9d1d9
|
|
43
|
+
$dark-inline-code-background = #313131
|
|
44
|
+
|
|
45
|
+
code-theme(mode)
|
|
46
|
+
--inline-code-foreground: mode == 'light' ? $inline-code-foreground : $dark-inline-code-foreground
|
|
47
|
+
--inline-code-background: mode == 'light' ? $inline-code-background : $dark-inline-code-background
|
|
48
|
+
--highlight-background: mode == 'light' ? $highlight-background : $dark-highlight-background
|
|
49
|
+
--highlight-foreground: mode == 'light' ? $highlight-foreground : $dark-highlight-foreground
|
|
50
|
+
--highlight-keyword: mode == 'light' ? $highlight-keyword : $dark-highlight-keyword
|
|
51
|
+
--highlight-link: mode == 'light' ? $highlight-link : $dark-highlight-link
|
|
52
|
+
--highlight-built-in: mode == 'light' ? $highlight-built-in : $dark-highlight-built-in
|
|
53
|
+
--highlight-number: mode == 'light' ? $highlight-number : $dark-highlight-number
|
|
54
|
+
--highlight-string: mode == 'light' ? $highlight-string : $dark-highlight-string
|
|
55
|
+
--highlight-regexp: mode == 'light' ? $highlight-regexp : $dark-highlight-regexp
|
|
56
|
+
--highlight-subst: mode == 'light' ? $highlight-subst : $dark-highlight-subst
|
|
57
|
+
--highlight-comment: mode == 'light' ? $highlight-comment : $dark-highlight-comment
|
|
58
|
+
--highlight-doctag: mode == 'light' ? $highlight-doctag : $dark-highlight-doctag
|
|
59
|
+
--highlight-meta: mode == 'light' ? $highlight-meta : $dark-highlight-meta
|
|
60
|
+
--highlight-variable: mode == 'light' ? $highlight-variable : $dark-highlight-variable
|
|
61
|
+
--highlight-attr: mode == 'light' ? $highlight-attr : $dark-highlight-attr
|
|
62
|
+
--highlight-section: mode == 'light' ? $highlight-section : $dark-highlight-section
|
|
63
|
+
--highlight-bullet: mode == 'light' ? $highlight-bullet : $dark-highlight-bullet
|
|
64
|
+
--highlight-addition: mode == 'light' ? $highlight-addition : $dark-highlight-addition
|
|
65
|
+
--highlight-deletion: mode == 'light' ? $highlight-deletion : $dark-highlight-deletion
|
|
66
|
+
|
|
67
|
+
:root
|
|
68
|
+
code-theme('light')
|
|
69
|
+
|
|
70
|
+
@media (prefers-color-scheme light)
|
|
71
|
+
:root
|
|
72
|
+
code-theme('light')
|
|
73
|
+
|
|
74
|
+
@media (prefers-color-scheme dark)
|
|
75
|
+
:root
|
|
76
|
+
code-theme('dark')
|
|
77
|
+
|
|
78
|
+
.light-mode
|
|
79
|
+
code-theme('light')
|
|
80
|
+
|
|
81
|
+
.dark-mode
|
|
82
|
+
code-theme('dark')
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
@require 'code-theme.styl'
|
|
2
|
+
|
|
3
|
+
$code-block
|
|
4
|
+
-webkit-text-size-adjust none
|
|
5
|
+
overflow auto
|
|
6
|
+
margin 20px 0
|
|
7
|
+
padding 0
|
|
8
|
+
font-size 1rem
|
|
9
|
+
line-height 1.5rem
|
|
10
|
+
color var(--highlight-foreground)
|
|
11
|
+
background var(--highlight-background)
|
|
12
|
+
|
|
13
|
+
pre, code
|
|
14
|
+
line-height 1.5 !important
|
|
15
|
+
if (hexo-config('articles.code_block.font.enable') && hexo-config('articles.code_block.font.family'))
|
|
16
|
+
font-family hexo-config('articles.code_block.font.family'), 'Geist Mono', Courier, monospace !important
|
|
17
|
+
else
|
|
18
|
+
font-family 'Geist Mono', Courier, monospace !important
|
|
19
|
+
|
|
20
|
+
pre.mermaid
|
|
21
|
+
background-color var(--background-color)
|
|
22
|
+
|
|
23
|
+
svg
|
|
24
|
+
display block
|
|
25
|
+
margin auto
|
|
26
|
+
|
|
27
|
+
code
|
|
28
|
+
padding 3px 4px
|
|
29
|
+
word-wrap break-word
|
|
30
|
+
border-radius $redefine-border-radius-xsmall
|
|
31
|
+
color var(--inline-code-foreground)
|
|
32
|
+
background var(--inline-code-background)
|
|
33
|
+
|
|
34
|
+
.main-content code
|
|
35
|
+
font-size: 0.9em
|
|
36
|
+
|
|
37
|
+
pre
|
|
38
|
+
@extend $code-block
|
|
39
|
+
font-size 0.9rem !important
|
|
40
|
+
padding-top 14px !important
|
|
41
|
+
tab-size 4
|
|
42
|
+
|
|
43
|
+
code
|
|
44
|
+
padding 0
|
|
45
|
+
color var(--highlight-foreground)
|
|
46
|
+
background none
|
|
47
|
+
text-shadow none
|
|
48
|
+
|
|
49
|
+
.highlight
|
|
50
|
+
@extend $code-block
|
|
51
|
+
border-radius $redefine-border-radius-large-bottom
|
|
52
|
+
padding-bottom 5px
|
|
53
|
+
overflow auto
|
|
54
|
+
margin 0 !important
|
|
55
|
+
|
|
56
|
+
if (hexo-config('articles.code_block.style') == 'mac')
|
|
57
|
+
border-top 1px solid var(--shadow-color-1)
|
|
58
|
+
|
|
59
|
+
&:hover::-webkit-scrollbar-thumb
|
|
60
|
+
border 3px solid rgba(183, 183, 183, 0.3)
|
|
61
|
+
|
|
62
|
+
&::-webkit-scrollbar
|
|
63
|
+
width 6px
|
|
64
|
+
height 6px
|
|
65
|
+
transition all 0.2s ease
|
|
66
|
+
display block
|
|
67
|
+
|
|
68
|
+
&::-webkit-scrollbar-track
|
|
69
|
+
background transparent
|
|
70
|
+
border none
|
|
71
|
+
|
|
72
|
+
&::-webkit-scrollbar-thumb
|
|
73
|
+
border-radius 20px
|
|
74
|
+
border 3px solid rgba(183, 183, 183, 0)
|
|
75
|
+
transition all 0.2s ease
|
|
76
|
+
|
|
77
|
+
pre
|
|
78
|
+
border none
|
|
79
|
+
margin 0
|
|
80
|
+
padding 10px 0
|
|
81
|
+
|
|
82
|
+
table
|
|
83
|
+
margin 0
|
|
84
|
+
width auto
|
|
85
|
+
border none
|
|
86
|
+
border-spacing unset
|
|
87
|
+
|
|
88
|
+
td
|
|
89
|
+
border none
|
|
90
|
+
padding 0
|
|
91
|
+
|
|
92
|
+
figcaption
|
|
93
|
+
font-size 1rem
|
|
94
|
+
color var(--highlight-foreground)
|
|
95
|
+
line-height 1rem
|
|
96
|
+
margin-bottom 1rem
|
|
97
|
+
|
|
98
|
+
a
|
|
99
|
+
float right
|
|
100
|
+
color var(--highlight-foreground)
|
|
101
|
+
|
|
102
|
+
&:hover
|
|
103
|
+
border-bottom-color var(--highlight-foreground)
|
|
104
|
+
|
|
105
|
+
.gutter pre
|
|
106
|
+
padding-left 10px
|
|
107
|
+
padding-right 10px
|
|
108
|
+
color var(--highlight-gutter-color)
|
|
109
|
+
text-align center
|
|
110
|
+
background-color var(--highlight-gutter-bg-color)
|
|
111
|
+
|
|
112
|
+
.code pre
|
|
113
|
+
width 100%
|
|
114
|
+
padding-left 10px
|
|
115
|
+
padding-right 10px
|
|
116
|
+
background-color var(--highlight-background)
|
|
117
|
+
|
|
118
|
+
.gutter
|
|
119
|
+
-webkit-user-select none
|
|
120
|
+
-moz-user-select none
|
|
121
|
+
-ms-user-select none
|
|
122
|
+
user-select none
|
|
123
|
+
|
|
124
|
+
.gist table
|
|
125
|
+
width auto
|
|
126
|
+
|
|
127
|
+
td
|
|
128
|
+
border none
|
|
129
|
+
|
|
130
|
+
pre
|
|
131
|
+
.keyword, .literal, .symbol, .name
|
|
132
|
+
color var(--highlight-keyword)
|
|
133
|
+
|
|
134
|
+
.link
|
|
135
|
+
color var(--highlight-link)
|
|
136
|
+
text-decoration underline
|
|
137
|
+
|
|
138
|
+
.built_in, .type
|
|
139
|
+
color var(--highlight-built-in)
|
|
140
|
+
|
|
141
|
+
.number, .class
|
|
142
|
+
color var(--highlight-number)
|
|
143
|
+
|
|
144
|
+
.string, .meta .string
|
|
145
|
+
color var(--highlight-string)
|
|
146
|
+
|
|
147
|
+
.regexp, .template-tag
|
|
148
|
+
color var(--highlight-regexp)
|
|
149
|
+
|
|
150
|
+
.subst, .function, .title, .params, .formula
|
|
151
|
+
color var(--highlight-subst)
|
|
152
|
+
|
|
153
|
+
.comment, .quote
|
|
154
|
+
color var(--highlight-comment)
|
|
155
|
+
font-style italic
|
|
156
|
+
|
|
157
|
+
.doctag
|
|
158
|
+
color var(--highlight-doctag)
|
|
159
|
+
|
|
160
|
+
.meta, .meta .keyword, .tag
|
|
161
|
+
color var(--highlight-meta)
|
|
162
|
+
|
|
163
|
+
.variable, .template-variable
|
|
164
|
+
color var(--highlight-variable)
|
|
165
|
+
|
|
166
|
+
.attr, .attribute
|
|
167
|
+
color var(--highlight-attr)
|
|
168
|
+
|
|
169
|
+
.section
|
|
170
|
+
color var(--highlight-section)
|
|
171
|
+
|
|
172
|
+
.emphasis
|
|
173
|
+
font-style italic
|
|
174
|
+
|
|
175
|
+
.strong
|
|
176
|
+
font-weight bold
|
|
177
|
+
|
|
178
|
+
.bullet, .selector-tag, .selector-id, .selector-class, .selector-attr, .selector-pseudo
|
|
179
|
+
color var(--highlight-bullet)
|
|
180
|
+
|
|
181
|
+
.addition
|
|
182
|
+
color var(--highlight-addition)
|
|
183
|
+
display inline-block
|
|
184
|
+
width 100%
|
|
185
|
+
|
|
186
|
+
.deletion
|
|
187
|
+
color var(--highlight-deletion)
|
|
188
|
+
display inline-block
|
|
189
|
+
width 100%
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$dark-highlight-foreground = #f8f8f2
|
|
2
|
+
$dark-highlight-background = #2b2b2b
|
|
3
|
+
$dark-highlight-keyword = #dcc6e0
|
|
4
|
+
$dark-highlight-link = #f5ab35
|
|
5
|
+
$dark-highlight-built-in = #f5ab35
|
|
6
|
+
$dark-highlight-number = #f5ab35
|
|
7
|
+
$dark-highlight-string = #abe338
|
|
8
|
+
$dark-highlight-regexp = #ffa07a
|
|
9
|
+
$dark-highlight-subst = #f8f8f2
|
|
10
|
+
$dark-highlight-comment = #d4d0ab
|
|
11
|
+
$dark-highlight-doctag = #dcc6e0
|
|
12
|
+
$dark-highlight-meta = #f5ab35
|
|
13
|
+
$dark-highlight-variable = #ffa07a
|
|
14
|
+
$dark-highlight-attr = #ffd700
|
|
15
|
+
$dark-highlight-section = #00e0e0
|
|
16
|
+
$dark-highlight-bullet = #abe338
|
|
17
|
+
$dark-highlight-addition = #abe338
|
|
18
|
+
$dark-highlight-deletion = #ffa07a
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$dark-highlight-foreground = #fff
|
|
2
|
+
$dark-highlight-background = #333
|
|
3
|
+
$dark-highlight-keyword = #fcc28c
|
|
4
|
+
$dark-highlight-link = #c6b4f0
|
|
5
|
+
$dark-highlight-built-in = #fcc28c
|
|
6
|
+
$dark-highlight-number = #d36363
|
|
7
|
+
$dark-highlight-string = #a2fca2
|
|
8
|
+
$dark-highlight-regexp = #c6b4f0
|
|
9
|
+
$dark-highlight-subst = #fff
|
|
10
|
+
$dark-highlight-comment = #888
|
|
11
|
+
$dark-highlight-doctag = #fff
|
|
12
|
+
$dark-highlight-meta = #fc9b9b
|
|
13
|
+
$dark-highlight-variable = #ade5fc
|
|
14
|
+
$dark-highlight-attr = #7bd694
|
|
15
|
+
$dark-highlight-section = #62c8f3
|
|
16
|
+
$dark-highlight-bullet = #b8d8a2
|
|
17
|
+
$dark-highlight-addition = #a2fca2
|
|
18
|
+
$dark-highlight-deletion = #fc9b9b
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$dark-highlight-foreground = #abb2bf
|
|
2
|
+
$dark-highlight-background = #282c34
|
|
3
|
+
$dark-highlight-keyword = #c678dd
|
|
4
|
+
$dark-highlight-link = #61aeee
|
|
5
|
+
$dark-highlight-built-in = #e6c07b
|
|
6
|
+
$dark-highlight-number = #d19a66
|
|
7
|
+
$dark-highlight-string = #98c379
|
|
8
|
+
$dark-highlight-regexp = #98c379
|
|
9
|
+
$dark-highlight-subst = #e06c75
|
|
10
|
+
$dark-highlight-comment = #5c6370
|
|
11
|
+
$dark-highlight-doctag = #c678dd
|
|
12
|
+
$dark-highlight-meta = #61aeee
|
|
13
|
+
$dark-highlight-variable = #d19a66
|
|
14
|
+
$dark-highlight-attr = #d19a66
|
|
15
|
+
$dark-highlight-section = #e06c75
|
|
16
|
+
$dark-highlight-bullet = #61aeee
|
|
17
|
+
$dark-highlight-addition = #98c379
|
|
18
|
+
$dark-highlight-deletion = #e06c75
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$dark-highlight-foreground = #c9d1d9
|
|
2
|
+
$dark-highlight-background = #0d1117
|
|
3
|
+
$dark-highlight-keyword = #ff7b72
|
|
4
|
+
$dark-highlight-link = #ff7b72
|
|
5
|
+
$dark-highlight-built-in = #ffa657
|
|
6
|
+
$dark-highlight-number = #79c0ff
|
|
7
|
+
$dark-highlight-string = #a5d6ff
|
|
8
|
+
$dark-highlight-regexp = #a5d6ff
|
|
9
|
+
$dark-highlight-subst = #c9d1d9
|
|
10
|
+
$dark-highlight-comment = #8b949e
|
|
11
|
+
$dark-highlight-doctag = #ff7b72
|
|
12
|
+
$dark-highlight-meta = #79c0ff
|
|
13
|
+
$dark-highlight-variable = #79c0ff
|
|
14
|
+
$dark-highlight-attr = #79c0ff
|
|
15
|
+
$dark-highlight-section = #1f6feb
|
|
16
|
+
$dark-highlight-bullet = #f2cc60
|
|
17
|
+
$dark-highlight-addition = #aff5b4
|
|
18
|
+
$dark-highlight-deletion = #ffdcd7
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$dark-highlight-foreground = #f8f8f2
|
|
2
|
+
$dark-highlight-background = #23241f
|
|
3
|
+
$dark-highlight-keyword = #f92672
|
|
4
|
+
$dark-highlight-link = #ae81ff
|
|
5
|
+
$dark-highlight-built-in = #e6db74
|
|
6
|
+
$dark-highlight-number = #ae81ff
|
|
7
|
+
$dark-highlight-string = #e6db74
|
|
8
|
+
$dark-highlight-regexp = #ae81ff
|
|
9
|
+
$dark-highlight-subst = #f8f8f2
|
|
10
|
+
$dark-highlight-comment = #75715e
|
|
11
|
+
$dark-highlight-doctag = #f92672
|
|
12
|
+
$dark-highlight-meta = #75715e
|
|
13
|
+
$dark-highlight-variable = #e6db74
|
|
14
|
+
$dark-highlight-attr = #f92672
|
|
15
|
+
$dark-highlight-section = #a6e22e
|
|
16
|
+
$dark-highlight-bullet = #ae81ff
|
|
17
|
+
$dark-highlight-addition = #e6db74
|
|
18
|
+
$dark-highlight-deletion = #75715e
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$dark-highlight-foreground = #d6deeb
|
|
2
|
+
$dark-highlight-background = #011627
|
|
3
|
+
$dark-highlight-keyword = #c792ea
|
|
4
|
+
$dark-highlight-link = #ff869a
|
|
5
|
+
$dark-highlight-built-in = #addb67
|
|
6
|
+
$dark-highlight-number = #F78C6C
|
|
7
|
+
$dark-highlight-string = #ecc48d
|
|
8
|
+
$dark-highlight-regexp = #5ca7e4
|
|
9
|
+
$dark-highlight-subst = #d3423e
|
|
10
|
+
$dark-highlight-comment = #637777
|
|
11
|
+
$dark-highlight-doctag = #7fdbca
|
|
12
|
+
$dark-highlight-meta = #82aaff
|
|
13
|
+
$dark-highlight-variable = #addb67
|
|
14
|
+
$dark-highlight-attr = #7fdbca
|
|
15
|
+
$dark-highlight-section = #82b1ff
|
|
16
|
+
$dark-highlight-bullet = #d9f5dd
|
|
17
|
+
$dark-highlight-addition = #addb67ff
|
|
18
|
+
$dark-highlight-deletion = #EF535090
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$dark-highlight-foreground = #D8DEE9
|
|
2
|
+
$dark-highlight-background = #2E3440
|
|
3
|
+
$dark-highlight-keyword = #81A1C1
|
|
4
|
+
$dark-highlight-link = #81A1C1
|
|
5
|
+
$dark-highlight-built-in = #8FBCBB
|
|
6
|
+
$dark-highlight-number = #B48EAD
|
|
7
|
+
$dark-highlight-string = #A3BE8C
|
|
8
|
+
$dark-highlight-regexp = #EBCB8B
|
|
9
|
+
$dark-highlight-subst = #D8DEE9
|
|
10
|
+
$dark-highlight-comment = #4C566A
|
|
11
|
+
$dark-highlight-doctag = #8FBCBB
|
|
12
|
+
$dark-highlight-meta = #5E81AC
|
|
13
|
+
$dark-highlight-variable = #D8DEE9
|
|
14
|
+
$dark-highlight-attr = #8FBCBB
|
|
15
|
+
$dark-highlight-section = #88C0D0
|
|
16
|
+
$dark-highlight-bullet = #81A1C1
|
|
17
|
+
$dark-highlight-addition = rgba(163, 190, 140, 0.5)
|
|
18
|
+
$dark-highlight-deletion = rgba(191, 97, 106, 0.5)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$dark-highlight-foreground = #9aa5ce
|
|
2
|
+
$dark-highlight-background = #1a1b26
|
|
3
|
+
$dark-highlight-keyword = #bb9af7
|
|
4
|
+
$dark-highlight-link = #ff9e64
|
|
5
|
+
$dark-highlight-built-in = #e0af68
|
|
6
|
+
$dark-highlight-number = #ff9e64
|
|
7
|
+
$dark-highlight-string = #9ece6a
|
|
8
|
+
$dark-highlight-regexp = #f7768e
|
|
9
|
+
$dark-highlight-subst = #7dcfff
|
|
10
|
+
$dark-highlight-comment = #565f89
|
|
11
|
+
$dark-highlight-doctag = #f7768e
|
|
12
|
+
$dark-highlight-meta = #565f89
|
|
13
|
+
$dark-highlight-variable = #ff9e64
|
|
14
|
+
$dark-highlight-attr = #bb9af7
|
|
15
|
+
$dark-highlight-section = #7aa2f7
|
|
16
|
+
$dark-highlight-bullet = #9ece6a
|
|
17
|
+
$dark-highlight-addition = #9ece6a
|
|
18
|
+
$dark-highlight-deletion = #f7768e
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$dark-highlight-foreground = #DCDCDC
|
|
2
|
+
$dark-highlight-background = #1E1E1E
|
|
3
|
+
$dark-highlight-keyword = #569CD6
|
|
4
|
+
$dark-highlight-link = #569CD6
|
|
5
|
+
$dark-highlight-built-in = #4EC9B0
|
|
6
|
+
$dark-highlight-number = #B8D7A3
|
|
7
|
+
$dark-highlight-string = #D69D85
|
|
8
|
+
$dark-highlight-regexp = #9A5334
|
|
9
|
+
$dark-highlight-subst = #DCDCDC
|
|
10
|
+
$dark-highlight-comment = #57A64A
|
|
11
|
+
$dark-highlight-doctag = #608B4E
|
|
12
|
+
$dark-highlight-meta = #9B9B9B
|
|
13
|
+
$dark-highlight-variable = #BD63C5
|
|
14
|
+
$dark-highlight-attr = #9CDCFE
|
|
15
|
+
$dark-highlight-section = gold
|
|
16
|
+
$dark-highlight-bullet = #D7BA7D
|
|
17
|
+
$dark-highlight-addition = #144212
|
|
18
|
+
$dark-highlight-deletion = #600
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$highlight-foreground = #383a42
|
|
2
|
+
$highlight-background = #fafafa
|
|
3
|
+
$highlight-keyword = #a626a4
|
|
4
|
+
$highlight-link = #4078f2
|
|
5
|
+
$highlight-built-in = #c18401
|
|
6
|
+
$highlight-number = #986801
|
|
7
|
+
$highlight-string = #50a14f
|
|
8
|
+
$highlight-regexp = #50a14f
|
|
9
|
+
$highlight-subst = #e45649
|
|
10
|
+
$highlight-comment = #a0a1a7
|
|
11
|
+
$highlight-doctag = #a626a4
|
|
12
|
+
$highlight-meta = #4078f2
|
|
13
|
+
$highlight-variable = #986801
|
|
14
|
+
$highlight-attr = #986801
|
|
15
|
+
$highlight-section = #e45649
|
|
16
|
+
$highlight-bullet = #4078f2
|
|
17
|
+
$highlight-addition = #50a14f
|
|
18
|
+
$highlight-deletion = #e45649
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$highlight-foreground = #444
|
|
2
|
+
$highlight-background = #F3F3F3
|
|
3
|
+
$highlight-keyword = #444
|
|
4
|
+
$highlight-link = #ab5656
|
|
5
|
+
$highlight-built-in = #397300
|
|
6
|
+
$highlight-number = #880000
|
|
7
|
+
$highlight-string = #880000
|
|
8
|
+
$highlight-regexp = #ab5656
|
|
9
|
+
$highlight-subst = #444
|
|
10
|
+
$highlight-comment = #697070
|
|
11
|
+
$highlight-doctag = #444
|
|
12
|
+
$highlight-meta = #1f7199
|
|
13
|
+
$highlight-variable = #ab5656
|
|
14
|
+
$highlight-attr = #444
|
|
15
|
+
$highlight-section = #880000
|
|
16
|
+
$highlight-bullet = #397300
|
|
17
|
+
$highlight-addition = #397300
|
|
18
|
+
$highlight-deletion = #880000
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$highlight-foreground = #24292e
|
|
2
|
+
$highlight-background = #fdfdfd
|
|
3
|
+
$highlight-keyword = #d73a49
|
|
4
|
+
$highlight-link = #d73a49 /* Following the pattern, link should have the same color as keyword */
|
|
5
|
+
$highlight-built-in = #e36209
|
|
6
|
+
$highlight-number = #005cc5
|
|
7
|
+
$highlight-string = #032f62
|
|
8
|
+
$highlight-regexp = #032f62
|
|
9
|
+
$highlight-subst = #24292e
|
|
10
|
+
$highlight-comment = #6a737d
|
|
11
|
+
$highlight-doctag = #d73a49
|
|
12
|
+
$highlight-meta = #005cc5 /* Mapped based on the pattern for constant */
|
|
13
|
+
$highlight-variable = #005cc5
|
|
14
|
+
$highlight-attr = #005cc5
|
|
15
|
+
$highlight-section = #005cc5
|
|
16
|
+
$highlight-bullet = #735c0f
|
|
17
|
+
$highlight-addition = #22863a
|
|
18
|
+
$highlight-deletion = #b31d28
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// ========================================================================================
|
|
2
|
+
// COLOR VARIABLES
|
|
3
|
+
// ========================================================================================
|
|
4
|
+
// primary color
|
|
5
|
+
$temp-color = hexo-config('colors.primary')
|
|
6
|
+
$primary-color = $temp-color ? convert($temp-color) : #0066CC
|
|
7
|
+
|
|
8
|
+
//navbar color
|
|
9
|
+
$nav-color-1 = convert(hexo-config('navbar.color.left') + hexo-config('navbar.color.transparency'))
|
|
10
|
+
$nav-color-2 = convert(hexo-config('navbar.color.right') + hexo-config('navbar.color.transparency'))
|
|
11
|
+
$nav-color-bg = linear-gradient(120deg, $nav-color-1 0%, $nav-color-2 100%)
|
|
12
|
+
|
|
13
|
+
// ========================================================================================
|
|
14
|
+
// LIGHT MODE
|
|
15
|
+
// ========================================================================================
|
|
16
|
+
$background-color = #fff
|
|
17
|
+
$background-color-transparent = rgba(255, 255, 255, 0.6)
|
|
18
|
+
$background-color-transparent-80 = rgba(255, 255, 255, 0.8)
|
|
19
|
+
$background-color-transparent-40 = rgba(255, 255, 255, 0.4)
|
|
20
|
+
$background-color-transparent-15 = rgba(255, 255, 255, 0.15)
|
|
21
|
+
$second-background-color = darken($background-color, 2%)
|
|
22
|
+
$third-background-color = darken($background-color, 3%)
|
|
23
|
+
$third-background-color-transparent = rgba(241, 241, 241, 0.6)
|
|
24
|
+
$default-text-color = #373D3F
|
|
25
|
+
$invert-text-color = #bebec6
|
|
26
|
+
$first-text-color = darken($default-text-color, 10%)
|
|
27
|
+
$second-text-color = darken($default-text-color, 5%)
|
|
28
|
+
$third-text-color = lighten($default-text-color, 20%)
|
|
29
|
+
$fourth-text-color = lighten($default-text-color, 90%)
|
|
30
|
+
$border-color = rgba(0, 0, 0, 0.08)
|
|
31
|
+
$selection-color = lighten($primary-color, 10%)
|
|
32
|
+
$shadow-color-1 = rgba(0, 0, 0, 0.08)
|
|
33
|
+
$shadow-color-2 = rgba(0, 0, 0, 0.05)
|
|
34
|
+
$shadow-hover-color = rgba(0, 0, 0, 0.28)
|
|
35
|
+
$scrollbar-color = #C1C1C1
|
|
36
|
+
$scrollbar-color-hover = #A1A1A1
|
|
37
|
+
$scroll-bar-bg-color = #FAFAFA
|
|
38
|
+
$link-color = darken($default-text-color, 10%)
|
|
39
|
+
$copyright-info-color = #CC0033
|
|
40
|
+
$avatar-background-color = #0066CC
|
|
41
|
+
$pjax-progress-bar-color = linear-gradient(45deg, #f10006, #ef5b00, #e59c01, #19ca05, #00cab5, #0264c8, #c303c3)
|
|
42
|
+
$archive-timeline-last-child-color = linear-gradient(to bottom, rgba(232,232,232, 1) 60%, rgba(0,0,0, 0) 100%) 1 100%
|
|
43
|
+
|
|
44
|
+
$note-blue-title-bg = #D6F7FB
|
|
45
|
+
$note-red-title-bg = #FDE9E9
|
|
46
|
+
$note-green-title-bg = #E9FDE9
|
|
47
|
+
$note-yellow-title-bg = #FDF9E9
|
|
48
|
+
$note-purple-title-bg = #F9E9FD
|
|
49
|
+
$note-gray-title-bg = #F9F9F9
|
|
50
|
+
$note-black-title-bg = #E9E9E9
|
|
51
|
+
$note-cyan-title-bg = #E9FDF9
|
|
52
|
+
$note-type-title-bg = #fdf3e9
|
|
53
|
+
|
|
54
|
+
$home-banner-text-color = convert(hexo-config('home_banner.text_color.light'))
|
|
55
|
+
$home-banner-icons-container-border-color = rgba(255, 255, 255, 0.35)
|
|
56
|
+
$home-banner-icons-container-background-color = rgba(255, 255, 255, 0.3)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
// ========================================================================================
|
|
60
|
+
// DARK MODE
|
|
61
|
+
// ========================================================================================
|
|
62
|
+
$dark-primary-color = $primary-color
|
|
63
|
+
$dark-background-color = #202124
|
|
64
|
+
$dark-background-color-transparent = rgba(32, 33, 36, 0.4)
|
|
65
|
+
$dark-background-color-transparent-80 = rgba(32, 33, 36, 0.8)
|
|
66
|
+
$dark-background-color-transparent-40 = rgba(32, 33, 36, 0.4)
|
|
67
|
+
$dark-background-color-transparent-15 = rgba(32, 33, 36, 0.15)
|
|
68
|
+
$dark-second-background-color = lighten($dark-background-color, 2%)
|
|
69
|
+
$dark-third-background-color = lighten($dark-background-color, 4.5%)
|
|
70
|
+
$dark-third-background-color-transparent = rgba(32, 33, 36, 0.6)
|
|
71
|
+
$dark-default-text-color = #bebec6
|
|
72
|
+
$dark-invert-text-color = #373D3F
|
|
73
|
+
$dark-first-text-color = lighten($dark-default-text-color, 30%)
|
|
74
|
+
$dark-second-text-color = lighten($dark-default-text-color, 20%)
|
|
75
|
+
$dark-third-text-color = darken($dark-default-text-color, 20%)
|
|
76
|
+
$dark-fourth-text-color = darken($dark-default-text-color, 70%)
|
|
77
|
+
$dark-border-color = rgba(255, 255, 255, 0.08)
|
|
78
|
+
$dark-selection-color = $selection-color
|
|
79
|
+
$dark-shadow-color-1 = rgba(255, 255, 255, 0.08)
|
|
80
|
+
$dark-shadow-color-2 = rgba(255, 255, 255, 0.05)
|
|
81
|
+
$dark-shadow-hover-color = rgba(69, 69, 69, 0.28)
|
|
82
|
+
$dark-scrollbar-color = #898989
|
|
83
|
+
$dark-scrollbar-color-hover = #A1A1A1;
|
|
84
|
+
$dark-scroll-bar-bg-color = lighten($dark-background-color, 5%)
|
|
85
|
+
$dark-link-color = lighten($dark-default-text-color, 10%)
|
|
86
|
+
$dark-copyright-info-color = darken($copyright-info-color, 20%)
|
|
87
|
+
$dark-avatar-background-color = darken($avatar-background-color, 10%)
|
|
88
|
+
$dark-pjax-progress-bar-color = linear-gradient(45deg, #ea404a, #ea722f, #e9a71f, #67e559, #18ecec, #1b85f1, #ee1dee)
|
|
89
|
+
$dark-archive-timeline-last-child-color = linear-gradient(to bottom, rgba(50,50,50,1) 60%, rgba(255,255,255, 0) 100%) 1 100%
|
|
90
|
+
|
|
91
|
+
$dark-note-blue-title-bg = #1e3e46
|
|
92
|
+
$dark-note-red-title-bg = #4e1e1e
|
|
93
|
+
$dark-note-green-title-bg = #1e4e1e
|
|
94
|
+
$dark-note-yellow-title-bg = #4e4e1e
|
|
95
|
+
$dark-note-cyan-title-bg = #1e4e4e
|
|
96
|
+
$dark-note-purple-title-bg = #4e1e4e
|
|
97
|
+
$dark-note-gray-title-bg = #4e4e4e
|
|
98
|
+
$dark-note-black-title-bg = #1e1e1e
|
|
99
|
+
$dark-note-type-title-bg = #4e3a1e
|
|
100
|
+
|
|
101
|
+
$home-banner-text-color-dark = convert(hexo-config('home_banner.text_color.dark'))
|
|
102
|
+
$home-banner-icons-container-border-color-dark = rgba(197, 197, 197, 0.35)
|
|
103
|
+
$home-banner-icons-container-background-color-dark = rgba(197, 197, 197, 0.3)
|
|
104
|
+
|
|
105
|
+
// ========================================================================================
|
|
106
|
+
// NOTE COLORS
|
|
107
|
+
// ========================================================================================
|
|
108
|
+
|
|
109
|
+
$note-default-text-color = #A6A6A6
|
|
110
|
+
$note-green-text-color = #006e53
|
|
111
|
+
$note-red-text-color = #f85676
|
|
112
|
+
|