mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Improved spacing and alignment of tags
This commit is contained in:
parent
573c1ccd83
commit
305c33622c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -44,7 +44,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.d451bc0e.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.b2ea3d00.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.a5377069.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a5377069.min.css' | url }}">
|
||||||
|
@ -36,17 +36,21 @@
|
|||||||
|
|
||||||
// Tag list
|
// Tag list
|
||||||
.md-tags {
|
.md-tags {
|
||||||
|
display: inline-flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: px2em(8px);
|
||||||
margin-top: px2em(-2px);
|
margin-top: px2em(-2px);
|
||||||
margin-bottom: px2em(12px);
|
margin-bottom: px2em(12px);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tag
|
// Tag
|
||||||
.md-tag {
|
.md-tag {
|
||||||
display: inline-block;
|
display: inline-flex;
|
||||||
padding: px2em(4px, 12.8px) px2em(12px, 12.8px);
|
gap: px2em(8px);
|
||||||
margin-inline-end: 0.5em;
|
align-items: center;
|
||||||
margin-bottom: 0.5em;
|
padding: px2em(4px, 12.8px) px2em(10px, 12.8px);
|
||||||
font-size: px2rem(12.8px);
|
font-size: px2rem(12.8px); // Fallback
|
||||||
|
font-size: min(px2em(12.8px), px2rem(12.8px));
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
letter-spacing: initial;
|
letter-spacing: initial;
|
||||||
@ -83,7 +87,6 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 1.2em;
|
width: 1.2em;
|
||||||
height: 1.2em;
|
height: 1.2em;
|
||||||
margin-right: 0.4em;
|
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
content: "";
|
content: "";
|
||||||
background-color: var(--md-default-fg-color--lighter);
|
background-color: var(--md-default-fg-color--lighter);
|
||||||
|
Loading…
Reference in New Issue
Block a user