Skip to content

Commit 2fde9af

Browse files
committed
refactor: 更新样式
1 parent cf2c7f9 commit 2fde9af

File tree

1 file changed

+38
-13
lines changed

1 file changed

+38
-13
lines changed

src/BootstrapBlazor/wwwroot/scss/root.scss

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,48 @@ a, a:hover, a:focus {
7676
--bs-popover-body-padding-y: 0.5rem;
7777
}
7878

79-
::view-transition-old(root) {
79+
::view-transition-old(*) {
80+
mix-blend-mode: normal;
8081
animation: none;
82+
z-index: 1;
8183
}
8284

83-
::view-transition-new(root) {
85+
::view-transition-new(*) {
8486
mix-blend-mode: normal;
85-
animation: clip .3s ease-in;
87+
animation: clip .3s ease-in-out;
88+
z-index: 9999;
89+
}
90+
91+
@keyframes clip {
92+
from {
93+
clip-path: circle(0% at var(--bb-theme-x) var(--bb-theme-y));
94+
}
95+
96+
to {
97+
clip-path: circle(100% at var(--bb-theme-x) var(--bb-theme-y));
98+
}
99+
}
100+
101+
[data-bs-theme='dark'] {
102+
&::view-transition-old(*) {
103+
animation: clip2 .3s ease-in-out;
104+
z-index: 9999;
105+
}
106+
107+
&::view-transition-new(*) {
108+
animation: none;
109+
z-index: 1;
110+
}
111+
}
112+
113+
@keyframes clip2 {
114+
from {
115+
clip-path: circle(100% at var(--bb-theme-x) var(--bb-theme-y));
116+
}
117+
118+
to {
119+
clip-path: circle(0% at var(--bb-theme-x) var(--bb-theme-y));
120+
}
86121
}
87122

88123
body:before {
@@ -125,13 +160,3 @@ body:before {
125160
content: "extraExtraLarge";
126161
}
127162
}
128-
129-
@keyframes clip {
130-
from {
131-
clip-path: circle(0% at var(--bb-theme-x) var(--bb-theme-y));
132-
}
133-
134-
to {
135-
clip-path: circle(100% at var(--bb-theme-x) var(--bb-theme-y));
136-
}
137-
}

0 commit comments

Comments
 (0)