feat(Loading): add some less vars (#4781)

This commit is contained in:
neverland 2019-10-19 16:08:37 +08:00 committed by GitHub
parent a625bdca42
commit 1e21ce3cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -8,14 +8,14 @@
&__spinner {
position: relative;
display: inline-block;
width: 30px;
width: @loading-spinner-size;
// compatible for 1.x, users may set width or height in root element
max-width: 100%;
height: 30px;
height: @loading-spinner-size;
max-height: 100%;
color: @loading-spinner-color;
vertical-align: middle;
animation: van-rotate 0.8s linear infinite;
animation: van-rotate @loading-spinner-animation-duration linear infinite;
&--spinner {
animation-timing-function: steps(12);

View File

@ -367,6 +367,8 @@
@loading-text-color: @gray-dark;
@loading-text-font-size: @font-size-md;
@loading-spinner-color: @gray;
@loading-spinner-size: 30px;
@loading-spinner-animation-duration: .8s;
// NavBar
@nav-bar-height: 46px;