mirror of
https://github.com/simonw/datasette.git
synced 2026-06-13 04:27:00 +02:00
Fix footer not sticking to bottom in short pages
Fixes https://github.com/simonw/datasette/issues/1129
This commit is contained in:
parent
49d8fc0568
commit
8d4c69c6fb
1 changed files with 7 additions and 0 deletions
|
|
@ -65,6 +65,12 @@ em {
|
|||
|
||||
|
||||
body {
|
||||
/* sticky footer */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
/* /sticky footer */
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: "Helvetica Neue", sans-serif;
|
||||
|
|
@ -330,6 +336,7 @@ button.button-as-link:focus {
|
|||
|
||||
/* Body */
|
||||
section.content {
|
||||
flex-grow: 1; /* sticky footer */
|
||||
margin: 0 1rem;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue