[improvement] Rate: add less vars (#3135)

This commit is contained in:
neverland 2019-04-11 17:44:41 +08:00 committed by GitHub
parent 9ecbcae725
commit 3645999b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@
&__item {
display: inline-block;
position: relative;
padding: 0 2px;
padding: 0 @rate-horizontal-padding;
}
&__icon {
@ -15,7 +15,7 @@
&--half {
position: absolute;
top: 0;
left: 2px;
left: @rate-horizontal-padding;
width: .5em;;
overflow: hidden;
}

View File

@ -201,6 +201,9 @@
@radio-disabled-label-color: @gray;
@radio-disabled-background-color: @border-color;
// Rate
@rate-horizontal-padding: 2px;
// Slider
@slider-active-background-color: @blue;
@slider-inactive-background-color: @gray-light;