feat(style): add component css variables
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
@import './var.less';
|
||||
|
||||
:root {
|
||||
--van-overlay-z-index: @overlay-z-index;
|
||||
--van-overlay-background-color: @overlay-background-color;
|
||||
}
|
||||
|
||||
.van-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: @overlay-z-index;
|
||||
z-index: var(--van-overlay-z-index);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: @overlay-background-color;
|
||||
background-color: var(--van-overlay-background-color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user