feat(style): add component css variables

This commit is contained in:
chenjiahan
2021-06-12 15:52:22 +08:00
committed by neverland
parent dafea4e1e8
commit fe1cba97b7
73 changed files with 1702 additions and 799 deletions
+13 -5
View File
@@ -1,12 +1,20 @@
@import './var.less';
:root {
--van-cell-group-background-color: @cell-group-background-color;
--van-cell-group-title-color: @cell-group-title-color;
--van-cell-group-title-padding: @cell-group-title-padding;
--van-cell-group-title-font-size: @cell-group-title-font-size;
--van-cell-group-title-line-height: @cell-group-title-line-height;
}
.van-cell-group {
background-color: @cell-group-background-color;
background-color: var(--van-cell-group-background-color);
&__title {
padding: @cell-group-title-padding;
color: @cell-group-title-color;
font-size: @cell-group-title-font-size;
line-height: @cell-group-title-line-height;
padding: var(--van-cell-group-title-padding);
color: var(--van-cell-group-title-color);
font-size: var(--van-cell-group-title-font-size);
line-height: var(--van-cell-group-title-line-height);
}
}