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