Skip to content

Commit cbaabc2

Browse files
kartbencarlescufi
authored andcommitted
doc: css: fix mobile layout and increase browser compatibility
added a missing dvh causing footer to be footer to be displayed outside of the viewport on mobile when browsing "Desktop site" version, and also added fallback "vh" rules for slightly better browser compatibility. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 3082b9c commit cbaabc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/_static/css/custom.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ a.icon-home:visited {
172172
.wy-nav-content {
173173
background-color: var(--content-background-color);
174174
min-height: 100vh;
175+
min-height: 100dvh;
175176
display: flex;
176177
}
177178

@@ -760,6 +761,7 @@ kbd, .kbd,
760761
max-height: initial;
761762
}
762763
.wy-nav-content {
764+
min-height: calc(100vh - 64px);
763765
min-height: calc(100dvh - 64px);
764766
}
765767
}

0 commit comments

Comments
 (0)