doc: css: stick footer at bottom
Make actual document take all vertical space available so that footer is always at the bottom, even when the page has very little content. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
4e132c2b42
commit
db503f8c23
1 changed files with 18 additions and 0 deletions
18
doc/_static/css/custom.css
vendored
18
doc/_static/css/custom.css
vendored
|
@ -171,6 +171,8 @@ a.icon-home:visited {
|
|||
|
||||
.wy-nav-content {
|
||||
background-color: var(--content-background-color);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.wy-body-for-nav {
|
||||
|
@ -757,6 +759,9 @@ kbd, .kbd,
|
|||
overflow-y: initial;
|
||||
max-height: initial;
|
||||
}
|
||||
.wy-nav-content {
|
||||
min-height: calc(100dvh - 64px);
|
||||
}
|
||||
}
|
||||
|
||||
/* Scrollbar styling */
|
||||
|
@ -888,6 +893,19 @@ dark-mode-toggle::part(toggleLabel){
|
|||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Make actual document take all vertical space available so that footer is always at the bottom */
|
||||
|
||||
.rst-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.document {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
/* Custom search box, including search engine selection */
|
||||
|
||||
.search-container {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue