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
+9 -3
View File
@@ -1,8 +1,14 @@
@import './var.less';
:root {
--van-action-bar-button-height: @action-bar-button-height;
--van-action-bar-button-warning-color: @action-bar-button-warning-color;
--van-action-bar-button-danger-color: @action-bar-button-danger-color;
}
.van-action-bar-button {
flex: 1;
height: @action-bar-button-height;
height: var(--van-action-bar-button-height);
font-weight: @font-weight-bold;
font-size: @font-size-md;
border: none;
@@ -21,11 +27,11 @@
}
&--warning {
background: @action-bar-button-warning-color;
background: var(--van-action-bar-button-warning-color);
}
&--danger {
background: @action-bar-button-danger-color;
background: var(--van-action-bar-button-danger-color);
}
@media (max-width: 321px) {