Fix anchor tags scrolling to the wrong place when fixed navbar is enabled (#82)
This commit is contained in:
parent
d4a2b3edc6
commit
e6b9a2e426
@ -112,6 +112,16 @@ pre, form, fieldset, table, th, td, select, input {
|
|||||||
font-family: "Inter", sans-serif;
|
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 {
|
body {
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
padding-bottom: var(--footer-height);
|
padding-bottom: var(--footer-height);
|
||||||
@ -1729,4 +1739,4 @@ td, th {
|
|||||||
.quality-selector option:hover {
|
.quality-selector option:hover {
|
||||||
background-color: var(--accent);
|
background-color: var(--accent);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{% import "utils.html" as utils %}
|
{% import "utils.html" as utils %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en" class="{% if prefs.fixed_navbar == "on" %}fixed_navbar{% endif %}">
|
||||||
<head>
|
<head>
|
||||||
{% block head %}
|
{% block head %}
|
||||||
<title>{% block title %}Redlib{% endblock %}</title>
|
<title>{% block title %}Redlib{% endblock %}</title>
|
||||||
|
Loading…
Reference in New Issue
Block a user