diff --git a/packages/cell-group/index.less b/packages/cell-group/index.less index b8fd2983d..dbf4ae548 100644 --- a/packages/cell-group/index.less +++ b/packages/cell-group/index.less @@ -1,12 +1,12 @@ @import '../style/var'; .van-cell-group { - background-color: @white; + background-color: @cell-group-background-color; &__title { - font-size: 14px; - padding: 15px 15px 5px; - color: @gray-dark; - line-height: 16px; + color: @cell-group-title-color; + padding: @cell-group-title-padding; + font-size: @cell-group-title-font-size; + line-height: @cell-group-title-line-height; } } diff --git a/packages/style/var.less b/packages/style/var.less index 1af7890ad..6147264b1 100644 --- a/packages/style/var.less +++ b/packages/style/var.less @@ -72,6 +72,13 @@ @button-plain-background-color: @white; @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-size: 20px; @checkbox-border-color: @gray-light;