From 76849cd98e9d916a1e8e94d8c3644f2cea39de70 Mon Sep 17 00:00:00 2001 From: daudix Date: Wed, 16 Oct 2024 06:18:43 +0300 Subject: [PATCH] Add separator between articles in the classic mod --- CHANGELOG.md | 1 + content/mods/index.md | 2 +- sass/mods/_classic-article-list.scss | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1302502..ac2af8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Add `classic-article-list` mod for returning the classic article list style. - Support `fediverse:creator` meta tag. ### Changed diff --git a/content/mods/index.md b/content/mods/index.md index a459126..0dad954 100644 --- a/content/mods/index.md +++ b/content/mods/index.md @@ -46,7 +46,7 @@ Most of the time contrast should be okay, but what if it's not? Simply adjust th Prefer the less fancy look of the article list used in Duckquill some time ago (to some extent)? It can be done with the `classic-article-list` mod: -![classic article list](https://files.catbox.moe/bktey7.png) +![classic article list](https://files.catbox.moe/yf5feo.png) ```scss @use "../themes/duckquill/sass/mods/classic-article-list"; diff --git a/sass/mods/_classic-article-list.scss b/sass/mods/_classic-article-list.scss index 5916ce9..d07d812 100644 --- a/sass/mods/_classic-article-list.scss +++ b/sass/mods/_classic-article-list.scss @@ -6,10 +6,16 @@ transition: none; box-shadow: none; border-radius: 0; + border-block-end: max(1px, 0.0625rem) solid var(--fg-muted-2); background: none; padding: 0; + padding-block-end: 1rem; overflow: visible; + &:last-of-type { + border-block-end: none; + } + &:active { transform: none; }