sticky
This commit is contained in:
10
index.html
10
index.html
@@ -16,8 +16,7 @@
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
height: 100dvh;
|
||||
}
|
||||
|
||||
@media (min-height: 600px) {
|
||||
@@ -29,6 +28,13 @@ body {
|
||||
background: linear-gradient(var(--pico-background-color) 60%, transparent);
|
||||
text-shadow: 0 0 10px var(--pico-background-color);
|
||||
}
|
||||
|
||||
body > footer {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
background: var(--pico-background-color);
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
|
||||
Reference in New Issue
Block a user