mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 15:40:15 +01:00
Fixed bleeding admonitions in Firefox
This commit is contained in:
parent
4e8fe042b8
commit
c5a06c1d82
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -34,7 +34,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.0bd720e5.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8ab0c697.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.e6a45f82.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">
|
||||||
|
@ -126,6 +126,13 @@ $admonitions: (
|
|||||||
border-inline-start-width: px2rem(4px);
|
border-inline-start-width: px2rem(4px);
|
||||||
border-start-start-radius: px2rem(2px);
|
border-start-start-radius: px2rem(2px);
|
||||||
|
|
||||||
|
// Hack: mitigate rounding errors in Firefox – see https://bit.ly/3uENoCS
|
||||||
|
@supports (-moz-appearance: meterbar) {
|
||||||
|
@include break-from-device(screen medium) {
|
||||||
|
margin-inline-start: px2rem(-15.5px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Adjust spacing for title-only admonitions
|
// Adjust spacing for title-only admonitions
|
||||||
html &:last-child {
|
html &:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user