mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Skeleton: add less vars
This commit is contained in:
parent
43dd749075
commit
5cd810d480
@ -7,7 +7,7 @@
|
||||
&__avatar {
|
||||
flex-shrink: 0;
|
||||
margin-right: 15px;
|
||||
background-color: @active-color;
|
||||
background-color: @skeleton-avatar-background-color;
|
||||
|
||||
&--round {
|
||||
border-radius: 100%;
|
||||
@ -24,8 +24,8 @@
|
||||
|
||||
&__row,
|
||||
&__title {
|
||||
height: 16px;
|
||||
background-color: @active-color;
|
||||
height: @skeleton-row-height;
|
||||
background-color: @skeleton-row-background-color;
|
||||
}
|
||||
|
||||
&__title {
|
||||
@ -34,7 +34,7 @@
|
||||
|
||||
&__row {
|
||||
&:not(:first-child) {
|
||||
margin-top: 12px;
|
||||
margin-top: @skeleton-row-margin-top;
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
}
|
||||
|
||||
&--animate {
|
||||
animation: van-skeleton-blink 1.2s ease-in-out infinite;
|
||||
animation: van-skeleton-blink @skeleton-animation-duration ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -245,6 +245,13 @@
|
||||
@sidebar-selected-border-color: @red;
|
||||
@sidebar-selected-background-color: @white;
|
||||
|
||||
// Skeleton
|
||||
@skeleton-row-height: 16px;
|
||||
@skeleton-row-background-color: @active-color;
|
||||
@skeleton-row-margin-top: 12px;
|
||||
@skeleton-avatar-background-color: @active-color;
|
||||
@skeleton-animation-duration: 1.2s;
|
||||
|
||||
// Slider
|
||||
@slider-active-background-color: @blue;
|
||||
@slider-inactive-background-color: @gray-light;
|
||||
|
Loading…
x
Reference in New Issue
Block a user