Fixed wrong box-sizing on nested admonitions

This commit is contained in:
squidfunk 2021-11-28 22:40:23 +01:00
parent 8fa834f73c
commit 0dd26b9eb3
5 changed files with 10 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.cabc8684.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.816931ca.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}">

View File

@ -79,6 +79,12 @@ $admonitions: (
box-shadow: none;
}
// Hack: Chrome exhibits a weird issue where it will set nested elements to
// content-box. Doesn't happen in other browsers, so looks like a bug.
> * {
box-sizing: border-box;
}
// Adjust for right-to-left languages
[dir="rtl"] & {
border-right: px2rem(4px) solid $clr-blue-a200;