custom.css: avoid fixed page header overlapping in-page anchors on mobile

This commit is contained in:
rating89us 2021-08-09 01:26:23 +02:00 committed by GitHub
parent 5c3d19eb54
commit a3e6f2d5b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2443,6 +2443,14 @@ label[for="mobile-burger"] {
background-color: #f5f5f5;
}
/*Avoid fixed page header overlapping in-page anchors on mobile*/
:target::before {
content: "";
display: block;
height: 80px;
margin: -60px 0 0;
}
#drop1:checked ~ .dropdown-content, #drop2:checked ~ .dropdown-content, #drop3:checked ~ .dropdown-content, #drop4:checked ~ .dropdown-content {
background-color: #fcfcfc;
}