Fixed page scrolling up when switching color palettes in Firefox 117

This commit is contained in:
squidfunk 2023-09-02 18:41:26 +02:00
parent a6033d1db6
commit e79ffab3ac
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
6 changed files with 11 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.0e669242.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.43b9b3ee.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.85d0ee34.min.css' | url }}">

View File

@ -240,6 +240,14 @@
max-width 0ms,
opacity 0ms;
}
// Hack: Firefox 117 introduces a bug where the browser scrolls the page by
// a small amount to the top every time the header button is focused. After
// investigating, we're confident that it seems to be caused by the input
// field being too close to the border - see https://t.ly/APO8l
> input {
bottom: 0;
}
}
// Repository information container