Repository navigation
Expand file tree
/
Copy pathNudgeSection.css
More file actions
162 lines (134 loc) · 2.57 KB
/
Copy pathNudgeSection.css
File metadata and controls
162 lines (134 loc) · 2.57 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
153
154
155
156
157
158
159
160
161
162
/* A small feature, so a compact band: copy on one side, a short window on the other. */
.nudgesec {
padding-block: clamp(2.5rem, 6vw, 4rem);
}
.nudgesec__grid {
display: grid;
gap: 1.75rem;
align-items: center;
}
@media (min-width: 56rem) {
.nudgesec__grid {
grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
gap: clamp(2rem, 5vw, 4rem);
}
}
.nudgesec__title {
font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
}
.nudgesec__lede {
margin-top: 0.6rem;
max-width: 40ch;
}
.nudgesec__meanings {
display: grid;
gap: 0.3rem;
margin: 1rem 0 0;
font-size: var(--step--1);
}
.nudgesec__meanings > div {
display: block;
}
.nudgesec__meanings dt,
.nudgesec__meanings dd {
display: inline;
margin: 0;
}
.nudgesec__meanings dt {
font-weight: 650;
}
.nudgesec__meanings dd {
color: var(--ink-soft);
}
.nudgesec__try {
margin-top: 0.9rem;
}
/* The stage: a short window you drifted to, with the nudge floating over it. */
.nudgesec__screen {
--px: 4px;
}
.driftwin {
position: relative;
overflow: hidden;
min-height: 12.5rem;
background: #fff;
}
.driftwin__bar {
display: flex;
align-items: center;
gap: 0.5rem;
height: 2rem;
padding-inline: 0.75rem;
border-bottom: 3px solid var(--ink);
background: var(--mist);
font-size: 0.875rem;
font-weight: 650;
}
.driftwin__bar span {
width: 0.75rem;
height: 0.75rem;
background: var(--peach);
}
.driftwin__feed {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.6rem;
padding: 0.6rem;
}
.driftwin__feed span {
display: grid;
place-items: center;
aspect-ratio: 16 / 11;
background: var(--c);
}
.driftwin__feed span::after {
content: '';
border-left: 0.8rem solid #fff;
border-block: 0.5rem solid transparent;
}
.nudgesec__panel {
position: absolute;
left: 50%;
bottom: 0.75rem;
width: max-content;
max-width: calc(100% - 1.5rem);
translate: -50% 0;
font-size: 0.9375rem;
}
.nudgesec__foot {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem 1rem;
margin-top: 0.9rem;
}
.nudgesec__reply {
min-height: 1.3em;
font-size: 1.15rem;
}
@media (max-width: 30rem) {
.driftwin {
min-height: 13.5rem;
}
.driftwin__feed {
grid-template-columns: repeat(3, 1fr);
}
.driftwin__feed span:nth-child(4) {
display: none;
}
}
/* The taskbar sits along the bottom of the drawn screen. */
.driftwin {
min-height: 15rem;
}
.driftwin .ostask {
position: absolute;
inset: auto 0 0;
}
.nudgesec__panel {
bottom: 3.1rem;
}
.driftwin__bar .osbar__ctl {
background: var(--line);
}