diff options
| author | Joe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com> | 2023-10-20 13:45:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-20 13:45:52 +0100 |
| commit | 58a6b29df62f95f68baa0fcc7c8b5b053d409ea6 (patch) | |
| tree | 46ffa547685292dc2907da64275f514ea25a68f4 /scss/modules/skip-to-content.scss | |
| parent | 958457be8626148a9559716caf032bb54c10bbdc (diff) | |
| parent | b2e3ed96b703f49af556d641eae57c1c4fcd8db0 (diff) | |
Merge pull request #20 from Sycamost/dev
Dev
Diffstat (limited to 'scss/modules/skip-to-content.scss')
| -rw-r--r-- | scss/modules/skip-to-content.scss | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scss/modules/skip-to-content.scss b/scss/modules/skip-to-content.scss new file mode 100644 index 0000000..a752b29 --- /dev/null +++ b/scss/modules/skip-to-content.scss @@ -0,0 +1,13 @@ +.skip-to-content { + position: absolute; + left: var(--grid-padding); + top: -10rem; + opacity: 0; + transition: top 300ms, opacity 300ms; +} + +.skip-to-content:is(:focus, :focus-visible, :focus-within) { + top: var(--margin-block-md); + opacity: 1; + transition: top 100ms; +}
\ No newline at end of file |
