Improved admonition icon positions reacting to font size

This commit is contained in:
squidfunk 2021-12-08 19:08:04 +01:00
parent 7dcc0a1e3a
commit 3c4c8dce9c
6 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

@ -144,6 +144,7 @@ $admonitions: (
// Admonition icon // Admonition icon
&::before { &::before {
position: absolute; position: absolute;
top: px2em(10px);
left: px2rem(12px); left: px2rem(12px);
width: px2rem(20px); width: px2rem(20px);
height: px2rem(20px); height: px2rem(20px);

View File

@ -89,7 +89,7 @@
// Details marker // Details marker
&::after { &::after {
position: absolute; position: absolute;
top: px2rem(8px); top: px2em(10px);
right: px2rem(8px); right: px2rem(8px);
width: px2rem(20px); width: px2rem(20px);
height: px2rem(20px); height: px2rem(20px);