1 | /**
|
2 | * Accessibility & User interaction
|
3 | */
|
4 |
|
5 | // Based on :
|
6 | // - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
7 | // - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
8 | // ––––––––––––––––––––
|
9 |
|
10 | // Accessibility
|
11 |
|
12 | // Change the cursor on control elements in all browsers (opinionated)
|
13 | [aria-controls] {
|
14 | cursor: pointer;
|
15 | }
|
16 |
|
17 | // Change the cursor on disabled, not-editable, or otherwise inoperable elements in all browsers (opinionated)
|
18 | [aria-disabled="true"],
|
19 | [disabled] {
|
20 | cursor: not-allowed;
|
21 | }
|
22 |
|
23 | // Change the display on visually hidden accessible elements in all browsers (opinionated)
|
24 | [aria-hidden="false"][hidden] {
|
25 | display: initial;
|
26 | }
|
27 |
|
28 | [aria-hidden="false"][hidden]:not(:focus) {
|
29 | clip: rect(0, 0, 0, 0);
|
30 | position: absolute;
|
31 | }
|
32 |
|
33 | // User interaction
|
34 | // Remove the tapping delay in IE 10
|
35 | a,
|
36 | area,
|
37 | button,
|
38 | input,
|
39 | label,
|
40 | select,
|
41 | summary,
|
42 | textarea,
|
43 | [tabindex] {
|
44 | -ms-touch-action: manipulation;
|
45 | }
|
46 |
|
47 | // Pico
|
48 | // ––––––––––––––––––––
|
49 |
|
50 | [dir="rtl"] {
|
51 | direction: rtl;
|
52 | }
|