Skip to content

Commit 3c4c8dc

Browse files
committed
Improved admonition icon positions reacting to font size
1 parent 7dcc0a1 commit 3c4c8dc

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

material/assets/stylesheets/main.e306df54.min.css renamed to material/assets/stylesheets/main.956c2c2d.min.css

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

material/assets/stylesheets/main.956c2c2d.min.css.map

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

material/assets/stylesheets/main.e306df54.min.css.map

-1
This file was deleted.

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.e306df54.min.css' | url }}">
37+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.956c2c2d.min.css' | url }}">
3838
{% if config.theme.palette %}
3939
{% set palette = config.theme.palette %}
4040
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}">

src/assets/stylesheets/main/extensions/markdown/_admonition.scss

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ $admonitions: (
144144
// Admonition icon
145145
&::before {
146146
position: absolute;
147+
top: px2em(10px);
147148
left: px2rem(12px);
148149
width: px2rem(20px);
149150
height: px2rem(20px);

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
// Details marker
9090
&::after {
9191
position: absolute;
92-
top: px2rem(8px);
92+
top: px2em(10px);
9393
right: px2rem(8px);
9494
width: px2rem(20px);
9595
height: px2rem(20px);

0 commit comments

Comments
 (0)