mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-03 04:57:38 +03:00
Fix anchor tags scrolling to the wrong place when fixed navbar is enabled (#82)
This commit is contained in:
parent
d4a2b3edc6
commit
e6b9a2e426
2 changed files with 12 additions and 2 deletions
|
@ -112,6 +112,16 @@ pre, form, fieldset, table, th, td, select, input {
|
|||
font-family: "Inter", sans-serif;
|
||||
}
|
||||
|
||||
html.fixed_navbar {
|
||||
scroll-padding-top: 50px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
html.fixed_navbar {
|
||||
scroll-padding-top: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--background);
|
||||
padding-bottom: var(--footer-height);
|
||||
|
@ -1729,4 +1739,4 @@ td, th {
|
|||
.quality-selector option:hover {
|
||||
background-color: var(--accent);
|
||||
color: var(--text);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue