吴羡
12 小时以前 1193ed5cf72c8d1093d0c061b9eefe61a28b0cb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// global transition css
 
/* fade */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.28s;
}
 
.fade-enter-from,
.fade-leave-active {
  opacity: 0;
}
 
/* fade-transform */
.fade-transform--move,
.fade-transform-leave-active,
.fade-transform-enter-active {
  transition: all .5s;
}
 
.fade-transform-enter-from {
  opacity: 0;
  transform: translateX(-30px);
}
 
.fade-transform-leave-to {
  opacity: 0;
  transform: translateX(30px);
}
 
/* breadcrumb transition */
.breadcrumb-enter-active,
.breadcrumb-leave-active {
  transition: all .5s;
}
 
.breadcrumb-enter-from,
.breadcrumb-leave-active {
  opacity: 0;
  transform: translateX(20px);
}
 
.breadcrumb-move {
  transition: all .5s;
}
 
.breadcrumb-leave-active {
  position: absolute;
}
 
/* 黑暗模式下过渡效果 */
::view-transition-new(root), ::view-transition-old(root) {
  animation: none !important;
  backface-visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
 
.dark::view-transition-old(root) {
  z-index: 2147483646;
  background: var(--bg-color-dark); 
}
 
.dark::view-transition-new(root) {
  z-index: 1;
  background: var(--bg-color);
}
 
::view-transition-old(root) {
  z-index: 1;
  background: var(--bg-color);
}
 
::view-transition-new(root) {
  z-index: 2147483646;
  background: var(--bg-color-dark);
}