diff options
| author | Joe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com> | 2024-01-19 09:16:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-19 09:16:42 +0000 |
| commit | 0cb6960f0c65c0d791ccdee2f5bc2e2b910cfb76 (patch) | |
| tree | 503e1129a999fe834d2a7b98a4e82bf07264f49f /scss/modules/_link.scss | |
| parent | 0b2fbe3f5b9e2fcf0da2b320af504d5cca759045 (diff) | |
Uses SCSS partials (#64)
Diffstat (limited to 'scss/modules/_link.scss')
| -rw-r--r-- | scss/modules/_link.scss | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scss/modules/_link.scss b/scss/modules/_link.scss new file mode 100644 index 0000000..2f827c4 --- /dev/null +++ b/scss/modules/_link.scss @@ -0,0 +1,27 @@ +a, .link { + color: var(--special-text-color); + text-decoration-line: underline; + text-decoration-color: var(--special-text-color); + border: dotted transparent var(--border-width); + transition: + color 100ms, + text-decoration-color 100ms, + border-color 100ms; + + &:is(:hover, :focus, :focus-visible, :focus-within), + .group-hover:is(:hover, :focus, :focus-visible, :focus-within) & { + text-decoration-color: currentColor; + text-decoration-style: wavy; + transition: + color 300ms, + text-decoration-color 300ms, + border-color 300ms; + } + + &:is(:focus, :focus-visible, :focus-within) { + box-shadow: none; + outline: none; + border-color: var(--special-text-color); + } +} + |
