@swiftwc/ui 0.0.0-dev.6 → 0.0.0-dev.60
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 +15 -0
- package/generated/buses/alert-dialog.d.ts +2 -0
- package/generated/buses/alert-dialog.js +1 -0
- package/generated/buses/confirmation-dialog.d.ts +2 -0
- package/generated/buses/confirmation-dialog.js +1 -0
- package/generated/buses/index.d.ts +6 -0
- package/generated/buses/index.js +6 -0
- package/generated/buses/lifecycle-observer.d.ts +2 -0
- package/generated/buses/lifecycle-observer.js +1 -0
- package/generated/client/index.d.ts +22 -4
- package/generated/client/index.js +219 -181
- package/generated/components/alert-dialog.d.ts +8 -0
- package/generated/components/alert-dialog.js +99 -0
- package/generated/components/body-view.js +5 -2
- package/generated/components/bordered-button.d.ts +17 -0
- package/generated/components/bordered-button.js +56 -0
- package/generated/components/bordered-prominent-button.d.ts +17 -0
- package/generated/components/bordered-prominent-button.js +56 -0
- package/generated/components/borderless-button.d.ts +12 -4
- package/generated/components/borderless-button.js +47 -16
- package/generated/components/color-scheme.d.ts +7 -0
- package/generated/components/color-scheme.js +54 -0
- package/generated/components/confirmation-dialog.d.ts +9 -0
- package/generated/components/confirmation-dialog.js +113 -0
- package/generated/components/content-unavailable-view.d.ts +24 -0
- package/generated/components/content-unavailable-view.js +81 -0
- package/generated/components/date-picker.d.ts +36 -0
- package/generated/components/date-picker.js +461 -0
- package/generated/components/disclosure-group.d.ts +9 -7
- package/generated/components/disclosure-group.js +51 -65
- package/generated/components/fine-tooltip.d.ts +7 -0
- package/generated/components/fine-tooltip.js +107 -0
- package/generated/components/form-view.d.ts +9 -0
- package/generated/components/form-view.js +63 -0
- package/generated/components/glass-button.d.ts +16 -0
- package/generated/components/glass-button.js +53 -0
- package/generated/components/glass-prominent-button.d.ts +16 -0
- package/generated/components/glass-prominent-button.js +53 -0
- package/generated/components/h-stack.d.ts +10 -0
- package/generated/components/h-stack.js +19 -0
- package/generated/components/image-view.d.ts +9 -0
- package/generated/components/image-view.js +46 -0
- package/generated/components/index.d.ts +41 -10
- package/generated/components/index.js +41 -15
- package/generated/components/label-view.d.ts +9 -0
- package/generated/components/label-view.js +51 -0
- package/generated/components/labeled-content.d.ts +9 -0
- package/generated/components/labeled-content.js +115 -0
- package/generated/components/list-view.d.ts +8 -0
- package/generated/components/list-view.js +32 -0
- package/generated/components/menu-view.d.ts +12 -0
- package/generated/components/menu-view.js +142 -0
- package/generated/components/navigation-large-title.d.ts +6 -0
- package/generated/components/navigation-large-title.js +181 -0
- package/generated/components/navigation-split-view.d.ts +7 -2
- package/generated/components/navigation-split-view.js +19 -3
- package/generated/components/navigation-stack.d.ts +6 -2
- package/generated/components/navigation-stack.js +23 -59
- package/generated/components/navigation-title.d.ts +8 -0
- package/generated/components/navigation-title.js +50 -0
- package/generated/components/picker-view.d.ts +44 -0
- package/generated/components/picker-view.js +1009 -0
- package/generated/components/plain-button.d.ts +7 -0
- package/generated/components/plain-button.js +22 -0
- package/generated/components/progress-view.d.ts +13 -0
- package/generated/components/progress-view.js +120 -0
- package/generated/components/screen-view.d.ts +1 -1
- package/generated/components/screen-view.js +4 -2
- package/generated/components/scroll-view-proxy.d.ts +8 -0
- package/generated/components/scroll-view-proxy.js +17 -0
- package/generated/components/scroll-view.d.ts +4 -2
- package/generated/components/scroll-view.js +179 -64
- package/generated/components/search-view.d.ts +7 -0
- package/generated/components/search-view.js +30 -0
- package/generated/components/section-view.d.ts +9 -0
- package/generated/components/section-view.js +85 -0
- package/generated/components/sheet-view.d.ts +3 -4
- package/generated/components/sheet-view.js +53 -17
- package/generated/components/sidebar-toggle.d.ts +1 -1
- package/generated/components/sidebar-toggle.js +76 -72
- package/generated/components/sidebar-view.d.ts +2 -4
- package/generated/components/sidebar-view.js +25 -17
- package/generated/components/sticky-container.d.ts +6 -0
- package/generated/components/sticky-container.js +26 -0
- package/generated/components/tab-bar.d.ts +5 -4
- package/generated/components/tab-bar.js +34 -17
- package/generated/components/tab-item.d.ts +4 -3
- package/generated/components/tab-item.js +125 -29
- package/generated/components/tab-view.d.ts +17 -2
- package/generated/components/tab-view.js +252 -17
- package/generated/components/table-view.d.ts +12 -0
- package/generated/components/table-view.js +153 -0
- package/generated/components/text-field.d.ts +29 -0
- package/generated/components/text-field.js +496 -0
- package/generated/components/tool-bar-item-group.d.ts +5 -0
- package/generated/components/tool-bar-item-group.js +28 -0
- package/generated/components/tool-bar-item.d.ts +8 -0
- package/generated/components/tool-bar-item.js +66 -0
- package/generated/components/tool-bar.d.ts +19 -0
- package/generated/components/tool-bar.js +93 -0
- package/generated/components/v-keyboard.d.ts +4 -0
- package/generated/components/v-keyboard.js +72 -70
- package/generated/components/v-stack.d.ts +13 -0
- package/generated/components/v-stack.js +22 -0
- package/generated/css/index.css +8841 -0
- package/generated/events/alert-dialog.d.ts +8 -0
- package/generated/events/confirmation-dialog.d.ts +9 -0
- package/generated/events/confirmation-dialog.js +1 -0
- package/generated/events/date-picker.d.ts +8 -0
- package/generated/events/date-picker.js +1 -0
- package/generated/events/index.d.ts +8 -0
- package/generated/events/index.js +8 -0
- package/generated/events/lifecycle-observer.d.ts +10 -0
- package/generated/events/lifecycle-observer.js +1 -0
- package/generated/events/picker-view.d.ts +15 -0
- package/generated/events/picker-view.js +1 -0
- package/generated/events/scroll-view.d.ts +10 -0
- package/generated/events/scroll-view.js +1 -0
- package/generated/events/tab-view.d.ts +28 -0
- package/generated/events/tab-view.js +1 -0
- package/generated/events/text-field.d.ts +8 -0
- package/generated/events/text-field.js +1 -0
- package/generated/i18n/index.d.ts +34 -0
- package/generated/i18n/index.js +167 -0
- package/generated/i18n/locales/el.d.ts +16 -0
- package/generated/i18n/locales/el.js +16 -0
- package/generated/i18n/locales/en.d.ts +16 -0
- package/generated/i18n/locales/en.js +16 -0
- package/generated/i18n/locales/index.d.ts +4 -0
- package/generated/i18n/locales/index.js +4 -0
- package/generated/internal/class/cleanup-registry.d.ts +5 -0
- package/generated/internal/class/cleanup-registry.js +38 -0
- package/generated/internal/class/css-style-observer.d.ts +8 -0
- package/generated/internal/class/css-style-observer.js +26 -0
- package/generated/internal/class/form-associated-base.d.ts +16 -0
- package/generated/internal/class/form-associated-base.js +78 -0
- package/generated/internal/class/mutation-observer-set.d.ts +9 -0
- package/generated/internal/class/mutation-observer-set.js +42 -0
- package/generated/internal/class/mutation-observer-singleton.d.ts +10 -0
- package/generated/internal/class/mutation-observer-singleton.js +64 -0
- package/generated/internal/class/navigation-path.d.ts +15 -0
- package/generated/internal/class/navigation-path.js +84 -0
- package/generated/internal/class/navigation-view.d.ts +8 -0
- package/generated/internal/class/navigation-view.js +72 -0
- package/generated/internal/class/resize-observer-singleton.d.ts +7 -0
- package/generated/internal/class/resize-observer-singleton.js +22 -0
- package/generated/internal/decorators/adaptive-slot.d.ts +1 -0
- package/generated/internal/decorators/adaptive-slot.js +50 -0
- package/generated/internal/decorators/custom-element.d.ts +5 -0
- package/generated/internal/decorators/custom-element.js +5 -0
- package/generated/internal/decorators/index.d.ts +6 -0
- package/generated/internal/decorators/index.js +6 -0
- package/generated/internal/decorators/microtask-on-connected.d.ts +39 -0
- package/generated/internal/decorators/microtask-on-connected.js +67 -0
- package/generated/internal/privateNamespace.d.ts +14 -0
- package/generated/internal/privateNamespace.js +168 -0
- package/generated/internal/utils/add.d.ts +1 -0
- package/generated/internal/utils/add.js +7 -0
- package/generated/internal/utils/cash/ancestors.d.ts +1 -0
- package/generated/internal/utils/cash/ancestors.js +27 -0
- package/generated/internal/utils/cash/index.d.ts +23 -0
- package/generated/internal/utils/cash/index.js +25 -0
- package/generated/internal/utils/cash/next-all.d.ts +1 -0
- package/generated/internal/utils/cash/next-all.js +10 -0
- package/generated/internal/utils/cash/next.d.ts +1 -0
- package/generated/internal/utils/cash/next.js +9 -0
- package/generated/internal/utils/cash/prev-all.d.ts +1 -0
- package/generated/internal/utils/cash/prev-all.js +10 -0
- package/generated/internal/utils/cash/prev.d.ts +1 -0
- package/generated/internal/utils/cash/prev.js +9 -0
- package/generated/internal/utils/cash/prop.d.ts +18 -0
- package/generated/internal/utils/cash/prop.js +30 -0
- package/generated/internal/utils/cash/siblings.d.ts +1 -0
- package/generated/internal/utils/cash/siblings.js +10 -0
- package/generated/internal/utils/clamp.d.ts +1 -0
- package/generated/internal/utils/clamp.js +4 -0
- package/generated/internal/utils/compare-big-decimals.d.ts +1 -0
- package/generated/internal/utils/compare-big-decimals.js +90 -0
- package/generated/internal/utils/debounce.d.ts +1 -0
- package/generated/internal/utils/debounce.js +13 -0
- package/generated/internal/utils/dev-flags.d.ts +3 -0
- package/generated/internal/utils/dev-flags.js +5 -0
- package/generated/internal/utils/ensure-placeholder.d.ts +1 -0
- package/generated/internal/utils/ensure-placeholder.js +55 -0
- package/generated/internal/utils/frame.d.ts +1 -0
- package/generated/internal/utils/frame.js +6 -0
- package/generated/internal/utils/index.d.ts +21 -1
- package/generated/internal/utils/index.js +24 -1
- package/generated/internal/utils/is-inside.d.ts +1 -0
- package/generated/internal/utils/is-inside.js +4 -0
- package/generated/internal/utils/kebab-case.d.ts +1 -1
- package/generated/internal/utils/list-active.d.ts +7 -0
- package/generated/internal/utils/list-active.js +83 -0
- package/generated/internal/utils/microtask.d.ts +1 -0
- package/generated/internal/utils/microtask.js +3 -0
- package/generated/internal/utils/onoff.d.ts +45 -0
- package/generated/internal/utils/onoff.js +31 -0
- package/generated/internal/utils/render-label-icon.d.ts +2 -0
- package/generated/internal/utils/render-label-icon.js +19 -0
- package/generated/internal/utils/render-label-title.d.ts +2 -0
- package/generated/internal/utils/render-label-title.js +16 -0
- package/generated/internal/utils/render-label.d.ts +1 -0
- package/generated/internal/utils/render-label.js +19 -0
- package/generated/internal/utils/set.d.ts +1 -0
- package/generated/internal/utils/set.js +7 -0
- package/generated/internal/utils/sleep.d.ts +1 -0
- package/generated/internal/utils/sleep.js +3 -0
- package/generated/internal/utils/slow-hide-show.d.ts +1 -0
- package/generated/internal/utils/slow-hide-show.js +16 -0
- package/generated/internal/utils/timeout.d.ts +5 -0
- package/generated/internal/utils/timeout.js +16 -0
- package/generated/internal/utils/touch-glass.d.ts +7 -0
- package/generated/internal/utils/touch-glass.js +19 -0
- package/generated/namespace-browser/base.d.ts +45 -0
- package/generated/namespace-browser/base.js +115 -0
- package/generated/namespace-browser/index.d.ts +7 -0
- package/generated/namespace-browser/index.js +1 -0
- package/generated/snapshot/index.d.ts +4 -11
- package/generated/snapshot/index.js +55 -145
- package/package.json +33 -9
- package/scss/_components.scss +60 -13
- package/scss/_final.scss +1 -0
- package/scss/_functions.scss +10 -0
- package/scss/_mixins.scss +4 -169
- package/scss/_placeholders.scss +3 -0
- package/scss/_transitions.scss +22 -1
- package/scss/_utils.scss +9 -0
- package/scss/_vars.scss +144 -23
- package/scss/base/_layout.scss +40 -16
- package/scss/base/_reboot.scss +151 -15
- package/scss/base/_root.scss +358 -25
- package/scss/colors/_index.scss +788 -70
- package/scss/components/_alert-dialog.scss +111 -0
- package/scss/components/_body-view.scss +12 -3
- package/scss/components/_bordered-button.scss +57 -0
- package/scss/components/_bordered-prominent-button.scss +64 -0
- package/scss/components/_borderless-button.scss +36 -6
- package/scss/components/_confirmation-dialog.scss +102 -0
- package/scss/components/_content-unavailable-view.scss +54 -0
- package/scss/components/_date-picker.scss +30 -0
- package/scss/components/_detail-placeholder.scss +153 -0
- package/scss/components/_disclosure-group.scss +147 -48
- package/scss/components/_fine-tooltip.scss +84 -0
- package/scss/components/_form-view.scss +233 -0
- package/scss/components/_full-screen.scss +7 -5
- package/scss/components/_glass-button.scss +59 -0
- package/scss/components/_glass-prominent-button.scss +70 -0
- package/scss/components/_h-divider.scss +13 -0
- package/scss/components/_h-flex-stack.scss +23 -0
- package/scss/components/_h-stack.scss +29 -0
- package/scss/components/_image-view.scss +9 -0
- package/scss/components/_index.scss +239 -7
- package/scss/components/_label-view copy.scss.txt +420 -0
- package/scss/components/_label-view.scss +372 -0
- package/scss/components/_label-view.scss.txt +536 -0
- package/scss/components/_labeled-content.scss +67 -0
- package/scss/components/_list-view.scss +269 -0
- package/scss/components/_menu-view.scss +219 -0
- package/scss/components/_navigation-large-title.scss +27 -0
- package/scss/components/_navigation-split-view.scss +329 -269
- package/scss/components/_navigation-stack.scss +6 -6
- package/scss/components/_navigation-title.scss +10 -0
- package/scss/components/_picker-view.scss +307 -0
- package/scss/components/_plain-button.scss +18 -0
- package/scss/components/_progress-view.scss +98 -0
- package/scss/components/_scroll-view-proxy.scss +79 -0
- package/scss/components/_scroll-view-toolbars.scss +126 -0
- package/scss/components/_scroll-view.scss +114 -66
- package/scss/components/_search-view.scss +22 -0
- package/scss/components/_section-view.scss +119 -0
- package/scss/components/_sheet-view.scss +78 -35
- package/scss/components/_sidebar-toggle.scss +87 -27
- package/scss/components/_sidebar-view.scss +30 -40
- package/scss/components/_sticky-container.scss +42 -0
- package/scss/components/_tab-bar.scss +207 -84
- package/scss/components/_tab-item.scss +25 -0
- package/scss/components/_tab-view.scss +270 -126
- package/scss/components/_table-column.scss +54 -0
- package/scss/components/_table-row.scss +240 -0
- package/scss/components/_table-view.scss +231 -0
- package/scss/components/_text-field.scss +53 -0
- package/scss/components/_tool-bar-item-group.scss +30 -19
- package/scss/components/_tool-bar-item.scss +81 -71
- package/scss/components/_tool-bar.scss +126 -63
- package/scss/components/_v-divider.scss +13 -0
- package/scss/components/_v-flex-stack.scss +29 -0
- package/scss/components/_v-keyboard.scss +6 -4
- package/scss/components/_v-stack.scss +15 -9
- package/scss/final/_touch-glass.scss +91 -0
- package/scss/index.scss +6 -2
- package/scss/mixins/_button.scss +44 -0
- package/scss/mixins/_color.scss +16 -0
- package/scss/mixins/_dialog.scss +89 -0
- package/scss/mixins/_index.scss +453 -0
- package/scss/placeholders/_buttons.scss +117 -0
- package/scss/placeholders/_lists.scss +594 -0
- package/scss/transitions/_alert-dialog.scss +18 -0
- package/scss/transitions/_bwd.navbar.scss +3 -13
- package/scss/transitions/_bwd.scss +4 -20
- package/scss/transitions/_confirmation-dialog.scss +27 -0
- package/scss/transitions/_disclosure-group.scss +35 -0
- package/scss/transitions/_fine-tooltip.scss +21 -0
- package/scss/transitions/_fwd.navbar.scss +4 -9
- package/scss/transitions/_fwd.scss +4 -34
- package/scss/transitions/_glass-button.scss +12 -0
- package/scss/transitions/_glass-prominent-button.scss +12 -0
- package/scss/transitions/_index.scss +35 -143
- package/scss/transitions/_menu-view.scss +26 -0
- package/scss/transitions/_navigation-split-view.scss +23 -0
- package/scss/transitions/_progress-view.scss +23 -0
- package/scss/transitions/_sheet-view.scss +30 -0
- package/scss/transitions/_sidebar-view.scss +36 -0
- package/scss/transitions/_tab-bar.scss +20 -0
- package/scss/utils/_frame.scss +91 -0
- package/scss/utils/_index.scss +78 -0
- package/scss/utils/_scroll-view.scss +14 -0
- package/scss/utils/_spacing.scss +25 -0
- package/scss/utils/_stacks.scss +222 -0
- package/web-components.html-data/en.json +721 -0
- package/generated/components/bottom-bar.d.ts +0 -10
- package/generated/components/bottom-bar.js +0 -73
- package/generated/components/navigation-bar.d.ts +0 -10
- package/generated/components/navigation-bar.js +0 -80
- package/generated/internal/class.d.ts +0 -18
- package/generated/internal/class.js +0 -18
- package/generated/namespace/index.d.ts +0 -6
- package/generated/styles.css +0 -1305
- package/scss/_dev.scss +0 -68
- package/scss/components/_tab-bar-stack.scss +0 -101
- package/scss/components/_toolbars.scss +0 -100
- package/scss/transitions/_dialog.scss +0 -32
- /package/generated/{namespace/index.js → events/alert-dialog.js} +0 -0
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
$list-item-selector: ':not([slot], section-view, [is="disclosure-group"], picker-view, menu-view, menu-view *, whatever-name)';
|
|
5
|
+
|
|
6
|
+
@layer #{vars.$list-components-layer} {
|
|
7
|
+
%list {
|
|
8
|
+
:where(&) {
|
|
9
|
+
background-color: var(--list--host-background-color,);
|
|
10
|
+
|
|
11
|
+
padding-inline: var(--list--host-padding-inline,);
|
|
12
|
+
padding-block: var(--list--host-padding-block,);
|
|
13
|
+
|
|
14
|
+
grid-template-columns: var(--list--host-grid-template-columns,);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// componentize buttons
|
|
18
|
+
> #{$list-item-selector},
|
|
19
|
+
section-view > #{$list-item-selector},
|
|
20
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
21
|
+
// :where(&:is(summary:not([is='disclosure-group'] [is='disclosure-group'] summary))) {
|
|
22
|
+
// box-shadow: inset 0 0 4px magenta;
|
|
23
|
+
// }
|
|
24
|
+
// :where(&:is(button)) {
|
|
25
|
+
// @include mixins.componentize(summary);
|
|
26
|
+
// grid-template-columns: var(--list--buttonitem-grid-template-columns);
|
|
27
|
+
// }
|
|
28
|
+
// :where(&:is(summary)) {
|
|
29
|
+
// --disclosure--marker-display: var(--list--item-marker-display,);
|
|
30
|
+
// // outline: red solid 50px;
|
|
31
|
+
// // @include mixins.componentize(item);
|
|
32
|
+
// // grid-template-columns: var(--list--summaryitem-grid-template-columns);
|
|
33
|
+
// }
|
|
34
|
+
:where(&) {
|
|
35
|
+
// outline: magenta solid 4px;
|
|
36
|
+
// box-shadow: inset 0 0 4px magenta;
|
|
37
|
+
@include mixins.componentize(item);
|
|
38
|
+
|
|
39
|
+
// grid-auto-flow: column;
|
|
40
|
+
// grid-template-columns: var(--list--item-grid-template-columns,);
|
|
41
|
+
// grid-template-rows: minmax(0, 1fr);
|
|
42
|
+
}
|
|
43
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
44
|
+
:where(&) {
|
|
45
|
+
// outline: yellow solid 4px;
|
|
46
|
+
|
|
47
|
+
transition:
|
|
48
|
+
background-color 300ms ease-out allow-discrete,
|
|
49
|
+
color 300ms ease-out allow-discrete;
|
|
50
|
+
will-change: background-color, color;
|
|
51
|
+
|
|
52
|
+
// &:active,
|
|
53
|
+
&.active {
|
|
54
|
+
transition-duration: 0ms;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// [is='disclosure-group'] {
|
|
60
|
+
// :where(&) {
|
|
61
|
+
// background-color: var(--list--details-background-color,);
|
|
62
|
+
// }
|
|
63
|
+
// &[open] {
|
|
64
|
+
// :where(&) {
|
|
65
|
+
// background-color: var(--list--opendetails-background-color, var(--list--details-background-color,));
|
|
66
|
+
// }
|
|
67
|
+
// }
|
|
68
|
+
// }
|
|
69
|
+
// > [is='disclosure-group'],
|
|
70
|
+
// > section-view > [is='disclosure-group'] {
|
|
71
|
+
// :where(&) {
|
|
72
|
+
// background-color: var(--list--rootdetails-background-color, var(--list--details-background-color,));
|
|
73
|
+
// }
|
|
74
|
+
// &[open] {
|
|
75
|
+
// :where(&) {
|
|
76
|
+
// background-color: var(--list--openrootdetails-background-color, var(--list--rootdetails-background-color, var(--list--details-background-color,)));
|
|
77
|
+
// }
|
|
78
|
+
// }
|
|
79
|
+
// }
|
|
80
|
+
|
|
81
|
+
// SECTION: wire gaps between
|
|
82
|
+
// NOTE: apply gap to top of sections when adjacent to any
|
|
83
|
+
// :not([slot], section-view) ~ section-view:not([slot]),
|
|
84
|
+
// section-view:not([slot]) ~ section-view:not([slot]) {
|
|
85
|
+
:not([slot]) ~ section-view:not([slot]) {
|
|
86
|
+
:where(&:not(menu-view *)) {
|
|
87
|
+
padding-block-start: var(--list--section-gap,);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// NOTE: apply to bottom of sections when they have non-section adjacents
|
|
91
|
+
section-view:not([slot]):has(~ :not([slot], section-view)) {
|
|
92
|
+
:where(&:not(menu-view *)) {
|
|
93
|
+
padding-block-end: var(--list--section-gap,);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// section-view:has(~ section-view:not([slot])) {
|
|
97
|
+
// :where(&) {
|
|
98
|
+
// padding-bottom: calc(var(--list--section-gap, 0px) / 2);
|
|
99
|
+
// }
|
|
100
|
+
// }
|
|
101
|
+
// NOTE: apply gap to top of details when adjacent to any(except summary)
|
|
102
|
+
// :not([slot], [is='disclosure-group'], summary) ~ [is='disclosure-group']:not([slot]) {
|
|
103
|
+
:not([slot], summary) ~ [is='disclosure-group']:not([slot]) {
|
|
104
|
+
:where(&:not(menu-view *)) {
|
|
105
|
+
margin-block-start: var(--list--details-gap,);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// [is='disclosure-group']:not([slot]) ~ [is='disclosure-group']:not([slot]) {
|
|
109
|
+
// :where(&:not(menu-view *)) {
|
|
110
|
+
// margin-block-start: calc(var(--list--details-gap, 0px) / 2);
|
|
111
|
+
// }
|
|
112
|
+
// }
|
|
113
|
+
// NOTE: apply to bottom of details when they have non-details adjacents
|
|
114
|
+
[is='disclosure-group']:not([slot]):has(~ :not([slot], [is='disclosure-group'])) {
|
|
115
|
+
:where(&:not(menu-view *)) {
|
|
116
|
+
margin-block-end: var(--list--details-gap,);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
// [is='disclosure-group']:not([slot]):has(~ [is='disclosure-group']:not([slot])) {
|
|
120
|
+
// :where(&:not(menu-view *)) {
|
|
121
|
+
// margin-block-end: calc(var(--list--details-gap, 0px) / 2);
|
|
122
|
+
// }
|
|
123
|
+
// }
|
|
124
|
+
|
|
125
|
+
// SECTION: wire paddings
|
|
126
|
+
:where(&:not(menu-view *)) {
|
|
127
|
+
--itempadistart: var(--list--item-padding-inline-start, 0rem);
|
|
128
|
+
--itempadiend: calc(var(--list--item-padding-inline-end, 0rem) + var(--list--accessories-size, 0rem));
|
|
129
|
+
--itempadbstart: var(--list--item-padding-block-start,);
|
|
130
|
+
--itempadbend: var(--list--item-padding-block-end,);
|
|
131
|
+
|
|
132
|
+
--itemradiustr: var(--list--item-border-radius,);
|
|
133
|
+
--itemradiustl: var(--list--item-border-radius,);
|
|
134
|
+
--itemradiusbr: var(--list--item-border-radius,);
|
|
135
|
+
--itemradiusbl: var(--list--item-border-radius,);
|
|
136
|
+
|
|
137
|
+
--itemface: var(--list--item-background-color,);
|
|
138
|
+
--itemhighlightface: var(--list--highlighteditem-background-color, var(--list--item-background-color,));
|
|
139
|
+
--itemactiveface: var(--list--highlighteditem-background-color, var(--list--item-background-color,));
|
|
140
|
+
|
|
141
|
+
--itemtext: var(--list--item-color,);
|
|
142
|
+
--itemhighlighttext: var(--list--highlighteditem-color, var(--list--item-color,));
|
|
143
|
+
--itemactivetext: var(--list--highlighteditem-color, var(--list--item-color,));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// SECTION: overwrites for details
|
|
147
|
+
[is='disclosure-group']:not(menu-view *) {
|
|
148
|
+
> :not(summary) {
|
|
149
|
+
:where(&) {
|
|
150
|
+
--itemface: var(--list--details-background-color, var(--list--item-background-color,));
|
|
151
|
+
--itemhighlightface: var(--list--selecteddetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
|
|
152
|
+
--itemactiveface: var(--list--selecteddetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
|
|
153
|
+
|
|
154
|
+
--itemtext: var(--list--details-color, var(--list--item-color,));
|
|
155
|
+
--itemhighlighttext: var(--list--selecteddetails-color, var(--list--highlighteditem-color, var(--list--item-color,)));
|
|
156
|
+
--itemactivetext: var(--list--selecteddetails-color, var(--list--highlighteditem-color, var(--list--item-color,)));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
> summary {
|
|
160
|
+
:where([is='disclosure-group'][open] &) {
|
|
161
|
+
--itemface: var(--list--opendetails-background-color, var(--list--item-background-color,));
|
|
162
|
+
--itemhighlightface: var(--list--selectedopendetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
|
|
163
|
+
--itemactiveface: var(--list--selectedopendetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
|
|
164
|
+
|
|
165
|
+
--itemtext: var(--list--opendetails-color, var(--list--item-color,));
|
|
166
|
+
--itemhighlighttext: var(--list--selectedopendetails-color, var(--list--highlighteditem-color, var(--list--item-color,)));
|
|
167
|
+
--itemactivetext: var(--list--selectedopendetails-color, var(--list--highlighteditem-color, var(--list--item-color,)));
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
&[open] {
|
|
171
|
+
> summary {
|
|
172
|
+
:where(&) {
|
|
173
|
+
--itemface: var(--list--opensummary-background-color, var(--list--item-background-color,));
|
|
174
|
+
--itemhighlightface: var(
|
|
175
|
+
--list--selectedopensummary-background-color,
|
|
176
|
+
var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)))
|
|
177
|
+
);
|
|
178
|
+
--itemactiveface: var(
|
|
179
|
+
--list--selectedopensummary-background-color,
|
|
180
|
+
var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)))
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
--itemtext: var(--list--opensummary-color, var(--list--item-color,));
|
|
184
|
+
--itemhighlighttext: var(--list--selectedopensummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
|
|
185
|
+
--itemactivetext: var(--list--selectedopensummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
> [is='disclosure-group']:not(menu-view *),
|
|
191
|
+
> section-view > [is='disclosure-group']:not(menu-view *) {
|
|
192
|
+
--disclosure-style: var(--list--rootsummary-marker-display,);
|
|
193
|
+
|
|
194
|
+
> summary {
|
|
195
|
+
:where(&) {
|
|
196
|
+
--itemface: var(--list--rootsummary-background-color, var(--list--item-background-color,));
|
|
197
|
+
--itemhighlightface: var(
|
|
198
|
+
--list--selectedrootsummary-background-color,
|
|
199
|
+
var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)))
|
|
200
|
+
);
|
|
201
|
+
--itemactiveface: var(
|
|
202
|
+
--list--selectedrootsummary-background-color,
|
|
203
|
+
var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)))
|
|
204
|
+
);
|
|
205
|
+
|
|
206
|
+
--itemtext: var(--list--rootsummary-color, var(--list--item-color,));
|
|
207
|
+
--itemhighlighttext: var(--list--selectedrootsummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
|
|
208
|
+
--itemactivetext: var(--list--selectedrootsummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
|
|
209
|
+
|
|
210
|
+
// overwrite extra stuff for rootsummary
|
|
211
|
+
// outline: red solid 4px;
|
|
212
|
+
// box-shadow: inset 0 0 3px yellow;
|
|
213
|
+
|
|
214
|
+
--itempadistart: var(--list--rootsummary-padding-inline-start, var(--list--item-padding-inline-start,));
|
|
215
|
+
--itempadiend: var(--list--rootsummary-padding-inline-end, var(--list--item-padding-inline-end,));
|
|
216
|
+
--itempadbstart: var(--list--rootsummary-padding-block-start, var(--list--item-padding-block-start,));
|
|
217
|
+
--itempadbend: var(--list--rootsummary-padding-block-end, var(--list--item-padding-block-end,));
|
|
218
|
+
|
|
219
|
+
// --itemradiustl: var(--list--rootsummary-border-radius, var(--list--item-border-radius,));
|
|
220
|
+
// --itemradiustr: var(--list--rootsummary-border-radius, var(--list--item-border-radius,));
|
|
221
|
+
// --itemradiusbl: var(--list--rootsummary-border-radius, var(--list--item-border-radius,));
|
|
222
|
+
// --itemradiusbr: var(--list--rootsummary-border-radius, var(--list--item-border-radius,));
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
&[open] > summary {
|
|
226
|
+
:where(&) {
|
|
227
|
+
--itemface: var(--list--rootsummary-background-color, var(--list--opensummary-background-color, var(--list--item-background-color,)));
|
|
228
|
+
--itemhighlightface: var(
|
|
229
|
+
--list--selectedrootsummary-background-color,
|
|
230
|
+
var(--list--selectedopensummary-background-color, var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,))))
|
|
231
|
+
);
|
|
232
|
+
--itemactiveface: var(
|
|
233
|
+
--list--selectedrootsummary-background-color,
|
|
234
|
+
var(--list--selectedopensummary-background-color, var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,))))
|
|
235
|
+
);
|
|
236
|
+
|
|
237
|
+
--itemtext: var(--list--rootsummary-color, var(--list--opensummary-color, var(--list--item-color,)));
|
|
238
|
+
--itemhighlighttext: var(
|
|
239
|
+
--list--selectedrootsummary-color,
|
|
240
|
+
var(--list--selectedopensummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))))
|
|
241
|
+
);
|
|
242
|
+
--itemactivetext: var(
|
|
243
|
+
--list--selectedrootsummary-color,
|
|
244
|
+
var(--list--selectedopensummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))))
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// SECTION: add borders + arrows
|
|
251
|
+
> :not([slot]) ~ :not([slot], section-view, menu-view *),
|
|
252
|
+
section-view > :not([slot]) ~ :not([slot], section-view, menu-view *),
|
|
253
|
+
[is='disclosure-group'] > :not([slot]) ~ :not([slot], section-view, menu-view *) {
|
|
254
|
+
:where(&) {
|
|
255
|
+
position: relative;
|
|
256
|
+
|
|
257
|
+
&::before {
|
|
258
|
+
content: '';
|
|
259
|
+
position: absolute;
|
|
260
|
+
inset: 0rem calc(var(--list--item-padding-inline-end, 0rem) + var(--list--media-inner-padding-inline-end, 0rem)) auto
|
|
261
|
+
calc(var(--list--item-padding-inline-start, 0rem) + var(--list--media-inner-padding-inline-start, 0rem));
|
|
262
|
+
block-size: 1px;
|
|
263
|
+
background: var(--list--separator-background-color, var(--separator));
|
|
264
|
+
pointer-events: none;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// &::after {
|
|
268
|
+
// pointer-events: none;
|
|
269
|
+
// content: '';
|
|
270
|
+
// position: absolute;
|
|
271
|
+
// inset: 50% 0 auto auto;
|
|
272
|
+
// display: var(--list--accessories-display,);
|
|
273
|
+
// block-size: 24px;
|
|
274
|
+
// inline-size: 24px;
|
|
275
|
+
// -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentColor" viewBox="0 0 256 256"%3E%3Cpath d="M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"%3E%3C/path%3E%3C/svg%3E')
|
|
276
|
+
// no-repeat center / contain;
|
|
277
|
+
// mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentColor" viewBox="0 0 256 256"%3E%3Cpath d="M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"%3E%3C/path%3E%3C/svg%3E')
|
|
278
|
+
// no-repeat center / contain;
|
|
279
|
+
// background-color: red;
|
|
280
|
+
// transform: translateY(-50%);
|
|
281
|
+
// }
|
|
282
|
+
}
|
|
283
|
+
// :where(&:is([aria-selected='true'], [is='disclosure-group']):has(> [aria-selected='true'])) {
|
|
284
|
+
// outline: red solid 4px;
|
|
285
|
+
// }
|
|
286
|
+
// :where(&:is([aria-selected='true']), &:is([is='disclosure-group']):not([open]):has(> [aria-selected='true'])) {
|
|
287
|
+
// :where(&:is([aria-selected='true']), &:is([is='disclosure-group']):not([open]):has(> [aria-selected='true'])) {
|
|
288
|
+
// :where(&:is([aria-selected='true'])) {
|
|
289
|
+
:where(&:is([is='disclosure-group']:has(> summary[aria-selected='true']))),
|
|
290
|
+
:where(&:is([is='disclosure-group']:has(> summary.active))) {
|
|
291
|
+
// outline: red solid 4px;
|
|
292
|
+
&::before {
|
|
293
|
+
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// SECTION: sharpen top corners
|
|
299
|
+
> :not([slot]) ~ :not([slot], section-view, menu-view *),
|
|
300
|
+
section-view > :not([slot]) ~ :not([slot], section-view, menu-view *),
|
|
301
|
+
[is='disclosure-group'] > :not([slot]) ~ :not([slot], menu-view *) {
|
|
302
|
+
:where(&) {
|
|
303
|
+
// outline: yellow solid 5px;
|
|
304
|
+
--itemradiustl: var(--list--adjacentitem-border-radius, var(--list--item-border-radius,)); //0 0;
|
|
305
|
+
--itemradiustr: var(--list--adjacentitem-border-radius, var(--list--item-border-radius,)); //0 0;
|
|
306
|
+
}
|
|
307
|
+
// :where(&:is(%list > [is='disclosure-group'], %list > section-view > [is='disclosure-group']) > summary) {
|
|
308
|
+
// // outline: yellow solid 5px;
|
|
309
|
+
// --itemradiustl: var(--list--adjacentitem-border-radius, var(--list--rootsummary-border-radius, var(--list--item-border-radius,))); //0 0;
|
|
310
|
+
// --itemradiustr: var(--list--adjacentitem-border-radius, var(--list--rootsummary-border-radius, var(--list--item-border-radius,))); //0 0;
|
|
311
|
+
// }
|
|
312
|
+
:where(&:is([is='disclosure-group'] :not([slot]))) {
|
|
313
|
+
// outline: green solid 5px;
|
|
314
|
+
--itemradiustl: var(--list--adjacentdetailsitem-border-radius, var(--list--adjacentitem-border-radius, var(--list--item-border-radius,))); //0 0;
|
|
315
|
+
--itemradiustr: var(--list--adjacentdetailsitem-border-radius, var(--list--adjacentitem-border-radius, var(--list--item-border-radius,))); //0 0;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// SECTION: sharpen bottom corners
|
|
320
|
+
> :not([slot]):has(~ :not([slot], section-view, menu-view *)),
|
|
321
|
+
section-view > :not([slot]):has(~ :not([slot], section-view, menu-view *)),
|
|
322
|
+
[is='disclosure-group'] > :not([slot], summary, menu-view *):has(~ :not([slot])),
|
|
323
|
+
[is='disclosure-group']:not([data-state='closed'], menu-view *) > summary {
|
|
324
|
+
:where(&) {
|
|
325
|
+
// outline: green solid 5px;
|
|
326
|
+
--itemradiusbl: var(--list--adjacentitem-border-radius, var(--list--item-border-radius,)); //0 0;
|
|
327
|
+
--itemradiusbr: var(--list--adjacentitem-border-radius, var(--list--item-border-radius,)); //0 0;
|
|
328
|
+
}
|
|
329
|
+
//:where(&:is([is='disclosure-group']) > summary, &:is([is='disclosure-group']) > section-view > summary) {
|
|
330
|
+
// :where(&:is([is='disclosure-group']) > summary) {
|
|
331
|
+
// // outline: green solid 5px;
|
|
332
|
+
// --itemradiusbl: var(--list--adjacentitem-border-radius, var(--list--rootsummary-border-radius, var(--list--item-border-radius,))); //0 0;
|
|
333
|
+
// --itemradiusbr: var(--list--adjacentitem-border-radius, var(--list--rootsummary-border-radius, var(--list--item-border-radius,))); //0 0;
|
|
334
|
+
// }
|
|
335
|
+
:where(&:is([is='disclosure-group'] :not([slot]))) {
|
|
336
|
+
// outline: green solid 5px;
|
|
337
|
+
--itemradiusbl: var(--list--adjacentdetailsitem-border-radius, var(--list--adjacentitem-border-radius, var(--list--item-border-radius,))); //0 0;
|
|
338
|
+
--itemradiusbr: var(--list--adjacentdetailsitem-border-radius, var(--list--adjacentitem-border-radius, var(--list--item-border-radius,))); //0 0;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// > :not([slot]) ~ :not([slot]):has(~ :not([slot], section-view)),
|
|
343
|
+
// section-view > :not([slot]) ~ :not([slot]):has(~ :not([slot], section-view)),
|
|
344
|
+
// [is='disclosure-group'] > :not([slot]) ~ :not([slot]) {
|
|
345
|
+
// :where(&) {
|
|
346
|
+
// --itemradius: 0;
|
|
347
|
+
// }
|
|
348
|
+
// :where(&:is([is='disclosure-group']) > summary) {
|
|
349
|
+
// --itemradius: 0;
|
|
350
|
+
// }
|
|
351
|
+
// }
|
|
352
|
+
|
|
353
|
+
// SECTION: style section heders/footers
|
|
354
|
+
section-view:not(section-view section-view, menu-view *) {
|
|
355
|
+
:where(&)::part(section-footer-stack),
|
|
356
|
+
:where(&)::part(section-header-stack) {
|
|
357
|
+
// outline: magenta 4px solid;
|
|
358
|
+
padding-inline: calc(var(--list--root-padding-inline, 0px) + var(--itempadistart, 0px)) calc(var(--list--root-padding-inline, 0px) + var(--itempadiend, 0px));
|
|
359
|
+
|
|
360
|
+
margin-inline: calc(var(--list--root-padding-inline) * -1);
|
|
361
|
+
|
|
362
|
+
padding-block: 1px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
:where(&)::part(section-header-stack) {
|
|
366
|
+
top: calc(var(--list--sticky-block-size, 0px) + var(--navigation-bar-block-size));
|
|
367
|
+
|
|
368
|
+
position: sticky;
|
|
369
|
+
|
|
370
|
+
// backdrop-filter: blur(20px);
|
|
371
|
+
|
|
372
|
+
// text-shadow: 0 0 5px var(--face);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// SECTION: Enable 2-col layout
|
|
377
|
+
&[columns='2']:not(menu-view *) {
|
|
378
|
+
:where(&) {
|
|
379
|
+
--list--host-grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
380
|
+
|
|
381
|
+
// SECTION: add borders
|
|
382
|
+
position: relative;
|
|
383
|
+
|
|
384
|
+
&::after {
|
|
385
|
+
pointer-events: none;
|
|
386
|
+
content: '';
|
|
387
|
+
position: absolute;
|
|
388
|
+
inset: var(--list--host-padding-block, 0px) auto var(--list--host-padding-block, 0px) 50%;
|
|
389
|
+
inline-size: 1px;
|
|
390
|
+
background: var(--list--separator-background-color, var(--separator));
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// SECTION: overwrite already sharpened corners
|
|
395
|
+
> :first-child:not([slot]),
|
|
396
|
+
section-view:first-child > :not([slot]),
|
|
397
|
+
[is='disclosure-group']:first-child > :not([slot]) {
|
|
398
|
+
:where(&) {
|
|
399
|
+
// outline: yellow solid 5px;
|
|
400
|
+
--itemradiustr: var(--list--adjacentitem-border-radius,); //var(--list--item-border-radius,);
|
|
401
|
+
--itemradiusbr: var(--list--adjacentitem-border-radius,); //var(--list--item-border-radius,);
|
|
402
|
+
}
|
|
403
|
+
:where(&:is([is='disclosure-group'] :not([slot]))) {
|
|
404
|
+
// outline: green solid 5px;
|
|
405
|
+
--itemradiustr: var(--list--adjacentitem-border-radius,); //var(--list--item-border-radius,);
|
|
406
|
+
--itemradiusbr: var(--list--adjacentitem-border-radius,); //var(--list--item-border-radius,);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
> :nth-child(2):not([slot]),
|
|
410
|
+
section-view:nth-child(2) > :not([slot]),
|
|
411
|
+
[is='disclosure-group']:nth-child(2) > :not([slot]) {
|
|
412
|
+
:where(&) {
|
|
413
|
+
// outline: yellow solid 5px;
|
|
414
|
+
--itemradiustr: var(--list--item-border-radius,);
|
|
415
|
+
|
|
416
|
+
&::before {
|
|
417
|
+
content: none;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
:where(&:is([is='disclosure-group'] :not([slot]))) {
|
|
421
|
+
// outline: green solid 5px;
|
|
422
|
+
--itemradiustr: var(--list--item-border-radius,);
|
|
423
|
+
|
|
424
|
+
&::before {
|
|
425
|
+
content: none;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
> :nth-last-child(2):not([slot]),
|
|
430
|
+
section-view:nth-last-child(2) > :not([slot]),
|
|
431
|
+
[is='disclosure-group']:nth-last-child(2) > :not([slot]) {
|
|
432
|
+
:where(&) {
|
|
433
|
+
// outline: yellow solid 5px;
|
|
434
|
+
--itemradiustr: var(--list--adjacentitem-border-radius,);
|
|
435
|
+
--itemradiusbl: var(--list--item-border-radius,);
|
|
436
|
+
}
|
|
437
|
+
:where(&:is([is='disclosure-group'] :not([slot]))) {
|
|
438
|
+
// outline: green solid 5px;
|
|
439
|
+
--itemradiustr: var(--list--adjacentitem-border-radius,);
|
|
440
|
+
--itemradiusbl: var(--list--item-border-radius,);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
> :last-child:not([slot]),
|
|
444
|
+
section-view:last-child > :not([slot]),
|
|
445
|
+
[is='disclosure-group']:last-child > :not([slot]) {
|
|
446
|
+
:where(&) {
|
|
447
|
+
// outline: yellow solid 5px;
|
|
448
|
+
--itemradiusbr: var(--list--item-border-radius,);
|
|
449
|
+
--itemradiusbl: var(--list--adjacentitem-border-radius,);
|
|
450
|
+
}
|
|
451
|
+
:where(&:is([is='disclosure-group'] :not([slot]))) {
|
|
452
|
+
// outline: green solid 5px;
|
|
453
|
+
--itemradiusbr: var(--list--item-border-radius,);
|
|
454
|
+
--itemradiusbl: var(--list--adjacentitem-border-radius,);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
// SECTION: add accessories
|
|
460
|
+
// &:has(summary[marker-placement='leading']) {
|
|
461
|
+
> #{$list-item-selector},
|
|
462
|
+
section-view > #{$list-item-selector},
|
|
463
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
464
|
+
// NOTE: drill-in chevron show up only on nav-link buttons. Paddings and all other props have already been taken over!
|
|
465
|
+
&:is(navigation-split-view button[navigation-link], navigation-stack button[navigation-link]) {
|
|
466
|
+
:where(&) {
|
|
467
|
+
position: relative;
|
|
468
|
+
|
|
469
|
+
@include mixins.make-marker-pseudos(vars.$disclosure-affordance);
|
|
470
|
+
|
|
471
|
+
&::after {
|
|
472
|
+
position: absolute;
|
|
473
|
+
|
|
474
|
+
inset: 50% var(--itempadiend) auto auto;
|
|
475
|
+
display: var(--list--accessories-display, grid);
|
|
476
|
+
|
|
477
|
+
block-size: var(--list--accessories-size, 1.1rem);
|
|
478
|
+
inline-size: var(--list--accessories-size, 1.1rem);
|
|
479
|
+
|
|
480
|
+
background-color: var(--quaternary);
|
|
481
|
+
|
|
482
|
+
transform: translateY(-50%) translateX(120%);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
// }
|
|
488
|
+
// [is='disclosure-group'] summary [slot='marker'] {
|
|
489
|
+
// font-size: calc(var(--list--accessory-size) * 1rem);
|
|
490
|
+
// }
|
|
491
|
+
// [is='disclosure-group']:has(> summary[marker-placement='leading']) {
|
|
492
|
+
// > :not(summary) {
|
|
493
|
+
// --itempadistart: calc(calc(var(--root-font-size) * 1px) * var(--list--accessory-size) + var(--list--item-padding-inline-start, 0px));
|
|
494
|
+
// }
|
|
495
|
+
// }
|
|
496
|
+
|
|
497
|
+
// SECTION: add tints
|
|
498
|
+
> #{$list-item-selector},
|
|
499
|
+
section-view > #{$list-item-selector},
|
|
500
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
501
|
+
// NOTE: drill-in chevron show up only on nav-link buttons. Paddings and all other props have already been taken over!
|
|
502
|
+
// &:is(button:not([is='navigation-link'])) {
|
|
503
|
+
// :where(&) {
|
|
504
|
+
// --itemtext: blue;
|
|
505
|
+
// }
|
|
506
|
+
// }
|
|
507
|
+
&:is(label-view[list-item-tint]) {
|
|
508
|
+
:where(&[list-item-tint] > [slot='icon']) {
|
|
509
|
+
color: var(--accentColor);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
// &:is(button[list-item-tint='red']) {
|
|
513
|
+
// :where(&) {
|
|
514
|
+
// --itemtext: red;
|
|
515
|
+
|
|
516
|
+
// --insetgroupedlist-highlighteditem-background-color:red;
|
|
517
|
+
// --insetgroupedlist-highlighteditem-color:red;
|
|
518
|
+
// }
|
|
519
|
+
// }
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// // SECTION: add searchable
|
|
523
|
+
// > [slot='searchable'] {
|
|
524
|
+
// :where(&) {
|
|
525
|
+
// position: sticky;
|
|
526
|
+
|
|
527
|
+
// top: 20px
|
|
528
|
+
|
|
529
|
+
// background: red;
|
|
530
|
+
// }
|
|
531
|
+
// }
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
@layer #{vars.$colors-layer} {
|
|
536
|
+
// componentize
|
|
537
|
+
%list {
|
|
538
|
+
> #{$list-item-selector},
|
|
539
|
+
section-view > #{$list-item-selector},
|
|
540
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
541
|
+
@include mixins.add-focus-visible-state {
|
|
542
|
+
--itemface: var(--itemhighlightface,);
|
|
543
|
+
--itemtext: var(--itemhighlighttext,);
|
|
544
|
+
|
|
545
|
+
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
546
|
+
|
|
547
|
+
> * {
|
|
548
|
+
@include mixins.takeover-color-vars(item);
|
|
549
|
+
// --secondary: var(--itemtext);
|
|
550
|
+
// --blue: var(--itemtext);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
@layer #{vars.$ui-layer} {
|
|
558
|
+
// componentize
|
|
559
|
+
%list {
|
|
560
|
+
> #{$list-item-selector},
|
|
561
|
+
section-view > #{$list-item-selector},
|
|
562
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
563
|
+
// :where(&:is(button)) {
|
|
564
|
+
@include mixins.add-jsactive-state {
|
|
565
|
+
--itemface: var(--itemactiveface,);
|
|
566
|
+
--itemtext: var(--itemactivetext,);
|
|
567
|
+
|
|
568
|
+
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
569
|
+
|
|
570
|
+
> * {
|
|
571
|
+
@include mixins.takeover-color-vars(item);
|
|
572
|
+
}
|
|
573
|
+
// --secondary: var(--itemtext);
|
|
574
|
+
// --blue: var(--itemtext);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
&[aria-selected='true'] {
|
|
578
|
+
:where(&) {
|
|
579
|
+
--itemface: var(--itemactiveface);
|
|
580
|
+
--itemtext: var(--itemactivetext,);
|
|
581
|
+
|
|
582
|
+
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
583
|
+
|
|
584
|
+
> * {
|
|
585
|
+
@include mixins.takeover-color-vars(item);
|
|
586
|
+
// --secondary: var(--itemtext);
|
|
587
|
+
// --blue: var(--itemtext);
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
// }
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$transitions-layer} {
|
|
5
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
6
|
+
[is='alert-dialog'] {
|
|
7
|
+
:where(&) {
|
|
8
|
+
transition:
|
|
9
|
+
display var(--touchglass-transition-duration) allow-discrete ease-out,
|
|
10
|
+
overlay var(--touchglass-transition-duration) allow-discrete ease-out,
|
|
11
|
+
transform var(--touchglass-transition-duration) allow-discrete ease-out,
|
|
12
|
+
opacity var(--touchglass-transition-duration) allow-discrete ease-out;
|
|
13
|
+
// transition: all var(--touchglass-transition-duration) allow-discrete ease-out;
|
|
14
|
+
will-change: transform, overlay, display, opacity;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -5,25 +5,15 @@
|
|
|
5
5
|
tool-bar-item,
|
|
6
6
|
tool-bar-item-group {
|
|
7
7
|
&.bwn {
|
|
8
|
-
@include mixins.vt-toolbar-
|
|
9
|
-
|
|
10
|
-
// @starting-style {
|
|
11
|
-
// transform: scale(1);
|
|
12
|
-
// // opacity: 1;
|
|
13
|
-
// }
|
|
8
|
+
@include mixins.vt-toolbar-cell-offscreen-keyframe;
|
|
14
9
|
}
|
|
15
10
|
|
|
16
11
|
&.bwnn {
|
|
17
|
-
@include mixins.vt-toolbar-
|
|
18
|
-
|
|
19
|
-
// @starting-style {
|
|
20
|
-
// transform: scale(0);
|
|
21
|
-
// // opacity: 0;
|
|
22
|
-
// }
|
|
12
|
+
@include mixins.vt-toolbar-cell-onscreen-keyframe;
|
|
23
13
|
}
|
|
24
14
|
|
|
25
15
|
&.bwnn.bwn {
|
|
26
|
-
@include mixins.vt-toolbar-
|
|
16
|
+
@include mixins.vt-toolbar-cell-offscreen-keyframe;
|
|
27
17
|
}
|
|
28
18
|
}
|
|
29
19
|
}
|