docs: adjust dark toggle transition between navbar & content (#7493)

This commit is contained in:
云游君 2022-05-04 23:46:59 +08:00 committed by GitHub
parent dbf076ee15
commit 49d48b8f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 5 additions and 2 deletions

View File

@ -182,6 +182,8 @@ function initialize(userOptions: any) {
--docsearch-text-color: var(--text-color-light);
--docsearch-modal-background: var(--bg-color-soft);
transition: background-color var(--el-transition-duration-fast);
&.DocSearch-Button {
margin-right: 8px;
}

View File

@ -31,6 +31,7 @@ body {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transition: background-color var(--el-transition-duration-fast);
}
main {

View File

@ -6,7 +6,7 @@
background-color: var(--bg-color);
color: var(--text-color);
transition: border-color var(--el-transition-duration),
background-color var(--el-transition-duration);
background-color var(--el-transition-duration-fast);
}
@mixin with-border {

View File

@ -13,7 +13,7 @@
padding: 48px 32px 0;
overflow-y: auto;
transform: translate(-100%);
transition: background-color 0.5s, opacity 0.25s,
transition: background-color var(--el-transition-duration-fast), opacity 0.25s,
transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
&.open {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB