@@ -20,17 +20,18 @@ const { hasSidebar } = Astro.props;
20
20
)
21
21
}
22
22
<div class =" main-frame" >
23
- <slot />
24
- </div >
25
- <div class =" footer-container" >
26
- <GrSiteFooter {... Astro .props } />
27
- </div >
23
+ <slot />
24
+ </div >
25
+ <div class =" footer-container" >
26
+ <GrSiteFooter {... Astro .props } />
27
+ </div >
28
+ <div class =" bg-red-500 fixed bottom-0" >Where am I?</div >
28
29
</div >
29
30
30
31
<style >
31
32
.page {
32
33
flex-direction: column;
33
- min-height: 100vh;
34
+ min-height: calc( 100vh - 6rem) ;
34
35
}
35
36
36
37
.header {
@@ -46,11 +47,12 @@ const { hasSidebar } = Astro.props;
46
47
background-color: var(--sl-color-bg-nav);
47
48
}
48
49
49
- .footer-container {
50
+ .footer-container {
50
51
z-index: var(--sl-z-index-navbar);
51
- background-color: yellow;
52
- width: 100%;
53
- }
52
+ background-color: yellow;
53
+ width: 100%;
54
+ height: 4rem;
55
+ }
54
56
55
57
:global([data-has-sidebar]) .header {
56
58
padding-inline-end: calc(var(--sl-nav-gap) + var(--sl-nav-pad-x) + var(--sl-menu-button-size));
@@ -59,7 +61,7 @@ const { hasSidebar } = Astro.props;
59
61
.sidebar-pane {
60
62
visibility: var(--sl-sidebar-visibility, hidden);
61
63
position: fixed;
62
- bottom: 4rem ;
64
+ bottom: 20rem ;
63
65
z-index: var(--sl-z-index-menu);
64
66
inset-block: var(--sl-nav-height) 0;
65
67
inset-inline-start: 0;
@@ -90,6 +92,7 @@ const { hasSidebar } = Astro.props;
90
92
.main-frame {
91
93
padding-top: calc(var(--sl-nav-height) + var(--sl-mobile-toc-height));
92
94
padding-inline-start: var(--sl-content-inline-start);
95
+ min-height: 100vh;
93
96
}
94
97
95
98
@media (min-width: 50rem) {
0 commit comments