:target {
scroll-margin-block-start: 2em;
}
Adds a nice bit of breathing room to stuff that's anchored via URL like example.com/#my-element
:target {
scroll-margin-block-start: 2em;
}
Adds a nice bit of breathing room to stuff that's anchored via URL like example.com/#my-element
nerdy.dev/have-a-dialog
Such great UI patterns here! I particularly love the cursor styling when you hover on the ::backdrop area to indicate that the element can be closed in this demo:
codepen.io/argyleink/pe...
nerdy.dev/have-a-dialog
Such great UI patterns here! I particularly love the cursor styling when you hover on the ::backdrop area to indicate that the element can be closed in this demo:
codepen.io/argyleink/pe...