1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00

Fixed code block titles overlaying inline admonitions

This commit is contained in:
squidfunk 2022-04-24 13:05:05 +02:00
parent 314bab53c5
commit 41517023cd
4 changed files with 9 additions and 4 deletions

View File

@ -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 }}">

View File

@ -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;
@ -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