@plexui/styles 0.1.32 → 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 +30 -0
- package/dist/es/components/Alert/Alert.module.css +112 -1
- package/dist/es/components/Badge/Badge.module.css +41 -8
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +35 -1
- package/dist/es/components/Button/Button.module.css +178 -77
- package/dist/es/components/Button/NavigationButton.module.css +27 -0
- package/dist/es/components/Card/Card.module.css +27 -9
- package/dist/es/components/Checkbox/Checkbox.module.css +83 -90
- 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 +35 -5
- package/dist/es/components/DatePicker/Calendar.module.css +280 -3
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +223 -3
- package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
- package/dist/es/components/Dialog/Dialog.module.css +386 -86
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +89 -14
- package/dist/es/components/Field/Field.module.css +346 -19
- package/dist/es/components/FieldError/FieldError.module.css +13 -10
- package/dist/es/components/FieldGroup/FieldGroup.module.css +103 -4
- package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +46 -14
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +36 -14
- package/dist/es/components/Indicator/LoadingIndicator.module.css +48 -6
- package/dist/es/components/Input/Input.module.css +195 -25
- package/dist/es/components/InputGroup/InputGroup.module.css +5 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
- package/dist/es/components/Menu/Menu.module.css +425 -33
- package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
- package/dist/es/components/Page/Page.module.css +217 -20
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/Popover/Popover.module.css +10 -1
- package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
- package/dist/es/components/Select/Select.module.css +162 -13
- package/dist/es/components/SelectControl/SelectControl.module.css +118 -11
- package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +347 -72
- package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
- package/dist/es/components/Slider/Slider.module.css +96 -52
- package/dist/es/components/Sortable/Sortable.module.css +20 -7
- package/dist/es/components/Stepper/Stepper.module.css +98 -0
- package/dist/es/components/Switch/Switch.module.css +16 -7
- package/dist/es/components/TabBar/TabBar.module.css +233 -0
- package/dist/es/components/Table/Table.module.css +4 -2
- package/dist/es/components/Tabs/Tabs.module.css +186 -6
- package/dist/es/components/TagInput/TagInput.module.css +64 -19
- package/dist/es/components/TextLink/TextLink.module.css +4 -4
- package/dist/es/components/Textarea/Textarea.module.css +1 -1
- package/dist/es/components/Toast/Toast.module.css +120 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +579 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
- package/dist/es/styles/base.css +1 -1
- 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 +69 -0
- package/dist/es/styles/mobile-surfaces.css +46 -0
- package/dist/es/styles/touch.css +524 -63
- package/dist/es/styles/variables-components.css +286 -7
- package/package.json +1 -1
- package/postcss/mixins.mjs +1 -1
|
@@ -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);
|
|
@@ -47,7 +51,7 @@
|
|
|
47
51
|
/* NOTE: Don't add box-model size here, as the <input> defines all height sizing */
|
|
48
52
|
box-shadow: 0 0 0 1px var(--input-outline-border-color) inset;
|
|
49
53
|
}
|
|
50
|
-
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover {
|
|
54
|
+
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
|
|
51
55
|
box-shadow: 0 0 0 1px var(--input-outline-border-color-hover) inset;
|
|
52
56
|
}
|
|
53
57
|
}
|
|
@@ -304,6 +308,7 @@
|
|
|
304
308
|
margin-right: var(--input-adornment-offset, -2px);
|
|
305
309
|
}.Input {
|
|
306
310
|
display: block;
|
|
311
|
+
min-width: var(--input-control-min-width, auto);
|
|
307
312
|
width: 100%;
|
|
308
313
|
height: var(--input-size);
|
|
309
314
|
/* `padding` is intrinsic to `.Input` when no adornments are present, for a few reasons. Autofill extensions are one such reason. */
|
|
@@ -408,51 +413,73 @@
|
|
|
408
413
|
:where(.Container[data-has-end-adornment]) .Input {
|
|
409
414
|
padding-right: 0;
|
|
410
415
|
}.Clear {
|
|
416
|
+
--input-clear-background: var(--color-background-primary-soft-alpha);
|
|
417
|
+
position: relative;
|
|
411
418
|
display: flex;
|
|
412
419
|
align-items: center;
|
|
413
420
|
justify-content: center;
|
|
414
421
|
flex-shrink: 0;
|
|
415
|
-
width: var(--input-clear-size);
|
|
416
|
-
height: var(--input-clear-size);
|
|
422
|
+
width: var(--input-clear-target-size, var(--input-clear-size));
|
|
423
|
+
height: var(--input-clear-target-size, var(--input-clear-size));
|
|
417
424
|
padding: 0;
|
|
418
425
|
border: 0;
|
|
419
426
|
border-radius: var(--radius-full);
|
|
420
|
-
margin-right: var(--input-clear-offset);
|
|
421
|
-
background-color:
|
|
427
|
+
margin-right: var(--input-clear-target-offset, var(--input-clear-offset));
|
|
428
|
+
background-color: transparent;
|
|
422
429
|
color: var(--color-text-primary-soft);
|
|
423
430
|
cursor: pointer;
|
|
424
|
-
transition-duration: var(--transition-duration-basic);
|
|
425
|
-
transition-property: background-color;
|
|
426
|
-
transition-timing-function: var(--transition-ease-basic);
|
|
427
431
|
}
|
|
428
432
|
|
|
429
|
-
|
|
430
|
-
|
|
433
|
+
@media (hover: hover) and (pointer: fine) {
|
|
434
|
+
.Clear:hover:where(:not(:root[data-input="touch"] *)) {
|
|
435
|
+
--input-clear-background: var(--color-background-primary-soft-alpha-hover);
|
|
436
|
+
}
|
|
431
437
|
}
|
|
432
438
|
|
|
433
439
|
.Clear:active {
|
|
434
|
-
background
|
|
440
|
+
--input-clear-background: var(--color-background-primary-soft-alpha-active);
|
|
435
441
|
}
|
|
436
442
|
|
|
437
443
|
:where(.Container[data-pill]) .Clear {
|
|
438
|
-
margin-right: var(--input-clear-pill-offset);
|
|
444
|
+
margin-right: var(--input-clear-target-offset, var(--input-clear-pill-offset));
|
|
439
445
|
}
|
|
440
446
|
|
|
441
447
|
.Clear > svg {
|
|
448
|
+
position: relative;
|
|
442
449
|
width: var(--input-clear-icon-size);
|
|
443
450
|
height: var(--input-clear-icon-size);
|
|
444
|
-
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.Clear > .ClearPhoneIcon {
|
|
454
|
+
display: none;
|
|
455
|
+
}/* Keep the visible circle compact while the touch target has its own flex slot. */.Clear::before {
|
|
456
|
+
content: "";
|
|
457
|
+
position: absolute;
|
|
458
|
+
width: var(--input-clear-size);
|
|
459
|
+
height: var(--input-clear-size);
|
|
460
|
+
border-radius: inherit;
|
|
461
|
+
background-color: var(--input-clear-background);
|
|
462
|
+
pointer-events: none;
|
|
463
|
+
transition-duration: var(--transition-duration-basic);
|
|
464
|
+
transition-property: background-color;
|
|
465
|
+
transition-timing-function: var(--transition-ease-basic);
|
|
466
|
+
}/* AdornmentButton — public sibling of .Clear for in-input action buttons
|
|
445
467
|
(mic toggle, copy, send, etc.). Sized from the Input's own size token:
|
|
446
468
|
input height minus one spacing step each side leaves ~4px of breathing
|
|
447
469
|
room top + bottom, so a md (32px) input gets a 24px pill, an lg (36px)
|
|
448
470
|
gets 28px, etc. Radius is --radius-full so a pill input stays
|
|
449
471
|
concentric with the button. Icon fills half the button. */.AdornmentButton {
|
|
472
|
+
--input-adornment-face-size: calc(var(--input-size) - calc(var(--spacing) * 2));
|
|
473
|
+
--input-adornment-background: transparent;
|
|
474
|
+
|
|
475
|
+
position: relative;
|
|
476
|
+
isolation: isolate;
|
|
450
477
|
display: flex;
|
|
451
478
|
align-items: center;
|
|
452
479
|
justify-content: center;
|
|
453
480
|
flex-shrink: 0;
|
|
454
|
-
width:
|
|
455
|
-
height:
|
|
481
|
+
width: var(--input-adornment-face-size);
|
|
482
|
+
height: var(--input-adornment-face-size);
|
|
456
483
|
padding: 0;
|
|
457
484
|
border: 0;
|
|
458
485
|
border-radius: var(--radius-full);
|
|
@@ -469,38 +496,40 @@
|
|
|
469
496
|
transition-timing-function: var(--transition-ease-basic);
|
|
470
497
|
}
|
|
471
498
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
499
|
+
@media (hover: hover) and (pointer: fine) {
|
|
500
|
+
.AdornmentButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
501
|
+
--input-adornment-background: var(--color-background-secondary-soft-alpha);
|
|
502
|
+
color: var(--color-text);
|
|
503
|
+
}
|
|
475
504
|
}
|
|
476
505
|
|
|
477
506
|
.AdornmentButton[aria-pressed="true"] {
|
|
478
|
-
background
|
|
507
|
+
--input-adornment-background: var(--color-background-primary-soft);
|
|
479
508
|
color: var(--color-text);
|
|
480
509
|
}
|
|
481
510
|
|
|
482
511
|
.AdornmentButton[data-color="caution"][aria-pressed="true"] {
|
|
483
|
-
background
|
|
512
|
+
--input-adornment-background: var(--color-background-caution-soft);
|
|
484
513
|
color: var(--color-text-caution-soft);
|
|
485
514
|
}
|
|
486
515
|
|
|
487
516
|
.AdornmentButton[data-color="danger"][aria-pressed="true"] {
|
|
488
|
-
background
|
|
517
|
+
--input-adornment-background: var(--color-background-danger-soft);
|
|
489
518
|
color: var(--color-text-danger-soft);
|
|
490
519
|
}
|
|
491
520
|
|
|
492
521
|
.AdornmentButton[data-color="success"][aria-pressed="true"] {
|
|
493
|
-
background
|
|
522
|
+
--input-adornment-background: var(--color-background-success-soft);
|
|
494
523
|
color: var(--color-text-success-soft);
|
|
495
524
|
}
|
|
496
525
|
|
|
497
526
|
.AdornmentButton[data-color="info"][aria-pressed="true"] {
|
|
498
|
-
background
|
|
527
|
+
--input-adornment-background: var(--color-background-info-soft);
|
|
499
528
|
color: var(--color-text-info-soft);
|
|
500
529
|
}
|
|
501
530
|
|
|
502
531
|
.AdornmentButton[data-color="discovery"][aria-pressed="true"] {
|
|
503
|
-
background
|
|
532
|
+
--input-adornment-background: var(--color-background-discovery-soft);
|
|
504
533
|
color: var(--color-text-discovery-soft);
|
|
505
534
|
}
|
|
506
535
|
|
|
@@ -516,7 +545,148 @@
|
|
|
516
545
|
.AdornmentButton > svg {
|
|
517
546
|
width: calc(var(--input-size) / 2);
|
|
518
547
|
height: calc(var(--input-size) / 2);
|
|
519
|
-
}
|
|
548
|
+
}/* The painted face keeps its size when the action reserves a larger touch slot. */.AdornmentButton::before {
|
|
549
|
+
content: "";
|
|
550
|
+
position: absolute;
|
|
551
|
+
z-index: -1;
|
|
552
|
+
inset: 0;
|
|
553
|
+
width: var(--input-adornment-face-size);
|
|
554
|
+
height: var(--input-adornment-face-size);
|
|
555
|
+
margin: auto;
|
|
556
|
+
border-radius: inherit;
|
|
557
|
+
background-color: var(--input-adornment-background);
|
|
558
|
+
pointer-events: none;
|
|
559
|
+
transition: background-color var(--transition-duration-basic) var(--transition-ease-basic);
|
|
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
|
+
|
|
602
|
+
/* Reserve the target in flow; only the outer four-pixel breathing space
|
|
603
|
+
is reclaimed. The remainder comes out of the input's available width. */
|
|
604
|
+
.Container:where(:has(> .AdornmentButton)) {
|
|
605
|
+
--input-adornment-gutter: var(--input-gutter);
|
|
606
|
+
|
|
607
|
+
padding-inline: 0;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.Container:where(:has(> .AdornmentButton))[data-pill] {
|
|
611
|
+
--input-adornment-gutter: calc(var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.Container:where(:has(> .AdornmentButton))[data-has-start-adornment] {
|
|
615
|
+
padding-inline-start: var(--input-adornment-gutter);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.Container:where(:has(> .AdornmentButton))[data-has-end-adornment] {
|
|
619
|
+
padding-inline-end: var(--input-adornment-gutter);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.Container:where(:has(> .AdornmentButton)) > .Input {
|
|
623
|
+
padding-inline: var(--input-adornment-gutter);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.Container:where(:has(> .AdornmentButton))[data-has-start-adornment] > .Input {
|
|
627
|
+
padding-inline-start: 0;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.Container:where(:has(> .AdornmentButton))[data-has-end-adornment] > .Input {
|
|
631
|
+
padding-inline-end: 0;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.Container > .AdornmentButton {
|
|
635
|
+
--input-adornment-hit-size: max(44px, var(--input-adornment-face-size));
|
|
636
|
+
--input-adornment-outer-delta: min(4px, calc((var(--input-adornment-hit-size) - var(--input-adornment-face-size)) / 2));
|
|
637
|
+
--input-adornment-content-inset: calc(var(--input-adornment-outer-delta) + (var(--input-adornment-face-size) - var(--input-size) / 2) / 2);
|
|
638
|
+
|
|
639
|
+
box-sizing: border-box;
|
|
640
|
+
width: var(--input-adornment-hit-size);
|
|
641
|
+
height: var(--input-adornment-hit-size);
|
|
642
|
+
margin-inline: 0;
|
|
643
|
+
padding-inline-end: var(--input-adornment-content-inset);
|
|
644
|
+
justify-content: flex-end;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.Container > .AdornmentButton::before {
|
|
648
|
+
inset-inline-start: auto;
|
|
649
|
+
inset-inline-end: var(--input-adornment-outer-delta);
|
|
650
|
+
margin-inline: 0;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.Container > .AdornmentButton:last-child {
|
|
654
|
+
margin-inline-end: calc(calc(var(--spacing) * 1) - var(--input-adornment-gutter) - var(--input-adornment-outer-delta));
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.Container > .AdornmentButton:first-child {
|
|
658
|
+
margin-inline-start: calc(var(--input-adornment-offset, -2px) - var(--input-adornment-outer-delta));
|
|
659
|
+
margin-inline-end: max(calc(var(--input-gap) * -1), calc(calc(var(--spacing) * 1) - var(--input-adornment-gutter)));
|
|
660
|
+
padding-inline-start: var(--input-adornment-content-inset);
|
|
661
|
+
padding-inline-end: 0;
|
|
662
|
+
justify-content: flex-start;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.Container > .AdornmentButton:first-child::before {
|
|
666
|
+
inset-inline-start: var(--input-adornment-outer-delta);
|
|
667
|
+
inset-inline-end: auto;
|
|
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
|
+
}
|
|
689
|
+
}@keyframes native-autofill-in {
|
|
520
690
|
0% {
|
|
521
691
|
opacity: 1;
|
|
522
692
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
/* Also while focused: the focus rule above is more specific than [data-invalid] */
|
|
37
37
|
}
|
|
38
|
-
@media (hover: hover) and (pointer: fine) {.InputGroup:where([data-variant="outline"]):not([data-disabled]):hover {
|
|
38
|
+
@media (hover: hover) and (pointer: fine) {.InputGroup:where([data-variant="outline"]):not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
|
|
39
39
|
box-shadow: 0 0 0 1px var(--input-outline-border-color-hover) inset;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -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 {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
.Container:where([data-variant="outline"]) {
|
|
18
18
|
box-shadow: 0 0 0 1px var(--input-outline-border-color) inset;
|
|
19
19
|
}
|
|
20
|
-
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover {
|
|
20
|
+
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
|
|
21
21
|
box-shadow: 0 0 0 1px var(--input-outline-border-color-hover) inset;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -69,7 +69,9 @@ border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
|
|
69
69
|
background-color: rgba(0, 0, 0, 0.1);
|
|
70
70
|
}:where([data-theme="dark"]) .ToolbarSeparator {
|
|
71
71
|
background-color: rgba(255, 255, 255, 0.1);
|
|
72
|
-
}.ToolbarButton {
|
|
72
|
+
}.ToolbarButton.ToolbarButton {
|
|
73
|
+
--button-size: 24px;
|
|
74
|
+
--button-uniform-size: 24px;
|
|
73
75
|
display: flex;
|
|
74
76
|
align-items: center;
|
|
75
77
|
justify-content: center;
|
|
@@ -80,7 +82,6 @@ background-color: rgba(255, 255, 255, 0.1);
|
|
|
80
82
|
border: 0;
|
|
81
83
|
border-radius: var(--control-radius-sm);
|
|
82
84
|
background: none;
|
|
83
|
-
color: var(--color-text-secondary);
|
|
84
85
|
cursor: pointer;
|
|
85
86
|
font-size: 16px;
|
|
86
87
|
transition-duration: var(--transition-duration-basic);
|
|
@@ -88,18 +89,22 @@ background-color: rgba(255, 255, 255, 0.1);
|
|
|
88
89
|
transition-timing-function: var(--transition-ease-basic);
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
.ToolbarButton.ToolbarButton:where(:not([data-variant])) {
|
|
93
|
+
color: var(--color-text-secondary);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (hover: hover) and (pointer: fine) {.ToolbarButton.ToolbarButton:where(:not([data-variant])):hover:where(:not(:root[data-input="touch"] *)) {
|
|
97
|
+
background-color: var(--color-background-primary-ghost-hover);
|
|
98
|
+
color: var(--color-text);
|
|
94
99
|
}
|
|
95
100
|
}
|
|
96
101
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
.ToolbarButton.ToolbarButton:where(:not([data-variant])):where([data-active="true"]) {
|
|
103
|
+
background-color: var(--color-background-primary-ghost-active);
|
|
104
|
+
color: var(--color-text);
|
|
105
|
+
}
|
|
101
106
|
|
|
102
|
-
.ToolbarButton:disabled {
|
|
107
|
+
.ToolbarButton.ToolbarButton:disabled {
|
|
103
108
|
cursor: not-allowed;
|
|
104
109
|
opacity: 0.5;
|
|
105
110
|
}.ToolbarEnd {
|
|
@@ -151,147 +156,22 @@ background-color: rgba(255, 255, 255, 0.1);
|
|
|
151
156
|
|
|
152
157
|
.EditorContent li + li {
|
|
153
158
|
margin-top: 2px;
|
|
154
|
-
}.
|
|
155
|
-
position: fixed;
|
|
156
|
-
inset: 0;
|
|
157
|
-
z-index: 9999;
|
|
158
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
159
|
-
}.LinkDialogContent {
|
|
160
|
-
position: fixed;
|
|
161
|
-
top: 50%;
|
|
162
|
-
left: 50%;
|
|
163
|
-
z-index: 10000;
|
|
164
|
-
display: flex;
|
|
165
|
-
flex-direction: column;
|
|
166
|
-
width: 450px;
|
|
167
|
-
max-width: calc(100vw - 32px);
|
|
168
|
-
transform: translate(-50%, -50%);
|
|
169
|
-
border-radius: 12px;
|
|
170
|
-
background-color: var(--color-surface, #fff);
|
|
171
|
-
box-shadow:
|
|
172
|
-
0 0 0 0.5px rgba(0, 0, 0, 0.08),
|
|
173
|
-
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
174
|
-
0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
175
|
-
}.LinkDialogContent, :where([data-theme="light"]) .LinkDialogContent {
|
|
176
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
177
|
-
}:where([data-theme="dark"]) .LinkDialogContent {
|
|
178
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
179
|
-
}.LinkDialogBody {
|
|
180
|
-
display: flex;
|
|
181
|
-
flex-direction: column;
|
|
182
|
-
gap: 20px;
|
|
183
|
-
padding: 20px;
|
|
184
|
-
}.LinkDialogTitle {
|
|
185
|
-
margin: 0;
|
|
186
|
-
font-size: 18px;
|
|
187
|
-
font-weight: var(--font-weight-semibold);
|
|
188
|
-
line-height: 1.6;
|
|
189
|
-
color: var(--color-text);
|
|
190
|
-
}.LinkDialogFields {
|
|
159
|
+
}/* The shared Dialog owns the panel, controls, and mobile Sheet presentation. */.LinkDialogFields {
|
|
191
160
|
display: flex;
|
|
192
161
|
flex-direction: column;
|
|
193
162
|
gap: 16px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}.LinkDialogLabel {
|
|
199
|
-
font-size: 14px;
|
|
200
|
-
font-weight: var(--font-weight-semibold);
|
|
201
|
-
line-height: 20px;
|
|
202
|
-
color: var(--color-text);
|
|
203
|
-
}.LinkDialogInput {
|
|
204
|
-
display: flex;
|
|
205
|
-
align-items: center;
|
|
206
|
-
height: 32px;
|
|
207
|
-
padding: 0 12px;
|
|
208
|
-
border: 0;
|
|
209
|
-
border-radius: var(--control-radius-md);
|
|
210
|
-
background: none;
|
|
211
|
-
box-shadow: 0 0 0 1px var(--input-outline-border-color) inset;
|
|
212
|
-
color: var(--color-text);
|
|
213
|
-
font-size: 14px;
|
|
214
|
-
font-weight: var(--font-weight-normal);
|
|
215
|
-
line-height: 20px;
|
|
216
|
-
transition-duration: var(--transition-duration-basic);
|
|
217
|
-
transition-property: box-shadow;
|
|
218
|
-
transition-timing-function: var(--transition-ease-basic);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.LinkDialogInput:focus {
|
|
222
|
-
outline: 0;
|
|
223
|
-
box-shadow: 0 0 0 1px var(--input-outline-border-color-focus) inset;
|
|
163
|
+
}@media (max-width: 767px) {
|
|
164
|
+
.ToolbarGroup {
|
|
165
|
+
overflow-x: auto;
|
|
166
|
+
overscroll-behavior-x: contain;
|
|
224
167
|
}
|
|
225
168
|
|
|
226
|
-
.
|
|
227
|
-
|
|
169
|
+
.ToolbarButton.ToolbarButton {
|
|
170
|
+
--button-size: 44px;
|
|
171
|
+
--button-uniform-size: 44px;
|
|
172
|
+
width: 44px;
|
|
173
|
+
height: 44px;
|
|
174
|
+
flex-shrink: 0;
|
|
228
175
|
}
|
|
229
|
-
|
|
230
|
-
.LinkDialogInput::placeholder {
|
|
231
|
-
color: var(--input-placeholder-text-color);
|
|
232
|
-
}.LinkDialogFooter {
|
|
233
|
-
display: flex;
|
|
234
|
-
justify-content: space-between;
|
|
235
|
-
align-items: center;
|
|
236
|
-
padding: 16px 20px;
|
|
237
|
-
}.LinkDialogFooterTrailing {
|
|
238
|
-
display: flex;
|
|
239
|
-
align-items: center;
|
|
240
|
-
gap: 8px;
|
|
241
|
-
margin-left: auto;
|
|
242
|
-
}.LinkDialogButtonRemove {
|
|
243
|
-
display: flex;
|
|
244
|
-
align-items: center;
|
|
245
|
-
justify-content: center;
|
|
246
|
-
height: 32px;
|
|
247
|
-
padding: 0 12px;
|
|
248
|
-
border: 0;
|
|
249
|
-
border-radius: var(--control-radius-md);
|
|
250
|
-
background-color: var(--color-background-danger-solid, #dc2626);
|
|
251
|
-
color: #fff;
|
|
252
|
-
cursor: pointer;
|
|
253
|
-
font-size: 14px;
|
|
254
|
-
font-weight: var(--font-weight-medium);
|
|
255
|
-
line-height: 20px;
|
|
256
|
-
transition-duration: var(--transition-duration-basic);
|
|
257
|
-
transition-property: background-color;
|
|
258
|
-
transition-timing-function: var(--transition-ease-basic);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
@media (hover: hover) and (pointer: fine) {.LinkDialogButtonRemove:hover {
|
|
262
|
-
background-color: var(--color-background-danger-solid-hover, #b91c1c);
|
|
263
|
-
}
|
|
264
|
-
}.LinkDialogButtonCancel,
|
|
265
|
-
.LinkDialogButtonSave {
|
|
266
|
-
display: flex;
|
|
267
|
-
align-items: center;
|
|
268
|
-
justify-content: center;
|
|
269
|
-
height: 32px;
|
|
270
|
-
padding: 0 12px;
|
|
271
|
-
border: 0;
|
|
272
|
-
border-radius: var(--control-radius-md);
|
|
273
|
-
cursor: pointer;
|
|
274
|
-
font-size: 14px;
|
|
275
|
-
font-weight: var(--font-weight-medium);
|
|
276
|
-
line-height: 20px;
|
|
277
|
-
transition-duration: var(--transition-duration-basic);
|
|
278
|
-
transition-property: background-color;
|
|
279
|
-
transition-timing-function: var(--transition-ease-basic);
|
|
280
|
-
}.LinkDialogButtonCancel {
|
|
281
|
-
background-color: var(--color-background-primary-soft-alpha, rgba(0, 0, 0, 0.08));
|
|
282
|
-
color: var(--color-text);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
@media (hover: hover) and (pointer: fine) {.LinkDialogButtonCancel:hover {
|
|
286
|
-
background-color: var(--color-background-primary-soft-alpha-hover, rgba(0, 0, 0, 0.12));
|
|
287
|
-
}
|
|
288
|
-
}.LinkDialogButtonSave {
|
|
289
|
-
background-color: var(--color-background-primary-solid, #181818);
|
|
290
|
-
color: var(--color-text-on-primary, #fff);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
@media (hover: hover) and (pointer: fine) {.LinkDialogButtonSave:hover {
|
|
294
|
-
background-color: var(--color-background-primary-solid-hover, #333);
|
|
295
|
-
}
|
|
296
176
|
}
|
|
297
177
|
}
|