-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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!
- Loading branch information
1 parent
ff5cfa2
commit f78b0be
Showing
1 changed file
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 %} | ||
<div class="page"> | ||
|
||
<header class="page-intro kim-!-padding-block-8-9"> | ||
<header class="page-intro kim-!-padding-block-start-7-8 kim-!-padding-block-end-8-9"> | ||
<canvas class="page-intro-background" width="1000" height="500" hidden></canvas> | ||
<div class="kimWrapper"> | ||
<img class="page-intro-noodle" srcset="{{ '/assets/images/noodle-home.png' | url }} 1x, {{ '/assets/images/[email protected]' | url }} 2x" src="{{ '/assets/images/noodle-home.png' | url }}" alt=""> | ||
<img class="page-intro-noodle" srcset="{{ '/assets/images/noodle-home.png' | url }} 1x, {{ '/assets/images/[email protected]' | url }} 2x" src="{{ '/assets/images/noodle-home.png' | url }}" alt="" width="552" height="778"> | ||
<h1 class="kimHeading-xl page-intro-heading">Hello universe,<br>I’m beeps.</h1> | ||
<p class="kimBody">I’m a Bristol-based <a href="{{ '/about/work/' | url }}">frontend developer</a> specialising in accessibility, design systems, and the semantic web. I currently work at the <a href="https://www.gov.uk/government/organisations/government-digital-service">Government Digital Service</a> on the <a href="http://design-system.service.gov.uk/">GOV.UK Design System</a>.</p> | ||
<p class="kimBody">I'm an <a href="{{ '/about/gender/' | url }}">agender</a> (I use it/its pronouns), <a href="{{ '/about/asexuality/' | url }}">asexual</a>, <a href="{{ '/about/nonhuman/' | url }}">alterhuman robot</a>. I'm also <a href="{{ '/about/furry/' | url }}">a shapeshifting critter on the internet</a>. It's all a bit complicated.</p> | ||
|