mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-01 16:49:44 +00:00
feat: global thumbnail aspect ratio configuration
- Add thumbnailAspectRatio site parameter (default '1.5') - Use decimal values instead of fractions for Hugo compatibility - Sanitize user input to extract only numeric characters - Apply to article cards, related cards, and term cards - Update both source and compiled CSS Closes #2839
This commit is contained in:
1 parent
faea1bb046
commit
a308a86365
6 files changed
+22
-7
No files matched your search
@@ -4676,10 +4676,12 @@ pre {
|
||||
}
|
||||
.thumbnail_card {
|
||||
min-width: 300px;
|
||||
height: 200px;
|
||||
aspect-ratio: var(--thumbnail-aspect-ratio, 1.5);
|
||||
height: auto;
|
||||
}
|
||||
.thumbnail_card_related {
|
||||
height: 150px;
|
||||
aspect-ratio: var(--thumbnail-aspect-ratio, 1.5);
|
||||
height: auto;
|
||||
}
|
||||
.thumbnail {
|
||||
width: 300px;
|
||||
|
||||
Reference in new issue
Block a user