feat(style): add component css variables
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
@import './var.less';
|
||||
|
||||
:root {
|
||||
--van-sticky-z-index: @sticky-z-index;
|
||||
}
|
||||
|
||||
.van-sticky {
|
||||
&--fixed {
|
||||
position: fixed;
|
||||
z-index: @sticky-z-index;
|
||||
z-index: var(--van-sticky-z-index);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user