1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-30 19:50:01 +02:00

sticky at large-enough only

This commit is contained in:
Pomax
2020-09-27 10:56:29 -07:00
parent d05bee3949
commit 133105d44e
7 changed files with 13 additions and 11 deletions

View File

@@ -163,11 +163,13 @@ main {
margin-right: 1em;
}
#chapters section h1 {
position: sticky;
top: 0;
z-index: 2;
border-bottom: 1px solid black;
@media screen and (min-width: 768px) {
#chapters section h1 {
position: sticky;
top: 0;
z-index: 2;
border-bottom: 1px solid black;
}
}
#chapters section > h1 > a {