-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.css
More file actions
31 lines (26 loc) · 767 Bytes
/
global.css
File metadata and controls
31 lines (26 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Prevents an unwanted focus outline from appearing around elements that might
* still respond to pointer events.
*/
/* stylelint-disable-next-line a11y/no-outline-none */
[tabindex='-1']:focus {
outline: none !important;
}
/**
* Apply Firefox's default focus ring instead of sanitize.css's version as it is
* more prominent.
*/
:-moz-focusring {
outline: 5px auto Highlight;
}
/**
* Remove the outline in cases where the UA determines via heuristics that the
* focus should not be visible. This is mainly for ensuring that a focus
* ring does not render for mouse pointers.
*
* @credit https://css-tricks.com/the-focus-visible-trick/
*/
/* stylelint-disable-next-line a11y/no-outline-none */
*:focus:not(:focus-visible) {
outline: none;
}