perf: Skeleton组件增加暗黑模式

This commit is contained in:
hzh 2023-08-26 16:38:29 +08:00 committed by weisheng
parent face66561c
commit cb452b6141

View File

@ -1,6 +1,13 @@
@import '../common/abstracts/variable';
@import '../common/abstracts/mixin';
.wot-theme-dark {
@include b(skeleton) {
@include e(col) {
background-color: $-dark-background4;
}
}
}
@include b(skeleton) {
box-sizing: border-box;
@ -65,7 +72,7 @@
animation: wd-skeleton-flashed 2s linear 2s infinite;
}
}
@keyframes wd-skeleton-gradient {
0% {
transform: translateX(-100%) skewX(-15deg);
@ -86,4 +93,4 @@
opacity: 1;
}
}
}
}