mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-13 14:16:25 +01:00
web/layout: add & use the css variable for the focus ring
This commit is contained in:
parent
935947cafc
commit
8d7f0d984f
4 changed files with 6 additions and 4 deletions
|
@ -72,7 +72,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
box-shadow: 0 0 0 2px var(--blue) inset;
|
box-shadow: var(--focus-ring);
|
||||||
border-radius: inherit;
|
border-radius: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
#processing-status.completed {
|
#processing-status.completed {
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 0 0 2px var(--blue) inset,
|
var(--focus-ring),
|
||||||
var(--processing-status-glow);
|
var(--processing-status-glow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#download-button:focus-visible {
|
#download-button:focus-visible {
|
||||||
box-shadow: 0 0 0 2px var(--blue) inset;
|
box-shadow: var(--focus-ring);
|
||||||
}
|
}
|
||||||
|
|
||||||
#download-state {
|
#download-state {
|
||||||
|
|
|
@ -114,6 +114,8 @@
|
||||||
--green: #51cf5e;
|
--green: #51cf5e;
|
||||||
--blue: #2f8af9;
|
--blue: #2f8af9;
|
||||||
|
|
||||||
|
--focus-ring: 0 0 0 2px var(--blue) inset;
|
||||||
|
|
||||||
--button: #f4f4f4;
|
--button: #f4f4f4;
|
||||||
--button-hover: #e8e8e8;
|
--button-hover: #e8e8e8;
|
||||||
--button-active-hover: #2a2a2a;
|
--button-active-hover: #2a2a2a;
|
||||||
|
@ -364,7 +366,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(:focus-visible) {
|
:global(:focus-visible) {
|
||||||
box-shadow: 0 0 0 2px var(--blue) inset !important;
|
box-shadow: var(--focus-ring) !important;
|
||||||
outline: none;
|
outline: none;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue