mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
docs: adjust dark toggle transition between navbar & content (#7493)
This commit is contained in:
parent
dbf076ee15
commit
49d48b8f3b
@ -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;
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 |
Loading…
Reference in New Issue
Block a user