From 5df739e5dce8de05cab54c713333416f4896c6ae Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 9 Oct 2023 12:27:07 +0800 Subject: [PATCH] :lipstick: Style: update define list style --- CHANGELOG.md | 2 ++ assets/css/_page/_single.scss | 19 ++++++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a94fff16..5ea89292 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,4 +8,6 @@ All notable changes to this project will be documented in this file. > Snapshot: <> - :sparkles: Feat: add code block attributes support ([#330](https://github.com/hugo-fixit/FixIt/issues/330)) +- :bug: Fix: use dateFormat function to render localized dates (@stefanoginobili [#355](https://github.com/hugo-fixit/FixIt/pull/355)) +- :lipstick: Style: update define list style - **Full Changelog:** @Lruihao [`v0.2.18...v1.0.0`](https://github.com/hugo-fixit/FixIt/compare/v0.2.18...v1.0.0) diff --git a/assets/css/_page/_single.scss b/assets/css/_page/_single.scss index 632a8450..0e52a181 100644 --- a/assets/css/_page/_single.scss +++ b/assets/css/_page/_single.scss @@ -187,15 +187,24 @@ } ul, - ol { - margin: 0.5rem 0; - padding-left: 2.5rem; + ol, + dl { + margin-block: 0.5em; } ul { list-style-type: disc; } + dl { + dt { + margin-bottom: 0.5em; + } + dd { + margin-inline-start: 1.25em; + } + } + ruby { background: $code-background-color; @@ -327,6 +336,10 @@ padding-left: 1.5em; } + dl dd { + margin-inline-start: 0.25em; + } + [data-theme='dark'] & { color: $blockquote-color-dark; border-left-color: $global-border-color-dark;