From 3ee5f3bd6657e94ebc02c60c2439f11a2af7c241 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sat, 28 Oct 2023 20:56:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=90=9C=E7=B4=A2=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/css/post-copyright-one.css | 19 +++++++++++++++++- templates/assets/css/post-copyright.css | 18 +++++++++++++++++ .../assets/libs/tocbot/4.18.2/tocbot.css | 2 +- templates/assets/zhheo/zhheoblog.css | 20 ++++--------------- templates/modules/head.html | 2 ++ templates/modules/variables/layout.html | 16 ++++++++++++++- 6 files changed, 58 insertions(+), 19 deletions(-) diff --git a/templates/assets/css/post-copyright-one.css b/templates/assets/css/post-copyright-one.css index 30bc9203..3eb5dfba 100644 --- a/templates/assets/css/post-copyright-one.css +++ b/templates/assets/css/post-copyright-one.css @@ -287,12 +287,29 @@ img.post-copyright__author_img_front { width: fit-content; } +@media screen and (max-width: 768px) { + .post-reward .reward-main { + justify-content: center !important; + position: fixed; + bottom: 0; + left: 0; + right: 0; + z-index: 102; + width: 100%; + margin: auto; + padding: 0; + } +} + +.post-reward .reward-main .reward-all { + background:var(--heo-card-bg); +} + .post-tools .post-tools-left .rewardLeftButton,.post-tools .post-tools-left .shareRight { display: -webkit-box; display: -moz-box; display: -webkit-flex; display: -ms-flexbox; - display: box; display: flex; margin: 10px } diff --git a/templates/assets/css/post-copyright.css b/templates/assets/css/post-copyright.css index a105f8a7..b73ddfce 100644 --- a/templates/assets/css/post-copyright.css +++ b/templates/assets/css/post-copyright.css @@ -194,3 +194,21 @@ -webkit-line-clamp: 1; -webkit-box-orient: vertical; } + +@media screen and (max-width: 768px) { + .post-reward .reward-main { + justify-content: center !important; + position: fixed; + bottom: 0; + left: 0; + right: 0; + z-index: 102; + width: 100%; + margin: auto; + padding: 0; + } +} + +.post-reward .reward-main .reward-all { + background:var(--heo-card-bg); +} \ No newline at end of file diff --git a/templates/assets/libs/tocbot/4.18.2/tocbot.css b/templates/assets/libs/tocbot/4.18.2/tocbot.css index 054d963d..8bcd2c66 100644 --- a/templates/assets/libs/tocbot/4.18.2/tocbot.css +++ b/templates/assets/libs/tocbot/4.18.2/tocbot.css @@ -1 +1 @@ -.toc{overflow-y:auto}.toc>.toc-list{overflow:hidden;position:relative}.toc>.toc-list li{list-style:none}.js-toc{overflow-y:hidden}.toc-list{margin:0;padding-left:10px}a.toc-link{color:currentColor;height:100%}.is-collapsible{max-height:1000px;overflow:hidden;transition:all 300ms ease-in-out}.is-collapsed{max-height:0}.is-position-fixed{position:fixed !important;top:0}.is-active-link{font-weight:700}.toc-link::before{background-color:#EEE;content:' ';display:inline-block;height:inherit;left:0;margin-top:-1px;position:absolute;width:2px}.is-active-link::before{background-color:#54BC4B} +.toc{overflow-y:auto}.toc>.toc-list{overflow:hidden;position:relative}.toc>.toc-list li{list-style:none}.js-toc{overflow-y:hidden}.toc-list{margin:0;padding-left:10px}a.toc-link{color:currentColor;height:100%}.is-collapsible{max-height:1000px;overflow:hidden;transition:all 300ms ease-in-out}.is-collapsed{max-height:0}.is-position-fixed{position:fixed !important;top:0}.is-active-link{font-weight:700}.toc-link::before{content:' ';display:inline-block;height:inherit;left:0;margin-top:-1px;position:absolute;width:2px}.is-active-link::before{background-color:#54BC4B} diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index b5338b50..a7ea1e03 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -4949,7 +4949,7 @@ html { transition: 0.3s; display: flex; justify-content: center; - z-index: 1000 !important; + z-index: 999 !important; -webkit-user-select: none; } @@ -11996,7 +11996,7 @@ a.reward-main-btn:hover { overflow: hidden; cursor: pointer; opacity: 0; - z-index: 1002 + z-index: 999 } @@ -13029,7 +13029,7 @@ button.el-button.tk-cancel.el-button--default.el-button--small { } .post-reward .reward-main { - z-index: 1003; + z-index: 999; } .tk-meta-input .el-input .el-input-group__prepend { @@ -13047,18 +13047,6 @@ button.el-button.tk-cancel.el-button--default.el-button--small { @media screen and (max-width: 768px) { - .post-reward .reward-main { - justify-content: center !important; - position: fixed; - bottom: 0; - left: 0; - right: 0; - z-index: 102; - width: 100%; - margin: auto; - padding: 0; - } - .post-reward .reward-main .reward-all { width: 100%; display: flex; @@ -15147,7 +15135,7 @@ span.hexo-douban-pagenum { background: var(--heo-secondbg); display: flex; overflow: hidden; - z-index: 1002; + z-index: 999; transition: 0.3s; } diff --git a/templates/modules/head.html b/templates/modules/head.html index 5509130d..f1f6e4d4 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -108,10 +108,12 @@ win.activateDarkMode = function () { document.documentElement.setAttribute('data-theme', 'dark') + document.documentElement.classList.add('color-scheme-dark') heo.initThemeColor() } win.activateLightMode = function () { document.documentElement.setAttribute('data-theme', 'light') + document.documentElement.classList.remove('color-scheme-dark') heo.initThemeColor() } const t = saveToLocal.get('theme') diff --git a/templates/modules/variables/layout.html b/templates/modules/variables/layout.html index 75bd895e..112df329 100644 --- a/templates/modules/variables/layout.html +++ b/templates/modules/variables/layout.html @@ -11,6 +11,20 @@ --heo-theme-op: [(${theme.config.style.themeDarkSkin})]23 !important; --heo-theme-op-deep: [(${theme.config.style.themeDarkSkin})]dd !important; --heo-theme-none: [(${theme.config.style.themeDarkSkin})]00 !important; - + } + .color-scheme-dark,.dark,[data-color-scheme=dark] { + --halo-search-widget-color-modal-layer: var(--heo-maskbgdeep); + --halo-search-widget-color-modal-content-bg: var(--heo-secondbg); + --halo-search-widget-color-form-input: rgb(255, 255, 255); + --halo-search-widget-color-form-input-placeholder: #ffffff82; + --halo-search-widget-color-form-input-bg: var(--heo-secondbg); + --halo-search-widget-color-form-divider: rgb(30 41 59); + --halo-search-widget-color-result-item-bg: var(--heo-secondbg); + --halo-search-widget-color-result-item-hover-bg: rgb(51 65 85); + --halo-search-widget-color-result-item-title: rgb(255 255 255); + --halo-search-widget-color-result-item-content: #ffffff82; + --halo-search-widget-color-command-kbd-item: var(--heo-secondtext); + --halo-search-widget-color-command-kbd-border: rgb(30 41 59); + --halo-search-widget-color-result-empty: #ffffff82 } \ No newline at end of file