UNPKG

1.1 kBSCSSView Raw
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
35a,
36area,
37button,
38input,
39label,
40select,
41summary,
42textarea,
43[tabindex] {
44 -ms-touch-action: manipulation;
45}
46
47// Pico
48// ––––––––––––––––––––
49
50[dir="rtl"] {
51 direction: rtl;
52}