File size: 5,634 Bytes
dcdb685
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
/* ---------------------------------------------------------------------------
   customer-grid / FormInterface.css
   ⭐ WAVE-29 R7 — the FORM builder's own stylesheet.

   Its own file rather than `index.css` for two reasons, and only one of them is this wave's
   fence: a mode's surface that ships with its component can be read, moved or retired in one
   place (`RecordDetail.css` and `ImportDialog.css` set the precedent), and `index.css` is
   already the app's largest single file.

   Every colour, radius and type size is a `--lp-*` token. Nothing here invents a hue: the token
   parity gate compares `index.css` against `theme.ts`, and a raw hex would be invisible to it.
   --------------------------------------------------------------------------- */

.cg-form-build {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  overflow: auto;
  padding: 20px 24px 32px;
  height: 100%;
  background: var(--lp-surface);
  color: var(--lp-ink);
  font-size: var(--lp-fs-xs);
}

.cg-form-pane {
  flex: 1 1 320px;
  min-width: 300px;
  max-width: 560px;
}

.cg-form-h {
  margin: 0 0 12px;
  font-size: var(--lp-fs-lg);
  font-weight: 600;
}

.cg-form-sub {
  margin: 22px 0 8px;
  font-size: var(--lp-fs-2xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lp-muted);
}

/* The first `.cg-form-sub` in a pane sits under no heading of its own. */
.cg-form-pane > .cg-form-sub:first-child {
  margin-top: 0;
}

.cg-form-note {
  margin: 6px 0;
  color: var(--lp-muted);
  font-size: var(--lp-fs-2xs);
  line-height: 1.5;
}

/* An honest warning, not an alarm: it is a state the reader can fix, so it is tinted rather
   than shouted. Red is reserved for a refusal that has already cost something. */
.cg-form-warn {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid var(--lp-red);
  border-radius: var(--lp-r-sm);
  background: var(--lp-red-tint);
  color: var(--lp-red-deep);
  font-size: var(--lp-fs-2xs);
  line-height: 1.5;
}

.cg-form-empty {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 40px;
  color: var(--lp-muted);
  font-size: var(--lp-fs-xs);
  text-align: center;
}

/* --- the spec fields ------------------------------------------------------------------- */

.cg-form-row {
  display: block;
  margin: 0 0 12px;
}

.cg-form-row > span {
  display: block;
  margin-bottom: 4px;
  color: var(--lp-muted);
  font-size: var(--lp-fs-3xs);
  font-weight: 600;
}

.cg-form-row input[type="text"],
.cg-form-row textarea,
.cg-form-addmail input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-sm);
  background: var(--lp-surface);
  color: var(--lp-ink);
  font-family: inherit;
  font-size: var(--lp-fs-xs);
  resize: vertical;
}

.cg-form-row input:disabled,
.cg-form-row textarea:disabled {
  background: var(--lp-wash);
  color: var(--lp-muted);
}

/* --- the question list ----------------------------------------------------------------- */

.cg-form-fields {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-md);
  overflow: hidden;
}

.cg-form-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--lp-line);
}

.cg-form-field:last-child {
  border-bottom: 0;
}

.cg-form-field.on {
  background: var(--lp-blue-tint);
}

.cg-form-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.cg-form-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cg-form-type {
  color: var(--lp-muted);
  font-size: var(--lp-fs-3xs);
}

.cg-form-req {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--lp-muted);
  font-size: var(--lp-fs-3xs);
  cursor: pointer;
}

/* --- who can submit -------------------------------------------------------------------- */

.cg-form-radio {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
  cursor: pointer;
}

.cg-form-radio strong {
  display: block;
  font-weight: 600;
}

.cg-form-radio em {
  display: block;
  margin-top: 2px;
  color: var(--lp-muted);
  font-size: var(--lp-fs-3xs);
  font-style: normal;
  line-height: 1.5;
}

.cg-form-emails ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.cg-form-emails li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--lp-line);
}

.cg-form-emails li:last-child {
  border-bottom: 0;
}

.cg-form-addmail {
  display: flex;
  gap: 8px;
}

/* --- the share link -------------------------------------------------------------------- */

.cg-form-link {
  padding: 10px 12px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-md);
  background: var(--lp-surface-2);
}

.cg-form-link code {
  display: block;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  color: var(--lp-blue-deep);
  font-size: var(--lp-fs-2xs);
}

.cg-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cg-form-build button {
  padding: 5px 11px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-pill);
  background: var(--lp-surface);
  color: var(--lp-ink);
  font-family: inherit;
  font-size: var(--lp-fs-2xs);
  cursor: pointer;
}

.cg-form-build button:hover:not(:disabled) {
  border-color: var(--lp-blue-solid);
  color: var(--lp-blue-deep);
}

.cg-form-build button:disabled {
  color: var(--lp-muted);
  cursor: default;
}

.cg-form-emails button {
  padding: 2px 8px;
  font-size: var(--lp-fs-3xs);
}