summaryrefslogtreecommitdiff
path: root/assets/static
diff options
context:
space:
mode:
authorDennis Fink2026-11-03 21:36:29 +0100
committerDennis Fink2026-11-03 21:36:29 +0100
commit31fc3e941773aa2cf874da895eead6f36fcefeb8 (patch)
treeb21c5b9e43a508c782dd9cc0d8cb4bc820256223 /assets/static
parent9eafc41973591c32a17dec7fffd11ed6d43c1a1f (diff)
downloaddennisfink.me-31fc3e941773aa2cf874da895eead6f36fcefeb8.tar.gz
dennisfink.me-31fc3e941773aa2cf874da895eead6f36fcefeb8.zip
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.
Diffstat (limited to 'assets/static')
-rw-r--r--assets/static/css/style.css30
1 files changed, 30 insertions, 0 deletions
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);
}