From f78b0be0bac342f32972ed87871ca7cd0d588216 Mon Sep 17 00:00:00 2001 From: beeps Date: Fri, 20 Sep 2024 12:55:25 +0100 Subject: [PATCH] :lipstick: Tweak padding and margins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It turns out if you apply a margin to an image with `shape` CSS applied, the underlying shape mask isn’t moved with it. Weird! --- src/index.njk | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/index.njk b/src/index.njk index 295f5048..5b630dca 100644 --- a/src/index.njk +++ b/src/index.njk @@ -22,15 +22,15 @@ metadata: } .page-intro-background { position: absolute; - top: 0; - left: 0; + inset-block-start: 0; + inset-inline-start: 0; inline-size: 100%; block-size: 100%; z-index: -1; } .page-intro-noodle { - height: auto; - width: 8rem; + inline-size: auto; + block-size: 8rem; } .page-blogs-noodle { display: none; @@ -44,13 +44,15 @@ metadata: max-inline-size: 64%; } .page-intro-noodle { - width: 50%; - height: auto; - margin-top: -5%; - float: right; + inline-size: 50%; + block-size: auto; + float: inline-end; shape-outside: url("{{ '/assets/images/noodle-home--mask.gif' | url }}"); shape-margin: var(--space-7); } + .page-intro-heading { + margin-block-start: 5%; + } .page-blogs-heading { margin-block-start: 0; } @@ -69,10 +71,10 @@ metadata: {% block main %}
-
+
- +

Hello universe,
I’m beeps.

I’m a Bristol-based frontend developer specialising in accessibility, design systems, and the semantic web. I currently work at the Government Digital Service on the GOV.UK Design System.

I'm an agender (I use it/its pronouns), asexual, alterhuman robot. I'm also a shapeshifting critter on the internet. It's all a bit complicated.