Skip to content

Commit

Permalink
Fixed code block titles overlaying inline admonitions
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Apr 24, 2022
1 parent 314bab5 commit 4151702
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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.120efc48.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.0d6e90a3.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9647289d.min.css' | url }}">
Expand Down
Expand Up @@ -167,7 +167,7 @@
// Code block title
span.filename {
position: relative;
display: block;
display: flow-root;
margin-top: 1em;
padding: px2em(9px, 13.6px) px2em(16px, 13.6px);
font-weight: 700;
Expand Down Expand Up @@ -266,6 +266,11 @@
flex-grow: 1;
padding: 0;
text-align: left;

// Adjust spacing
span.filename {
margin-top: 0;
}
}

// Code block line numbers - disable user selection, so code can be easily
Expand Down

0 comments on commit 4151702

Please sign in to comment.