mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web: global focus-visible
This commit is contained in:
parent
042d2e9cc8
commit
23911cbc92
2 changed files with 8 additions and 12 deletions
|
@ -65,17 +65,6 @@
|
|||
opacity: 1;
|
||||
}
|
||||
|
||||
.sidebar-tab:focus-visible {
|
||||
box-shadow: 0 0 0 3px var(--blue) inset;
|
||||
outline: none;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.sidebar-tab.active:focus-visible {
|
||||
background: var(--blue);
|
||||
color: var(--sidebar-highlight);
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.sidebar-tab:hover {
|
||||
opacity: 1;
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
box-shadow: 0 0 0 1.5px var(--button-stroke) inset;
|
||||
}
|
||||
|
||||
:global(button:focus-visible) {
|
||||
:global(:focus-visible) {
|
||||
box-shadow: 0 0 0 2px var(--blue) inset;
|
||||
outline: none;
|
||||
z-index: 1;
|
||||
|
@ -144,6 +144,13 @@
|
|||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* important is used because active class is toggled by state */
|
||||
/* and added to the end of the list, taking priority */
|
||||
:global(.active:focus-visible) {
|
||||
background: var(--blue) !important;
|
||||
color: var(--sidebar-highlight) !important;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
:global(button:hover) {
|
||||
background-color: var(--button-hover);
|
||||
|
|
Loading…
Reference in a new issue