-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.css
60 lines (54 loc) · 1.11 KB
/
global.css
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
:root {
--fg-color: black;
--bg-color: white;
--header-color: #dddddd;
--selected-color: #aaaaaa;
--error-color: red;
--disabled-color: #909090;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: inherit;
font-size: inherit;
font-variant-ligatures: none;
color: inherit;
background: inherit;
border-color: inherit;
border-radius: 0;
line-height: inherit;
touch-action: manipulation;
appearance: none;
/* Prevents scrolling from triggering pull-down refresh on mobile */
overscroll-behavior: none;
}
*:focus {
outline: none;
}
html,
body {
font-family: sans-serif;
color: var(--fg-color);
accent-color: var(--fg-color);
caret-color: var(--fg-color);
background: var(--bg-color);
}
body {
padding: 0.5em;
/* Fall back on vh units if svh doesn't work (i.e., not on mobile). */
height: 100vh;
min-height: 100vh;
max-height: 100vh;
/* Use svh instead of dvh so it doesn't reflow when dynamic parts move. */
height: 100svh;
min-height: 100svh;
max-height: 100svh;
}
button {
user-select: none;
-webkit-user-select: none;
}
ul {
margin-left: 1em;
}