From 5f3933751ede3845ebc3ff319986d25515501522 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 14 Jul 2025 20:45:00 +0800 Subject: refactor: combine categories and tags together and simplify templating --- assets/css/components/_taxonomy.scss | 40 +++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 17 deletions(-) (limited to 'assets/css/components') diff --git a/assets/css/components/_taxonomy.scss b/assets/css/components/_taxonomy.scss index 9b5c5047..8b55d32f 100644 --- a/assets/css/components/_taxonomy.scss +++ b/assets/css/components/_taxonomy.scss @@ -5,26 +5,21 @@ grid-template-columns: repeat(2, 1fr); grid-template-rows: masonry; gap: 1rem; + .category-link:hover { + text-decoration: none; + } .taxonomy-categories-item { - ul.category-articles { - padding-inline-start: 1.5rem; - list-style-type: square; - } - a.category-link { - @include small-button; - font-size: 0.9rem - } h3.category-title { margin: 0.25rem 0; - a:hover { - text-decoration: none; - } - span { - display: inline-block; - } - &:hover span { - animation: bounce 1s ease-in-out; - } + .category-icon { + display: inline-block; + } + .category-title-text { + filter: url(#x); + } + &:hover span { + animation: bounce 1s ease-in-out; + } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); @@ -99,3 +94,14 @@ } } } + +.termlist-page { + .term-header { + .term-title { + margin-bottom: 0; + } + .term-description { + margin-top: 0; + } + } +} -- cgit v1.2.3