Add margin between article heading and details (fixes #68)
Additionally fix the tags not floating to the end of article card, and add a nice top border to details
This commit is contained in:
13
CHANGELOG.md
13
CHANGELOG.md
@ -7,7 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v4.7.1...main)
|
## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v4.7.1...main)
|
||||||
|
|
||||||
- Add optional LaTeX rendering using the KaTeX library.
|
### Added
|
||||||
|
|
||||||
|
- Add optional LaTeX rendering using the KaTeX library (#65).
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Add separator between article description and details.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix missing margin between article card heading and its details if no description is set (#68).
|
||||||
|
- Fix tags not floating to the end of the article card.
|
||||||
|
|
||||||
## [4.7.1](https://codeberg.org/daudix/duckquill/compare/v4.7.0...v4.7.1) - 2024-08-28
|
## [4.7.1](https://codeberg.org/daudix/duckquill/compare/v4.7.0...v4.7.1) - 2024-08-28
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
+++
|
+++
|
||||||
authors = ["Looong Looong Man", "Brfxxccxxmnpcccclllmmnprxvclmnckssqlbb11116"]
|
authors = ["Looong Looong Man", "Alexander Maximilian Jonathan"]
|
||||||
title = "Loooooong Loooooong Loooooong Loooooong Loooooong Man"
|
title = "Loooooong Loooooong Loooooong Loooooong Loooooong Man"
|
||||||
description = "Pneumonoultramicroscopicsilicovolcanoconiosis supercalifragilisticexpialidocious pseudopseudohypoparathyroidism."
|
description = "Pneumonoultramicroscopicsilicovolcanoconiosis supercalifragilisticexpialidocious pseudopseudohypoparathyroidism."
|
||||||
date = 2017-01-01
|
date = 2017-01-01
|
||||||
|
@ -32,7 +32,10 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags a {
|
.tags {
|
||||||
|
justify-content: flex-end;
|
||||||
|
|
||||||
|
a {
|
||||||
background-color: var(--primary-color-alpha);
|
background-color: var(--primary-color-alpha);
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
|
|
||||||
@ -41,6 +44,7 @@
|
|||||||
color: var(--contrast-color);
|
color: var(--contrast-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.draft,
|
&.draft,
|
||||||
&.archive,
|
&.archive,
|
||||||
@ -236,7 +240,7 @@
|
|||||||
.featured-badge,
|
.featured-badge,
|
||||||
.hot-badge,
|
.hot-badge,
|
||||||
.poor-badge {
|
.poor-badge {
|
||||||
display: block;
|
display: inline-block;
|
||||||
box-shadow: var(--edge-highlight);
|
box-shadow: var(--edge-highlight);
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
padding: 0.5rem 0.75rem;
|
padding: 0.5rem 0.75rem;
|
||||||
@ -315,9 +319,12 @@
|
|||||||
|
|
||||||
.details {
|
.details {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 0.25rem;
|
gap: 0.25rem;
|
||||||
|
margin-block-start: 1rem;
|
||||||
|
border-block-start: max(1px, 0.0625rem) solid var(--fg-muted-2);
|
||||||
|
padding-block-start: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -423,7 +423,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div {
|
span {
|
||||||
margin-block-start: 0.5rem;
|
margin-block-start: 0.5rem;
|
||||||
border-block-start: max(1px, 0.0625rem) solid var(--fg-muted-2);
|
border-block-start: max(1px, 0.0625rem) solid var(--fg-muted-2);
|
||||||
padding-block-start: 0.25rem;
|
padding-block-start: 0.25rem;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
color: var(--fg-muted-4);
|
color: var(--fg-muted-4);
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--primary-color-alpha);
|
background-color: var(--primary-color-alpha);
|
||||||
|
@ -127,7 +127,7 @@
|
|||||||
function formatSearchResultItem(item, terms) {
|
function formatSearchResultItem(item, terms) {
|
||||||
return '<div class="item">'
|
return '<div class="item">'
|
||||||
+ `<a href="${item.ref}">${item.doc.title}</a>`
|
+ `<a href="${item.ref}">${item.doc.title}</a>`
|
||||||
+ `<div>${makeTeaser(item.doc.body, terms)}</div>`
|
+ `<span>${makeTeaser(item.doc.body, terms)}</span>`
|
||||||
+ '</div>';
|
+ '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user