diff --git a/packages/cell-group/index.less b/packages/cell-group/index.less index 76b2bf05..a2bdf0cb 100644 --- a/packages/cell-group/index.less +++ b/packages/cell-group/index.less @@ -3,9 +3,9 @@ .van-cell-group { &__title { - padding: 15px 15px 5px; - font-size: 14px; - line-height: 16px; - .theme(color, '@gray-dark'); + .theme(padding, '@cell-group-title-padding'); + .theme(font-size, '@cell-group-title-font-size'); + .theme(line-height, '@cell-group-title-line-height'); + .theme(color, '@cell-group-title-color'); } } diff --git a/packages/common/style/var.less b/packages/common/style/var.less index 9922b8db..28761758 100644 --- a/packages/common/style/var.less +++ b/packages/common/style/var.less @@ -139,6 +139,13 @@ @cell-large-title-font-size: @font-size-lg; @cell-large-label-font-size: @font-size-md; +// CellGroup +@cell-group-background-color: @white; +@cell-group-title-color: @gray-dark; +@cell-group-title-padding: @padding-md @padding-md @padding-xs; +@cell-group-title-font-size: @font-size-md; +@cell-group-title-line-height: 16px; + // Checkbox @checkbox-size: 20px; @checkbox-border-color: @gray-light; @@ -336,4 +343,4 @@ @dropdown-menu-title-disabled-text-color: @gray-dark; @dropdown-menu-title-padding: 0 @padding-xs; @dropdown-menu-title-line-height: 18px; -@dropdown-menu-option-active-color: @blue; \ No newline at end of file +@dropdown-menu-option-active-color: @blue;