-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextra.css
More file actions
74 lines (68 loc) · 1.75 KB
/
Copy pathextra.css
File metadata and controls
74 lines (68 loc) · 1.75 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
:where(
a[href],
area,
button,
input:not(
[type="text"],
[type="email"],
[type="number"],
[type="password"],
[type=""],
[type="tel"],
[type="url"],
[type="search"],
[type="date"],
[type="datetime-local"],
[type="time"],
[type="month"],
[type="week"]
),
label[for],
select,
summary,
[tabindex]:not([tabindex*="-"])
) {
cursor: pointer;
}
:where(button[disabled], input[disabled], select[disabled], textarea[disabled]) {
cursor: not-allowed;
}
:where(p, li, dd) :where(a[href]) {
text-decoration-line: underline;
text-decoration-thickness: from-font;
text-underline-offset: 0.15em;
text-decoration-skip-ink: auto;
}
/*
Eliminate the 300ms tap delay on touch devices for interactive elements.
Without this, mobile browsers wait to see if a tap is a double-tap before
firing the click event, resulting in a noticeable lag.
*/
:where(a[href], area, button, summary, [tabindex]:not([tabindex*="-"])) {
touch-action: manipulation;
}
/*
Provide breathing room for anchor-linked targets so content isn't hidden
behind sticky headers or other fixed UI when navigating via fragment links.
*/
:where(:target) {
scroll-margin-block-start: 2ex;
}
/*
Allow textareas to automatically grow with their content instead of
requiring manual resizing. `min-block-size` ensures a reasonable
default height when the textarea is empty.
*/
@supports (field-sizing: content) {
:where(textarea) {
field-sizing: content;
min-block-size: 3lh;
}
}
/*
Enable optimizeLegibility for improved text rendering.
Note: may cause performance issues on text-heavy pages.
*/
:where(body) {
text-rendering: optimizeLegibility;
}