1
- $nav-stack-header-height : 44px ;
2
- $nav-stack-footer-height : 50px ;
1
+ :root {
2
+ --nav-stack-header-height : 44px ;
3
+ --nav-stack-footer-height : 50px ;
4
+ }
3
5
4
6
$easing : cubic-bezier (.23 , 1 , .32 , 1 );
5
7
@@ -26,14 +28,14 @@ $easing: cubic-bezier(.23, 1, .32, 1);
26
28
}
27
29
& -itemContainer {
28
30
position : absolute ;
29
- top : $ nav-stack-header-height ;
31
+ top : var ( -- nav-stack-header-height) ;
30
32
bottom : 0 ;
31
33
left : 0 ;
32
34
width : 500% ;
33
35
}
34
36
35
37
& --withFooter & -itemContainer {
36
- bottom : $ nav-stack-footer-height ;
38
+ bottom : var ( -- nav-stack-footer-height) ;
37
39
}
38
40
39
41
& -item {
@@ -63,7 +65,8 @@ $easing: cubic-bezier(.23, 1, .32, 1);
63
65
64
66
& -header {
65
67
position : absolute ;
66
- height : $nav-stack-header-height ;
68
+ height : var (--nav-stack-header-height );
69
+ box-sizing : content-box ;
67
70
top : 0 ;
68
71
left : 0 ;
69
72
right : 0 ;
@@ -93,7 +96,8 @@ $easing: cubic-bezier(.23, 1, .32, 1);
93
96
& -footer {
94
97
position : absolute ;
95
98
bottom : 0 ;
96
- min-height : $nav-stack-footer-height ;
99
+ height : var (--nav-stack-footer-height );
100
+ box-sizing : content-box ;
97
101
left : 0 ;
98
102
right : 0 ;
99
103
background : rgba (0 ,0 ,0 ,.2 );
0 commit comments