From 643fc1740c30d2ff189bc3832d400070db01b0b9 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Thu, 5 Dec 2024 22:24:31 +0800 Subject: [PATCH] Enlarge title of list items of my articles --- src/_includes/main/archive.njk | 16 +--------------- src/assets/css/utility.css | 14 ++++++++++++++ src/shrines/cassettebeasts/articles.md | 18 ++++++++++++++---- src/shrines/starwarskotor/articles.md | 22 +++++++++++++++++----- src/shrines/starwarskotor/guides.md | 9 +++++++-- src/slashes/navbarlinks/articles.md | 10 +++++++--- 6 files changed, 60 insertions(+), 29 deletions(-) diff --git a/src/_includes/main/archive.njk b/src/_includes/main/archive.njk index 8ec5102c..7f03b979 100644 --- a/src/_includes/main/archive.njk +++ b/src/_includes/main/archive.njk @@ -13,18 +13,4 @@ {% endfor %} - - -{%- css %} - .item-list { - display: grid; - gap: 1em; - padding-left: 1em; - } - - .item-list__title { - font-size: clamp(1.55rem, 1rem + 3vw, 1.2rem); - line-height: 1.3; - margin-bottom: 0.2em; - } -{% endcss %} \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/css/utility.css b/src/assets/css/utility.css index 87f5b7b5..08e405b3 100644 --- a/src/assets/css/utility.css +++ b/src/assets/css/utility.css @@ -29,6 +29,20 @@ a > .inline-icon { padding-inline-end: .25em; } gap: 0.7em 1.5em; } +.item-list { + display: grid; + gap: 1em; + padding-left: 1em; +} + +.item-list__title { + font-size: var(--fs-h4); + line-height: 1.3; + margin-bottom: 0.2em; +} + +.item-list__indent { margin: 0.3em 0 0 1.25em; } + .hidden { display: none; } .visually-hidden { diff --git a/src/shrines/cassettebeasts/articles.md b/src/shrines/cassettebeasts/articles.md index d2ee717d..7fac5b20 100644 --- a/src/shrines/cassettebeasts/articles.md +++ b/src/shrines/cassettebeasts/articles.md @@ -16,7 +16,9 @@ eleventyNavigation: