Skip to content

Commit

Permalink
Fixed wrong box-sizing on nested admonitions
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Nov 28, 2021
1 parent 8fa834f commit 0dd26b9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

This file was deleted.

2 changes: 1 addition & 1 deletion material/base.html
Expand Up @@ -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 }}">
Expand Down
Expand Up @@ -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;
Expand Down

0 comments on commit 0dd26b9

Please sign in to comment.