]> danix's work - danix.xyz-2.git/commitdiff
feat: simplify tag cloud CSS for continuous scaling
authorDanilo M. <redacted>
Tue, 21 Apr 2026 21:11:18 +0000 (23:11 +0200)
committerDanilo M. <redacted>
Tue, 21 Apr 2026 21:11:18 +0000 (23:11 +0200)
- Remove .tag-tier-* classes (sizing now inline)
- Update .tag-cloud to center-justify for natural cloud layout
- Add opacity transition to .tag-cloud-link
- Remove hardcoded font-size from .tag-cloud-link

themes/danix-xyz-hacker/assets/css/main.css

index 31a977d109885d85712cd8e2eecd28bdda3feddf..167b040cbdad4bdc1aa0a534f84aa21ac306a510 100644 (file)
@@ -357,7 +357,8 @@ html.theme-light picture img[src="/images/default_thumbnail_dark.png"] {
   .tag-cloud {
     display: flex;
     flex-wrap: wrap;
-    gap: 0.5rem;
+    justify-content: center;
+    gap: 0.75rem;
     align-items: baseline;
   }
 
@@ -369,10 +370,9 @@ html.theme-light picture img[src="/images/default_thumbnail_dark.png"] {
     border: 1px solid var(--border);
     border-radius: 0.25rem;
     font-family: var(--font-mono, 'JetBrains Mono', monospace);
-    font-size: 0.75rem;
     color: var(--text-dim);
     text-decoration: none;
-    transition: border-color 150ms ease-out, color 150ms ease-out, background-color 150ms ease-out;
+    transition: border-color 150ms ease-out, color 150ms ease-out, background-color 150ms ease-out, opacity 150ms ease-out;
     white-space: nowrap;
     line-height: 1.4;
   }
@@ -389,23 +389,6 @@ html.theme-light picture img[src="/images/default_thumbnail_dark.png"] {
     border-radius: 0.25rem;
   }
 
-  .tag-tier-low {
-    font-size: 0.75rem;
-    opacity: 0.75;
-  }
-
-  .tag-tier-medium {
-    font-size: 0.875rem;
-    opacity: 0.88;
-  }
-
-  .tag-tier-high {
-    font-size: 1rem;
-    opacity: 1;
-    border-color: rgba(var(--accent-rgb), 0.3);
-    color: var(--text);
-  }
-
   .tag-cloud-count {
     display: inline-flex;
     align-items: center;