mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed overflow/clearfix issues for code result blocks
This commit is contained in:
parent
50408bf984
commit
aa3440215a
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 %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.b9f2424c.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.faa78eba.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">
|
||||
|
@ -318,10 +318,18 @@
|
||||
:is(.highlight, .highlighttable) + .result {
|
||||
margin-top: calc(-1em + #{px2em(-2px)});
|
||||
padding: 0 px2em(16px);
|
||||
overflow: auto;
|
||||
overflow: visible;
|
||||
border: px2rem(1px) solid var(--md-code-bg-color);
|
||||
border-top-width: px2rem(2px);
|
||||
border-bottom-right-radius: px2rem(2px);
|
||||
border-bottom-left-radius: px2rem(2px);
|
||||
|
||||
// Clearfix, because we can't use overflow: auto
|
||||
&::after {
|
||||
display: block;
|
||||
clear: both;
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user