From 31fc3e941773aa2cf874da895eead6f36fcefeb8 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Tue, 3 Nov 2026 21:36:29 +0100 Subject: Add more image and figure width options This extends the existing width utilities with 20%, 30%, 40%, 60%, 70%, and 80% options, allowing more flexibility when sizing images and figures within blog posts. --- assets/static/css/style.css | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'assets') diff --git a/assets/static/css/style.css b/assets/static/css/style.css index 8da502c..feddc12 100644 --- a/assets/static/css/style.css +++ b/assets/static/css/style.css @@ -865,11 +865,17 @@ figure:not(.trail) { } &:is( + .w20, .w25, + .w30, .w33, + .w40, .w50, + .w60, .w66, + .w70, .w75, + .w80, .breakout-xxs, .breakout-xs, .breakout-sm, @@ -980,26 +986,50 @@ img.round { margin-top: 0; } + &.w20 { + width: 20%; + } + &.w25 { width: 25%; } + &.w30 { + width: 30%; + } + &.w33 { width: calc(1 / 3 * 100%); } + &.w40 { + width: 40%; + } + &.w50 { width: 50%; } + &.w60 { + width: 60%; + } + &.w66 { width: calc(2 / 3 * 100%); } + &.w70 { + width: 70%; + } + &.w75 { width: 75%; } + &.w80 { + width: 80%; + } + &.breakout-xxs { --breakout: var(--breakout-xxs); } -- cgit v1.3.1