Skip to content

Commit aa34402

Browse files
committed
Fixed overflow/clearfix issues for code result blocks
1 parent 50408bf commit aa34402

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

material/assets/stylesheets/main.b9f2424c.min.css renamed to material/assets/stylesheets/main.faa78eba.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.b9f2424c.min.css.map renamed to material/assets/stylesheets/main.faa78eba.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{% endif %}
3535
{% endblock %}
3636
{% block styles %}
37-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.b9f2424c.min.css' | url }}">
37+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.faa78eba.min.css' | url }}">
3838
{% if config.theme.palette %}
3939
{% set palette = config.theme.palette %}
4040
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">

src/assets/stylesheets/main/extensions/pymdownx/_highlight.scss

+9-1
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,18 @@
318318
:is(.highlight, .highlighttable) + .result {
319319
margin-top: calc(-1em + #{px2em(-2px)});
320320
padding: 0 px2em(16px);
321-
overflow: auto;
321+
overflow: visible;
322322
border: px2rem(1px) solid var(--md-code-bg-color);
323+
border-top-width: px2rem(2px);
323324
border-bottom-right-radius: px2rem(2px);
324325
border-bottom-left-radius: px2rem(2px);
326+
327+
// Clearfix, because we can't use overflow: auto
328+
&::after {
329+
display: block;
330+
clear: both;
331+
content: "";
332+
}
325333
}
326334
}
327335

0 commit comments

Comments
 (0)