-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyles.css
More file actions
152 lines (141 loc) · 2.74 KB
/
Copy pathstyles.css
File metadata and controls
152 lines (141 loc) · 2.74 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
:root {
--paper: #dfdacf;
--ink: #232019;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
height: 100%;
background: var(--paper);
color: var(--ink);
overflow: hidden;
overscroll-behavior: none;
}
.sheet {
position: relative;
width: 100%;
height: 100dvh;
background: var(--paper);
}
.sr {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
}
#page,
#scene,
#plate,
.sheet canvas {
display: block;
width: 100%;
height: 100%;
touch-action: manipulation;
}
#plate {
position: absolute;
inset: 0;
cursor: pointer;
}
/* Invisible hit areas sitting over the marks drawn on the paper. Their
positions are set from script to match exactly where the ink landed. */
#another,
#link-a,
#link-b,
#move,
#motion,
#drop,
#count,
#aisle,
#home {
position: absolute;
appearance: none;
background: transparent;
border: 0;
padding: 0;
margin: 0;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
/* The words themselves are ink, so a press cannot change them. A breath of
shadow on the paper under the thumb is the whole feedback. */
#another:active,
#link-a:active,
#link-b:active,
#move:active,
#motion:active,
#drop:active,
#count:active,
#aisle:active,
#home:active { background: rgba(35, 32, 25, 0.08); }
#another:focus-visible,
#link-a:focus-visible,
#link-b:focus-visible,
#move:focus-visible,
#motion:focus-visible,
#drop:focus-visible,
#count:focus-visible,
#aisle:focus-visible,
#home:focus-visible {
outline: 1px dashed var(--ink);
outline-offset: 3px;
}
#spin {
position: absolute;
left: 18%;
right: 18%;
top: 12px;
z-index: 5;
appearance: none;
-webkit-appearance: none;
background: transparent;
border: 0;
padding: 0;
margin: 0;
cursor: pointer;
height: 28px;
}
#spin::-webkit-slider-runnable-track {
height: 2px;
background: var(--ink);
opacity: 0.45;
}
#spin::-moz-range-track {
height: 2px;
background: var(--ink);
opacity: 0.45;
}
#spin::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
margin-top: -6px;
border-radius: 50%;
background: var(--ink);
border: 2px solid var(--paper);
box-shadow: 0 0 0 1px var(--ink);
}
#spin::-moz-range-thumb {
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--ink);
border: 2px solid var(--paper);
box-shadow: 0 0 0 1px var(--ink);
}
#spin:focus-visible {
outline: 1px dashed var(--ink);
outline-offset: 3px;
}
/* Measured, not typeset: script reads this box's height to find out how much
of the bottom of the sheet the phone's home indicator is sitting on. */
#safe {
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: env(safe-area-inset-bottom, 0px);
pointer-events: none;
}