mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed page scrolling up when switching color palettes in Firefox 117
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.43b9b3ee.min.css
vendored
Normal file
1
material/assets/stylesheets/main.43b9b3ee.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.43b9b3ee.min.css.map
Normal file
1
material/assets/stylesheets/main.43b9b3ee.min.css.map
Normal file
File diff suppressed because one or more lines are too long
@@ -44,7 +44,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% 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 %}
|
{% if config.theme.palette %}
|
||||||
{% set palette = config.theme.palette %}
|
{% set palette = config.theme.palette %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.85d0ee34.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.85d0ee34.min.css' | url }}">
|
||||||
|
|||||||
@@ -240,6 +240,14 @@
|
|||||||
max-width 0ms,
|
max-width 0ms,
|
||||||
opacity 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
|
// Repository information container
|
||||||
|
|||||||
Reference in New Issue
Block a user