From 5e98ccc46c8575ad27aaf5975d621aaf00ab6382 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Wed, 4 Jun 2025 17:28:18 +0200 Subject: [PATCH] style: fix codeblock and timeline widths --- assets/css/components/_codeblock.scss | 3 +++ assets/css/main.scss | 1 + assets/css/pages/_single-organisation.scss | 1 + 3 files changed, 5 insertions(+) create mode 100644 assets/css/components/_codeblock.scss diff --git a/assets/css/components/_codeblock.scss b/assets/css/components/_codeblock.scss new file mode 100644 index 0000000..ab8cfb7 --- /dev/null +++ b/assets/css/components/_codeblock.scss @@ -0,0 +1,3 @@ +.highlight { + max-inline-size: 50vw; +} diff --git a/assets/css/main.scss b/assets/css/main.scss index 9df0e5c..98e2e82 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -13,6 +13,7 @@ @import "components/blockquote"; @import "components/button"; @import "components/chart"; +@import "components/codeblock"; @import "components/comment"; @import "components/details"; @import "components/figure"; diff --git a/assets/css/pages/_single-organisation.scss b/assets/css/pages/_single-organisation.scss index 5182f60..1983424 100644 --- a/assets/css/pages/_single-organisation.scss +++ b/assets/css/pages/_single-organisation.scss @@ -15,6 +15,7 @@ &__timeline { margin-block-end: 1em; + max-inline-size: 50vw; & #timeline { clear: both;