mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(theme): 修复颜色模式按钮动画效果
This commit is contained in:
parent
2a76f26f94
commit
b29a93eae1
@ -55,7 +55,7 @@ function useAppearance() {
|
||||
css.type = 'text/css'
|
||||
css.appendChild(
|
||||
document.createTextNode(
|
||||
`:not(.VPSwitchAppearance):not(.VPSwitchAppearance *) {
|
||||
`:not(.switch-appearance):not(.switch-appearance *) {
|
||||
-webkit-transition: none !important;
|
||||
-moz-transition: none !important;
|
||||
-o-transition: none !important;
|
||||
|
||||
@ -34,6 +34,7 @@ const { hasSidebar } = useSidebar()
|
||||
border-top: 1px solid var(--vp-c-gutter);
|
||||
padding: 32px 24px;
|
||||
background-color: var(--vp-c-bg);
|
||||
transition: all 0.25s;
|
||||
}
|
||||
|
||||
.plume-footer.has-sidebar {
|
||||
|
||||
@ -26,6 +26,7 @@
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 32px;
|
||||
font-size: 24px;
|
||||
transition: all var(--t-color);
|
||||
}
|
||||
|
||||
.plume-content h2:first-of-type {
|
||||
|
||||
@ -30,7 +30,7 @@ body {
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
transition: color var(--t-color) ease, background-color var(--t-color) ease;
|
||||
transition: all 0.25s;
|
||||
}
|
||||
|
||||
main {
|
||||
@ -179,16 +179,19 @@ input {
|
||||
input:-ms-input-placeholder,
|
||||
textarea:-ms-input-placeholder {
|
||||
color: var(--vp-c-text-3);
|
||||
transition: color var(--t-color);
|
||||
}
|
||||
|
||||
input::-ms-input-placeholder,
|
||||
textarea::-ms-input-placeholder {
|
||||
color: var(--vp-c-text-3);
|
||||
transition: color var(--t-color);
|
||||
}
|
||||
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
color: var(--vp-c-text-3);
|
||||
transition: color var(--t-color);
|
||||
}
|
||||
|
||||
input::-webkit-outer-spin-button,
|
||||
|
||||
@ -415,7 +415,8 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
--t-color: 0.25s ease;
|
||||
--t-color: 0.25s;
|
||||
--code-tabs-nav-bg-color: var(--vp-code-tab-b);
|
||||
--code-bg-color: var(--vp-code-block-bg);
|
||||
--medium-zoom-bg-color: var(--vp-c-bg);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user