feat(style): add component css variables
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
@import './var.less';
|
||||
|
||||
:root {
|
||||
--van-sidebar-width: @sidebar-width;
|
||||
}
|
||||
|
||||
.van-sidebar {
|
||||
width: @sidebar-width;
|
||||
width: var(--van-sidebar-width);
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user