feat: optimize channel mosaic sizing and add hover transitions

This commit is contained in:
Nubenetes Bot
2026-05-27 22:37:44 +02:00
parent f89228ecc1
commit 6de36a7181
6 changed files with 52 additions and 15 deletions

View File

@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [[2.3.15]](https://github.com/nubenetes/awesome-kubernetes/releases/tag/v2.3.15) - 2026-05-27
### Changed
- **Homepage YouTube Mosaic Scaling & Transitions**: Refactored the icon layout styling to use uniform responsive sizing (48px) instead of viewport percentage widths. Added hover micro-animations (scale-up scale factor 1.15x and brightness filters) for both light and dark modes to enhance aesthetic premium quality.
## [[2.3.14]](https://github.com/nubenetes/awesome-kubernetes/releases/tag/v2.3.14) - 2026-05-27
### Changed

File diff suppressed because one or more lines are too long

14
docs/static/extra.css vendored
View File

@@ -35,4 +35,18 @@ reset max-width with the following CSS: */
.someid { color: green; }
*/
.channel-logo {
width: 48px;
height: 48px;
object-fit: contain;
margin: 6px;
transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
vertical-align: middle;
}
.channel-logo:hover {
transform: scale(1.15);
filter: brightness(1.2);
}

View File

@@ -178,3 +178,19 @@ a {
text-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
}
.channel-logo {
width: 48px;
height: 48px;
object-fit: contain;
margin: 6px;
transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
vertical-align: middle;
}
.channel-logo:hover {
transform: scale(1.15);
filter: brightness(1.25);
box-shadow: 0 0 12px var(--md-accent-fg-color);
border-radius: 4px;
}

View File

@@ -32,7 +32,7 @@ def build_mosaic_markdown(yaml_path):
# Channel links
chan_links = []
for chan in cat['channels']:
chan_links.append(f"[![{chan['title']}]({chan['image']}){{: style=\"width:7%\"}}]({chan['url']})")
chan_links.append(f"[![{chan['title']}]({chan['image']}){{: style=\"width:48px; height:48px; object-fit:contain; margin:6px;\" .channel-logo}}]({chan['url']})")
lines.append(" ".join(chan_links))
lines.append('')

File diff suppressed because one or more lines are too long