diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-21 23:11:18 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-21 23:11:18 +0200 |
| commit | 1780ef52eebfb02112013f99a7402b4d9d0c259b (patch) | |
| tree | 28e867bac279347324ae4ceb8f9fc226402f4c23 | |
| parent | 8bcdbe5ab1d02213786b8527d97b60ff7464fb7d (diff) | |
| download | danixxyz-1780ef52eebfb02112013f99a7402b4d9d0c259b.tar.gz danixxyz-1780ef52eebfb02112013f99a7402b4d9d0c259b.zip | |
feat: simplify tag cloud CSS for continuous scaling
- 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
| -rw-r--r-- | themes/danix-xyz-hacker/assets/css/main.css | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/themes/danix-xyz-hacker/assets/css/main.css b/themes/danix-xyz-hacker/assets/css/main.css index 31a977d..167b040 100644 --- a/themes/danix-xyz-hacker/assets/css/main.css +++ b/themes/danix-xyz-hacker/assets/css/main.css @@ -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; |
