X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/349f8b311ecdf30a181b94a8c7747867bacca356..refs/heads/f-docker-config:/src/wolnelektury/static/2022/styles/base/_global.scss diff --git a/src/wolnelektury/static/2022/styles/base/_global.scss b/src/wolnelektury/static/2022/styles/base/_global.scss index 5bcfdbe2d..07b97808e 100644 --- a/src/wolnelektury/static/2022/styles/base/_global.scss +++ b/src/wolnelektury/static/2022/styles/base/_global.scss @@ -6,11 +6,19 @@ box-sizing: border-box; } -:focus { - outline: $color-black auto 2px; +:root { + --focus-ring: #083F4D; +} + +:focus-visible { + outline: 2px solid var(--focus-ring); outline-offset: 2px; } +html { + scrollbar-gutter: stable; +} + html, body { -webkit-overflow-scrolling: auto; @@ -25,12 +33,6 @@ body { overflow-y: hidden; height: 100vh; } - - &.using-mouse { - *:focus { - outline: 0 !important; - } - } } .visibility-hidden { @@ -43,3 +45,11 @@ body { align-items: center; justify-content: center; } + + +a { + color: $color-primary; + &:hover { + text-decoration: underline; + } +}