@plexui/styles 0.1.33 → 0.1.34
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.
- package/dist/es/components/Accordion/Accordion.module.css +14 -0
- package/dist/es/components/Alert/Alert.module.css +112 -1
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +34 -0
- package/dist/es/components/Button/Button.module.css +70 -22
- package/dist/es/components/Card/Card.module.css +22 -6
- package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
- package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
- package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
- package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
- package/dist/es/components/DataTable/DataTable.module.css +4 -0
- package/dist/es/components/DatePicker/Calendar.module.css +18 -5
- package/dist/es/components/DateRangePicker/Calendar.module.css +20 -2
- package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
- package/dist/es/components/Dialog/Dialog.module.css +212 -77
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +31 -0
- package/dist/es/components/Field/Field.module.css +188 -23
- package/dist/es/components/FieldGroup/FieldGroup.module.css +59 -0
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +21 -0
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +16 -0
- package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
- package/dist/es/components/Input/Input.module.css +69 -0
- package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
- package/dist/es/components/Menu/Menu.module.css +278 -28
- package/dist/es/components/Page/Page.module.css +92 -24
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/Popover/Popover.module.css +10 -1
- package/dist/es/components/Select/Select.module.css +53 -9
- package/dist/es/components/SelectControl/SelectControl.module.css +38 -3
- package/dist/es/components/Sidebar/Sidebar.module.css +276 -57
- package/dist/es/components/Slider/Slider.module.css +52 -45
- package/dist/es/components/Sortable/Sortable.module.css +7 -3
- package/dist/es/components/Stepper/Stepper.module.css +98 -0
- package/dist/es/components/TabBar/TabBar.module.css +233 -0
- package/dist/es/components/Tabs/Tabs.module.css +149 -2
- package/dist/es/components/Toast/Toast.module.css +50 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +208 -18
- package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/LICENSE +21 -0
- package/dist/es/styles/katex.min.css +666 -730
- package/dist/es/styles/mobile-materials.css +56 -14
- package/dist/es/styles/mobile-surfaces.css +39 -32
- package/dist/es/styles/touch.css +328 -90
- package/dist/es/styles/variables-components.css +232 -13
- package/package.json +1 -1
|
@@ -29,8 +29,9 @@
|
|
|
29
29
|
width: var(--field-horizontal-label-width);
|
|
30
30
|
padding-top: var(--field-label-horizontal-offset);
|
|
31
31
|
}.Field:where([data-orientation="horizontal"]) .Content {
|
|
32
|
-
flex
|
|
32
|
+
flex: var(--field-horizontal-control-flex, 0 0 auto);
|
|
33
33
|
width: var(--field-horizontal-control-width);
|
|
34
|
+
min-width: 0;
|
|
34
35
|
}/* =============================================
|
|
35
36
|
Sizes — shared properties (grouped)
|
|
36
37
|
============================================= */.Field:where([data-size="3xs"]),
|
|
@@ -214,6 +215,14 @@
|
|
|
214
215
|
grid-column: 1;
|
|
215
216
|
grid-row: auto;
|
|
216
217
|
justify-self: stretch;
|
|
218
|
+
}/* A row with a hidden label (`hideLabel`) holds its value alone, from the row's edge. A frameless
|
|
219
|
+
value, a ghost field, has its first line centered in the row's height, as an iOS cell that shows
|
|
220
|
+
only its placeholder or value; more lines grow the row downwards. With a description or an error
|
|
221
|
+
under the value the row keeps the insets of a row with text under its label, so hiding the label
|
|
222
|
+
moves nothing. */.Field:where([data-row][data-label-hidden][data-orientation="vertical"]) {
|
|
223
|
+
padding-block: var(--field-row-padding-block);
|
|
224
|
+
}.Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant="ghost"] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
|
|
225
|
+
padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
|
|
217
226
|
}/* A control that fills the row, such as a list of tags: it starts after the label
|
|
218
227
|
and ends at the row's edge, on one line for all the rows of a group. A list can
|
|
219
228
|
wrap: the label and the action stay on its first line. */.Field:where([data-row][data-fill]:not([data-orientation="vertical"])) {
|
|
@@ -239,6 +248,9 @@
|
|
|
239
248
|
display: flex;
|
|
240
249
|
grid-column: 3;
|
|
241
250
|
grid-row: 1;
|
|
251
|
+
}/* Set on the buttons too: a phone gives a filled button its own weight (touch.css), which the inherited value
|
|
252
|
+
would not outweigh. */.Action :where(button, a, [role="link"]) {
|
|
253
|
+
--button-font-weight: var(--field-row-action-font-weight);
|
|
242
254
|
}/* A framed field in a row: its width cannot follow what is typed, so it has one,
|
|
243
255
|
wider for words than for a number. A ghost has the row for its frame, a Select
|
|
244
256
|
follows its value, and fields set out by a wrapper of their own size themselves. */.Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
|
|
@@ -275,6 +287,9 @@
|
|
|
275
287
|
box-shadow: none;
|
|
276
288
|
}.Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="ghost"] > input {
|
|
277
289
|
text-align: end;
|
|
290
|
+
}/* A start text in a row is a prefix of the value, such as https:// or a currency: the value follows it with no gap
|
|
291
|
+
("$0.00"), as iOS writes a prefix. An icon keeps the gap, and so does a trailing adornment. */.Field:where([data-row]) .Control > [data-variant="ghost"] > :first-child:not(input, textarea, svg, :has(svg)) + :is(input, textarea) {
|
|
292
|
+
margin-inline-start: calc(-1 * var(--input-gap));
|
|
278
293
|
}/* A FieldGroup with `columns`: every value starts at one column, as in an iOS form of
|
|
279
294
|
typed details. A field keeps its width, a ghost takes the rest of the line, a switch
|
|
280
295
|
and an action stay at the end. */[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Action))),
|
|
@@ -300,8 +315,8 @@
|
|
|
300
315
|
grid-template-columns: var(--field-row-column-width) minmax(0, 1fr) auto;
|
|
301
316
|
}
|
|
302
317
|
}/* On a phone a list takes the width of its own line under the label and the action.
|
|
303
|
-
The row is the frame of every field, as on iOS: the framed
|
|
304
|
-
as the ghost above, with nothing for the author to change. */@media (max-width: 767px) {
|
|
318
|
+
The row is the frame of every field, as on iOS: the framed and the filled (soft) fields
|
|
319
|
+
of the web read as the ghost above, with nothing for the author to change. */@media (max-width: 767px) {
|
|
305
320
|
.Field:where([data-row]) {
|
|
306
321
|
--field-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
307
322
|
--field-row-above-color: var(--mobile-label-secondary, var(--color-text-tertiary));
|
|
@@ -319,6 +334,37 @@
|
|
|
319
334
|
cursor: pointer;
|
|
320
335
|
}
|
|
321
336
|
|
|
337
|
+
/* The same rows, with their control disabled, read as disabled: the row is that control's
|
|
338
|
+
target, as a disabled row action of the kit is gray (Lists, Row - Button, Value=Disabled
|
|
339
|
+
550:49735), and an item's own label dims with it outside a row. Without this, an option
|
|
340
|
+
that is neither selected nor available looked like any other row. A row whose control
|
|
341
|
+
still has an enabled option (a segmented control with one disabled segment) stays as it
|
|
342
|
+
is. The label takes the tertiary label and the description the quaternary one, as a
|
|
343
|
+
disabled menu item does on a phone (touch.css). */
|
|
344
|
+
.Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))),
|
|
345
|
+
.Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) {
|
|
346
|
+
--field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))) > .LabelGroup .Label, .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) > .LabelGroup .Label {
|
|
350
|
+
color: var(--mobile-label-tertiary, var(--color-text-disabled));
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* A disabled text field in a row reads as disabled as a whole, as an unavailable row of iOS Settings
|
|
354
|
+
is gray: its label dims with its value. (A Select's hidden form input does not count.) */
|
|
355
|
+
.Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) {
|
|
356
|
+
--field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) > .LabelGroup .Label {
|
|
360
|
+
color: var(--mobile-label-tertiary, var(--color-text-disabled));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* Every text field of a phone row is frameless, so a row with a hidden label centers its first line */
|
|
364
|
+
.Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
|
|
365
|
+
padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
|
|
366
|
+
}
|
|
367
|
+
|
|
322
368
|
/* Mobile choice rows keep keyboard focus and activation without a drawn ring. */
|
|
323
369
|
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):focus-visible {
|
|
324
370
|
outline: none;
|
|
@@ -346,6 +392,20 @@
|
|
|
346
392
|
line-height: var(--field-row-label-line-height);
|
|
347
393
|
}
|
|
348
394
|
|
|
395
|
+
/* A value the person cannot edit (a read-only field) is the secondary label, as iOS
|
|
396
|
+
shows the values of a row that only informs, such as Settings, General, About. */
|
|
397
|
+
.Field:where([data-row]) .Control [data-slot="input"] > input[readonly],
|
|
398
|
+
.Field:where([data-row]) .Control [data-slot="input-group-control"][readonly] {
|
|
399
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* A value or placeholder longer than its room ends in an ellipsis while it is not
|
|
403
|
+
being edited, as a text field of an iOS form does. */
|
|
404
|
+
.Field:where([data-row]) .Control [data-slot="input"] > input,
|
|
405
|
+
.Field:where([data-row]) .Control [data-slot="input-group-control"] {
|
|
406
|
+
text-overflow: ellipsis;
|
|
407
|
+
}
|
|
408
|
+
|
|
349
409
|
/* Keep textarea row measurement consistent with the visible line box. */
|
|
350
410
|
.Field:where([data-row]) .Control > [data-variant]:has(> textarea) {
|
|
351
411
|
--textarea-line-height: var(--field-row-label-line-height);
|
|
@@ -426,28 +486,32 @@
|
|
|
426
486
|
}
|
|
427
487
|
|
|
428
488
|
.Field:where([data-row]:not([data-orientation="vertical"])):has(
|
|
429
|
-
.Control > [data-variant="outline"] > input,
|
|
430
|
-
.Control > [data-variant="outline"] > textarea
|
|
489
|
+
.Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
|
|
490
|
+
.Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
|
|
431
491
|
) {
|
|
432
492
|
grid-template-columns: auto minmax(0, 1fr);
|
|
433
493
|
}
|
|
434
494
|
|
|
435
495
|
.Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
|
|
436
|
-
> [data-variant="outline"] > input,
|
|
437
|
-
> [data-variant="outline"] > textarea
|
|
496
|
+
> :is([data-variant="outline"], [data-variant="soft"]) > input,
|
|
497
|
+
> :is([data-variant="outline"], [data-variant="soft"]) > textarea
|
|
438
498
|
) {
|
|
439
499
|
justify-self: stretch;
|
|
440
500
|
}
|
|
441
501
|
|
|
442
|
-
|
|
443
|
-
|
|
502
|
+
/* Under its label too, a value is the row's text (kit Lists, a value under its title; Contacts' fields):
|
|
503
|
+
the frames and the gutters of the web go, so the value starts where the label does. */
|
|
504
|
+
.Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)),
|
|
505
|
+
.Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
|
|
444
506
|
--input-outline-border-color: transparent;
|
|
445
507
|
--input-outline-border-color-hover: transparent;
|
|
446
508
|
--input-outline-border-color-focus: transparent;
|
|
447
509
|
--input-border-color-invalid: transparent;
|
|
510
|
+
--input-soft-background-color: transparent;
|
|
511
|
+
--input-soft-border-color-focus: transparent;
|
|
448
512
|
}
|
|
449
513
|
|
|
450
|
-
.Field:where([data-row]:
|
|
514
|
+
.Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)) {
|
|
451
515
|
--input-size: var(--field-row-label-line-height);
|
|
452
516
|
--input-gutter: 0px;
|
|
453
517
|
--input-adornment-offset: 0px;
|
|
@@ -457,43 +521,112 @@
|
|
|
457
521
|
border-radius: 0;
|
|
458
522
|
}
|
|
459
523
|
|
|
460
|
-
.Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"] > input {
|
|
524
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
|
|
461
525
|
text-align: end;
|
|
462
526
|
}
|
|
463
527
|
|
|
528
|
+
/* A disabled Select or date in a row keeps the row's surface: the disabled frame and fill of a
|
|
529
|
+
standalone control would draw a box around the value */
|
|
530
|
+
.Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"][data-disabled] {
|
|
531
|
+
--select-control-background-color: transparent;
|
|
532
|
+
--select-control-border-color: transparent;
|
|
533
|
+
}
|
|
534
|
+
|
|
464
535
|
/* A Select or a date: its value ends at the row's edge, its mark too, as the row has no pill to sit in */
|
|
465
|
-
.Field:where([data-row]:
|
|
536
|
+
.Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
|
|
466
537
|
--dropdown-icon-pill-offset: 0px;
|
|
467
538
|
}
|
|
468
539
|
|
|
469
|
-
.Field:where([data-row]:
|
|
540
|
+
.Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"] {
|
|
470
541
|
padding-inline: 0;
|
|
471
542
|
}
|
|
472
543
|
|
|
473
544
|
/* The Field already delegates its non-interactive area to this linked popup.
|
|
474
545
|
Keep one row surface; the trigger remains its only keyboard stop. */
|
|
475
|
-
.Field:where([data-row]
|
|
546
|
+
.Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
|
|
476
547
|
--select-control-size: var(--field-row-label-line-height);
|
|
477
548
|
border-radius: 0;
|
|
478
549
|
}
|
|
479
550
|
|
|
480
|
-
.Field:where([data-row]
|
|
551
|
+
.Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
|
|
481
552
|
background-color: transparent;
|
|
482
553
|
box-shadow: none;
|
|
483
554
|
transform: none;
|
|
484
555
|
}
|
|
485
556
|
|
|
486
|
-
.Field:where([data-row]
|
|
557
|
+
.Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::after {
|
|
487
558
|
outline: none;
|
|
488
559
|
transform: none;
|
|
489
560
|
}
|
|
490
561
|
|
|
491
|
-
.Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is([data-variant="outline"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
|
|
562
|
+
.Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
|
|
492
563
|
cursor: pointer;
|
|
493
564
|
}
|
|
494
565
|
|
|
495
|
-
/*
|
|
566
|
+
/* A date in a row is the compact date picker of iOS 26 (kit Date and time - Collapsed 30:53803): a 34px
|
|
567
|
+
capsule with 11px insets on the fill of the calendar's time pill, the date in the primary label and in
|
|
568
|
+
the accent text while its calendar is open. It keeps the 52px row; the row stays its target. */
|
|
569
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
|
|
570
|
+
--select-control-size: 34px;
|
|
571
|
+
|
|
572
|
+
margin-block: calc((var(--field-row-label-line-height) - 34px) / 2);
|
|
573
|
+
padding-inline: 11px;
|
|
574
|
+
border-radius: var(--radius-full);
|
|
575
|
+
color: var(--color-text);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
|
|
579
|
+
background-color: var(--color-background-secondary-soft-alpha);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-selected="false"],
|
|
583
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-disabled] {
|
|
584
|
+
color: var(--mobile-label-tertiary, var(--color-text-tertiary));
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]:not([data-disabled]) {
|
|
588
|
+
color: var(--link-primary-text-color);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/* A date and a time (showTime with a triggerTimeFormat) are two capsules 6px apart, as the kit draws them (Date and
|
|
592
|
+
time - Collapsed 30:53803) and iOS Calendar shows an event's start. Either opens the calendar, whose time
|
|
593
|
+
fields set the time; the trigger stays the row's target and takes the accent while the calendar is open. */
|
|
594
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) {
|
|
595
|
+
padding-inline: 0;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts])::before {
|
|
599
|
+
background-color: transparent;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-parts] {
|
|
603
|
+
display: flex;
|
|
604
|
+
gap: 6px;
|
|
605
|
+
min-width: 0;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part] {
|
|
609
|
+
padding: 6px 11px;
|
|
610
|
+
border-radius: var(--radius-full);
|
|
611
|
+
background-color: var(--color-background-secondary-soft-alpha);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/* Short of room, the date ends in an ellipsis inside its capsule; the time keeps its width */
|
|
615
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="date"] {
|
|
616
|
+
min-width: 0;
|
|
617
|
+
overflow: hidden;
|
|
618
|
+
text-overflow: ellipsis;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="time"] {
|
|
622
|
+
flex-shrink: 0;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/* Trailing units share the accessory tone; the input and the button keep their own disabled states.
|
|
626
|
+
An InputGroup's inline addons (a prefix, a unit, an icon, an indicator) take it too, as Input's
|
|
627
|
+
prefix and unit do; the kit's indicator is Labels/Secondary. */
|
|
496
628
|
.Field:where([data-row]) .Control > [data-slot="input"]:not([data-disabled]) > span:global(.text-secondary):last-child,
|
|
629
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"]:not([data-disabled]) > [data-align^="inline"],
|
|
497
630
|
.Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child:not([data-uniform], [disabled], [data-disabled], [aria-disabled="true"]) {
|
|
498
631
|
color: var(--mobile-accessory-secondary, var(--color-text-secondary));
|
|
499
632
|
}
|
|
@@ -504,10 +637,21 @@
|
|
|
504
637
|
|
|
505
638
|
/* An InputGroup: its value and its unit end at the row's edge too. A button at the end
|
|
506
639
|
reads as the row's text, as a Select's value does: no gutter and no fill */
|
|
507
|
-
.Field:where([data-row]
|
|
640
|
+
.Field:where([data-row]) .Control > [data-slot="input-group"]:is([data-variant="outline"], [data-variant="soft"]) {
|
|
508
641
|
--input-group-gutter: 0px;
|
|
509
642
|
}
|
|
510
643
|
|
|
644
|
+
/* A leading text or text addon is a prefix of the value (https://, $): the value follows it with no gap, as iOS
|
|
645
|
+
writes "$0.00". An icon or a button keeps the gap, and so does a trailing unit. (`:has()` cannot nest, so the
|
|
646
|
+
addon is matched by its only child, an InputGroup.Text.) */
|
|
647
|
+
.Field:where([data-row]) .Control > [data-slot="input"] > :first-child:not(input, textarea, svg, :has(svg)) + input {
|
|
648
|
+
margin-inline-start: calc(-1 * var(--input-gap));
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.Field:where([data-row]) .Control > [data-slot="input-group"]:has(> [data-align="inline-start"] > [data-slot="input-group-text"]:only-child) > [data-slot="input-group-control"] {
|
|
652
|
+
padding-inline-start: 0;
|
|
653
|
+
}
|
|
654
|
+
|
|
511
655
|
.Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child {
|
|
512
656
|
--button-gutter: 0px;
|
|
513
657
|
--button-background-color: transparent;
|
|
@@ -541,8 +685,8 @@
|
|
|
541
685
|
/* With `columns` the value starts at the column and takes the rest of the row: a unit,
|
|
542
686
|
a Select's mark and an icon end at its edge, as on iOS */
|
|
543
687
|
[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Action))):has(
|
|
544
|
-
.Control > [data-variant="outline"] > input,
|
|
545
|
-
.Control > [data-variant="outline"] > textarea
|
|
688
|
+
.Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
|
|
689
|
+
.Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
|
|
546
690
|
) {
|
|
547
691
|
grid-template-columns: var(--field-row-column-width) minmax(0, 1fr);
|
|
548
692
|
}
|
|
@@ -555,12 +699,33 @@
|
|
|
555
699
|
justify-self: stretch;
|
|
556
700
|
}
|
|
557
701
|
|
|
558
|
-
[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"] > input {
|
|
702
|
+
[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
|
|
559
703
|
text-align: start;
|
|
560
704
|
}
|
|
561
705
|
|
|
562
|
-
[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"][role="button"] {
|
|
706
|
+
[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
|
|
563
707
|
width: 100%;
|
|
564
708
|
}
|
|
709
|
+
}/* =============================================
|
|
710
|
+
Hidden label (hideLabel)
|
|
711
|
+
The label still names the control for assistive
|
|
712
|
+
technology. Last in the file, so it outranks the
|
|
713
|
+
label's own padding in a row.
|
|
714
|
+
============================================= */.Field:where([data-label-hidden]) > .LabelGroup:not(:has(> .Description, > .LabelRow)),
|
|
715
|
+
.Field:where([data-label-hidden]) > .LabelGroup > .Label,
|
|
716
|
+
.Field:where([data-label-hidden]) > .LabelGroup > .LabelRow > .Label {
|
|
717
|
+
position: absolute;
|
|
718
|
+
width: 1px;
|
|
719
|
+
height: 1px;
|
|
720
|
+
margin: -1px;
|
|
721
|
+
padding: 0;
|
|
722
|
+
border: 0;
|
|
723
|
+
overflow: hidden;
|
|
724
|
+
clip-path: inset(50%);
|
|
725
|
+
white-space: nowrap;
|
|
726
|
+
}/* Words that describe a field with a hidden label follow the field: above it they would read as its label */.Field:where([data-label-hidden]:not([data-orientation="horizontal"])) > .LabelGroup:has(> .Description) {
|
|
727
|
+
order: 1;
|
|
728
|
+
}.Field:where([data-row][data-label-hidden][data-orientation="vertical"]) > .LabelGroup {
|
|
729
|
+
grid-row: auto;
|
|
565
730
|
}
|
|
566
731
|
}
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
font-size: var(--field-group-title-font-size);
|
|
19
19
|
line-height: var(--field-group-title-line-height);
|
|
20
20
|
font-weight: var(--field-group-title-font-weight);
|
|
21
|
+
letter-spacing: var(--field-group-title-letter-spacing, normal);
|
|
22
|
+
}/* headerProminence="increased": the title leads its content, as a section of a page */.FieldGroup[data-header-prominence="increased"] {
|
|
23
|
+
--field-group-title-color: var(--color-text);
|
|
24
|
+
--field-group-title-font-size: var(--font-heading-sm-size);
|
|
25
|
+
--field-group-title-line-height: var(--font-heading-sm-line-height);
|
|
26
|
+
--field-group-title-font-weight: var(--font-heading-sm-weight);
|
|
21
27
|
}.Description {
|
|
22
28
|
margin: 0;
|
|
23
29
|
padding-inline: var(--field-group-title-padding-inline);
|
|
@@ -39,6 +45,54 @@
|
|
|
39
45
|
--field-group-title-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
40
46
|
}
|
|
41
47
|
|
|
48
|
+
/* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
|
|
49
|
+
20/25 in the primary label, 10pt above the rows. Its -0.45 tracking is the one the system font
|
|
50
|
+
applies itself at 20pt, so the title keeps normal tracking (system-font-tracking.test.ts). */
|
|
51
|
+
.FieldGroup[data-header-prominence="increased"] {
|
|
52
|
+
--field-group-title-color: var(--color-text);
|
|
53
|
+
--field-group-title-font-size: 20px;
|
|
54
|
+
--field-group-title-line-height: 25px;
|
|
55
|
+
--field-group-title-font-weight: 590;
|
|
56
|
+
--field-group-header-min-height: 45px;
|
|
57
|
+
--field-group-header-padding-bottom: 10px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* A text action at the end of the header (kit _Header Trailing Accessories, Type=Action 39:67340) is
|
|
61
|
+
tinted text at the list's text inset, on the title's last line as the kit sets it. Its size is the
|
|
62
|
+
native one, body 17/22 (5559 Clear; the kit draws 15/20), as a row's text action. Its target keeps
|
|
63
|
+
44px without making the header taller. */
|
|
64
|
+
.Header > button[data-variant="ghost"]:not([data-uniform]) {
|
|
65
|
+
--button-size: 44px;
|
|
66
|
+
--button-gutter: 0px;
|
|
67
|
+
--button-font-size: var(--field-row-label-font-size);
|
|
68
|
+
--button-line-height: var(--field-row-label-line-height);
|
|
69
|
+
--button-font-weight: var(--font-weight-normal);
|
|
70
|
+
--button-justify-content: flex-end;
|
|
71
|
+
--button-background-color: transparent;
|
|
72
|
+
--button-background-color-active: transparent;
|
|
73
|
+
--button-mobile-material-background: transparent;
|
|
74
|
+
--button-mobile-material-hover: transparent;
|
|
75
|
+
--button-mobile-material-active: transparent;
|
|
76
|
+
--button-mobile-material-shadow: none;
|
|
77
|
+
--button-mobile-material-backdrop-filter: none;
|
|
78
|
+
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
min-width: 44px;
|
|
81
|
+
margin-block: calc((var(--field-row-label-line-height) - 44px) / 2);
|
|
82
|
+
margin-inline-end: var(--field-group-title-padding-inline);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* A link in the footer is tinted text, as iOS writes "Learn more…" under a group (5483, 5489) */
|
|
86
|
+
.Footer a[href] {
|
|
87
|
+
color: var(--link-primary-text-color);
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.Header > button[data-variant="ghost"]:not([data-uniform]):is([data-color="primary"], [data-color="secondary"]) {
|
|
92
|
+
--button-text-color: var(--link-primary-text-color);
|
|
93
|
+
--button-text-color-hover: var(--link-primary-text-color);
|
|
94
|
+
}
|
|
95
|
+
|
|
42
96
|
.Body > [data-row] + [data-row],
|
|
43
97
|
.Body > [data-sortable] > [data-row] + [data-row] {
|
|
44
98
|
position: relative;
|
|
@@ -93,4 +147,9 @@
|
|
|
93
147
|
.Footer > p {
|
|
94
148
|
margin: 0;
|
|
95
149
|
}
|
|
150
|
+
|
|
151
|
+
/* Paragraphs stand apart; on a phone by one empty line, as in a Settings footer (5514) */
|
|
152
|
+
.Footer > p + p {
|
|
153
|
+
margin-top: var(--field-group-footer-paragraph-gap, calc(var(--spacing) * 2));
|
|
154
|
+
}
|
|
96
155
|
}
|
|
@@ -133,6 +133,27 @@
|
|
|
133
133
|
.ClearButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
134
134
|
color: var(--color-text);
|
|
135
135
|
}
|
|
136
|
+
}.ClearPhoneIcon {
|
|
137
|
+
display: none;
|
|
138
|
+
}@media (max-width: 767px) {
|
|
139
|
+
/* On a phone the clear button is the filled circle with a cross of iOS (xmark.circle.fill, a 17px circle in
|
|
140
|
+
the tertiary label: kit iOS 27 Text Fields 5433:15635), drawn with the PlexUI XCircleFilled icon, whose
|
|
141
|
+
circle is 20 of its 24px box. It is centred half the field height from the field's end, concentric with
|
|
142
|
+
the rounded end: 26px on the 52px field, where the kit centres it 26px from the edge of a row. */
|
|
143
|
+
.ClearIcon {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ClearPhoneIcon {
|
|
148
|
+
display: block;
|
|
149
|
+
width: calc(var(--floating-input-clear-glyph-size, 17px) * 1.2);
|
|
150
|
+
height: calc(var(--floating-input-clear-glyph-size, 17px) * 1.2);
|
|
151
|
+
color: var(--floating-input-clear-glyph-color, var(--mobile-label-tertiary, var(--color-text-tertiary)));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ClearButton:last-child {
|
|
155
|
+
margin-inline-end: calc(var(--floating-input-height) / 2 - var(--floating-input-clear-size, 1em) / 2 - var(--floating-input-gutter) - 1px);
|
|
156
|
+
}
|
|
136
157
|
}/* Password reveal toggle — circular ghost button hugging the right edge */.RevealButton {
|
|
137
158
|
display: flex;
|
|
138
159
|
align-items: center;
|
|
@@ -117,12 +117,28 @@
|
|
|
117
117
|
}/* Clear button — using Button component, sizing matches SelectControl 3xl */.Clear {
|
|
118
118
|
--button-size: 24px;
|
|
119
119
|
--button-icon-size: 16px;
|
|
120
|
+
/* Keeps its face on a phone, where a uniform 3xs button is otherwise the kit's 28px circle (touch.css). */
|
|
121
|
+
--button-uniform-size-3xs: var(--control-size-3xs);
|
|
122
|
+
--button-icon-size-3xs: var(--control-icon-size-xs);
|
|
120
123
|
|
|
121
124
|
position: relative;
|
|
122
125
|
opacity: 0.75;
|
|
123
126
|
}.FieldFootprint[data-open] .Clear,
|
|
124
127
|
.Clear:focus-visible {
|
|
125
128
|
opacity: 1;
|
|
129
|
+
}/* On a phone the clear button takes the 44px target of iOS, as SelectControl's and the
|
|
130
|
+
FloatingLabelInput's do: the target takes layout space, the face and glyph keep their size. */@media (max-width: 767px) {
|
|
131
|
+
.Clear {
|
|
132
|
+
min-width: 44px;
|
|
133
|
+
min-height: 44px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.Clear::before,
|
|
137
|
+
.Clear::after {
|
|
138
|
+
width: var(--button-size);
|
|
139
|
+
height: var(--button-size);
|
|
140
|
+
margin: auto;
|
|
141
|
+
}
|
|
126
142
|
}@media (hover: hover) and (pointer: fine) {
|
|
127
143
|
.FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) .Clear {
|
|
128
144
|
opacity: 1;
|
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
margin-left: calc(var(--indicator-stroke, 2px) * -1 / 2);
|
|
32
32
|
background-color: var(--indicator-color, currentcolor);
|
|
33
33
|
content: "";
|
|
34
|
-
}/* iOS
|
|
35
|
-
|
|
34
|
+
}/* The iOS 27 kit Spinner (Progress Indicators 5425:3431): Regular 20 with 2.7 x 6.7px spokes, as here, Small 14
|
|
35
|
+
with 2 x 4 and Large 35 with 5 x 13, all fully rounded. These decorative spokes are enabled only by the
|
|
36
|
+
optional touch stylesheet; desktop keeps the original ring. */.Spoke {
|
|
36
37
|
position: absolute;
|
|
37
38
|
inset: 0;
|
|
38
39
|
display: var(--indicator-spoke-display, none);
|
|
@@ -57,12 +58,18 @@
|
|
|
57
58
|
.Spoke:nth-child(5) { transform: rotate(180deg); opacity: 0.51; }
|
|
58
59
|
.Spoke:nth-child(6) { transform: rotate(225deg); opacity: 0.63; }
|
|
59
60
|
.Spoke:nth-child(7) { transform: rotate(270deg); opacity: 0.75; }
|
|
60
|
-
.Spoke:nth-child(8) { transform: rotate(315deg); opacity: 0.87; }/* Small
|
|
61
|
-
|
|
61
|
+
.Spoke:nth-child(8) { transform: rotate(315deg); opacity: 0.87; }/* Small up to 16px (kit Small 14) and Large from 28px (kit Large 35). A size container also covers CSS sizes
|
|
62
|
+
and indicators nested in buttons. */@container plex-loading-indicator (max-width: 16px) {
|
|
62
63
|
.Spoke::before {
|
|
63
|
-
width: var(--indicator-stroke, calc(
|
|
64
|
-
height: calc(
|
|
65
|
-
border-radius: calc(
|
|
64
|
+
width: var(--indicator-stroke, calc(2 / 14 * 100%));
|
|
65
|
+
height: calc(4 / 14 * 100%);
|
|
66
|
+
border-radius: calc(2 / 14 * 100cqw);
|
|
67
|
+
}
|
|
68
|
+
}@container plex-loading-indicator (min-width: 28px) {
|
|
69
|
+
.Spoke::before {
|
|
70
|
+
width: var(--indicator-stroke, calc(5 / 35 * 100%));
|
|
71
|
+
height: calc(13 / 35 * 100%);
|
|
72
|
+
border-radius: calc(5 / 35 * 100cqw);
|
|
66
73
|
}
|
|
67
74
|
}@keyframes rotate {
|
|
68
75
|
0% {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
@layer components {.Container {
|
|
2
|
+
/* A LoadingIndicator adornment is the field's accessory: the control's text size, or the touch
|
|
3
|
+
stylesheet's field size; an explicit size still wins */
|
|
4
|
+
--indicator-default-size: var(--control-indicator-size, 1em);
|
|
5
|
+
|
|
2
6
|
display: flex;
|
|
3
7
|
align-items: center;
|
|
4
8
|
gap: var(--input-gap);
|
|
@@ -444,6 +448,10 @@
|
|
|
444
448
|
position: relative;
|
|
445
449
|
width: var(--input-clear-icon-size);
|
|
446
450
|
height: var(--input-clear-icon-size);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.Clear > .ClearPhoneIcon {
|
|
454
|
+
display: none;
|
|
447
455
|
}/* Keep the visible circle compact while the touch target has its own flex slot. */.Clear::before {
|
|
448
456
|
content: "";
|
|
449
457
|
position: absolute;
|
|
@@ -550,6 +558,47 @@
|
|
|
550
558
|
pointer-events: none;
|
|
551
559
|
transition: background-color var(--transition-duration-basic) var(--transition-ease-basic);
|
|
552
560
|
}@media (max-width: 767px) {
|
|
561
|
+
/* The clear button of a phone text field is the filled circle with a cross of iOS (xmark.circle.fill, a 17px
|
|
562
|
+
circle in the tertiary label: kit iOS 27 Text Fields 5433:15635, IMG_5514), drawn with the PlexUI
|
|
563
|
+
XCircleFilled icon, whose circle is 20 of its 24px box. The circle alone shows the button, without the
|
|
564
|
+
soft face of the desktop; touch.css places it on its 44px target. */
|
|
565
|
+
.Clear::before,
|
|
566
|
+
.Clear > .ClearIcon {
|
|
567
|
+
display: none;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.Clear > .ClearPhoneIcon {
|
|
571
|
+
display: block;
|
|
572
|
+
width: calc(var(--input-clear-glyph-size, 17px) * 1.2);
|
|
573
|
+
height: calc(var(--input-clear-glyph-size, 17px) * 1.2);
|
|
574
|
+
color: var(--input-clear-glyph-color, var(--mobile-label-tertiary, var(--color-text-tertiary)));
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/* The circle is concentric with the field's rounded end, half the field's height from its end (22px on the
|
|
578
|
+
44px field). In a horizontal grouped row it is centred 26px from the row's edge, 10px inside the row's
|
|
579
|
+
16px inset, as in the kit. The margins move the 44px target; the circle keeps its size. Physical sides,
|
|
580
|
+
as the container's own end gutter (padding-right) and the button's desktop margin. */
|
|
581
|
+
.Container > .Clear:last-child {
|
|
582
|
+
margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter));
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.Container[data-pill] > .Clear:last-child {
|
|
586
|
+
margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* Every row is frameless on a phone (a value under its label or alone too), so the circle keeps the row's
|
|
590
|
+
place in each; its target stands around the value's line and does not grow the row. */
|
|
591
|
+
:where([data-row]) .Container > .Clear.Clear:last-child {
|
|
592
|
+
margin-right: calc(10px - var(--input-clear-target-size, var(--input-clear-size)) / 2);
|
|
593
|
+
margin-block: calc((var(--input-size) - var(--input-clear-target-size, var(--input-clear-size))) / 2);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/* In a grouped row the clear button shows only while the value is being edited, as
|
|
597
|
+
the text fields of iOS forms show theirs (UITextField clearButtonMode whileEditing). */
|
|
598
|
+
:where([data-row]) .Container:not(:focus-within) > .Clear {
|
|
599
|
+
display: none;
|
|
600
|
+
}
|
|
601
|
+
|
|
553
602
|
/* Reserve the target in flow; only the outer four-pixel breathing space
|
|
554
603
|
is reclaimed. The remainder comes out of the input's available width. */
|
|
555
604
|
.Container:where(:has(> .AdornmentButton)) {
|
|
@@ -617,6 +666,26 @@
|
|
|
617
666
|
inset-inline-start: var(--input-adornment-outer-delta);
|
|
618
667
|
inset-inline-end: auto;
|
|
619
668
|
}
|
|
669
|
+
|
|
670
|
+
/* In a grouped row (Field row) the row sets the input to its 22px line, which left the button a 14px face
|
|
671
|
+
and an 11px glyph. There it is the row's accessory, as the password eye of the Apps 2.4 row
|
|
672
|
+
(38679:310818) and the Form Examples sign-in: a 19px glyph centred on the 44px target, its ink at the
|
|
673
|
+
row's trailing inset, the glyph alone showing the state. */
|
|
674
|
+
:where([data-row]) .Container > .AdornmentButton:last-child {
|
|
675
|
+
--input-adornment-background: transparent;
|
|
676
|
+
|
|
677
|
+
padding-inline: 0;
|
|
678
|
+
margin-inline-end: calc((19px - var(--input-adornment-hit-size)) / 2);
|
|
679
|
+
/* The target stands around the value's line and does not set the row's height: a cell with only its
|
|
680
|
+
value (Field hideLabel) keeps the 52px of one line, as the native password cell does. */
|
|
681
|
+
margin-block: calc((var(--input-size) - var(--input-adornment-hit-size)) / 2);
|
|
682
|
+
justify-content: center;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
:where([data-row]) .Container > .AdornmentButton:last-child > svg {
|
|
686
|
+
width: 19px;
|
|
687
|
+
height: 19px;
|
|
688
|
+
}
|
|
620
689
|
}@keyframes native-autofill-in {
|
|
621
690
|
0% {
|
|
622
691
|
opacity: 1;
|
|
@@ -253,6 +253,10 @@
|
|
|
253
253
|
-webkit-user-select: none;
|
|
254
254
|
-moz-user-select: none;
|
|
255
255
|
user-select: none;
|
|
256
|
+
|
|
257
|
+
/* A LoadingIndicator here is the field's accessory: the control's text size, or the touch
|
|
258
|
+
stylesheet's field size; an explicit size still wins */
|
|
259
|
+
--indicator-default-size: var(--control-indicator-size, 1em);
|
|
256
260
|
}
|
|
257
261
|
|
|
258
262
|
.Addon > svg {
|