@plexui/styles 0.16.5 → 0.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -167,45 +167,209 @@ background-color: rgba(255, 255, 255, 0.1);
|
|
|
167
167
|
flex-direction: column;
|
|
168
168
|
gap: 16px;
|
|
169
169
|
}@media (max-width: 767px) {
|
|
170
|
-
/* On a phone the editor is a
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
/* On a phone the editor is a cell of a grouped form (owner 21.11), built as an iOS 27 cell with a row of round
|
|
171
|
+
buttons under its value, the Repeat cell of the Clock app's Add Alarm (IMG_6623, measured at 430pt): the text
|
|
172
|
+
takes the row's 20 inset, as a Textarea in a row does; under it a hairline from that inset to the other, then the
|
|
173
|
+
row of 35 circles, 18 apart, 16 above and under them. A circle is a soft gray face with its glyph; a format that
|
|
174
|
+
is on is the solid face with an inverse glyph, as the days of the alarm that are chosen. The cell is the
|
|
175
|
+
FieldGroup's card: its fill, its 26 corners and no outline; its title and footer stand over and under it. */
|
|
173
176
|
.Container {
|
|
177
|
+
--markdown-editor-inset: var(--list-row-inset, 20px);
|
|
178
|
+
--markdown-editor-button-size: 35px;
|
|
179
|
+
|
|
174
180
|
border-radius: var(--field-group-radius, 26px);
|
|
181
|
+
font-size: var(--field-row-label-font-size, 17px);
|
|
175
182
|
}
|
|
176
183
|
|
|
184
|
+
/* A cell has no outline, hovered or focused either, as an iOS cell being edited; only the invalid line stays. */
|
|
185
|
+
.Container:where([data-variant="outline"], [data-variant="soft"]), .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled])[data-focused="true"] {
|
|
186
|
+
background-color: var(--field-group-background);
|
|
187
|
+
box-shadow: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled]):is(:hover, [data-focused="true"]) {
|
|
191
|
+
box-shadow: none;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled])[data-invalid][data-invalid] {
|
|
195
|
+
box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.Editor {
|
|
199
|
+
order: 0;
|
|
200
|
+
padding: 15px var(--markdown-editor-inset);
|
|
201
|
+
line-height: var(--field-row-label-line-height, 22px);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.Toolbar {
|
|
205
|
+
position: relative;
|
|
206
|
+
order: 1;
|
|
207
|
+
border-bottom: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.Toolbar::before {
|
|
211
|
+
position: absolute;
|
|
212
|
+
top: 0;
|
|
213
|
+
inset-inline: var(--markdown-editor-inset);
|
|
214
|
+
height: 1px;
|
|
215
|
+
background: var(--color-border);
|
|
216
|
+
content: "";
|
|
217
|
+
}
|
|
218
|
+
|
|
177
219
|
.ToolbarGroup {
|
|
220
|
+
gap: 18px;
|
|
221
|
+
padding: 16px var(--markdown-editor-inset);
|
|
178
222
|
overflow-x: auto;
|
|
179
223
|
overscroll-behavior-x: contain;
|
|
224
|
+
scrollbar-width: none;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.ToolbarSeparator {
|
|
228
|
+
display: none;
|
|
180
229
|
}
|
|
181
230
|
|
|
182
231
|
.ToolbarButton.ToolbarButton {
|
|
183
|
-
--button-size:
|
|
184
|
-
--button-uniform-size:
|
|
185
|
-
|
|
186
|
-
|
|
232
|
+
--button-size: var(--markdown-editor-button-size);
|
|
233
|
+
--button-uniform-size: var(--markdown-editor-button-size);
|
|
234
|
+
|
|
235
|
+
position: relative;
|
|
236
|
+
width: var(--markdown-editor-button-size);
|
|
237
|
+
height: var(--markdown-editor-button-size);
|
|
187
238
|
flex-shrink: 0;
|
|
188
|
-
border-radius: var(--
|
|
239
|
+
border-radius: var(--radius-full);
|
|
240
|
+
background-color: var(--color-background-secondary-soft-alpha);
|
|
241
|
+
color: var(--color-text);
|
|
242
|
+
font-size: 20px;
|
|
243
|
+
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.ToolbarButton.ToolbarButton > span > svg,
|
|
247
|
+
.ToolbarButton.ToolbarButton > svg {
|
|
248
|
+
width: 20px;
|
|
249
|
+
height: 20px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* A format that is on: the solid face with an inverse glyph, over the Button's selected colors. */
|
|
253
|
+
.Container .Toolbar .ToolbarButton.ToolbarButton[aria-pressed="true"] {
|
|
254
|
+
background-color: var(--color-background-primary-solid);
|
|
255
|
+
color: var(--color-text-inverse);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.Container .Toolbar .ToolbarButton.ToolbarButton[aria-pressed="true"] > span {
|
|
259
|
+
color: inherit;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* The face is the button itself; its ::before is the 44 target around the circle, without a face of its own, on a
|
|
263
|
+
toolbarEnd button of the app's own too. */
|
|
264
|
+
.Container .Toolbar .ToolbarButton.ToolbarButton::before {
|
|
265
|
+
position: absolute;
|
|
266
|
+
inset: calc((var(--markdown-editor-button-size) - 44px) / 2);
|
|
267
|
+
content: "";
|
|
268
|
+
border-radius: var(--radius-full);
|
|
269
|
+
background: transparent;
|
|
270
|
+
opacity: 0;
|
|
189
271
|
}
|
|
190
272
|
}
|
|
191
|
-
/* On a phone the editor is a
|
|
192
|
-
|
|
193
|
-
|
|
273
|
+
/* On a phone the editor is a cell of a grouped form (owner 21.11), built as an iOS 27 cell with a row of round
|
|
274
|
+
buttons under its value, the Repeat cell of the Clock app's Add Alarm (IMG_6623, measured at 430pt): the text
|
|
275
|
+
takes the row's 20 inset, as a Textarea in a row does; under it a hairline from that inset to the other, then the
|
|
276
|
+
row of 35 circles, 18 apart, 16 above and under them. A circle is a soft gray face with its glyph; a format that
|
|
277
|
+
is on is the solid face with an inverse glyph, as the days of the alarm that are chosen. The cell is the
|
|
278
|
+
FieldGroup's card: its fill, its 26 corners and no outline; its title and footer stand over and under it. */
|
|
194
279
|
:where([data-plex-layout="phone"]) .Container {
|
|
280
|
+
--markdown-editor-inset: var(--list-row-inset, 20px);
|
|
281
|
+
--markdown-editor-button-size: 35px;
|
|
282
|
+
|
|
195
283
|
border-radius: var(--field-group-radius, 26px);
|
|
284
|
+
font-size: var(--field-row-label-font-size, 17px);
|
|
196
285
|
}
|
|
197
286
|
|
|
287
|
+
/* A cell has no outline, hovered or focused either, as an iOS cell being edited; only the invalid line stays. */
|
|
288
|
+
:where([data-plex-layout="phone"]) .Container:where([data-variant="outline"], [data-variant="soft"]), :where([data-plex-layout="phone"]) .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled])[data-focused="true"] {
|
|
289
|
+
background-color: var(--field-group-background);
|
|
290
|
+
box-shadow: none;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
:where([data-plex-layout="phone"]) .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled]):is(:hover, [data-focused="true"]) {
|
|
294
|
+
box-shadow: none;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
:where([data-plex-layout="phone"]) .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled])[data-invalid][data-invalid] {
|
|
298
|
+
box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
:where([data-plex-layout="phone"]) .Editor {
|
|
302
|
+
order: 0;
|
|
303
|
+
padding: 15px var(--markdown-editor-inset);
|
|
304
|
+
line-height: var(--field-row-label-line-height, 22px);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
:where([data-plex-layout="phone"]) .Toolbar {
|
|
308
|
+
position: relative;
|
|
309
|
+
order: 1;
|
|
310
|
+
border-bottom: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
:where([data-plex-layout="phone"]) .Toolbar::before {
|
|
314
|
+
position: absolute;
|
|
315
|
+
top: 0;
|
|
316
|
+
inset-inline: var(--markdown-editor-inset);
|
|
317
|
+
height: 1px;
|
|
318
|
+
background: var(--color-border);
|
|
319
|
+
content: "";
|
|
320
|
+
}
|
|
321
|
+
|
|
198
322
|
:where([data-plex-layout="phone"]) .ToolbarGroup {
|
|
323
|
+
gap: 18px;
|
|
324
|
+
padding: 16px var(--markdown-editor-inset);
|
|
199
325
|
overflow-x: auto;
|
|
200
326
|
overscroll-behavior-x: contain;
|
|
327
|
+
scrollbar-width: none;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
:where([data-plex-layout="phone"]) .ToolbarSeparator {
|
|
331
|
+
display: none;
|
|
201
332
|
}
|
|
202
333
|
|
|
203
334
|
:where([data-plex-layout="phone"]) .ToolbarButton.ToolbarButton {
|
|
204
|
-
--button-size:
|
|
205
|
-
--button-uniform-size:
|
|
206
|
-
|
|
207
|
-
|
|
335
|
+
--button-size: var(--markdown-editor-button-size);
|
|
336
|
+
--button-uniform-size: var(--markdown-editor-button-size);
|
|
337
|
+
|
|
338
|
+
position: relative;
|
|
339
|
+
width: var(--markdown-editor-button-size);
|
|
340
|
+
height: var(--markdown-editor-button-size);
|
|
208
341
|
flex-shrink: 0;
|
|
209
|
-
border-radius: var(--
|
|
342
|
+
border-radius: var(--radius-full);
|
|
343
|
+
background-color: var(--color-background-secondary-soft-alpha);
|
|
344
|
+
color: var(--color-text);
|
|
345
|
+
font-size: 20px;
|
|
346
|
+
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
:where([data-plex-layout="phone"]) .ToolbarButton.ToolbarButton > span > svg,
|
|
350
|
+
:where([data-plex-layout="phone"]) .ToolbarButton.ToolbarButton > svg {
|
|
351
|
+
width: 20px;
|
|
352
|
+
height: 20px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* A format that is on: the solid face with an inverse glyph, over the Button's selected colors. */
|
|
356
|
+
:where([data-plex-layout="phone"]) .Container .Toolbar .ToolbarButton.ToolbarButton[aria-pressed="true"] {
|
|
357
|
+
background-color: var(--color-background-primary-solid);
|
|
358
|
+
color: var(--color-text-inverse);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
:where([data-plex-layout="phone"]) .Container .Toolbar .ToolbarButton.ToolbarButton[aria-pressed="true"] > span {
|
|
362
|
+
color: inherit;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* The face is the button itself; its ::before is the 44 target around the circle, without a face of its own, on a
|
|
366
|
+
toolbarEnd button of the app's own too. */
|
|
367
|
+
:where([data-plex-layout="phone"]) .Container .Toolbar .ToolbarButton.ToolbarButton::before {
|
|
368
|
+
position: absolute;
|
|
369
|
+
inset: calc((var(--markdown-editor-button-size) - 44px) / 2);
|
|
370
|
+
content: "";
|
|
371
|
+
border-radius: var(--radius-full);
|
|
372
|
+
background: transparent;
|
|
373
|
+
opacity: 0;
|
|
210
374
|
}
|
|
211
375
|
}
|