X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0213808c52019edebba66cd0163867a441f8a4a0..515610278a618c78e49ddd5410cb6a8952841685:/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 d81a0af56..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 {