Repository navigation
Expand file tree
/
Copy pathlibrary.css
More file actions
109 lines (109 loc) · 3.89 KB
/
Copy pathlibrary.css
File metadata and controls
109 lines (109 loc) · 3.89 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
* { box-sizing: border-box; }
:root {
color-scheme: light;
font-family: "Times New Roman", Times, serif;
color: #111;
background: #fff;
}
body {
margin: 0;
min-height: 100vh;
min-height: 100svh;
display: grid;
place-items: center;
}
main { width: 100%; padding: 2rem 1.25rem; text-align: center; }
h1 {
margin: 0;
font-size: clamp(2.1rem, 5vw, 3.25rem);
line-height: 1.08;
font-weight: 400;
letter-spacing: -.028em;
text-wrap: balance;
}
p { margin: 1rem auto 0; max-width: 34em; font-size: 1.125rem; line-height: 1.45; text-wrap: pretty; }
a { touch-action: manipulation; color: inherit; text-underline-offset: .18em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
main { position: relative; z-index: 1; }
.scenes { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.scenes img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
filter: grayscale(1);
opacity: 0;
transition: opacity 320ms ease;
}
.scenes .room { object-fit: cover; }
.scenes img.active { opacity: .13; }
.sentence {
--row: clamp(1.6rem, 3.7vh, 1.95rem);
--slot: 5.35em;
position: relative;
display: grid;
grid-template-columns: max-content var(--slot) max-content;
align-items: center;
justify-content: center;
column-gap: .24em;
width: max-content;
max-width: 100%;
margin: 1.15rem auto 0;
font-size: 1.5rem;
line-height: 1.4;
}
.picker {
position: relative;
height: calc(9 * var(--row));
overflow: hidden;
touch-action: pan-x pinch-zoom;
user-select: none;
}
.picker::after {
content: "";
position: absolute;
inset-inline: .15em;
top: calc(50% + var(--row) / 2);
border-bottom: 1px solid #111;
pointer-events: none;
}
.picker:focus-visible { outline: none; }
.picker:focus-visible::after { border-bottom-width: 3px; }
.wheel-track {
position: absolute;
top: calc(50% - var(--row) / 2);
width: 100%;
transform: translateY(calc(-1 * var(--index, 0) * var(--row)));
transition: transform 180ms ease-out;
}
.wheel-track [role="option"] {
display: grid;
place-items: center;
height: var(--row);
color: #858585;
font-size: .82em;
cursor: pointer;
transition: color 160ms, font-size 160ms;
}
.wheel-track [aria-selected="true"] { color: #000; font-size: 1em; }
#enter { text-decoration: none; }
#enter[href]:hover, #enter[href]:focus-visible { text-decoration: underline; }
.completion { position: absolute; left: calc(100% + .23em); top: calc(50% - .7em); width: max-content; max-width: calc((100vw - 22rem) / 2); text-align: left; }
.completion a { text-decoration-thickness: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.back { display: inline-block; margin-top: 2rem; padding: .6rem; }
.question-entry { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: .8rem 1.2rem; border: 1px solid #111; background: #111; color: #fff; text-decoration: none; font-size: 1.05rem; }
.question-entry:hover { background: #333; }
.question-entry:focus-visible { outline-color: #111; }
.harness-status { max-width: 38em; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: #606060; line-height: 1.7; }
::selection { color: #fff; background: #111; }
@media (max-width: 63rem) {
.sentence { width: 100%; }
.completion { position: static; grid-column: 1 / -1; justify-self: center; width: min(88vw, 28rem); max-width: none; min-height: 3em; padding-top: .35em; font-size: 1.15rem; text-align: center; transform: translateY(calc(-1 * min(var(--index, 0), 4) * var(--row))); transition: transform 180ms ease-out; }
}
@media (max-height: 34rem) { main { padding-block: 1rem; } }
@media (prefers-reduced-motion: reduce) {
.scenes img, .wheel-track, .wheel-track [role="option"], .completion { transition: none; }
}
@media (prefers-contrast: more) { .wheel-track [aria-selected="false"] { color: #5c5c5c; } }