X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fprivatebrowsing%2FaboutPrivateBrowsing.css;h=a617056961d8189fd640ba27e759776b42ea1aa3;hp=5dc085ea230b1cd2d73beda66d081c81fbf4898b;hb=b1d1a8bbaca0a31b2c2581911368b6892d447718;hpb=c8618eaacf7389abc4d9f467d4981ebc1398c300 diff --git a/LCARStrek/browser/privatebrowsing/aboutPrivateBrowsing.css b/LCARStrek/browser/privatebrowsing/aboutPrivateBrowsing.css index 5dc085ea..a6170569 100644 --- a/LCARStrek/browser/privatebrowsing/aboutPrivateBrowsing.css +++ b/LCARStrek/browser/privatebrowsing/aboutPrivateBrowsing.css @@ -144,6 +144,23 @@ a.button:active { background-color: #FF9F00; } +/** + * We want to hide the checkbox in lieu of the toggle-btn + * "slider toggle". We need to make the toggle keyboard + * focusable, however, which is not possible if it's + * display:none. We work around this by making the toggle + * invisible but still present in the display list, allowing + * it to receive keyboard events. When it is focused by keyboard, + * we use the -moz-focusring selector on the invisible checkbox + * to show a focus ring around the slider toggle. + */ +.toggle-input { + opacity: 0; + width: 0; + pointer-events: none; + position: absolute; +} + .toggle + .toggle-btn { box-sizing: border-box; cursor: pointer;