Skip to content

Commit 305c336

Browse files
committed
Improved spacing and alignment of tags
1 parent 573c1cc commit 305c336

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

material/templates/assets/stylesheets/main.d451bc0e.min.css renamed to material/templates/assets/stylesheets/main.b2ea3d00.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/stylesheets/main.d451bc0e.min.css.map renamed to material/templates/assets/stylesheets/main.b2ea3d00.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.d451bc0e.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.b2ea3d00.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a5377069.min.css' | url }}">

src/templates/assets/stylesheets/main/components/_tag.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,21 @@
3636

3737
// Tag list
3838
.md-tags {
39+
display: inline-flex;
40+
flex-wrap: wrap;
41+
gap: px2em(8px);
3942
margin-top: px2em(-2px);
4043
margin-bottom: px2em(12px);
4144
}
4245

4346
// Tag
4447
.md-tag {
45-
display: inline-block;
46-
padding: px2em(4px, 12.8px) px2em(12px, 12.8px);
47-
margin-inline-end: 0.5em;
48-
margin-bottom: 0.5em;
49-
font-size: px2rem(12.8px);
48+
display: inline-flex;
49+
gap: px2em(8px);
50+
align-items: center;
51+
padding: px2em(4px, 12.8px) px2em(10px, 12.8px);
52+
font-size: px2rem(12.8px); // Fallback
53+
font-size: min(px2em(12.8px), px2rem(12.8px));
5054
font-weight: 700;
5155
line-height: 1.6;
5256
letter-spacing: initial;
@@ -83,7 +87,6 @@
8387
display: inline-block;
8488
width: 1.2em;
8589
height: 1.2em;
86-
margin-right: 0.4em;
8790
vertical-align: text-bottom;
8891
content: "";
8992
background-color: var(--md-default-fg-color--lighter);

0 commit comments

Comments
 (0)