1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-30 18:24:35 +01:00

Fixed issues with code annotation line height

This commit is contained in:
squidfunk 2022-01-09 15:37:43 +01:00
parent d5fb8f1770
commit 97c920a1c5
4 changed files with 6 additions and 3 deletions

View File

@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.ee0f47ba.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.3d1b0ff9.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">

View File

@ -134,6 +134,9 @@
// Annotation is not hidden (e.g. when copying)
&:not([hidden]) {
display: inline-block;
// Hack: ensure that the line height doesn't exceed the line height of the
// hosting line, because it will lead to dancing pixels.
line-height: 1.325;
}
// Promote children to top on focus