适配搜索样式

This commit is contained in:
1152958806@qq.com 2023-10-28 20:56:25 +08:00
parent 4520a9afed
commit 3ee5f3bd66
6 changed files with 58 additions and 19 deletions

View File

@ -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
}

View File

@ -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);
}

View File

@ -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}

View File

@ -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;
}

View File

@ -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')

View File

@ -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
}
</style>