Fix spacing between heading and description with badge present

This commit is contained in:
daudix
2024-09-25 06:32:22 +03:00
parent 3f6c6486f3
commit 1c1ffafe1e
3 changed files with 36 additions and 39 deletions

View File

@ -24,6 +24,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Move paginator from `articles.html` to `article-list.html`.
- Tweak styling of `details`.
## Fixed
- Fix spacing between article heading and description in article list if badge is present.
## [5.1.0](https://codeberg.org/daudix/duckquill/compare/v5.0.0...v5.1.0)
### Added

View File

@ -19,11 +19,6 @@
transform: scale(1.25);
}
.heading {
display: flex;
justify-content: space-between;
}
h3 {
margin: 0;
line-height: 1;
@ -245,7 +240,7 @@
.featured-badge,
.hot-badge,
.poor-badge {
display: inline-block;
float: inline-end;
box-shadow: var(--edge-highlight);
border-radius: 999px;
padding: 0.375rem 0.75rem;

View File

@ -14,8 +14,6 @@
{% if page.extra.featured %}featured{% endif %}
{% if page.extra.hot %}hot{% endif %}
{% if page.extra.poor %}poor{% endif %}">
<div class="heading">
<h3><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h3>
{%- if page.draft %}
<span class="draft-badge">
<i class="icon"></i>
@ -46,7 +44,7 @@
{{- macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -}}
</span>
{%- endif %}
</div>
<h3><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h3>
{%- if page.description %}
{{ page.description | markdown | safe }}
{%- endif %}