Skip to content

Commit

Permalink
Fixed page scrolling up when switching color palettes in Firefox 117
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Sep 2, 2023
1 parent a6033d1 commit e79ffab
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion material/assets/stylesheets/main.0e669242.min.css

This file was deleted.

1 change: 0 additions & 1 deletion material/assets/stylesheets/main.0e669242.min.css.map

This file was deleted.

1 change: 1 addition & 0 deletions material/assets/stylesheets/main.43b9b3ee.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions material/assets/stylesheets/main.43b9b3ee.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}">
Expand Down
8 changes: 8 additions & 0 deletions src/assets/stylesheets/main/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e79ffab

Please sign in to comment.