summaryrefslogtreecommitdiff
path: root/assets/css/components
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-14 20:45:00 +0800
committerEltrac <hi@guhub.cn>2025-07-14 20:45:00 +0800
commit5f3933751ede3845ebc3ff319986d25515501522 (patch)
treed3057a1d5876f8daf37b590a0c9b9694e05c5bb5 /assets/css/components
parent572b94c723a27c50bf2a9d80eebb5a245b1b50cf (diff)
refactor: combine categories and tags together and simplify templating
Diffstat (limited to 'assets/css/components')
-rw-r--r--assets/css/components/_taxonomy.scss40
1 files changed, 23 insertions, 17 deletions
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;
+ }
+ }
+}