@threadlabs/looma 0.51.5 → 0.52.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/README.md +4 -4
- package/components/shared/overlay.js +7 -2
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -0
- package/components/ui-calendar/ui-calendar.js +11 -7
- package/components/ui-card/ui-card.html +7 -0
- package/components/ui-date-field/ui-date-field.js +0 -5
- package/components/ui-disclosure/ui-disclosure.js +19 -4
- package/components/ui-editor-link-form/ui-editor-link-form.js +5 -0
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +2 -3
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +10 -1
- package/components/ui-file-input/ui-file-input.js +0 -2
- package/components/ui-status-message/ui-status-message.html +1 -0
- package/components/ui-tabs/ui-tabs.html +1 -0
- package/components/ui-tooltip/ui-tooltip.html +11 -32
- package/dist/index.js +14 -8
- package/docs/catalog.json +592 -131
- package/editor/components.css +530 -551
- package/editor/index.js +72 -47
- package/package.json +30 -35
- package/styles/ui-action-bar.css +8 -8
- package/styles/ui-affordance-scope.css +10 -10
- package/styles/ui-avatar-group.css +11 -11
- package/styles/ui-avatar.css +14 -14
- package/styles/ui-badge.css +67 -67
- package/styles/ui-breadcrumb-item.css +10 -10
- package/styles/ui-breadcrumbs.css +8 -8
- package/styles/ui-button.css +99 -99
- package/styles/ui-calendar.css +1 -1
- package/styles/ui-callout.css +14 -14
- package/styles/ui-card-group.css +11 -11
- package/styles/ui-card.css +40 -35
- package/styles/ui-checkbox.css +28 -28
- package/styles/ui-cluster.css +30 -30
- package/styles/ui-color-picker.css +16 -16
- package/styles/ui-combobox.css +50 -50
- package/styles/ui-compact-content.css +1 -1
- package/styles/ui-compact-editor.css +1 -1
- package/styles/ui-compact-mark.css +1 -1
- package/styles/ui-compact-node.css +1 -1
- package/styles/ui-container.css +14 -14
- package/styles/ui-context-menu.css +8 -8
- package/styles/ui-cover.css +9 -9
- package/styles/ui-curve-editor.css +9 -9
- package/styles/ui-cycle-button.css +10 -10
- package/styles/ui-date-field.css +1 -1
- package/styles/ui-date-picker.css +1 -1
- package/styles/ui-date-range-picker.css +1 -1
- package/styles/ui-description-item.css +8 -8
- package/styles/ui-description-list.css +18 -18
- package/styles/ui-dialog.css +37 -37
- package/styles/ui-disclosure.css +26 -26
- package/styles/ui-editable.css +13 -13
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-footnote-editor.css +1 -1
- package/styles/ui-editor-formatting-tools.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +9 -9
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +13 -15
- package/styles/ui-editor-mention-menu.css +12 -12
- package/styles/ui-editor-slash-menu-group.css +7 -7
- package/styles/ui-editor-slash-menu-item.css +12 -12
- package/styles/ui-editor-slash-menu.css +13 -13
- package/styles/ui-editor-surface.css +8 -8
- package/styles/ui-editor-table-context-menu.css +19 -15
- package/styles/ui-editor-table-overlay.css +15 -15
- package/styles/ui-editor-table-toolbar.css +19 -19
- package/styles/ui-editor-toolbar.css +16 -16
- package/styles/ui-editor.css +1 -1
- package/styles/ui-file-input.css +1 -1
- package/styles/ui-floating-action-button.css +14 -14
- package/styles/ui-form-field.css +9 -9
- package/styles/ui-grid.css +19 -19
- package/styles/ui-icon-button.css +73 -73
- package/styles/ui-icon.css +11 -11
- package/styles/ui-image.css +23 -23
- package/styles/ui-input-group.css +26 -26
- package/styles/ui-input.css +23 -23
- package/styles/ui-light-editor.css +15 -15
- package/styles/ui-list-item.css +25 -25
- package/styles/ui-list.css +16 -16
- package/styles/ui-listbox.css +22 -22
- package/styles/ui-menu-group.css +7 -7
- package/styles/ui-menu-item.css +20 -20
- package/styles/ui-menu.css +20 -20
- package/styles/ui-meter.css +32 -32
- package/styles/ui-nav-item.css +18 -18
- package/styles/ui-number-input.css +12 -12
- package/styles/ui-page-header.css +10 -10
- package/styles/ui-pagination.css +1 -1
- package/styles/ui-popover.css +17 -17
- package/styles/ui-radio-group.css +10 -10
- package/styles/ui-radio.css +25 -25
- package/styles/ui-reel.css +21 -21
- package/styles/ui-scroll-area.css +20 -20
- package/styles/ui-search-result-row.css +16 -16
- package/styles/ui-search-shell.css +10 -10
- package/styles/ui-section.css +18 -18
- package/styles/ui-select.css +22 -22
- package/styles/ui-separator.css +12 -12
- package/styles/ui-sidebar.css +26 -26
- package/styles/ui-site-header.css +65 -65
- package/styles/ui-skeleton.css +18 -18
- package/styles/ui-slider.css +11 -11
- package/styles/ui-spinner.css +9 -9
- package/styles/ui-stack.css +22 -22
- package/styles/ui-status-message.css +12 -12
- package/styles/ui-swatch.css +14 -14
- package/styles/ui-switch.css +23 -23
- package/styles/ui-switcher.css +20 -20
- package/styles/ui-table.css +12 -12
- package/styles/ui-tabs.css +18 -17
- package/styles/ui-text.css +40 -40
- package/styles/ui-textarea.css +21 -21
- package/styles/ui-time-field.css +1 -1
- package/styles/ui-time-picker.css +1 -1
- package/styles/ui-toast-region.css +29 -29
- package/styles/ui-toast.css +19 -19
- package/styles/ui-tooltip.css +37 -58
- package/styles/ui-top-bar.css +8 -8
- package/styles/ui-tree-item.css +112 -112
- package/styles/ui-tree.css +11 -11
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +2 -2
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +2 -2
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +2 -2
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +2 -2
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +2 -2
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +2 -2
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +2 -2
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +5 -5
- package/vanilla/UiCalendar.d.ts +1 -1
- package/vanilla/UiCalendar.js +10 -10
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +2 -2
- package/vanilla/UiCard.d.ts +2 -1
- package/vanilla/UiCard.js +18 -18
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +2 -2
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +2 -2
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +2 -2
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +8 -8
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +4 -4
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +2 -2
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +5 -5
- package/vanilla/UiCompactNode.d.ts +1 -1
- package/vanilla/UiCompactNode.js +8 -8
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +2 -2
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +2 -2
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +2 -2
- package/vanilla/UiCycleButton.d.ts +1 -1
- package/vanilla/UiCycleButton.js +2 -2
- package/vanilla/UiDateField.d.ts +1 -1
- package/vanilla/UiDateField.js +2 -2
- package/vanilla/UiDatePicker.d.ts +1 -1
- package/vanilla/UiDatePicker.js +2 -2
- package/vanilla/UiDateRangePicker.d.ts +1 -1
- package/vanilla/UiDateRangePicker.js +4 -4
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +2 -2
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +2 -2
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +2 -2
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +2 -2
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +2 -2
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +6 -6
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +2 -2
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +2 -2
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +4 -4
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +2 -2
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +4 -4
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +4 -4
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +2 -2
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +4 -4
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +4 -4
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +2 -2
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +4 -4
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +2 -2
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +2 -2
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +2 -2
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +7 -6
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +5 -5
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +8 -8
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +2 -2
- package/vanilla/UiFileInput.d.ts +1 -1
- package/vanilla/UiFileInput.js +4 -4
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +2 -2
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +2 -2
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +4 -4
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +4 -4
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +2 -2
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +2 -2
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +2 -2
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +2 -2
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +2 -2
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +3 -3
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +2 -2
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +5 -5
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +2 -2
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +2 -2
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +3 -3
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +4 -4
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +3 -3
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +2 -2
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +2 -2
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +4 -4
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +2 -2
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +2 -2
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +2 -2
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +2 -2
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +2 -2
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +2 -2
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +2 -2
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +3 -3
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +2 -2
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +2 -2
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +2 -2
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +2 -2
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +2 -2
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +2 -2
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +2 -2
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +2 -2
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +2 -2
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +2 -2
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +2 -2
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +2 -2
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +2 -2
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +4 -4
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +13 -13
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +2 -2
- package/vanilla/UiTimeField.d.ts +1 -1
- package/vanilla/UiTimeField.js +2 -2
- package/vanilla/UiTimePicker.d.ts +1 -1
- package/vanilla/UiTimePicker.js +6 -6
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +2 -2
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +4 -4
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +2 -2
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +2 -2
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +2 -2
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +2 -2
- package/bin/looma-docs.mjs +0 -3
- package/docs/README.md +0 -323
- package/docs/card.html +0 -79
- package/docs/card.js +0 -18
- package/docs/catalog-view.js +0 -24
- package/docs/catalog-view.mjs +0 -13
- package/docs/catalog.mjs +0 -131
- package/docs/cli.mjs +0 -26
- package/docs/commands.mjs +0 -94
- package/docs/customizer-render.mjs +0 -157
- package/docs/customizer.js +0 -494
- package/docs/documentation.css +0 -14
- package/docs/example-invocations.mjs +0 -63
- package/docs/fonts.mjs +0 -73
- package/docs/framework-examples.d.mts +0 -9
- package/docs/framework-examples.mjs +0 -195
- package/docs/index.d.ts +0 -59
- package/docs/index.mjs +0 -4
- package/docs/local-server.mjs +0 -65
- package/docs/navigation.mjs +0 -26
- package/docs/palette.mjs +0 -68
- package/docs/pastoral.svg +0 -54
- package/docs/portrait.svg +0 -15
- package/docs/reference.html +0 -1
- package/docs/reference.js +0 -36
- package/docs/render.mjs +0 -97
- package/docs/site.mjs +0 -237
- package/docs/store.mjs +0 -92
- package/docs/theme-session.mjs +0 -72
- package/docs/theme.mjs +0 -669
- package/docs/value-editors.mjs +0 -37
- package/docs/workspace.mjs +0 -32
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.82. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
|
-
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
-
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
3
|
+
:where(:is([component]:not(template), [data-component]:not([component])), [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not(:is([component]:not(template), [data-component]:not([component])))) { --html-next-scope-owner: projected !important; }
|
|
5
5
|
}
|
|
6
6
|
@supports (-moz-appearance: none) {
|
|
7
|
-
[data-component~="ui-icon-button"] { --html-next-scope-owner: "ui-icon-button" !important; }
|
|
7
|
+
:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])) { --html-next-scope-owner: "ui-icon-button" !important; }
|
|
8
8
|
}
|
|
9
|
-
@scope ([data-component~="ui-icon-button"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
:scope:where([data-component~="ui-icon-button"]) {
|
|
9
|
+
@scope (:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component])), [data-slotted]) {
|
|
10
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))) {
|
|
11
11
|
/* Optional inherited action-group values keep text and icon actions under the same light.
|
|
12
12
|
One fine top/start highlight follows the bottom/end lowlight at a joined action seam.
|
|
13
13
|
The shared theme supplies reflections and glow independently of the resting lift. */
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
color: var(--ui-text-secondary);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
:scope:where([data-component~="ui-icon-button"]):dir(rtl) {
|
|
40
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))):dir(rtl) {
|
|
41
41
|
--_ui-action-start: -1px;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="accent-secondary"] {
|
|
44
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="accent-secondary"] {
|
|
45
45
|
--_solid-border: var(--ui-accent-secondary-border, var(--ui-accent-secondary));
|
|
46
46
|
--_solid-hover-border: var(--ui-accent-secondary-hover-border, var(--ui-accent-secondary-hover));
|
|
47
47
|
--_solid-active-border: var(--ui-accent-secondary-active-border, var(--ui-accent-secondary-active));
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
color: var(--_icon-button-text);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="accent-tertiary"] {
|
|
66
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="accent-tertiary"] {
|
|
67
67
|
--_solid-border: var(--ui-accent-tertiary-border, var(--ui-accent-tertiary));
|
|
68
68
|
--_solid-hover-border: var(--ui-accent-tertiary-hover-border, var(--ui-accent-tertiary-hover));
|
|
69
69
|
--_solid-active-border: var(--ui-accent-tertiary-active-border, var(--ui-accent-tertiary-active));
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
color: var(--_icon-button-text);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="accent"] {
|
|
88
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="accent"] {
|
|
89
89
|
--_solid-border: var(--ui-accent-border, var(--ui-accent));
|
|
90
90
|
--_solid-hover-border: var(--ui-accent-hover-border, var(--ui-accent-hover));
|
|
91
91
|
--_solid-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
color: var(--_icon-button-text);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="danger"] {
|
|
107
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="danger"] {
|
|
108
108
|
--_solid-border: var(--ui-danger-border, var(--ui-danger));
|
|
109
109
|
--_solid-hover-border: var(--ui-danger-hover-border, var(--ui-danger-hover));
|
|
110
110
|
--_solid-active-border: var(--ui-danger-active-border, var(--ui-danger-active));
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
color: var(--_icon-button-text);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="success"] {
|
|
129
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="success"] {
|
|
130
130
|
--_solid-border: var(--ui-success-border, var(--ui-success));
|
|
131
131
|
--_solid-hover-border: var(--ui-success-hover-border, var(--ui-success-hover));
|
|
132
132
|
--_solid-active-border: var(--ui-success-active-border, var(--ui-success-active));
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
color: var(--_icon-button-text);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="warning"] {
|
|
151
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="warning"] {
|
|
152
152
|
--_solid-border: var(--ui-warning-border, var(--ui-warning));
|
|
153
153
|
--_solid-hover-border: var(--ui-warning-hover-border, var(--ui-warning-hover));
|
|
154
154
|
--_solid-active-border: var(--ui-warning-active-border, var(--ui-warning-active));
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
color: var(--_icon-button-text);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="info"] {
|
|
173
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="info"] {
|
|
174
174
|
--_solid-border: var(--ui-info-border, var(--ui-info));
|
|
175
175
|
--_solid-hover-border: var(--ui-info-hover-border, var(--ui-info-hover));
|
|
176
176
|
--_solid-active-border: var(--ui-info-active-border, var(--ui-info-active));
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
/* Neutral actions and form fields share the control boundary. */
|
|
196
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"] {
|
|
196
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="neutral"] {
|
|
197
197
|
--_solid-border: var(--ui-control-border, var(--ui-neutral-surface));
|
|
198
198
|
--_solid-hover-border: var(--ui-control-border-hover, var(--ui-neutral-hover));
|
|
199
199
|
--_solid-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
|
|
@@ -212,11 +212,11 @@
|
|
|
212
212
|
--_icon-button-solid-text: var(--ui-text);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"] {
|
|
215
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"] {
|
|
216
216
|
position: relative;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"]::before {
|
|
219
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"]::before {
|
|
220
220
|
content: "";
|
|
221
221
|
position: absolute;
|
|
222
222
|
inset: 50% auto auto 50%;
|
|
@@ -231,33 +231,33 @@
|
|
|
231
231
|
pointer-events: none;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"][data-ui-icon-button-state~="guide=bar"]::before {
|
|
234
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"][data-ui-icon-button-state~="guide=bar"]::before {
|
|
235
235
|
inline-size: 2px;
|
|
236
236
|
block-size: 20px;
|
|
237
237
|
background: var(--ui-border-strong);
|
|
238
238
|
opacity: 1;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"]:disabled::before {
|
|
241
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"]:disabled::before {
|
|
242
242
|
opacity: 0;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
/* At rest an anticipatory button shows only its guide dot. The icon grows into place when
|
|
246
246
|
proximity, hover, or focus reveals it; the button's hit area and guide remain stable. */
|
|
247
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"] .content {
|
|
247
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"] .content {
|
|
248
248
|
opacity: 1;
|
|
249
249
|
transform: scale(1);
|
|
250
250
|
transition: opacity var(--ui-motion-fast) var(--ui-motion-ease), transform calc(var(--ui-motion-fast) * 2) cubic-bezier(0.2, 1.4, 0.35, 1);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
@media (hover: hover) and (pointer: fine) {
|
|
254
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"]:not(:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="revealed"], :scope:where([data-component~="ui-icon-button"])[data-appearance="solid"], :scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="loading"], :scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="pending"], :disabled, [aria-pressed="true"], [data-ui-proximity="near"], :hover, :focus-visible) {
|
|
254
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"]:not(:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="revealed"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="loading"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="pending"], :disabled, [aria-pressed="true"], [data-ui-proximity="near"], :hover, :focus-visible) {
|
|
255
255
|
border-color: transparent;
|
|
256
256
|
background-color: transparent;
|
|
257
257
|
box-shadow: none;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"]:not(:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="revealed"], :scope:where([data-component~="ui-icon-button"])[data-appearance="solid"], :scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="loading"], :scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="pending"], :disabled, [aria-pressed="true"], [data-ui-proximity="near"], :hover, :focus-visible)
|
|
260
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"]:not(:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="revealed"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="loading"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="pending"], :disabled, [aria-pressed="true"], [data-ui-proximity="near"], :hover, :focus-visible)
|
|
261
261
|
.content {
|
|
262
262
|
opacity: 0;
|
|
263
263
|
transform: scale(0.65);
|
|
@@ -265,11 +265,11 @@
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"]:is(:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="revealed"], :scope:where([data-component~="ui-icon-button"])[data-appearance="solid"], [aria-pressed="true"], [data-ui-proximity="near"], :hover, :focus-visible)::before {
|
|
268
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"]:is(:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="revealed"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"], [aria-pressed="true"], [data-ui-proximity="near"], :hover, :focus-visible)::before {
|
|
269
269
|
opacity: 0;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
:scope:where([data-component~="ui-icon-button"]) {
|
|
272
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))) {
|
|
273
273
|
/* The size prop resolves here; --ui-icon-button-size overrides it on an element. */
|
|
274
274
|
--_size: 2rem;
|
|
275
275
|
--_icon-button-hit-size: var(--ui-control-min-block-size);
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
@media (hover: none), (pointer: coarse) {
|
|
300
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"]::before {
|
|
300
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"]::before {
|
|
301
301
|
opacity: 0;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
@@ -305,11 +305,11 @@
|
|
|
305
305
|
/* A touch target without a bigger button: an invisible hit area, at least the control
|
|
306
306
|
minimum, centred on the button (::before is the anticipatory guide). */
|
|
307
307
|
@media (pointer: coarse) {
|
|
308
|
-
:scope:where([data-component~="ui-icon-button"]) {
|
|
308
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))) {
|
|
309
309
|
position: relative;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
:scope:where([data-component~="ui-icon-button"])::after {
|
|
312
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))::after {
|
|
313
313
|
content: "";
|
|
314
314
|
position: absolute;
|
|
315
315
|
inset: 50% auto auto 50%;
|
|
@@ -319,11 +319,11 @@
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
html[data-ui-input-modality="touch"] :scope:where([data-component~="ui-icon-button"]) {
|
|
322
|
+
html[data-ui-input-modality="touch"] :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))) {
|
|
323
323
|
position: relative;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
html[data-ui-input-modality="touch"] :scope:where([data-component~="ui-icon-button"])::after {
|
|
326
|
+
html[data-ui-input-modality="touch"] :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))::after {
|
|
327
327
|
content: "";
|
|
328
328
|
position: absolute;
|
|
329
329
|
inset: 50% auto auto 50%;
|
|
@@ -332,12 +332,12 @@
|
|
|
332
332
|
transform: translate(-50%, -50%);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="size=xs"] {
|
|
335
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="size=xs"] {
|
|
336
336
|
--_size: var(--ui-control-size-xs);
|
|
337
337
|
--_icon-button-hit-size: var(--ui-inline-control-min-block-size);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="size=sm"] {
|
|
340
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="size=sm"] {
|
|
341
341
|
--_size: 1.75rem;
|
|
342
342
|
inline-size: var(--ui-icon-button-size, var(--_size));
|
|
343
343
|
block-size: var(--ui-icon-button-size, var(--_size));
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
min-block-size: var(--ui-icon-button-size, var(--_size));
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="size=lg"] {
|
|
348
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="size=lg"] {
|
|
349
349
|
--_size: 2.5rem;
|
|
350
350
|
inline-size: var(--ui-icon-button-size, var(--_size));
|
|
351
351
|
block-size: var(--ui-icon-button-size, var(--_size));
|
|
@@ -354,35 +354,35 @@
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
/* A text button's companion uses control geometry; compact icon buttons keep their own density. */
|
|
357
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"] {
|
|
357
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="matchButton"] {
|
|
358
358
|
--_size: var(--ui-control-size-md);
|
|
359
359
|
block-size: auto;
|
|
360
360
|
align-self: stretch;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
/* A paired action may grow vertically for touch, without intercepting its neighbour. */
|
|
364
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"]::after,
|
|
365
|
-
html[data-ui-input-modality="touch"] :scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"]::after {
|
|
364
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="matchButton"]::after,
|
|
365
|
+
html[data-ui-input-modality="touch"] :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="matchButton"]::after {
|
|
366
366
|
inline-size: 100%;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=xs"] {
|
|
369
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=xs"] {
|
|
370
370
|
--_size: var(--ui-control-size-xs);
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=sm"] {
|
|
373
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=sm"] {
|
|
374
374
|
--_size: var(--ui-control-size-sm);
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=lg"] {
|
|
377
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=lg"] {
|
|
378
378
|
--_size: var(--ui-control-size-lg);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="round"] {
|
|
381
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="round"] {
|
|
382
382
|
border-radius: var(--ui-radius-round);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"] {
|
|
385
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"] {
|
|
386
386
|
border-color: var(--ui-icon-button-border, var(--_icon-button-border, var(--ui-control-border, var(--ui-border-strong))));
|
|
387
387
|
background-color: var(--ui-icon-button-outline-surface, var(--_icon-button-outline-surface, var(--ui-surface-default)));
|
|
388
388
|
background-image: none;
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
box-shadow: var(--ui-neutral-shadow);
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="solid"] {
|
|
393
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"] {
|
|
394
394
|
border-color: var(--ui-icon-button-border, var(--_solid-border));
|
|
395
395
|
background-color: var(--ui-icon-button-solid-surface, var(--_icon-button-solid-surface, var(--ui-accent-solid)));
|
|
396
396
|
background-image: var(--_tone-highlight);
|
|
@@ -400,73 +400,73 @@
|
|
|
400
400
|
var(--_tone-glow);
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"][data-appearance="outline"] {
|
|
403
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="neutral"][data-appearance="outline"] {
|
|
404
404
|
box-shadow: var(--ui-neutral-shadow);
|
|
405
405
|
}
|
|
406
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"][data-appearance="solid"] {
|
|
406
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="neutral"][data-appearance="solid"] {
|
|
407
407
|
border-color: var(--ui-icon-button-border, var(--ui-control-border));
|
|
408
408
|
box-shadow: var(--ui-icon-button-solid-shadow, var(--ui-neutral-shadow));
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
:scope:where([data-component~="ui-icon-button"]):hover:enabled:not([aria-disabled="true"]) {
|
|
411
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))):hover:enabled:not([aria-disabled="true"]) {
|
|
412
412
|
/* Shared translucent paint keeps text and icon action feedback coordinated. */
|
|
413
413
|
background-color: var(--ui-icon-button-hover-surface, var(--_tone-ghost-hover));
|
|
414
414
|
color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]) {
|
|
417
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"]:not([data-tone="neutral"]) {
|
|
418
418
|
--_outline-wash: var(--_tone-wash);
|
|
419
419
|
border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
|
|
420
420
|
background-color: var(--ui-icon-button-outline-surface, transparent);
|
|
421
421
|
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]) {
|
|
424
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]) {
|
|
425
425
|
--_outline-wash: var(--_tone-wash-hover);
|
|
426
426
|
background-color: var(--ui-icon-button-hover-surface, transparent);
|
|
427
427
|
border-color: var(--ui-icon-button-hover-border, var(--_tone-outline-border));
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]) {
|
|
430
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]) {
|
|
431
431
|
border-color: var(--ui-icon-button-hover-border, var(--_icon-button-hover-border, var(--ui-control-border-hover, var(--ui-control-border))));
|
|
432
432
|
}
|
|
433
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"][data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]) {
|
|
433
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="neutral"][data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]) {
|
|
434
434
|
background-color: var(--ui-icon-button-hover-surface, transparent);
|
|
435
435
|
--_outline-wash: var(--ui-neutral-wash-hover);
|
|
436
436
|
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
437
437
|
}
|
|
438
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"][data-appearance="outline"]:active:enabled:not([aria-disabled="true"]) {
|
|
438
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone="neutral"][data-appearance="outline"]:active:enabled:not([aria-disabled="true"]) {
|
|
439
439
|
background-color: var(--ui-icon-button-active-surface, var(--ui-neutral-active));
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]) {
|
|
442
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]) {
|
|
443
443
|
border-color: var(--ui-icon-button-hover-border, var(--_solid-hover-border));
|
|
444
444
|
background-color: var(--ui-icon-button-solid-hover-surface, var(--_icon-button-solid-hover-surface, var(--ui-accent-hover)));
|
|
445
445
|
background-image: var(--_tone-hover-highlight);
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]) {
|
|
448
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]) {
|
|
449
449
|
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-text-on-accent)));
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="ghost"][aria-expanded="true"]:enabled:not([aria-disabled="true"]) {
|
|
452
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="ghost"][aria-expanded="true"]:enabled:not([aria-disabled="true"]) {
|
|
453
453
|
background-color: var(--ui-icon-button-active-surface, color-mix(in srgb, currentColor 16%, transparent));
|
|
454
454
|
color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
|
|
455
455
|
box-shadow: var(--ui-pressed);
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
/* Native toggle state persists after pointer release, including during loading. */
|
|
459
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"][aria-pressed="true"]:enabled {
|
|
459
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"][aria-pressed="true"]:enabled {
|
|
460
460
|
background-color: var(--ui-icon-button-active-surface, color-mix(in srgb, currentColor 12%, var(--ui-surface-default)));
|
|
461
461
|
background-image: none;
|
|
462
462
|
box-shadow: var(--ui-pressed);
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
:scope:where([data-component~="ui-icon-button"]):active:enabled:not([aria-disabled="true"]) {
|
|
465
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))):active:enabled:not([aria-disabled="true"]) {
|
|
466
466
|
scale: var(--ui-icon-button-active-scale, var(--ui-press-scale, 0.96));
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
:is(:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="loading"], :scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="pending"]) {
|
|
469
|
+
:is(:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="loading"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="pending"]) {
|
|
470
470
|
cursor: progress;
|
|
471
471
|
}
|
|
472
472
|
|
|
@@ -476,61 +476,61 @@
|
|
|
476
476
|
justify-content: center !important;
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
-
:is(:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="loading"], :scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="pending"]) .content {
|
|
479
|
+
:is(:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="loading"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="pending"]) .content {
|
|
480
480
|
display: none !important;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
@media (prefers-reduced-motion: reduce) {
|
|
484
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="anticipatory"] .content {
|
|
484
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="anticipatory"] .content {
|
|
485
485
|
transition: none;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
:scope:where([data-component~="ui-icon-button"]):focus-visible {
|
|
489
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))):focus-visible {
|
|
490
490
|
outline: none;
|
|
491
491
|
box-shadow: var(--ui-focus-halo);
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:focus-visible {
|
|
494
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"]:focus-visible {
|
|
495
495
|
box-shadow:
|
|
496
496
|
var(--ui-neutral-shadow),
|
|
497
497
|
var(--ui-focus-halo);
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="solid"]:focus-visible {
|
|
500
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"]:focus-visible {
|
|
501
501
|
box-shadow:
|
|
502
502
|
var(--ui-icon-button-solid-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
|
|
503
503
|
var(--ui-focus-halo);
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="solid"]:active:enabled:not([aria-disabled="true"]) {
|
|
506
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"]:active:enabled:not([aria-disabled="true"]) {
|
|
507
507
|
background-color: var(--ui-icon-button-active-surface, var(--_solid-active-surface));
|
|
508
508
|
border-color: var(--_solid-active-border);
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
:scope:where([data-component~="ui-icon-button"]):is(:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"], :scope:where([data-component~="ui-icon-button"])[data-appearance="solid"]):active:enabled:not([aria-disabled="true"]) {
|
|
511
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))):is(:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"], :scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"]):active:enabled:not([aria-disabled="true"]) {
|
|
512
512
|
background-image: none;
|
|
513
513
|
box-shadow: var(--ui-pressed);
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"][aria-pressed="true"]:enabled:focus-visible {
|
|
516
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"][aria-pressed="true"]:enabled:focus-visible {
|
|
517
517
|
box-shadow:
|
|
518
518
|
var(--ui-pressed),
|
|
519
519
|
var(--ui-focus-halo);
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
@media (forced-colors: active) {
|
|
523
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"][aria-pressed="true"]:enabled {
|
|
523
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"][aria-pressed="true"]:enabled {
|
|
524
524
|
outline: var(--ui-focus-width) solid Highlight;
|
|
525
525
|
outline-offset: calc(-2 * var(--ui-focus-width));
|
|
526
526
|
}
|
|
527
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"][aria-pressed="true"]:enabled:focus-visible {
|
|
527
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="outline"][aria-pressed="true"]:enabled:focus-visible {
|
|
528
528
|
outline-offset: var(--ui-focus-width);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
/* Disabled is a flat neutral control, independent of the active variant's tone. */
|
|
533
|
-
:scope:where([data-component~="ui-icon-button"])[data-tone]:disabled {
|
|
533
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-tone]:disabled {
|
|
534
534
|
border-color: var(--ui-disabled-border);
|
|
535
535
|
background-color: var(--ui-disabled-surface);
|
|
536
536
|
color: var(--ui-disabled-text);
|
|
@@ -541,11 +541,11 @@
|
|
|
541
541
|
background-image: none;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
:scope:where([data-component~="ui-icon-button"])[data-appearance="ghost"]:disabled {
|
|
544
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="ghost"]:disabled {
|
|
545
545
|
border-color: transparent;
|
|
546
546
|
}
|
|
547
547
|
|
|
548
|
-
:scope:where([data-component~="ui-icon-button"]) {
|
|
548
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))) {
|
|
549
549
|
--_icon-button-icon-default: var(--ui-icon-size-md);
|
|
550
550
|
/* A slotted ui-icon is its own component, out of reach of the svg rule below; these are its
|
|
551
551
|
defaults, which its own --ui-icon-* hooks still override. */
|
|
@@ -553,24 +553,24 @@
|
|
|
553
553
|
--_ui-default-icon-stroke-width: var(--_ui-icon-button-icon-stroke-width, 1.75);
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="size=xs"] {
|
|
556
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="size=xs"] {
|
|
557
557
|
--_icon-button-icon-default: var(--ui-icon-size-xs);
|
|
558
558
|
}
|
|
559
559
|
|
|
560
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="size=sm"] {
|
|
560
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="size=sm"] {
|
|
561
561
|
--_icon-button-icon-default: var(--ui-icon-size-sm);
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="size=lg"] {
|
|
564
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-ui-icon-button-state~="size=lg"] {
|
|
565
565
|
--_icon-button-icon-default: var(--ui-icon-size-lg);
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
569
|
-
:scope:where([data-component~="ui-icon-button"])[hidden] {
|
|
569
|
+
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[hidden] {
|
|
570
570
|
display: none !important;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
@scope ([data-component~="ui-icon-button"]) to ([data-component]) {
|
|
573
|
+
@scope (:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component]))) {
|
|
574
574
|
/* Neutral actions and form fields share the control boundary. */
|
|
575
575
|
|
|
576
576
|
/* At rest an anticipatory button shows only its guide dot. The icon grows into place when
|
package/styles/ui-icon.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.82. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
|
-
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
-
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
3
|
+
:where(:is([component]:not(template), [data-component]:not([component])), [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not(:is([component]:not(template), [data-component]:not([component])))) { --html-next-scope-owner: projected !important; }
|
|
5
5
|
}
|
|
6
6
|
@supports (-moz-appearance: none) {
|
|
7
|
-
[data-component~="ui-icon"] { --html-next-scope-owner: "ui-icon" !important; }
|
|
7
|
+
:is([component~="ui-icon"]:not(template), [data-component~="ui-icon"]:not([component])) { --html-next-scope-owner: "ui-icon" !important; }
|
|
8
8
|
}
|
|
9
|
-
@scope ([data-component~="ui-icon"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
:scope:where([data-component~="ui-icon"]) {
|
|
9
|
+
@scope (:is([component~="ui-icon"]:not(template), [data-component~="ui-icon"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component])), [data-slotted]) {
|
|
10
|
+
:scope:where(:is([component~="ui-icon"]:not(template), [data-component~="ui-icon"]:not([component]))) {
|
|
11
11
|
/* Resolve the SVG stroke at the root. A Looma component that sizes its icons sets --_ui-default-icon-*, which the icon's own hooks override. */
|
|
12
12
|
--_ui-icon-stroke-width: var(--ui-icon-stroke-width, var(--_ui-default-icon-stroke-width));
|
|
13
13
|
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
block-size: var(--ui-icon-size, var(--_ui-default-icon-size, 1em));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
:scope:where([data-component~="ui-icon"])[data-ui-icon-state~="tone=secondary"] {
|
|
20
|
+
:scope:where(:is([component~="ui-icon"]:not(template), [data-component~="ui-icon"]:not([component])))[data-ui-icon-state~="tone=secondary"] {
|
|
21
21
|
color: var(--ui-text-secondary);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
:scope:where([data-component~="ui-icon"])[data-ui-icon-state~="tone=muted"] {
|
|
24
|
+
:scope:where(:is([component~="ui-icon"]:not(template), [data-component~="ui-icon"]:not([component])))[data-ui-icon-state~="tone=muted"] {
|
|
25
25
|
color: var(--ui-text-muted);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
:scope:where([data-component~="ui-icon"])[data-ui-icon-state~="directional"]:dir(rtl) svg {
|
|
28
|
+
:scope:where(:is([component~="ui-icon"]:not(template), [data-component~="ui-icon"]:not([component])))[data-ui-icon-state~="directional"]:dir(rtl) svg {
|
|
29
29
|
transform: scaleX(-1);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
39
|
-
:scope:where([data-component~="ui-icon"])[hidden] {
|
|
39
|
+
:scope:where(:is([component~="ui-icon"]:not(template), [data-component~="ui-icon"]:not([component])))[hidden] {
|
|
40
40
|
display: none !important;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
@scope ([data-component~="ui-icon"]) to ([data-component]) {
|
|
43
|
+
@scope (:is([component~="ui-icon"]:not(template), [data-component~="ui-icon"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component]))) {
|
|
44
44
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
45
45
|
}
|