File tree 7 files changed +15
-14
lines changed
7 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const NotFound = inject('NotFound')
63
63
64
64
@media (min-width : 960px ) {
65
65
.VPContent {
66
- padding-top : var (--vp-nav-height );
66
+ padding-top : calc ( var (--vp-nav-height ) + var ( --vp-layout-top-height , 0 px ) );
67
67
}
68
68
69
69
.VPContent.has-sidebar {
Original file line number Diff line number Diff line change @@ -120,8 +120,8 @@ provide('onContentUpdated', onContentUpdated)
120
120
.aside-container {
121
121
position : sticky ;
122
122
top : 0 ;
123
- margin-top : calc (var (--vp-nav-height-desktop ) * -1 - 32px );
124
- padding-top : calc (var (--vp-nav-height-desktop ) + 32px );
123
+ margin-top : calc (( var (--vp-nav-height-desktop ) + var ( --vp-layout-top-height , 0 px ) ) * -1 - 32px );
124
+ padding-top : calc (var (--vp-nav-height-desktop ) + var ( --vp-layout-top-height , 0 px ) + 32px );
125
125
height : 100vh ;
126
126
overflow-x : hidden ;
127
127
overflow-y : auto ;
@@ -144,7 +144,7 @@ provide('onContentUpdated', onContentUpdated)
144
144
.aside-content {
145
145
display : flex ;
146
146
flex-direction : column ;
147
- min-height : calc (100vh - (var (--vp-nav-height-desktop ) + 32px ));
147
+ min-height : calc (100vh - (var (--vp-nav-height-desktop ) + var ( --vp-layout-top-height , 0 px ) + 32px ));
148
148
padding-bottom : 32px ;
149
149
}
150
150
Original file line number Diff line number Diff line change @@ -53,19 +53,19 @@ defineProps<{
53
53
54
54
<style scoped>
55
55
.VPHero {
56
- margin-top : calc (var (--vp-nav-height ) * -1 );
57
- padding : calc (var (--vp-nav-height ) + 48px ) 24px 48px ;
56
+ margin-top : calc (( var (--vp-nav-height ) + var ( --vp-layout-top-height , 0 px ) ) * -1 );
57
+ padding : calc (var (--vp-nav-height ) + var ( --vp-layout-top-height , 0 px ) + 48px ) 24px 48px ;
58
58
}
59
59
60
60
@media (min-width : 640px ) {
61
61
.VPHero {
62
- padding : calc (var (--vp-nav-height ) + 80px ) 48px 64px ;
62
+ padding : calc (var (--vp-nav-height ) + var ( --vp-layout-top-height , 0 px ) + 80px ) 48px 64px ;
63
63
}
64
64
}
65
65
66
66
@media (min-width : 960px ) {
67
67
.VPHero {
68
- padding : calc (var (--vp-nav-height ) + 80px ) 64px 64px ;
68
+ padding : calc (var (--vp-nav-height ) + var ( --vp-layout-top-height , 0 px ) + 80px ) 64px 64px ;
69
69
}
70
70
}
71
71
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ provide('close-screen', closeScreen)
29
29
<style scoped>
30
30
.VPNav {
31
31
position : relative ;
32
- top : 0 ;
32
+ top : var ( --vp-layout-top-height , 0 px ) ;
33
33
left : 0 ;
34
34
z-index : var (--vp-z-index-nav );
35
35
width : 100% ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function unlockBodyScroll() {
43
43
<style scoped>
44
44
.VPNavScreen {
45
45
position : fixed ;
46
- top : var (--vp-nav-height-mobile );
46
+ top : calc ( var (--vp-nav-height-mobile ) + var ( --vp-layout-top-height , 0 px ) );
47
47
right : 0 ;
48
48
bottom : 0 ;
49
49
left : 0 ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ watchPostEffect(async () => {
59
59
<style scoped>
60
60
.VPSidebar {
61
61
position : fixed ;
62
- top : 0 ;
62
+ top : var ( --vp-layout-top-height , 0 px ) ;
63
63
bottom : 0 ;
64
64
left : 0 ;
65
65
z-index : var (--vp-z-index-sidebar );
Original file line number Diff line number Diff line change 172
172
: root {
173
173
--vp-z-index-local-nav : 10 ;
174
174
--vp-z-index-nav : 20 ;
175
- --vp-z-index-backdrop : 30 ;
176
- --vp-z-index-sidebar : 40 ;
177
- --vp-z-index-footer : 50 ;
175
+ --vp-z-index-layout-top : 30 ;
176
+ --vp-z-index-backdrop : 40 ;
177
+ --vp-z-index-sidebar : 50 ;
178
+ --vp-z-index-footer : 60 ;
178
179
}
179
180
180
181
/**
You can’t perform that action at this time.
0 commit comments