@threadlabs/looma 0.41.2 → 0.43.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-action-bar/ui-action-bar.html +1 -7
- package/components/ui-affordance-scope/ui-affordance-scope.html +4 -4
- package/components/ui-avatar/ui-avatar.html +0 -22
- package/components/ui-avatar-group/ui-avatar-group.html +1 -11
- package/components/ui-badge/ui-badge.html +57 -78
- package/components/ui-button/ui-button.html +66 -90
- package/components/ui-button/ui-button.js +2 -2
- package/components/ui-callout/ui-callout.html +31 -69
- package/components/ui-card/ui-card.html +47 -21
- package/components/ui-checkbox/ui-checkbox.html +2 -16
- package/components/ui-cluster/ui-cluster.html +1 -7
- package/components/ui-combobox/ui-combobox.html +7 -70
- package/components/ui-container/ui-container.html +2 -12
- package/components/ui-context-menu/ui-context-menu.html +1 -23
- package/components/ui-dialog/ui-dialog.html +9 -41
- package/components/ui-disclosure/ui-disclosure.html +1 -15
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +1 -1
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +1 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
- package/components/ui-floating-action-button/ui-floating-action-button.html +0 -14
- package/components/ui-form-field/ui-form-field.html +2 -32
- package/components/ui-grid/ui-grid.html +1 -11
- package/components/ui-icon/ui-icon.html +1 -12
- package/components/ui-icon-button/ui-icon-button.html +94 -94
- package/components/ui-input/ui-input.html +5 -55
- package/components/ui-input-group/ui-input-group.html +1 -13
- package/components/ui-light-editor/ui-light-editor.html +1 -1
- package/components/ui-list/ui-list.html +0 -10
- package/components/ui-list-item/ui-list-item.html +1 -19
- package/components/ui-listbox/ui-listbox.html +0 -21
- package/components/ui-menu/ui-menu.html +8 -32
- package/components/ui-menu-item/ui-menu-item.html +1 -27
- package/components/ui-meter/ui-meter.html +11 -6
- package/components/ui-nav-item/ui-nav-item.html +0 -18
- package/components/ui-popover/ui-popover.html +9 -41
- package/components/ui-radio/ui-radio.html +58 -12
- package/components/ui-radio-group/ui-radio-group.html +0 -5
- package/components/ui-reel/ui-reel.html +1 -11
- package/components/ui-search-result-row/ui-search-result-row.html +0 -34
- package/components/ui-search-shell/ui-search-shell.html +1 -43
- package/components/ui-section/ui-section.html +1 -1
- package/components/ui-select/ui-select.html +0 -42
- package/components/ui-separator/ui-separator.html +0 -6
- package/components/ui-sidebar/ui-sidebar.html +2 -24
- package/components/ui-site-header/ui-site-header.html +0 -25
- package/components/ui-skeleton/ui-skeleton.html +0 -9
- package/components/ui-stack/ui-stack.html +6 -11
- package/components/ui-status-message/ui-status-message.html +1 -1
- package/components/ui-swatch/ui-swatch.html +0 -5
- package/components/ui-switch/ui-switch.html +6 -17
- package/components/ui-switcher/ui-switcher.html +1 -11
- package/components/ui-tabs/ui-tabs.html +4 -22
- package/components/ui-text/ui-text.html +20 -7
- package/components/ui-textarea/ui-textarea.html +0 -50
- package/components/ui-toast/ui-toast.html +12 -27
- package/components/ui-toast-region/ui-toast-region.html +13 -34
- package/components/ui-tooltip/ui-tooltip.html +9 -53
- package/components/ui-top-bar/ui-top-bar.html +1 -31
- package/components/ui-tree/ui-tree.html +1 -16
- package/components/ui-tree-item/ui-tree-item.html +1 -23
- package/components/ui-tree-item/ui-tree-item.js +0 -1
- package/dist/index.js +1 -1
- package/docs/README.md +15 -9
- package/docs/catalog.json +973 -186
- package/docs/customizer-render.mjs +25 -9
- package/docs/customizer.js +42 -2
- package/docs/fonts.mjs +1 -1
- package/docs/palette.mjs +5 -4
- package/docs/theme.mjs +214 -51
- package/docs/value-editors.mjs +2 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +3 -11
- package/styles/ui-affordance-scope.css +4 -4
- package/styles/ui-avatar-group.css +3 -15
- package/styles/ui-avatar.css +2 -26
- package/styles/ui-badge.css +56 -80
- package/styles/ui-button.css +65 -92
- package/styles/ui-callout.css +33 -73
- package/styles/ui-card.css +42 -18
- package/styles/ui-checkbox.css +4 -20
- package/styles/ui-cluster.css +2 -10
- package/styles/ui-combobox.css +7 -140
- package/styles/ui-container.css +2 -14
- package/styles/ui-context-menu.css +3 -27
- package/styles/ui-dialog.css +22 -88
- package/styles/ui-disclosure.css +3 -19
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +2 -2
- package/styles/ui-editor-table-toolbar.css +2 -2
- package/styles/ui-floating-action-button.css +2 -18
- package/styles/ui-form-field.css +4 -36
- package/styles/ui-grid.css +2 -14
- package/styles/ui-icon-button.css +93 -96
- package/styles/ui-icon.css +3 -16
- package/styles/ui-input-group.css +2 -14
- package/styles/ui-input.css +6 -57
- package/styles/ui-light-editor.css +2 -2
- package/styles/ui-list-item.css +3 -23
- package/styles/ui-list.css +2 -14
- package/styles/ui-listbox.css +2 -44
- package/styles/ui-menu-item.css +3 -31
- package/styles/ui-menu.css +11 -37
- package/styles/ui-meter.css +8 -4
- package/styles/ui-nav-item.css +2 -22
- package/styles/ui-popover.css +12 -46
- package/styles/ui-radio-group.css +1 -6
- package/styles/ui-radio.css +68 -15
- package/styles/ui-reel.css +2 -14
- package/styles/ui-search-result-row.css +2 -38
- package/styles/ui-search-shell.css +3 -47
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +2 -46
- package/styles/ui-separator.css +2 -10
- package/styles/ui-sidebar.css +4 -28
- package/styles/ui-site-header.css +1 -26
- package/styles/ui-skeleton.css +2 -12
- package/styles/ui-stack.css +4 -12
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -6
- package/styles/ui-switch.css +8 -21
- package/styles/ui-switcher.css +2 -14
- package/styles/ui-tabs.css +6 -26
- package/styles/ui-text.css +11 -3
- package/styles/ui-textarea.css +2 -54
- package/styles/ui-toast-region.css +29 -73
- package/styles/ui-toast.css +24 -54
- package/styles/ui-tooltip.css +12 -58
- package/styles/ui-top-bar.css +3 -35
- package/styles/ui-tree-item.css +5 -51
- package/styles/ui-tree.css +3 -20
- package/theme-system.css +16 -10
- package/tokens.css +75 -18
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vue/UiActionBar.vue +3 -9
- package/vue/UiAffordanceScope.vue +4 -4
- package/vue/UiAvatar.vue +1 -28
- package/vue/UiAvatarGroup.vue +1 -11
- package/vue/UiBadge.d.ts +2 -2
- package/vue/UiBadge.vue +84 -81
- package/vue/UiButton.d.ts +2 -2
- package/vue/UiButton.vue +120 -106
- package/vue/UiCallout.vue +31 -72
- package/vue/UiCard.d.ts +2 -2
- package/vue/UiCard.vue +77 -32
- package/vue/UiCheckbox.vue +2 -16
- package/vue/UiCluster.vue +1 -10
- package/vue/UiCombobox.vue +13 -72
- package/vue/UiContainer.vue +1 -13
- package/vue/UiContextMenu.vue +1 -30
- package/vue/UiDialog.vue +23 -77
- package/vue/UiDisclosure.vue +1 -15
- package/vue/UiEditorMentionMenu.vue +1 -1
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +2 -2
- package/vue/UiEditorTableToolbar.vue +2 -2
- package/vue/UiFloatingActionButton.vue +0 -22
- package/vue/UiFormField.vue +6 -33
- package/vue/UiGrid.vue +1 -13
- package/vue/UiIcon.vue +1 -16
- package/vue/UiIconButton.d.ts +2 -2
- package/vue/UiIconButton.vue +145 -106
- package/vue/UiInput.vue +1 -54
- package/vue/UiInputGroup.vue +8 -20
- package/vue/UiLightEditor.vue +2 -2
- package/vue/UiList.vue +2 -12
- package/vue/UiListItem.vue +8 -26
- package/vue/UiListbox.vue +0 -23
- package/vue/UiMenu.vue +12 -44
- package/vue/UiMenuItem.vue +1 -27
- package/vue/UiMeter.d.ts +2 -2
- package/vue/UiMeter.vue +47 -12
- package/vue/UiNavItem.vue +3 -21
- package/vue/UiPopover.vue +12 -53
- package/vue/UiRadio.vue +58 -12
- package/vue/UiRadioGroup.vue +0 -11
- package/vue/UiReel.vue +1 -11
- package/vue/UiSearchResultRow.vue +0 -35
- package/vue/UiSearchShell.vue +1 -53
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +0 -42
- package/vue/UiSeparator.vue +0 -7
- package/vue/UiSidebar.vue +3 -26
- package/vue/UiSiteHeader.vue +0 -24
- package/vue/UiSkeleton.vue +0 -9
- package/vue/UiStack.vue +6 -11
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwatch.vue +1 -6
- package/vue/UiSwitch.vue +6 -17
- package/vue/UiSwitcher.vue +1 -14
- package/vue/UiTabs.vue +4 -22
- package/vue/UiText.d.ts +2 -2
- package/vue/UiText.vue +30 -5
- package/vue/UiTextarea.vue +0 -50
- package/vue/UiToast.vue +26 -34
- package/vue/UiToastRegion.vue +26 -55
- package/vue/UiTooltip.vue +12 -64
- package/vue/UiTopBar.vue +1 -34
- package/vue/UiTree.vue +2 -17
- package/vue/UiTreeItem.vue +2 -28
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +4 -2
- package/vue/chunks/UiButton.js +4 -2
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +5 -3
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiCombobox.js +3 -3
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +4 -2
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiLightEditor.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +4 -2
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/chunks/UiSkeleton.js +1 -1
- package/vue/chunks/UiStack.js +3 -3
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwatch.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiSwitcher.js +2 -2
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +4 -2
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/components.css +857 -2184
- package/vue/editor/index.js +8 -2
package/styles/ui-tabs.css
CHANGED
|
@@ -7,27 +7,9 @@
|
|
|
7
7
|
[data-component~="ui-tabs"] { --html-next-scope-owner: "ui-tabs" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-tabs"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
/*
|
|
11
|
-
@property --ui-tabs-tab-min-block-size {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-tabs-tab-padding-block {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-tabs-tab-padding-inline {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-tabs-panel-padding {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Density resolves into the tab row's own values; the public tokens still override them. */
|
|
10
|
+
/* Density resolves into the tab row's own values; the public tokens still override them. */
|
|
29
11
|
:scope:where([data-component~="ui-tabs"]) {
|
|
30
|
-
/*
|
|
12
|
+
/* Resolve shared part values at the component root. */
|
|
31
13
|
--_ui-tabs-tab-min-block-size: var(--ui-tabs-tab-min-block-size);
|
|
32
14
|
--_ui-tabs-tab-padding-block: var(--ui-tabs-tab-padding-block);
|
|
33
15
|
--_ui-tabs-tab-padding-inline: var(--ui-tabs-tab-padding-inline);
|
|
@@ -101,9 +83,7 @@
|
|
|
101
83
|
}
|
|
102
84
|
}
|
|
103
85
|
@scope ([data-component~="ui-tabs"]) to ([data-component]) {
|
|
104
|
-
/*
|
|
105
|
-
|
|
106
|
-
/* Density resolves into the tab row's own values; the public tokens still override them. */
|
|
86
|
+
/* Density resolves into the tab row's own values; the public tokens still override them. */
|
|
107
87
|
|
|
108
88
|
.list button,
|
|
109
89
|
.list > :where([data-slotted], [data-slotted] *):is(button[slot="tab"]) {
|
|
@@ -150,8 +130,8 @@
|
|
|
150
130
|
}
|
|
151
131
|
.list button[aria-selected="true"],
|
|
152
132
|
.list > :where([data-slotted], [data-slotted] *):is(button[slot="tab"][aria-selected="true"]) {
|
|
153
|
-
color: var(--ui-accent-
|
|
154
|
-
border-block-end-color: var(--ui-accent-
|
|
133
|
+
color: var(--ui-accent-subtle-text);
|
|
134
|
+
border-block-end-color: var(--ui-accent-subtle-text);
|
|
155
135
|
}
|
|
156
136
|
.list button:focus-visible,
|
|
157
137
|
.list > :where([data-slotted], [data-slotted] *):is(button[slot="tab"]:focus-visible) {
|
|
@@ -174,7 +154,7 @@
|
|
|
174
154
|
|
|
175
155
|
:scope:where([data-component~="ui-tabs"])[data-ui-tabs-state~="orientation=vertical"] .list button[aria-selected="true"],
|
|
176
156
|
:scope:where([data-component~="ui-tabs"])[data-ui-tabs-state~="orientation=vertical"] .list > :where([data-slotted], [data-slotted] *):is(button[slot="tab"][aria-selected="true"]) {
|
|
177
|
-
border-inline-end-color: var(--ui-accent-
|
|
157
|
+
border-inline-end-color: var(--ui-accent-subtle-text);
|
|
178
158
|
}
|
|
179
159
|
|
|
180
160
|
@media (prefers-reduced-motion: reduce) {
|
package/styles/ui-text.css
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
:scope:where([data-component~="ui-text"]) {
|
|
18
18
|
margin: 0 !important;
|
|
19
19
|
min-inline-size: 0;
|
|
20
|
-
color:
|
|
20
|
+
color: inherit;
|
|
21
21
|
text-align: start;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -58,8 +58,16 @@
|
|
|
58
58
|
:scope:where([data-component~="ui-text"])[data-ui-text-state~="tone=muted"] {
|
|
59
59
|
color: var(--ui-text-muted);
|
|
60
60
|
}
|
|
61
|
+
:scope:where([data-component~="ui-text"])[data-ui-text-state~="tone=accent-secondary"] {
|
|
62
|
+
color: var(--ui-accent-secondary-subtle-text);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:scope:where([data-component~="ui-text"])[data-ui-text-state~="tone=accent-tertiary"] {
|
|
66
|
+
color: var(--ui-accent-tertiary-subtle-text);
|
|
67
|
+
}
|
|
68
|
+
|
|
61
69
|
:scope:where([data-component~="ui-text"])[data-ui-text-state~="tone=accent"] {
|
|
62
|
-
color: var(--ui-accent-
|
|
70
|
+
color: var(--ui-accent-subtle-text);
|
|
63
71
|
}
|
|
64
72
|
/* Every status tone uses the text-safe token a subtle badge sets its words in, so text and badges
|
|
65
73
|
in one tone match, and each holds 4.5:1 on sunken surfaces where some base colours fall short. */
|
|
@@ -165,7 +173,7 @@
|
|
|
165
173
|
/* A link in running text is underlined, so it stands apart from the words around it by more than
|
|
166
174
|
colour. */
|
|
167
175
|
:scope:where([data-component~="ui-text"]) :where([data-slotted], [data-slotted] *):is(a) {
|
|
168
|
-
color: var(--ui-accent-
|
|
176
|
+
color: var(--ui-link-color, var(--ui-accent-subtle-text));
|
|
169
177
|
text-decoration: underline;
|
|
170
178
|
text-decoration-thickness: 0.06em;
|
|
171
179
|
text-underline-offset: 0.18em;
|
package/styles/ui-textarea.css
CHANGED
|
@@ -7,57 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-textarea"] { --html-next-scope-owner: "ui-textarea" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-textarea"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-textarea-border-width {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-textarea-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-textarea-border-hover {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-textarea-focus-border {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-textarea-focus-outline {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-textarea-surface {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-textarea-focus-shadow {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-textarea-invalid-border {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-textarea-invalid-focus-shadow {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-textarea-radius {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
@property --ui-textarea-shadow {
|
|
52
|
-
syntax: "*";
|
|
53
|
-
inherits: false;
|
|
54
|
-
}
|
|
55
|
-
@property --ui-textarea-padding-inline-end {
|
|
56
|
-
syntax: "*";
|
|
57
|
-
inherits: false;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:scope:where([data-component~="ui-textarea"]) {
|
|
10
|
+
:scope:where([data-component~="ui-textarea"]) {
|
|
61
11
|
box-sizing: border-box !important;
|
|
62
12
|
display: inline-block !important;
|
|
63
13
|
inline-size: 100%;
|
|
@@ -171,9 +121,7 @@
|
|
|
171
121
|
}
|
|
172
122
|
}
|
|
173
123
|
@scope ([data-component~="ui-textarea"]) to ([data-component]) {
|
|
174
|
-
/*
|
|
175
|
-
|
|
176
|
-
/* Tabbing into a field selects its text; tint that selection softly instead of the page highlight. */
|
|
124
|
+
/* Tabbing into a field selects its text; tint that selection softly instead of the page highlight. */
|
|
177
125
|
|
|
178
126
|
/* The app's invalid flag, or the browser's own verdict once the user has left an invalid field. */
|
|
179
127
|
|
|
@@ -7,34 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-toast-region"] { --html-next-scope-owner: "ui-toast-region" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-toast-region"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-toast-region-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-toast-region-radius {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-toast-region-shadow {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-toast-region-enter-duration {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-toast-region-exit-duration {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:scope:where([data-component~="ui-toast-region"]) {
|
|
37
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-toast-region"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
38
12
|
--_ui-toast-region-surface: var(--ui-toast-region-surface);
|
|
39
13
|
--_ui-toast-region-border: var(--ui-toast-region-border);
|
|
40
14
|
--_ui-toast-region-radius: var(--ui-toast-region-radius);
|
|
@@ -92,8 +66,9 @@
|
|
|
92
66
|
}
|
|
93
67
|
|
|
94
68
|
.toast {
|
|
95
|
-
--_ui-toast-region-accent: var(--ui-border-strong);
|
|
96
|
-
--_ui-
|
|
69
|
+
--_ui-toast-region-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
70
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
71
|
+
--_ui-toast-region-tone-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
97
72
|
display: grid !important;
|
|
98
73
|
grid-template-columns: 1fr auto;
|
|
99
74
|
gap: var(--ui-space-2) !important;
|
|
@@ -104,7 +79,7 @@
|
|
|
104
79
|
/* The close button's internal space supplies the rest of the trailing inset. */
|
|
105
80
|
padding-inline-end: var(--ui-space-2) !important;
|
|
106
81
|
background: var(--_ui-toast-region-surface, var(--ui-overlay-surface, var(--_ui-toast-region-tone-surface)));
|
|
107
|
-
color: var(--
|
|
82
|
+
color: var(--_ui-surface-text);
|
|
108
83
|
font-family: var(--ui-font-family-sans);
|
|
109
84
|
font-size: var(--ui-font-size-sm);
|
|
110
85
|
font-weight: var(--ui-font-normal);
|
|
@@ -114,19 +89,23 @@
|
|
|
114
89
|
}
|
|
115
90
|
|
|
116
91
|
.toast[data-tone="info"] {
|
|
117
|
-
--_ui-toast-region-accent: var(--ui-info-
|
|
92
|
+
--_ui-toast-region-accent: var(--ui-info-soft-border);
|
|
93
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
118
94
|
--_ui-toast-region-tone-surface: var(--ui-info-soft);
|
|
119
95
|
}
|
|
120
96
|
.toast[data-tone="success"] {
|
|
121
|
-
--_ui-toast-region-accent: var(--ui-success-
|
|
97
|
+
--_ui-toast-region-accent: var(--ui-success-soft-border);
|
|
98
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
122
99
|
--_ui-toast-region-tone-surface: var(--ui-success-soft);
|
|
123
100
|
}
|
|
124
101
|
.toast[data-tone="warning"] {
|
|
125
|
-
--_ui-toast-region-accent: var(--ui-warning-
|
|
102
|
+
--_ui-toast-region-accent: var(--ui-warning-soft-border);
|
|
103
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
126
104
|
--_ui-toast-region-tone-surface: var(--ui-warning-soft);
|
|
127
105
|
}
|
|
128
106
|
.toast[data-tone="danger"] {
|
|
129
|
-
--_ui-toast-region-accent: var(--ui-danger-
|
|
107
|
+
--_ui-toast-region-accent: var(--ui-danger-soft-border);
|
|
108
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
130
109
|
--_ui-toast-region-tone-surface: var(--ui-danger-soft);
|
|
131
110
|
}
|
|
132
111
|
|
|
@@ -209,9 +188,7 @@
|
|
|
209
188
|
}
|
|
210
189
|
}
|
|
211
190
|
@scope ([data-component~="ui-toast-region"]) to ([data-component]) {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
:scope:where([data-component~="ui-toast-region"]) > .toast,
|
|
191
|
+
:scope:where([data-component~="ui-toast-region"]) > .toast,
|
|
215
192
|
:scope:where([data-component~="ui-toast-region"]) > :where([data-slotted], [data-slotted] *):is(*) {
|
|
216
193
|
pointer-events: auto;
|
|
217
194
|
}
|
|
@@ -224,34 +201,8 @@
|
|
|
224
201
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
225
202
|
}
|
|
226
203
|
@scope ([data-slotted~="ui-toast-region"]:not([data-component])) to ([data-component], [data-slotted]) {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
syntax: "*";
|
|
230
|
-
inherits: false;
|
|
231
|
-
}
|
|
232
|
-
@property --ui-toast-region-border {
|
|
233
|
-
syntax: "*";
|
|
234
|
-
inherits: false;
|
|
235
|
-
}
|
|
236
|
-
@property --ui-toast-region-radius {
|
|
237
|
-
syntax: "*";
|
|
238
|
-
inherits: false;
|
|
239
|
-
}
|
|
240
|
-
@property --ui-toast-region-shadow {
|
|
241
|
-
syntax: "*";
|
|
242
|
-
inherits: false;
|
|
243
|
-
}
|
|
244
|
-
@property --ui-toast-region-enter-duration {
|
|
245
|
-
syntax: "*";
|
|
246
|
-
inherits: false;
|
|
247
|
-
}
|
|
248
|
-
@property --ui-toast-region-exit-duration {
|
|
249
|
-
syntax: "*";
|
|
250
|
-
inherits: false;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
:where([data-component~="ui-toast-region"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-toast-region"]))) {
|
|
254
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
204
|
+
:where([data-component~="ui-toast-region"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-toast-region"]))) {
|
|
205
|
+
/* Resolve shared part values at the component root. */
|
|
255
206
|
--_ui-toast-region-surface: var(--ui-toast-region-surface);
|
|
256
207
|
--_ui-toast-region-border: var(--ui-toast-region-border);
|
|
257
208
|
--_ui-toast-region-radius: var(--ui-toast-region-radius);
|
|
@@ -305,8 +256,9 @@
|
|
|
305
256
|
}
|
|
306
257
|
|
|
307
258
|
.toast:where(:scope, :scope *) {
|
|
308
|
-
--_ui-toast-region-accent: var(--ui-border-strong);
|
|
309
|
-
--_ui-
|
|
259
|
+
--_ui-toast-region-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
260
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
261
|
+
--_ui-toast-region-tone-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
310
262
|
display: grid !important;
|
|
311
263
|
grid-template-columns: 1fr auto;
|
|
312
264
|
gap: var(--ui-space-2) !important;
|
|
@@ -317,7 +269,7 @@
|
|
|
317
269
|
/* The close button's internal space supplies the rest of the trailing inset. */
|
|
318
270
|
padding-inline-end: var(--ui-space-2) !important;
|
|
319
271
|
background: var(--_ui-toast-region-surface, var(--ui-overlay-surface, var(--_ui-toast-region-tone-surface)));
|
|
320
|
-
color: var(--
|
|
272
|
+
color: var(--_ui-surface-text);
|
|
321
273
|
font-family: var(--ui-font-family-sans);
|
|
322
274
|
font-size: var(--ui-font-size-sm);
|
|
323
275
|
font-weight: var(--ui-font-normal);
|
|
@@ -327,19 +279,23 @@
|
|
|
327
279
|
}
|
|
328
280
|
|
|
329
281
|
.toast[data-tone="info"]:where(:scope, :scope *) {
|
|
330
|
-
--_ui-toast-region-accent: var(--ui-info-
|
|
282
|
+
--_ui-toast-region-accent: var(--ui-info-soft-border);
|
|
283
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
331
284
|
--_ui-toast-region-tone-surface: var(--ui-info-soft);
|
|
332
285
|
}
|
|
333
286
|
.toast[data-tone="success"]:where(:scope, :scope *) {
|
|
334
|
-
--_ui-toast-region-accent: var(--ui-success-
|
|
287
|
+
--_ui-toast-region-accent: var(--ui-success-soft-border);
|
|
288
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
335
289
|
--_ui-toast-region-tone-surface: var(--ui-success-soft);
|
|
336
290
|
}
|
|
337
291
|
.toast[data-tone="warning"]:where(:scope, :scope *) {
|
|
338
|
-
--_ui-toast-region-accent: var(--ui-warning-
|
|
292
|
+
--_ui-toast-region-accent: var(--ui-warning-soft-border);
|
|
293
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
339
294
|
--_ui-toast-region-tone-surface: var(--ui-warning-soft);
|
|
340
295
|
}
|
|
341
296
|
.toast[data-tone="danger"]:where(:scope, :scope *) {
|
|
342
|
-
--_ui-toast-region-accent: var(--ui-danger-
|
|
297
|
+
--_ui-toast-region-accent: var(--ui-danger-soft-border);
|
|
298
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
343
299
|
--_ui-toast-region-tone-surface: var(--ui-danger-soft);
|
|
344
300
|
}
|
|
345
301
|
|
package/styles/ui-toast.css
CHANGED
|
@@ -8,30 +8,11 @@
|
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-toast"]) to ([data-component], [data-slotted]) {
|
|
10
10
|
/* Component hooks stay on this toast; group overlay values may inherit from the region. */
|
|
11
|
-
@property --ui-toast-surface {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-toast-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-toast-radius {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-toast-shadow {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-toast-accent {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
11
|
|
|
32
12
|
:scope:where([data-component~="ui-toast"]) {
|
|
33
|
-
--_ui-toast-accent: var(--ui-border-strong);
|
|
34
|
-
--_ui-
|
|
13
|
+
--_ui-toast-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
14
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
15
|
+
--_ui-toast-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
35
16
|
|
|
36
17
|
display: flex !important;
|
|
37
18
|
align-items: center !important;
|
|
@@ -45,7 +26,7 @@
|
|
|
45
26
|
border: var(--ui-border-width) solid var(--ui-toast-border, var(--ui-overlay-border, var(--ui-toast-accent, var(--_ui-toast-accent))));
|
|
46
27
|
border-radius: var(--ui-toast-radius, var(--ui-overlay-radius, var(--ui-radius-lg)));
|
|
47
28
|
background: var(--ui-toast-surface, var(--ui-overlay-surface, var(--_ui-toast-surface)));
|
|
48
|
-
color: var(--
|
|
29
|
+
color: var(--_ui-surface-text);
|
|
49
30
|
font-family: var(--ui-font-family-sans);
|
|
50
31
|
font-size: var(--ui-font-size-sm);
|
|
51
32
|
font-weight: var(--ui-font-normal);
|
|
@@ -55,19 +36,23 @@
|
|
|
55
36
|
}
|
|
56
37
|
|
|
57
38
|
:scope:where([data-component~="ui-toast"])[data-ui-toast-state~="tone=info"] {
|
|
58
|
-
--_ui-toast-accent: var(--ui-info-
|
|
39
|
+
--_ui-toast-accent: var(--ui-info-soft-border);
|
|
40
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
59
41
|
--_ui-toast-surface: var(--ui-info-soft);
|
|
60
42
|
}
|
|
61
43
|
:scope:where([data-component~="ui-toast"])[data-ui-toast-state~="tone=success"] {
|
|
62
|
-
--_ui-toast-accent: var(--ui-success-
|
|
44
|
+
--_ui-toast-accent: var(--ui-success-soft-border);
|
|
45
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
63
46
|
--_ui-toast-surface: var(--ui-success-soft);
|
|
64
47
|
}
|
|
65
48
|
:scope:where([data-component~="ui-toast"])[data-ui-toast-state~="tone=warning"] {
|
|
66
|
-
--_ui-toast-accent: var(--ui-warning-
|
|
49
|
+
--_ui-toast-accent: var(--ui-warning-soft-border);
|
|
50
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
67
51
|
--_ui-toast-surface: var(--ui-warning-soft);
|
|
68
52
|
}
|
|
69
53
|
:scope:where([data-component~="ui-toast"])[data-ui-toast-state~="tone=danger"] {
|
|
70
|
-
--_ui-toast-accent: var(--ui-danger-
|
|
54
|
+
--_ui-toast-accent: var(--ui-danger-soft-border);
|
|
55
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
71
56
|
--_ui-toast-surface: var(--ui-danger-soft);
|
|
72
57
|
}
|
|
73
58
|
|
|
@@ -87,30 +72,11 @@
|
|
|
87
72
|
}
|
|
88
73
|
@scope ([data-slotted~="ui-toast"]:not([data-component])) to ([data-component], [data-slotted]) {
|
|
89
74
|
/* Component hooks stay on this toast; group overlay values may inherit from the region. */
|
|
90
|
-
@property --ui-toast-surface {
|
|
91
|
-
syntax: "*";
|
|
92
|
-
inherits: false;
|
|
93
|
-
}
|
|
94
|
-
@property --ui-toast-border {
|
|
95
|
-
syntax: "*";
|
|
96
|
-
inherits: false;
|
|
97
|
-
}
|
|
98
|
-
@property --ui-toast-radius {
|
|
99
|
-
syntax: "*";
|
|
100
|
-
inherits: false;
|
|
101
|
-
}
|
|
102
|
-
@property --ui-toast-shadow {
|
|
103
|
-
syntax: "*";
|
|
104
|
-
inherits: false;
|
|
105
|
-
}
|
|
106
|
-
@property --ui-toast-accent {
|
|
107
|
-
syntax: "*";
|
|
108
|
-
inherits: false;
|
|
109
|
-
}
|
|
110
75
|
|
|
111
76
|
:where([data-component~="ui-toast"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-toast"]))) {
|
|
112
|
-
--_ui-toast-accent: var(--ui-border-strong);
|
|
113
|
-
--_ui-
|
|
77
|
+
--_ui-toast-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
78
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
79
|
+
--_ui-toast-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
114
80
|
|
|
115
81
|
display: flex !important;
|
|
116
82
|
align-items: center !important;
|
|
@@ -124,7 +90,7 @@
|
|
|
124
90
|
border: var(--ui-border-width) solid var(--ui-toast-border, var(--ui-overlay-border, var(--ui-toast-accent, var(--_ui-toast-accent))));
|
|
125
91
|
border-radius: var(--ui-toast-radius, var(--ui-overlay-radius, var(--ui-radius-lg)));
|
|
126
92
|
background: var(--ui-toast-surface, var(--ui-overlay-surface, var(--_ui-toast-surface)));
|
|
127
|
-
color: var(--
|
|
93
|
+
color: var(--_ui-surface-text);
|
|
128
94
|
font-family: var(--ui-font-family-sans);
|
|
129
95
|
font-size: var(--ui-font-size-sm);
|
|
130
96
|
font-weight: var(--ui-font-normal);
|
|
@@ -134,19 +100,23 @@
|
|
|
134
100
|
}
|
|
135
101
|
|
|
136
102
|
:where([data-component~="ui-toast"])[data-ui-toast-state~="tone=info"]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-toast"]))) {
|
|
137
|
-
--_ui-toast-accent: var(--ui-info-
|
|
103
|
+
--_ui-toast-accent: var(--ui-info-soft-border);
|
|
104
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
138
105
|
--_ui-toast-surface: var(--ui-info-soft);
|
|
139
106
|
}
|
|
140
107
|
:where([data-component~="ui-toast"])[data-ui-toast-state~="tone=success"]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-toast"]))) {
|
|
141
|
-
--_ui-toast-accent: var(--ui-success-
|
|
108
|
+
--_ui-toast-accent: var(--ui-success-soft-border);
|
|
109
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
142
110
|
--_ui-toast-surface: var(--ui-success-soft);
|
|
143
111
|
}
|
|
144
112
|
:where([data-component~="ui-toast"])[data-ui-toast-state~="tone=warning"]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-toast"]))) {
|
|
145
|
-
--_ui-toast-accent: var(--ui-warning-
|
|
113
|
+
--_ui-toast-accent: var(--ui-warning-soft-border);
|
|
114
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
146
115
|
--_ui-toast-surface: var(--ui-warning-soft);
|
|
147
116
|
}
|
|
148
117
|
:where([data-component~="ui-toast"])[data-ui-toast-state~="tone=danger"]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-toast"]))) {
|
|
149
|
-
--_ui-toast-accent: var(--ui-danger-
|
|
118
|
+
--_ui-toast-accent: var(--ui-danger-soft-border);
|
|
119
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
150
120
|
--_ui-toast-surface: var(--ui-danger-soft);
|
|
151
121
|
}
|
|
152
122
|
|
package/styles/ui-tooltip.css
CHANGED
|
@@ -7,51 +7,9 @@
|
|
|
7
7
|
[data-component~="ui-tooltip"] { --html-next-scope-owner: "ui-tooltip" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-tooltip"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-tooltip-arrow-size {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-tooltip-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-tooltip-inverse-surface {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-tooltip-inverse-text {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-tooltip-max-inline-size {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-tooltip-offset {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-tooltip-radius {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-tooltip-shadow {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-tooltip-surface {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-tooltip-text {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:scope:where([data-component~="ui-tooltip"]) {
|
|
10
|
+
:scope:where([data-component~="ui-tooltip"]) {
|
|
53
11
|
--_ui-material-scale: 0.08;
|
|
54
|
-
/*
|
|
12
|
+
/* Resolve shared part values at the component root. */
|
|
55
13
|
--_ui-tooltip-border: var(--ui-tooltip-border);
|
|
56
14
|
--_ui-tooltip-max-inline-size: var(--ui-tooltip-max-inline-size);
|
|
57
15
|
--_ui-tooltip-radius: var(--ui-tooltip-radius);
|
|
@@ -104,12 +62,12 @@
|
|
|
104
62
|
}
|
|
105
63
|
|
|
106
64
|
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
107
|
-
transparency,
|
|
65
|
+
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
108
66
|
.surface {
|
|
109
|
-
--_ui-material-glassiness:
|
|
67
|
+
--_ui-material-glassiness: clamp(0, var(--ui-glassiness, 0), 1);
|
|
110
68
|
--_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
|
|
111
|
-
--_ui-material-active: clamp(0, calc(
|
|
112
|
-
--_ui-material-rim: calc(
|
|
69
|
+
--_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
|
|
70
|
+
--_ui-material-rim: calc(var(--_ui-material-separation) * var(--_ui-material-scale, 0.08) * 8px);
|
|
113
71
|
--_ui-material-content-color: var(--_ui-tooltip-surface, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))));
|
|
114
72
|
--_ui-material-rim-color: color-mix(in srgb, var(--ui-material-glass, var(--ui-surface-elevated)) calc(var(--_ui-material-active) * 100%), transparent);
|
|
115
73
|
background:
|
|
@@ -132,10 +90,8 @@
|
|
|
132
90
|
var(--ui-elevation-tooltip, var(--ui-shadow-md))
|
|
133
91
|
)
|
|
134
92
|
);
|
|
135
|
-
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) *
|
|
136
|
-
|
|
137
|
-
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) * 18px))
|
|
138
|
-
saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) * 0.18));
|
|
93
|
+
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) * 32px));
|
|
94
|
+
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) * 32px));
|
|
139
95
|
}
|
|
140
96
|
|
|
141
97
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
@@ -147,8 +103,8 @@
|
|
|
147
103
|
@media (prefers-reduced-transparency: reduce) {
|
|
148
104
|
.surface {
|
|
149
105
|
background: var(--_ui-material-content-color);
|
|
150
|
-
backdrop-filter: none;
|
|
151
106
|
-webkit-backdrop-filter: none;
|
|
107
|
+
backdrop-filter: none;
|
|
152
108
|
}
|
|
153
109
|
}
|
|
154
110
|
|
|
@@ -157,8 +113,8 @@
|
|
|
157
113
|
background: Canvas;
|
|
158
114
|
border-color: CanvasText;
|
|
159
115
|
box-shadow: none;
|
|
160
|
-
backdrop-filter: none;
|
|
161
116
|
-webkit-backdrop-filter: none;
|
|
117
|
+
backdrop-filter: none;
|
|
162
118
|
}
|
|
163
119
|
}
|
|
164
120
|
|
|
@@ -283,12 +239,10 @@
|
|
|
283
239
|
}
|
|
284
240
|
}
|
|
285
241
|
@scope ([data-component~="ui-tooltip"]) to ([data-component]) {
|
|
286
|
-
/*
|
|
287
|
-
|
|
288
|
-
/* The label and the shortcut sit side by side, a gap apart, with the label wrapping on its own. */
|
|
242
|
+
/* The label and the shortcut sit side by side, a gap apart, with the label wrapping on its own. */
|
|
289
243
|
|
|
290
244
|
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
291
|
-
transparency,
|
|
245
|
+
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
292
246
|
|
|
293
247
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
294
248
|
}
|
package/styles/ui-top-bar.css
CHANGED
|
@@ -7,38 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-top-bar"] { --html-next-scope-owner: "ui-top-bar" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-top-bar"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-top-bar-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-top-bar-gap {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-top-bar-height {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-top-bar-padding-inline {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-top-bar-surface {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-top-bar-z-index {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:scope:where([data-component~="ui-top-bar"]) {
|
|
41
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-top-bar"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
42
12
|
--_ui-top-bar-actions-gap: var(--ui-top-bar-actions-gap);
|
|
43
13
|
|
|
44
14
|
position: sticky;
|
|
@@ -85,9 +55,7 @@
|
|
|
85
55
|
}
|
|
86
56
|
}
|
|
87
57
|
@scope ([data-component~="ui-top-bar"]) to ([data-component]) {
|
|
88
|
-
/*
|
|
89
|
-
|
|
90
|
-
/* An unused region takes no space, so it adds no gap. */
|
|
58
|
+
/* An unused region takes no space, so it adds no gap. */
|
|
91
59
|
|
|
92
60
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
93
61
|
}
|