fix: more focus style fixes for small devices (#1532)
This commit is contained in:
parent
65524105f9
commit
b8b6556a14
|
@ -20,13 +20,12 @@
|
|||
/* Another hack to make some focus styles appear better */
|
||||
.focus-after {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.focus-after:focus {
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.focus-after:focus::after {
|
||||
&:focus::after {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
@ -36,6 +35,7 @@
|
|||
border: var(--focus-width) solid var(--focus-outline);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
// For KaiOS, do some additional things to improve the focus styles, which don't show up well
|
||||
// for some reason
|
||||
|
@ -52,16 +52,15 @@
|
|||
opacity: 0.8;
|
||||
}
|
||||
|
||||
button, .button {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
// add extremely visible styles for buttons, ala .focus-after
|
||||
button:focus, .button:focus {
|
||||
button, .button, a.main-nav-link {
|
||||
position: relative;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
button:focus::after, .button:focus::after {
|
||||
&:focus::after {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
@ -71,4 +70,6 @@
|
|||
border: var(--focus-width) solid var(--focus-outline);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue