@threadlabs/looma 0.43.1 → 0.44.0
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/components/ui-callout/ui-callout.html +4 -4
- package/components/ui-dialog/ui-dialog.html +0 -4
- package/components/ui-editor-footnote-editor/ui-editor-footnote-editor.html +4 -50
- package/components/ui-editor-footnote-editor/ui-editor-footnote-editor.js +10 -31
- package/components/ui-site-header/ui-site-header.html +1 -1
- package/dist/index.js +1 -1
- package/docs/README.md +19 -3
- package/docs/card.html +1 -1
- package/docs/catalog-view.js +11 -5
- package/docs/catalog-view.mjs +4 -3
- package/docs/catalog.json +76 -112
- package/docs/catalog.mjs +1 -1
- package/docs/customizer-render.mjs +9 -8
- package/docs/customizer.js +8 -8
- package/docs/documentation.css +2 -2
- package/docs/examples/ui-editor-footnote-editor/examples/01-note.behavior.js +9 -0
- package/docs/fonts.mjs +1 -1
- package/docs/index.mjs +1 -1
- package/docs/render.mjs +1 -1
- package/docs/site.mjs +14 -5
- package/docs/theme.mjs +96 -16
- package/editor/chunks/extensions.js +10 -0
- package/editor/extensions/footnote.d.ts +1 -0
- package/editor/footnote-editing.d.ts +16 -27
- package/package.json +2 -2
- package/styles/ui-callout.css +4 -4
- package/styles/ui-dialog.css +0 -8
- package/styles/ui-site-header.css +1 -1
- package/theme-dark.css +9 -9
- package/theme-high-contrast.css +4 -0
- package/theme-light.css +6 -6
- package/tokens.css +20 -18
- package/vanilla/UiEditorFootnoteEditor.d.ts +0 -5
- package/vanilla/UiEditorFootnoteEditor.js +20 -68
- package/vue/UiCallout.vue +4 -4
- package/vue/UiDialog.vue +0 -7
- package/vue/UiEditorFootnoteEditor.d.ts +11 -29
- package/vue/UiEditorFootnoteEditor.vue +21 -173
- package/vue/UiSiteHeader.vue +1 -1
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiEditorFootnoteEditor.js +34 -226
- package/vue/chunks/UiEditorImageToolbar.js +1 -1
- package/vue/chunks/UiEditorLinkForm.js +1 -1
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/chunks/compact.js +565 -0
- package/vue/components.css +321 -328
- package/vue/editor/LoomaEditor.d.ts +2 -2
- package/vue/editor/compact/index.js +1 -562
- package/vue/editor/index.js +173 -80
- package/vue/index.js +2 -2
package/vue/components.css
CHANGED
|
@@ -1588,10 +1588,10 @@ html[data-ui-input-modality="touch"]
|
|
|
1588
1588
|
--_callout-icon: var(--ui-text-secondary);
|
|
1589
1589
|
}
|
|
1590
1590
|
:scope[data-ui-callout-state~="tone=tip"]:where([data-hn-ui-callout]) {
|
|
1591
|
-
--_callout-border: var(--ui-
|
|
1592
|
-
--_callout-surface: var(--ui-
|
|
1593
|
-
--_callout-tone-text: var(--ui-
|
|
1594
|
-
--_callout-icon: var(--ui-
|
|
1591
|
+
--_callout-border: var(--ui-info-soft-border);
|
|
1592
|
+
--_callout-surface: var(--ui-info-soft);
|
|
1593
|
+
--_callout-tone-text: var(--ui-info-subtle-text);
|
|
1594
|
+
--_callout-icon: var(--ui-info-subtle-text);
|
|
1595
1595
|
}
|
|
1596
1596
|
:scope[data-ui-callout-state~="tone=important"]:where([data-hn-ui-callout]) {
|
|
1597
1597
|
--_callout-border: var(--ui-accent-soft-border);
|
|
@@ -4329,13 +4329,12 @@ dd:where([data-hn-ui-description-item]) {
|
|
|
4329
4329
|
/* Alerts have no close target to add height above the title. */
|
|
4330
4330
|
|
|
4331
4331
|
/* :host-qualified so page heading rules that reach in cannot outrank the dialog chrome. */
|
|
4332
|
-
@keyframes ui-dialog-enter-
|
|
4332
|
+
@keyframes ui-dialog-enter-43af5837 {
|
|
4333
4333
|
from {
|
|
4334
4334
|
opacity: 0;
|
|
4335
|
-
transform: scale(0.96);
|
|
4336
4335
|
}
|
|
4337
4336
|
}
|
|
4338
|
-
@keyframes ui-dialog-backdrop-enter-
|
|
4337
|
+
@keyframes ui-dialog-backdrop-enter-43af5837 {
|
|
4339
4338
|
from {
|
|
4340
4339
|
background-color: transparent;
|
|
4341
4340
|
}
|
|
@@ -4370,10 +4369,8 @@ from {
|
|
|
4370
4369
|
visibility: hidden;
|
|
4371
4370
|
pointer-events: none;
|
|
4372
4371
|
opacity: 0;
|
|
4373
|
-
transform: scale(0.96);
|
|
4374
4372
|
transition:
|
|
4375
4373
|
opacity var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease),
|
|
4376
|
-
transform var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease),
|
|
4377
4374
|
visibility var(--ui-dialog-duration, var(--ui-motion-base)),
|
|
4378
4375
|
display var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease) allow-discrete,
|
|
4379
4376
|
overlay var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease) allow-discrete;
|
|
@@ -4457,8 +4454,7 @@ from {
|
|
|
4457
4454
|
visibility: visible;
|
|
4458
4455
|
pointer-events: auto;
|
|
4459
4456
|
opacity: 1;
|
|
4460
|
-
|
|
4461
|
-
animation: ui-dialog-enter-568f2d22 var(--ui-dialog-duration, var(--ui-motion-base))
|
|
4457
|
+
animation: ui-dialog-enter-43af5837 var(--ui-dialog-duration, var(--ui-motion-base))
|
|
4462
4458
|
var(--ui-motion-ease);
|
|
4463
4459
|
}
|
|
4464
4460
|
:scope[data-ui-dialog-state~="size=sm"]:where([data-hn-ui-dialog]) {
|
|
@@ -4538,7 +4534,7 @@ footer:empty:where([data-hn-ui-dialog]) {
|
|
|
4538
4534
|
}
|
|
4539
4535
|
:scope[open]:modal:where([data-hn-ui-dialog])::backdrop {
|
|
4540
4536
|
background-color: var(--ui-overlay-backdrop);
|
|
4541
|
-
animation: ui-dialog-backdrop-enter-
|
|
4537
|
+
animation: ui-dialog-backdrop-enter-43af5837 var(--_ui-dialog-duration, var(--ui-motion-base))
|
|
4542
4538
|
var(--ui-motion-ease);
|
|
4543
4539
|
}
|
|
4544
4540
|
:scope[open][data-ui-backdrop-hidden]:where([data-hn-ui-dialog])::backdrop {
|
|
@@ -4577,10 +4573,8 @@ footer:empty:where([data-hn-ui-dialog]) {
|
|
|
4577
4573
|
visibility: hidden;
|
|
4578
4574
|
pointer-events: none;
|
|
4579
4575
|
opacity: 0;
|
|
4580
|
-
transform: scale(0.96);
|
|
4581
4576
|
transition:
|
|
4582
4577
|
opacity var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease),
|
|
4583
|
-
transform var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease),
|
|
4584
4578
|
visibility var(--ui-dialog-duration, var(--ui-motion-base)),
|
|
4585
4579
|
display var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease) allow-discrete,
|
|
4586
4580
|
overlay var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease) allow-discrete;
|
|
@@ -4664,8 +4658,7 @@ footer:empty:where([data-hn-ui-dialog]) {
|
|
|
4664
4658
|
visibility: visible;
|
|
4665
4659
|
pointer-events: auto;
|
|
4666
4660
|
opacity: 1;
|
|
4667
|
-
|
|
4668
|
-
animation: ui-dialog-enter-568f2d22 var(--ui-dialog-duration, var(--ui-motion-base))
|
|
4661
|
+
animation: ui-dialog-enter-43af5837 var(--ui-dialog-duration, var(--ui-motion-base))
|
|
4669
4662
|
var(--ui-motion-ease);
|
|
4670
4663
|
}
|
|
4671
4664
|
:where(.ui-dialog)[data-ui-dialog-state~="size=sm"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-dialog"]))):where([data-hn-ui-dialog]) {
|
|
@@ -4748,7 +4741,7 @@ footer:empty:where(:scope, :scope *):where([data-hn-ui-dialog]) {
|
|
|
4748
4741
|
}
|
|
4749
4742
|
:where(.ui-dialog)[open]:modal:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-dialog"]))):where([data-hn-ui-dialog])::backdrop {
|
|
4750
4743
|
background-color: var(--ui-overlay-backdrop);
|
|
4751
|
-
animation: ui-dialog-backdrop-enter-
|
|
4744
|
+
animation: ui-dialog-backdrop-enter-43af5837 var(--_ui-dialog-duration, var(--ui-motion-base))
|
|
4752
4745
|
var(--ui-motion-ease);
|
|
4753
4746
|
}
|
|
4754
4747
|
:where(.ui-dialog)[open][data-ui-backdrop-hidden]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-dialog"]))):where([data-hn-ui-dialog])::backdrop {
|
|
@@ -5565,280 +5558,6 @@ legend.sr-only:where([data-hn-ui-radio-group]) {
|
|
|
5565
5558
|
}
|
|
5566
5559
|
}
|
|
5567
5560
|
|
|
5568
|
-
/* Each named region styles whatever fills it, however it was slotted (slot="…" in HTML, #label
|
|
5569
|
-
in Vue), and generates no box of its own, so an empty region adds no gap. */
|
|
5570
|
-
|
|
5571
|
-
/* A label action, such as a small help button, sits after the label text in a box one line
|
|
5572
|
-
tall, centred on the first line and overflowing it. A button taller than a line of label
|
|
5573
|
-
text then never makes this field's label row taller than its neighbours' in a grid row. */
|
|
5574
|
-
|
|
5575
|
-
/* An error reads in the danger colour, the one the invalid control's border takes. */
|
|
5576
|
-
|
|
5577
|
-
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
5578
|
-
@scope (.ui-form-field) to ([data-hn]) {
|
|
5579
|
-
:scope:where([data-hn-ui-form-field]) {
|
|
5580
|
-
/* Resolve shared part values at the component root. */
|
|
5581
|
-
--_ui-form-field-danger: var(--ui-form-field-danger);
|
|
5582
|
-
--_ui-form-field-help-min-block-size: var(--ui-form-field-help-min-block-size);
|
|
5583
|
-
--_ui-form-field-label-text: var(--ui-form-field-label-text);
|
|
5584
|
-
--_ui-form-field-label-font-size: var(--ui-form-field-label-font-size);
|
|
5585
|
-
--_ui-form-field-help-text: var(--ui-form-field-help-text);
|
|
5586
|
-
--_ui-form-field-help-font-size: var(--ui-form-field-help-font-size);
|
|
5587
|
-
|
|
5588
|
-
display: grid !important;
|
|
5589
|
-
gap: var(--ui-space-2) !important;
|
|
5590
|
-
min-inline-size: var(--ui-form-field-min-inline-size, 0);
|
|
5591
|
-
align-content: start !important;
|
|
5592
|
-
color: var(--ui-text-primary);
|
|
5593
|
-
}
|
|
5594
|
-
.label:where([data-hn-ui-form-field]),.help:where([data-hn-ui-form-field]),.error:where([data-hn-ui-form-field]) {
|
|
5595
|
-
display: contents !important;
|
|
5596
|
-
}
|
|
5597
|
-
.label:where([data-hn-ui-form-field]) {
|
|
5598
|
-
color: var(--_ui-form-field-label-text, var(--ui-text-secondary));
|
|
5599
|
-
font-size: var(
|
|
5600
|
-
--_ui-form-field-label-font-size,
|
|
5601
|
-
var(--ui-field-label-font-size, var(--ui-font-size-md))
|
|
5602
|
-
);
|
|
5603
|
-
}
|
|
5604
|
-
.label:has(> .label-action > *):where([data-hn-ui-form-field]) {
|
|
5605
|
-
display: flex !important;
|
|
5606
|
-
align-items: start !important;
|
|
5607
|
-
gap: var(--ui-space-1) !important;
|
|
5608
|
-
}
|
|
5609
|
-
.label-action:where([data-hn-ui-form-field]) {
|
|
5610
|
-
display: flex !important;
|
|
5611
|
-
align-items: unsafe center !important;
|
|
5612
|
-
block-size: 1lh;
|
|
5613
|
-
}
|
|
5614
|
-
.label-action:not(:has(> *)):where([data-hn-ui-form-field]) {
|
|
5615
|
-
display: none !important;
|
|
5616
|
-
}
|
|
5617
|
-
.help:where([data-hn-ui-form-field]) {
|
|
5618
|
-
color: var(--_ui-form-field-help-text, var(--ui-text-muted));
|
|
5619
|
-
font-size: var(--_ui-form-field-help-font-size, var(--ui-font-size-sm));
|
|
5620
|
-
line-height: var(--ui-line-height-md);
|
|
5621
|
-
}
|
|
5622
|
-
.help > :where(:not([data-hn-ui-form-field])):is(*) {
|
|
5623
|
-
min-block-size: var(--_ui-form-field-help-min-block-size, 0);
|
|
5624
|
-
}
|
|
5625
|
-
.error:where([data-hn-ui-form-field]) {
|
|
5626
|
-
display: none !important;
|
|
5627
|
-
}
|
|
5628
|
-
:scope[data-ui-form-field-state~="invalid"] .error:where([data-hn-ui-form-field]) {
|
|
5629
|
-
display: contents !important;
|
|
5630
|
-
}
|
|
5631
|
-
.error:where([data-hn-ui-form-field]),:where(:not([data-hn-ui-form-field])):is([role="alert"]) {
|
|
5632
|
-
color: var(--_ui-form-field-danger, var(--ui-field-danger, var(--ui-danger)));
|
|
5633
|
-
font-size: var(--ui-font-size-sm);
|
|
5634
|
-
}
|
|
5635
|
-
:scope[hidden]:where([data-hn-ui-form-field]) {
|
|
5636
|
-
display: none !important;
|
|
5637
|
-
}
|
|
5638
|
-
}
|
|
5639
|
-
|
|
5640
|
-
/* An input with fixed text before or after it, such as a domain after a site's name
|
|
5641
|
-
("acme" + ".example.com") or slashes around a path. The group draws the field's border and
|
|
5642
|
-
focus ring around the input and its affixes together; the input inside drops its own through
|
|
5643
|
-
its custom properties, so it is still the one ui-input, with its form behaviour intact. The
|
|
5644
|
-
affixes are plain text beside the input, so name the input with a label that says what the
|
|
5645
|
-
whole value is. The action slot takes one button at the end, inside the border, for the one
|
|
5646
|
-
thing the field is for ("Continue" after a site's address), so it reads as the field's action
|
|
5647
|
-
and not the form's. */
|
|
5648
|
-
|
|
5649
|
-
/* The frame takes its input's size, so a small group lines up with small buttons and fields. */
|
|
5650
|
-
|
|
5651
|
-
/* The ring shows when the field's input would show its own: when it is focus-visible, which a
|
|
5652
|
-
text input is for a pointer as well as a keyboard. A focused action button draws its own. */
|
|
5653
|
-
|
|
5654
|
-
/* Forced colors drop box shadows, so the focus ring becomes an outline. */
|
|
5655
|
-
|
|
5656
|
-
/* Fixed text is part of the value, but should not look editable. */
|
|
5657
|
-
|
|
5658
|
-
/* Centred rather than padded above and below: the group is exactly a lone Input's height, so a
|
|
5659
|
-
small button sits inside it with the difference split evenly, and the field keeps its height. */
|
|
5660
|
-
|
|
5661
|
-
/* Multiline text owns the first row; its action remains inside the same frame below it. */
|
|
5662
|
-
|
|
5663
|
-
/* The same textarea keeps its full resizeable box. Its text reserves the action's live width,
|
|
5664
|
-
so a translated label or pending indicator cannot cover what the person types. */
|
|
5665
|
-
|
|
5666
|
-
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
5667
|
-
@scope (.ui-input-group) to ([data-hn]) {
|
|
5668
|
-
:scope:where([data-hn-ui-input-group]) {
|
|
5669
|
-
/* The group's own border and height stand for the input's, so the group is a lone Input's height.
|
|
5670
|
-
These are defaults for the input; public hooks still win. */
|
|
5671
|
-
--_ui-default-input-border-width: 0;
|
|
5672
|
-
--_ui-default-input-min-block-size: 0;
|
|
5673
|
-
--_ui-default-input-frame-width: calc(2 * var(--ui-border-width));
|
|
5674
|
-
--_ui-default-input-border: transparent;
|
|
5675
|
-
--_ui-default-input-border-hover: transparent;
|
|
5676
|
-
--_ui-default-input-focus-border: transparent;
|
|
5677
|
-
--_ui-default-input-invalid-border: transparent;
|
|
5678
|
-
--_ui-default-input-invalid-focus-shadow: none;
|
|
5679
|
-
--_ui-default-input-shadow: none;
|
|
5680
|
-
--_ui-default-input-focus-shadow: none;
|
|
5681
|
-
--_ui-default-input-focus-outline: none;
|
|
5682
|
-
--_ui-default-input-radius: 0;
|
|
5683
|
-
--_ui-default-input-surface: transparent;
|
|
5684
|
-
--_ui-default-input-highlight: none;
|
|
5685
|
-
--_ui-default-textarea-border-width: 0;
|
|
5686
|
-
--_ui-default-textarea-border: transparent;
|
|
5687
|
-
--_ui-default-textarea-border-hover: transparent;
|
|
5688
|
-
--_ui-default-textarea-focus-border: transparent;
|
|
5689
|
-
--_ui-default-textarea-invalid-border: transparent;
|
|
5690
|
-
--_ui-default-textarea-invalid-focus-shadow: none;
|
|
5691
|
-
--_ui-default-textarea-shadow: none;
|
|
5692
|
-
--_ui-default-textarea-focus-shadow: none;
|
|
5693
|
-
--_ui-default-textarea-focus-outline: none;
|
|
5694
|
-
--_ui-default-textarea-radius: 0;
|
|
5695
|
-
--_ui-default-textarea-surface: transparent;
|
|
5696
|
-
--_ui-default-textarea-highlight: none;
|
|
5697
|
-
|
|
5698
|
-
display: flex !important;
|
|
5699
|
-
align-items: stretch !important;
|
|
5700
|
-
box-sizing: border-box !important;
|
|
5701
|
-
inline-size: 100%;
|
|
5702
|
-
min-inline-size: 0;
|
|
5703
|
-
min-block-size: var(--ui-control-size-md);
|
|
5704
|
-
/* The frame reads the shared control tokens with a lone Input's fallbacks, so the two match. */
|
|
5705
|
-
border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-strong));
|
|
5706
|
-
border-radius: var(--ui-input-group-radius, var(--ui-field-radius, var(--ui-radius-md)));
|
|
5707
|
-
background-color: var(--ui-control-surface, var(--ui-surface-elevated));
|
|
5708
|
-
background-image: var(--ui-surface-highlight, none);
|
|
5709
|
-
box-shadow: var(--ui-control-inset);
|
|
5710
|
-
overflow: hidden;
|
|
5711
|
-
/* A press anywhere in the frame focuses the input. */
|
|
5712
|
-
cursor: text;
|
|
5713
|
-
transition:
|
|
5714
|
-
border-color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
5715
|
-
box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
|
|
5716
|
-
}
|
|
5717
|
-
:scope[data-ui-input-group-state~="variant=subtle"]:where([data-hn-ui-input-group]) {
|
|
5718
|
-
border-color: var(--ui-border);
|
|
5719
|
-
background: var(--ui-surface-muted);
|
|
5720
|
-
box-shadow: none;
|
|
5721
|
-
}
|
|
5722
|
-
:scope:has(.field [data-ui-input-state~="size=sm"]):where([data-hn-ui-input-group]) {
|
|
5723
|
-
min-block-size: var(--ui-control-size-sm);
|
|
5724
|
-
}
|
|
5725
|
-
:scope:has(.field [data-ui-input-state~="size=lg"]):where([data-hn-ui-input-group]) {
|
|
5726
|
-
min-block-size: var(--ui-control-size-lg);
|
|
5727
|
-
}
|
|
5728
|
-
:scope:hover:not(:has(:is(input, textarea):focus, :is(input, textarea):disabled, :is(input, textarea):read-only, [aria-invalid="true"], :is(:user-invalid, [data-user-invalid]))):where([data-hn-ui-input-group]) {
|
|
5729
|
-
border-color: var(--ui-control-border-hover, var(--ui-text-secondary));
|
|
5730
|
-
}
|
|
5731
|
-
:scope:has(.field :is(input, textarea):focus-visible):where([data-hn-ui-input-group]) {
|
|
5732
|
-
border-color: var(--ui-control-focus, var(--ui-accent-solid));
|
|
5733
|
-
box-shadow:
|
|
5734
|
-
var(--ui-control-inset),
|
|
5735
|
-
var(--ui-control-focus-halo-shadow);
|
|
5736
|
-
}
|
|
5737
|
-
:scope:has([aria-invalid="true"], :is(:user-invalid, [data-user-invalid])):where([data-hn-ui-input-group]) {
|
|
5738
|
-
border-color: var(
|
|
5739
|
-
--ui-input-group-invalid-border,
|
|
5740
|
-
var(--ui-field-danger, var(--ui-danger-solid))
|
|
5741
|
-
);
|
|
5742
|
-
}
|
|
5743
|
-
:scope:has(:is(input, textarea):is([aria-invalid="true"], :is(:user-invalid, [data-user-invalid])):focus-visible):where([data-hn-ui-input-group]) {
|
|
5744
|
-
box-shadow: var(
|
|
5745
|
-
--ui-input-group-invalid-focus-shadow,
|
|
5746
|
-
var(--ui-control-inset),
|
|
5747
|
-
0 0 0 calc(var(--ui-focus-width) * 1.5) color-mix(
|
|
5748
|
-
in srgb,
|
|
5749
|
-
var(--ui-input-group-invalid-border, var(--ui-field-danger, var(--ui-danger-solid))) 22%,
|
|
5750
|
-
transparent
|
|
5751
|
-
)
|
|
5752
|
-
);
|
|
5753
|
-
}
|
|
5754
|
-
@media (forced-colors: active) {
|
|
5755
|
-
:scope:has(:is(input, textarea):focus-visible):where([data-hn-ui-input-group]) {
|
|
5756
|
-
outline: var(--ui-focus-width) solid Highlight;
|
|
5757
|
-
outline-offset: var(--ui-border-width);
|
|
5758
|
-
}
|
|
5759
|
-
}
|
|
5760
|
-
:scope[data-ui-input-group-state~="disabled"]:where([data-hn-ui-input-group]),:scope:has(:is(input, textarea):disabled):where([data-hn-ui-input-group]) {
|
|
5761
|
-
background: var(--ui-control-surface-disabled, var(--ui-surface-muted));
|
|
5762
|
-
box-shadow: none;
|
|
5763
|
-
cursor: not-allowed;
|
|
5764
|
-
}
|
|
5765
|
-
.field:where([data-hn-ui-input-group]) {
|
|
5766
|
-
display: flex !important;
|
|
5767
|
-
flex: 1;
|
|
5768
|
-
min-inline-size: 0;
|
|
5769
|
-
}
|
|
5770
|
-
.affix:where([data-hn-ui-input-group]) {
|
|
5771
|
-
display: inline-flex !important;
|
|
5772
|
-
flex: none;
|
|
5773
|
-
align-items: center !important;
|
|
5774
|
-
padding-inline: var(--ui-space-2) !important;
|
|
5775
|
-
color: var(--ui-text-muted);
|
|
5776
|
-
font-family: var(--ui-font-family-mono);
|
|
5777
|
-
font-size: var(--ui-font-size-sm);
|
|
5778
|
-
white-space: nowrap;
|
|
5779
|
-
}
|
|
5780
|
-
.affix:has([slot="prefix"]):where([data-hn-ui-input-group]),.affix:has([slot="suffix"]):where([data-hn-ui-input-group]) {
|
|
5781
|
-
background: var(--ui-surface-muted);
|
|
5782
|
-
}
|
|
5783
|
-
.affix:has([slot="prefix"]):where([data-hn-ui-input-group]) {
|
|
5784
|
-
border-inline-end: var(--ui-border-width) solid var(--ui-border-divider);
|
|
5785
|
-
}
|
|
5786
|
-
.affix:has([slot="suffix"]):where([data-hn-ui-input-group]) {
|
|
5787
|
-
border-inline-start: var(--ui-border-width) solid var(--ui-border-divider);
|
|
5788
|
-
}
|
|
5789
|
-
:scope[data-ui-input-group-state~="prefixKind=icon"]:where([data-hn-ui-input-group]) {
|
|
5790
|
-
--_ui-default-input-padding-inline-start: var(--ui-space-2);
|
|
5791
|
-
}
|
|
5792
|
-
:scope[data-ui-input-group-state~="prefixKind=icon"]
|
|
5793
|
-
.affix:first-child:where([data-hn-ui-input-group]) {
|
|
5794
|
-
padding-inline-end: 0 !important;
|
|
5795
|
-
border-inline-end: 0;
|
|
5796
|
-
background: transparent;
|
|
5797
|
-
}
|
|
5798
|
-
.action:where([data-hn-ui-input-group]) {
|
|
5799
|
-
display: flex !important;
|
|
5800
|
-
flex: none;
|
|
5801
|
-
align-items: center !important;
|
|
5802
|
-
padding-inline: var(--ui-space-1) !important;
|
|
5803
|
-
}
|
|
5804
|
-
:scope[data-ui-input-group-state~="multiline"]:where([data-hn-ui-input-group]) {
|
|
5805
|
-
display: grid !important;
|
|
5806
|
-
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
5807
|
-
}
|
|
5808
|
-
:scope[data-ui-input-group-state~="multiline"] .field:where([data-hn-ui-input-group]) {
|
|
5809
|
-
grid-column: 2;
|
|
5810
|
-
}
|
|
5811
|
-
:scope[data-ui-input-group-state~="multiline"] .action:where([data-hn-ui-input-group]) {
|
|
5812
|
-
grid-column: 1 / -1;
|
|
5813
|
-
justify-content: end !important;
|
|
5814
|
-
padding: var(--ui-space-2) !important;
|
|
5815
|
-
padding-block-start: 0 !important;
|
|
5816
|
-
}
|
|
5817
|
-
:scope[data-ui-input-group-state~="multiline"][data-ui-input-group-state~="actionPosition=top-end"]:where([data-hn-ui-input-group]) {
|
|
5818
|
-
--_ui-default-textarea-padding-inline-end: calc(
|
|
5819
|
-
var(--_ui-input-group-action-inline-size, 7rem) + var(--ui-space-3)
|
|
5820
|
-
);
|
|
5821
|
-
}
|
|
5822
|
-
:scope[data-ui-input-group-state~="multiline"][data-ui-input-group-state~="actionPosition=top-end"]
|
|
5823
|
-
.field:where([data-hn-ui-input-group]) {
|
|
5824
|
-
grid-row: 1;
|
|
5825
|
-
}
|
|
5826
|
-
:scope[data-ui-input-group-state~="multiline"][data-ui-input-group-state~="actionPosition=top-end"]
|
|
5827
|
-
.action:where([data-hn-ui-input-group]) {
|
|
5828
|
-
grid-column: 2;
|
|
5829
|
-
grid-row: 1;
|
|
5830
|
-
align-self: start;
|
|
5831
|
-
justify-self: end;
|
|
5832
|
-
padding: var(--ui-space-2) !important;
|
|
5833
|
-
}
|
|
5834
|
-
.affix:empty:where([data-hn-ui-input-group]),.action:empty:where([data-hn-ui-input-group]) {
|
|
5835
|
-
display: none !important;
|
|
5836
|
-
}
|
|
5837
|
-
:scope[hidden]:where([data-hn-ui-input-group]) {
|
|
5838
|
-
display: none !important;
|
|
5839
|
-
}
|
|
5840
|
-
}
|
|
5841
|
-
|
|
5842
5561
|
/* Tabbing into a field selects its text; tint that selection softly instead of the page highlight. */
|
|
5843
5562
|
|
|
5844
5563
|
/* The app's invalid flag, or the browser's own verdict once the user has left an invalid field. */
|
|
@@ -6106,43 +5825,115 @@ legend.sr-only:where([data-hn-ui-radio-group]) {
|
|
|
6106
5825
|
border-bottom: none;
|
|
6107
5826
|
box-shadow: var(--ui-editor-toolbar-mobile-shadow, 0 -2px 8px rgb(0 0 0 / 0.06));
|
|
6108
5827
|
}
|
|
6109
|
-
:scope[data-ui-editor-toolbar-state~="floating"]:where([data-hn-ui-editor-toolbar]) {
|
|
6110
|
-
position: relative;
|
|
6111
|
-
inset: auto;
|
|
6112
|
-
min-height: auto;
|
|
6113
|
-
border: var(--ui-border-width) solid var(--ui-editor-toolbar-border, var(--ui-border-strong));
|
|
6114
|
-
border-radius: var(--ui-editor-toolbar-floating-radius, var(--ui-radius-lg));
|
|
6115
|
-
box-shadow: var(
|
|
6116
|
-
--ui-editor-toolbar-floating-shadow,
|
|
6117
|
-
var(--ui-shadow-lg, 0 10px 24px rgb(0 0 0 / 0.12))
|
|
6118
|
-
);
|
|
5828
|
+
:scope[data-ui-editor-toolbar-state~="floating"]:where([data-hn-ui-editor-toolbar]) {
|
|
5829
|
+
position: relative;
|
|
5830
|
+
inset: auto;
|
|
5831
|
+
min-height: auto;
|
|
5832
|
+
border: var(--ui-border-width) solid var(--ui-editor-toolbar-border, var(--ui-border-strong));
|
|
5833
|
+
border-radius: var(--ui-editor-toolbar-floating-radius, var(--ui-radius-lg));
|
|
5834
|
+
box-shadow: var(
|
|
5835
|
+
--ui-editor-toolbar-floating-shadow,
|
|
5836
|
+
var(--ui-shadow-lg, 0 10px 24px rgb(0 0 0 / 0.12))
|
|
5837
|
+
);
|
|
5838
|
+
}
|
|
5839
|
+
}
|
|
5840
|
+
.looma-editor__sticky-toolbar-shell :scope:where([data-hn-ui-editor-toolbar]) {
|
|
5841
|
+
position: relative;
|
|
5842
|
+
min-height: var(--ui-editor-toolbar-min-height, 48px);
|
|
5843
|
+
background: transparent;
|
|
5844
|
+
border: 0;
|
|
5845
|
+
box-shadow: none;
|
|
5846
|
+
}
|
|
5847
|
+
.looma-editor__mobile-toolbar-shell
|
|
5848
|
+
:scope[data-ui-editor-toolbar-state~="floating"]:where([data-hn-ui-editor-toolbar]) {
|
|
5849
|
+
width: 100%;
|
|
5850
|
+
max-width: none;
|
|
5851
|
+
min-height: 100%;
|
|
5852
|
+
padding: 0 !important;
|
|
5853
|
+
background: transparent;
|
|
5854
|
+
border: 0;
|
|
5855
|
+
border-radius: 0;
|
|
5856
|
+
box-shadow: none;
|
|
5857
|
+
backdrop-filter: none;
|
|
5858
|
+
}
|
|
5859
|
+
.looma-editor__mobile-toolbar-shell
|
|
5860
|
+
:scope[data-ui-editor-toolbar-state~="floating"]
|
|
5861
|
+
.strip:where([data-hn-ui-editor-toolbar]) {
|
|
5862
|
+
scroll-snap-type: x mandatory;
|
|
5863
|
+
}
|
|
5864
|
+
:scope[hidden]:where([data-hn-ui-editor-toolbar]) {
|
|
5865
|
+
display: none !important;
|
|
5866
|
+
}
|
|
5867
|
+
}
|
|
5868
|
+
|
|
5869
|
+
/* Each named region styles whatever fills it, however it was slotted (slot="…" in HTML, #label
|
|
5870
|
+
in Vue), and generates no box of its own, so an empty region adds no gap. */
|
|
5871
|
+
|
|
5872
|
+
/* A label action, such as a small help button, sits after the label text in a box one line
|
|
5873
|
+
tall, centred on the first line and overflowing it. A button taller than a line of label
|
|
5874
|
+
text then never makes this field's label row taller than its neighbours' in a grid row. */
|
|
5875
|
+
|
|
5876
|
+
/* An error reads in the danger colour, the one the invalid control's border takes. */
|
|
5877
|
+
|
|
5878
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
5879
|
+
@scope (.ui-form-field) to ([data-hn]) {
|
|
5880
|
+
:scope:where([data-hn-ui-form-field]) {
|
|
5881
|
+
/* Resolve shared part values at the component root. */
|
|
5882
|
+
--_ui-form-field-danger: var(--ui-form-field-danger);
|
|
5883
|
+
--_ui-form-field-help-min-block-size: var(--ui-form-field-help-min-block-size);
|
|
5884
|
+
--_ui-form-field-label-text: var(--ui-form-field-label-text);
|
|
5885
|
+
--_ui-form-field-label-font-size: var(--ui-form-field-label-font-size);
|
|
5886
|
+
--_ui-form-field-help-text: var(--ui-form-field-help-text);
|
|
5887
|
+
--_ui-form-field-help-font-size: var(--ui-form-field-help-font-size);
|
|
5888
|
+
|
|
5889
|
+
display: grid !important;
|
|
5890
|
+
gap: var(--ui-space-2) !important;
|
|
5891
|
+
min-inline-size: var(--ui-form-field-min-inline-size, 0);
|
|
5892
|
+
align-content: start !important;
|
|
5893
|
+
color: var(--ui-text-primary);
|
|
5894
|
+
}
|
|
5895
|
+
.label:where([data-hn-ui-form-field]),.help:where([data-hn-ui-form-field]),.error:where([data-hn-ui-form-field]) {
|
|
5896
|
+
display: contents !important;
|
|
5897
|
+
}
|
|
5898
|
+
.label:where([data-hn-ui-form-field]) {
|
|
5899
|
+
color: var(--_ui-form-field-label-text, var(--ui-text-secondary));
|
|
5900
|
+
font-size: var(
|
|
5901
|
+
--_ui-form-field-label-font-size,
|
|
5902
|
+
var(--ui-field-label-font-size, var(--ui-font-size-md))
|
|
5903
|
+
);
|
|
5904
|
+
}
|
|
5905
|
+
.label:has(> .label-action > *):where([data-hn-ui-form-field]) {
|
|
5906
|
+
display: flex !important;
|
|
5907
|
+
align-items: start !important;
|
|
5908
|
+
gap: var(--ui-space-1) !important;
|
|
5909
|
+
}
|
|
5910
|
+
.label-action:where([data-hn-ui-form-field]) {
|
|
5911
|
+
display: flex !important;
|
|
5912
|
+
align-items: unsafe center !important;
|
|
5913
|
+
block-size: 1lh;
|
|
5914
|
+
}
|
|
5915
|
+
.label-action:not(:has(> *)):where([data-hn-ui-form-field]) {
|
|
5916
|
+
display: none !important;
|
|
5917
|
+
}
|
|
5918
|
+
.help:where([data-hn-ui-form-field]) {
|
|
5919
|
+
color: var(--_ui-form-field-help-text, var(--ui-text-muted));
|
|
5920
|
+
font-size: var(--_ui-form-field-help-font-size, var(--ui-font-size-sm));
|
|
5921
|
+
line-height: var(--ui-line-height-md);
|
|
6119
5922
|
}
|
|
5923
|
+
.help > :where(:not([data-hn-ui-form-field])):is(*) {
|
|
5924
|
+
min-block-size: var(--_ui-form-field-help-min-block-size, 0);
|
|
6120
5925
|
}
|
|
6121
|
-
.
|
|
6122
|
-
|
|
6123
|
-
min-height: var(--ui-editor-toolbar-min-height, 48px);
|
|
6124
|
-
background: transparent;
|
|
6125
|
-
border: 0;
|
|
6126
|
-
box-shadow: none;
|
|
5926
|
+
.error:where([data-hn-ui-form-field]) {
|
|
5927
|
+
display: none !important;
|
|
6127
5928
|
}
|
|
6128
|
-
.
|
|
6129
|
-
:
|
|
6130
|
-
width: 100%;
|
|
6131
|
-
max-width: none;
|
|
6132
|
-
min-height: 100%;
|
|
6133
|
-
padding: 0 !important;
|
|
6134
|
-
background: transparent;
|
|
6135
|
-
border: 0;
|
|
6136
|
-
border-radius: 0;
|
|
6137
|
-
box-shadow: none;
|
|
6138
|
-
backdrop-filter: none;
|
|
5929
|
+
:scope[data-ui-form-field-state~="invalid"] .error:where([data-hn-ui-form-field]) {
|
|
5930
|
+
display: contents !important;
|
|
6139
5931
|
}
|
|
6140
|
-
.
|
|
6141
|
-
:
|
|
6142
|
-
|
|
6143
|
-
scroll-snap-type: x mandatory;
|
|
5932
|
+
.error:where([data-hn-ui-form-field]),:where(:not([data-hn-ui-form-field])):is([role="alert"]) {
|
|
5933
|
+
color: var(--_ui-form-field-danger, var(--ui-field-danger, var(--ui-danger)));
|
|
5934
|
+
font-size: var(--ui-font-size-sm);
|
|
6144
5935
|
}
|
|
6145
|
-
:scope[hidden]:where([data-hn-ui-
|
|
5936
|
+
:scope[hidden]:where([data-hn-ui-form-field]) {
|
|
6146
5937
|
display: none !important;
|
|
6147
5938
|
}
|
|
6148
5939
|
}
|
|
@@ -6555,6 +6346,208 @@ legend.sr-only:where([data-hn-ui-radio-group]) {
|
|
|
6555
6346
|
}
|
|
6556
6347
|
}
|
|
6557
6348
|
|
|
6349
|
+
/* An input with fixed text before or after it, such as a domain after a site's name
|
|
6350
|
+
("acme" + ".example.com") or slashes around a path. The group draws the field's border and
|
|
6351
|
+
focus ring around the input and its affixes together; the input inside drops its own through
|
|
6352
|
+
its custom properties, so it is still the one ui-input, with its form behaviour intact. The
|
|
6353
|
+
affixes are plain text beside the input, so name the input with a label that says what the
|
|
6354
|
+
whole value is. The action slot takes one button at the end, inside the border, for the one
|
|
6355
|
+
thing the field is for ("Continue" after a site's address), so it reads as the field's action
|
|
6356
|
+
and not the form's. */
|
|
6357
|
+
|
|
6358
|
+
/* The frame takes its input's size, so a small group lines up with small buttons and fields. */
|
|
6359
|
+
|
|
6360
|
+
/* The ring shows when the field's input would show its own: when it is focus-visible, which a
|
|
6361
|
+
text input is for a pointer as well as a keyboard. A focused action button draws its own. */
|
|
6362
|
+
|
|
6363
|
+
/* Forced colors drop box shadows, so the focus ring becomes an outline. */
|
|
6364
|
+
|
|
6365
|
+
/* Fixed text is part of the value, but should not look editable. */
|
|
6366
|
+
|
|
6367
|
+
/* Centred rather than padded above and below: the group is exactly a lone Input's height, so a
|
|
6368
|
+
small button sits inside it with the difference split evenly, and the field keeps its height. */
|
|
6369
|
+
|
|
6370
|
+
/* Multiline text owns the first row; its action remains inside the same frame below it. */
|
|
6371
|
+
|
|
6372
|
+
/* The same textarea keeps its full resizeable box. Its text reserves the action's live width,
|
|
6373
|
+
so a translated label or pending indicator cannot cover what the person types. */
|
|
6374
|
+
|
|
6375
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
6376
|
+
@scope (.ui-input-group) to ([data-hn]) {
|
|
6377
|
+
:scope:where([data-hn-ui-input-group]) {
|
|
6378
|
+
/* The group's own border and height stand for the input's, so the group is a lone Input's height.
|
|
6379
|
+
These are defaults for the input; public hooks still win. */
|
|
6380
|
+
--_ui-default-input-border-width: 0;
|
|
6381
|
+
--_ui-default-input-min-block-size: 0;
|
|
6382
|
+
--_ui-default-input-frame-width: calc(2 * var(--ui-border-width));
|
|
6383
|
+
--_ui-default-input-border: transparent;
|
|
6384
|
+
--_ui-default-input-border-hover: transparent;
|
|
6385
|
+
--_ui-default-input-focus-border: transparent;
|
|
6386
|
+
--_ui-default-input-invalid-border: transparent;
|
|
6387
|
+
--_ui-default-input-invalid-focus-shadow: none;
|
|
6388
|
+
--_ui-default-input-shadow: none;
|
|
6389
|
+
--_ui-default-input-focus-shadow: none;
|
|
6390
|
+
--_ui-default-input-focus-outline: none;
|
|
6391
|
+
--_ui-default-input-radius: 0;
|
|
6392
|
+
--_ui-default-input-surface: transparent;
|
|
6393
|
+
--_ui-default-input-highlight: none;
|
|
6394
|
+
--_ui-default-textarea-border-width: 0;
|
|
6395
|
+
--_ui-default-textarea-border: transparent;
|
|
6396
|
+
--_ui-default-textarea-border-hover: transparent;
|
|
6397
|
+
--_ui-default-textarea-focus-border: transparent;
|
|
6398
|
+
--_ui-default-textarea-invalid-border: transparent;
|
|
6399
|
+
--_ui-default-textarea-invalid-focus-shadow: none;
|
|
6400
|
+
--_ui-default-textarea-shadow: none;
|
|
6401
|
+
--_ui-default-textarea-focus-shadow: none;
|
|
6402
|
+
--_ui-default-textarea-focus-outline: none;
|
|
6403
|
+
--_ui-default-textarea-radius: 0;
|
|
6404
|
+
--_ui-default-textarea-surface: transparent;
|
|
6405
|
+
--_ui-default-textarea-highlight: none;
|
|
6406
|
+
|
|
6407
|
+
display: flex !important;
|
|
6408
|
+
align-items: stretch !important;
|
|
6409
|
+
box-sizing: border-box !important;
|
|
6410
|
+
inline-size: 100%;
|
|
6411
|
+
min-inline-size: 0;
|
|
6412
|
+
min-block-size: var(--ui-control-size-md);
|
|
6413
|
+
/* The frame reads the shared control tokens with a lone Input's fallbacks, so the two match. */
|
|
6414
|
+
border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-strong));
|
|
6415
|
+
border-radius: var(--ui-input-group-radius, var(--ui-field-radius, var(--ui-radius-md)));
|
|
6416
|
+
background-color: var(--ui-control-surface, var(--ui-surface-elevated));
|
|
6417
|
+
background-image: var(--ui-surface-highlight, none);
|
|
6418
|
+
box-shadow: var(--ui-control-inset);
|
|
6419
|
+
overflow: hidden;
|
|
6420
|
+
/* A press anywhere in the frame focuses the input. */
|
|
6421
|
+
cursor: text;
|
|
6422
|
+
transition:
|
|
6423
|
+
border-color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
6424
|
+
box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
|
|
6425
|
+
}
|
|
6426
|
+
:scope[data-ui-input-group-state~="variant=subtle"]:where([data-hn-ui-input-group]) {
|
|
6427
|
+
border-color: var(--ui-border);
|
|
6428
|
+
background: var(--ui-surface-muted);
|
|
6429
|
+
box-shadow: none;
|
|
6430
|
+
}
|
|
6431
|
+
:scope:has(.field [data-ui-input-state~="size=sm"]):where([data-hn-ui-input-group]) {
|
|
6432
|
+
min-block-size: var(--ui-control-size-sm);
|
|
6433
|
+
}
|
|
6434
|
+
:scope:has(.field [data-ui-input-state~="size=lg"]):where([data-hn-ui-input-group]) {
|
|
6435
|
+
min-block-size: var(--ui-control-size-lg);
|
|
6436
|
+
}
|
|
6437
|
+
:scope:hover:not(:has(:is(input, textarea):focus, :is(input, textarea):disabled, :is(input, textarea):read-only, [aria-invalid="true"], :is(:user-invalid, [data-user-invalid]))):where([data-hn-ui-input-group]) {
|
|
6438
|
+
border-color: var(--ui-control-border-hover, var(--ui-text-secondary));
|
|
6439
|
+
}
|
|
6440
|
+
:scope:has(.field :is(input, textarea):focus-visible):where([data-hn-ui-input-group]) {
|
|
6441
|
+
border-color: var(--ui-control-focus, var(--ui-accent-solid));
|
|
6442
|
+
box-shadow:
|
|
6443
|
+
var(--ui-control-inset),
|
|
6444
|
+
var(--ui-control-focus-halo-shadow);
|
|
6445
|
+
}
|
|
6446
|
+
:scope:has([aria-invalid="true"], :is(:user-invalid, [data-user-invalid])):where([data-hn-ui-input-group]) {
|
|
6447
|
+
border-color: var(
|
|
6448
|
+
--ui-input-group-invalid-border,
|
|
6449
|
+
var(--ui-field-danger, var(--ui-danger-solid))
|
|
6450
|
+
);
|
|
6451
|
+
}
|
|
6452
|
+
:scope:has(:is(input, textarea):is([aria-invalid="true"], :is(:user-invalid, [data-user-invalid])):focus-visible):where([data-hn-ui-input-group]) {
|
|
6453
|
+
box-shadow: var(
|
|
6454
|
+
--ui-input-group-invalid-focus-shadow,
|
|
6455
|
+
var(--ui-control-inset),
|
|
6456
|
+
0 0 0 calc(var(--ui-focus-width) * 1.5) color-mix(
|
|
6457
|
+
in srgb,
|
|
6458
|
+
var(--ui-input-group-invalid-border, var(--ui-field-danger, var(--ui-danger-solid))) 22%,
|
|
6459
|
+
transparent
|
|
6460
|
+
)
|
|
6461
|
+
);
|
|
6462
|
+
}
|
|
6463
|
+
@media (forced-colors: active) {
|
|
6464
|
+
:scope:has(:is(input, textarea):focus-visible):where([data-hn-ui-input-group]) {
|
|
6465
|
+
outline: var(--ui-focus-width) solid Highlight;
|
|
6466
|
+
outline-offset: var(--ui-border-width);
|
|
6467
|
+
}
|
|
6468
|
+
}
|
|
6469
|
+
:scope[data-ui-input-group-state~="disabled"]:where([data-hn-ui-input-group]),:scope:has(:is(input, textarea):disabled):where([data-hn-ui-input-group]) {
|
|
6470
|
+
background: var(--ui-control-surface-disabled, var(--ui-surface-muted));
|
|
6471
|
+
box-shadow: none;
|
|
6472
|
+
cursor: not-allowed;
|
|
6473
|
+
}
|
|
6474
|
+
.field:where([data-hn-ui-input-group]) {
|
|
6475
|
+
display: flex !important;
|
|
6476
|
+
flex: 1;
|
|
6477
|
+
min-inline-size: 0;
|
|
6478
|
+
}
|
|
6479
|
+
.affix:where([data-hn-ui-input-group]) {
|
|
6480
|
+
display: inline-flex !important;
|
|
6481
|
+
flex: none;
|
|
6482
|
+
align-items: center !important;
|
|
6483
|
+
padding-inline: var(--ui-space-2) !important;
|
|
6484
|
+
color: var(--ui-text-muted);
|
|
6485
|
+
font-family: var(--ui-font-family-mono);
|
|
6486
|
+
font-size: var(--ui-font-size-sm);
|
|
6487
|
+
white-space: nowrap;
|
|
6488
|
+
}
|
|
6489
|
+
.affix:has([slot="prefix"]):where([data-hn-ui-input-group]),.affix:has([slot="suffix"]):where([data-hn-ui-input-group]) {
|
|
6490
|
+
background: var(--ui-surface-muted);
|
|
6491
|
+
}
|
|
6492
|
+
.affix:has([slot="prefix"]):where([data-hn-ui-input-group]) {
|
|
6493
|
+
border-inline-end: var(--ui-border-width) solid var(--ui-border-divider);
|
|
6494
|
+
}
|
|
6495
|
+
.affix:has([slot="suffix"]):where([data-hn-ui-input-group]) {
|
|
6496
|
+
border-inline-start: var(--ui-border-width) solid var(--ui-border-divider);
|
|
6497
|
+
}
|
|
6498
|
+
:scope[data-ui-input-group-state~="prefixKind=icon"]:where([data-hn-ui-input-group]) {
|
|
6499
|
+
--_ui-default-input-padding-inline-start: var(--ui-space-2);
|
|
6500
|
+
}
|
|
6501
|
+
:scope[data-ui-input-group-state~="prefixKind=icon"]
|
|
6502
|
+
.affix:first-child:where([data-hn-ui-input-group]) {
|
|
6503
|
+
padding-inline-end: 0 !important;
|
|
6504
|
+
border-inline-end: 0;
|
|
6505
|
+
background: transparent;
|
|
6506
|
+
}
|
|
6507
|
+
.action:where([data-hn-ui-input-group]) {
|
|
6508
|
+
display: flex !important;
|
|
6509
|
+
flex: none;
|
|
6510
|
+
align-items: center !important;
|
|
6511
|
+
padding-inline: var(--ui-space-1) !important;
|
|
6512
|
+
}
|
|
6513
|
+
:scope[data-ui-input-group-state~="multiline"]:where([data-hn-ui-input-group]) {
|
|
6514
|
+
display: grid !important;
|
|
6515
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
6516
|
+
}
|
|
6517
|
+
:scope[data-ui-input-group-state~="multiline"] .field:where([data-hn-ui-input-group]) {
|
|
6518
|
+
grid-column: 2;
|
|
6519
|
+
}
|
|
6520
|
+
:scope[data-ui-input-group-state~="multiline"] .action:where([data-hn-ui-input-group]) {
|
|
6521
|
+
grid-column: 1 / -1;
|
|
6522
|
+
justify-content: end !important;
|
|
6523
|
+
padding: var(--ui-space-2) !important;
|
|
6524
|
+
padding-block-start: 0 !important;
|
|
6525
|
+
}
|
|
6526
|
+
:scope[data-ui-input-group-state~="multiline"][data-ui-input-group-state~="actionPosition=top-end"]:where([data-hn-ui-input-group]) {
|
|
6527
|
+
--_ui-default-textarea-padding-inline-end: calc(
|
|
6528
|
+
var(--_ui-input-group-action-inline-size, 7rem) + var(--ui-space-3)
|
|
6529
|
+
);
|
|
6530
|
+
}
|
|
6531
|
+
:scope[data-ui-input-group-state~="multiline"][data-ui-input-group-state~="actionPosition=top-end"]
|
|
6532
|
+
.field:where([data-hn-ui-input-group]) {
|
|
6533
|
+
grid-row: 1;
|
|
6534
|
+
}
|
|
6535
|
+
:scope[data-ui-input-group-state~="multiline"][data-ui-input-group-state~="actionPosition=top-end"]
|
|
6536
|
+
.action:where([data-hn-ui-input-group]) {
|
|
6537
|
+
grid-column: 2;
|
|
6538
|
+
grid-row: 1;
|
|
6539
|
+
align-self: start;
|
|
6540
|
+
justify-self: end;
|
|
6541
|
+
padding: var(--ui-space-2) !important;
|
|
6542
|
+
}
|
|
6543
|
+
.affix:empty:where([data-hn-ui-input-group]),.action:empty:where([data-hn-ui-input-group]) {
|
|
6544
|
+
display: none !important;
|
|
6545
|
+
}
|
|
6546
|
+
:scope[hidden]:where([data-hn-ui-input-group]) {
|
|
6547
|
+
display: none !important;
|
|
6548
|
+
}
|
|
6549
|
+
}
|
|
6550
|
+
|
|
6558
6551
|
/* Slot wrappers own their line boxes even when an app makes buttons inherit body typography. */
|
|
6559
6552
|
|
|
6560
6553
|
/* An unused region takes no space. */
|
|
@@ -9871,7 +9864,7 @@ dialog:where([data-hn-ui-search-shell]) {
|
|
|
9871
9864
|
}
|
|
9872
9865
|
.navigation
|
|
9873
9866
|
> :where(:not([data-hn-ui-site-header])):is(a):is(:hover, [aria-current="page"], [aria-current="true"]) {
|
|
9874
|
-
color: var(--ui-
|
|
9867
|
+
color: var(--ui-link-color);
|
|
9875
9868
|
}
|
|
9876
9869
|
.brand > :where(:not([data-hn-ui-site-header])):is(a):focus-visible,.navigation > :where(:not([data-hn-ui-site-header])):is(a):focus-visible {
|
|
9877
9870
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
@@ -16228,10 +16221,10 @@ html[data-ui-input-modality="touch"]
|
|
|
16228
16221
|
}
|
|
16229
16222
|
|
|
16230
16223
|
:scope:where([data-component~="ui-callout"])[data-ui-callout-state~="tone=tip"] {
|
|
16231
|
-
--_callout-border: var(--ui-
|
|
16232
|
-
--_callout-surface: var(--ui-
|
|
16233
|
-
--_callout-tone-text: var(--ui-
|
|
16234
|
-
--_callout-icon: var(--ui-
|
|
16224
|
+
--_callout-border: var(--ui-info-soft-border);
|
|
16225
|
+
--_callout-surface: var(--ui-info-soft);
|
|
16226
|
+
--_callout-tone-text: var(--ui-info-subtle-text);
|
|
16227
|
+
--_callout-icon: var(--ui-info-subtle-text);
|
|
16235
16228
|
}
|
|
16236
16229
|
|
|
16237
16230
|
:scope:where([data-component~="ui-callout"])[data-ui-callout-state~="tone=important"] {
|