1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Fixed bleeding admonitions in Firefox

This commit is contained in:
squidfunk 2022-03-30 17:57:00 +02:00
parent 4e8fe042b8
commit c5a06c1d82
4 changed files with 10 additions and 3 deletions

View File

@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% 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 %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">

View File

@ -126,6 +126,13 @@ $admonitions: (
border-inline-start-width: px2rem(4px);
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
html &:last-child {
margin-bottom: 0;