[improvement] CellGroup: add less vars (#3094)

This commit is contained in:
neverland 2019-04-04 17:55:48 +08:00 committed by GitHub
parent 19f5ec81ba
commit ce862b5656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View File

@ -1,12 +1,12 @@
@import '../style/var'; @import '../style/var';
.van-cell-group { .van-cell-group {
background-color: @white; background-color: @cell-group-background-color;
&__title { &__title {
font-size: 14px; color: @cell-group-title-color;
padding: 15px 15px 5px; padding: @cell-group-title-padding;
color: @gray-dark; font-size: @cell-group-title-font-size;
line-height: 16px; line-height: @cell-group-title-line-height;
} }
} }

View File

@ -72,6 +72,13 @@
@button-plain-background-color: @white; @button-plain-background-color: @white;
@button-disabled-opacity: .5; @button-disabled-opacity: .5;
// CellGroup
@cell-group-background-color: @white;
@cell-group-title-color: @gray-dark;
@cell-group-title-padding: 15px 15px 5px;
@cell-group-title-font-size: 14px;
@cell-group-title-line-height: 16px;
// Checkbox // Checkbox
@checkbox-size: 20px; @checkbox-size: 20px;
@checkbox-border-color: @gray-light; @checkbox-border-color: @gray-light;