@swiftwc/ui 0.0.0-dev.24 → 0.0.0-dev.26
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/generated/client/index.d.ts +1 -1
- package/generated/client/index.js +2 -2
- package/generated/components/navigation-title.js +2 -2
- package/generated/css/index.css +48 -9
- package/package.json +1 -1
- package/scss/colors/_index.scss +6 -0
- package/scss/components/_bordered-prominent-button.scss +8 -0
- package/scss/components/_glass-prominent-button.scss +7 -0
- package/scss/components/_label-view.scss +26 -0
- package/scss/components/_tool-bar-item.scss +14 -80
- package/scss/utils/_index.scss +10 -10
|
@@ -25,5 +25,5 @@ export declare const confirmationDialog: (trigger: HTMLElement, title: string, a
|
|
|
25
25
|
}[], options?: {
|
|
26
26
|
controller?: AbortController;
|
|
27
27
|
titleVisibility?: boolean;
|
|
28
|
-
}) => Promise<
|
|
28
|
+
}) => Promise<unknown>;
|
|
29
29
|
export { I18n, lifecycleObserver, NavigationPath, Snapshot };
|
|
@@ -368,7 +368,7 @@ export const confirmationDialog = async (trigger, title, actions, options) => {
|
|
|
368
368
|
if (action?.role)
|
|
369
369
|
btn.setAttribute('role', action.role);
|
|
370
370
|
if (action.label || action.image) {
|
|
371
|
-
const label = $(`<label-view
|
|
371
|
+
const label = $(`<label-view></label-view>`, '>1');
|
|
372
372
|
if (action.label)
|
|
373
373
|
label.setAttribute('title', action.label);
|
|
374
374
|
if (action.image)
|
|
@@ -377,7 +377,7 @@ export const confirmationDialog = async (trigger, title, actions, options) => {
|
|
|
377
377
|
}
|
|
378
378
|
dialog.insertAdjacentElement('beforeend', btn);
|
|
379
379
|
}
|
|
380
|
-
trigger.closest('body-view')?.insertAdjacentElement('beforeend', dialog); // dialog.showModal()
|
|
380
|
+
trigger.closest('body-view,dialog')?.insertAdjacentElement('beforeend', dialog); // dialog.showModal()
|
|
381
381
|
const { promise, resolve } = Promise.withResolvers(), off = onoff('confirmation:return', (evt) => {
|
|
382
382
|
off();
|
|
383
383
|
resolve(evt.detail.returnValue);
|
|
@@ -34,8 +34,8 @@ export class NavigationTitle extends HTMLElement {
|
|
|
34
34
|
}
|
|
35
35
|
#render = (title, subtitle) => {
|
|
36
36
|
const el = this.querySelector(':scope>:not([slot])') ??
|
|
37
|
-
this.appendChild($(`<navigation-large-title><v-stack spacing="0" alignment="fill"
|
|
38
|
-
el.appendChild($(`<v-stack spacing="0" alignment="fill"
|
|
37
|
+
this.appendChild($(`<navigation-large-title><v-stack spacing="0" alignment="fill"><label-view line-limit="1" truncation-mode="tail" font="headline"></label-view><label-view line-limit="1" truncation-mode="tail" font="callout"></label-view></v-stack></navigation-large-title>`, '>1')), vStack = el.querySelector(':scope>v-stack') ??
|
|
38
|
+
el.appendChild($(`<v-stack spacing="0" alignment="fill"><label-view line-limit="1" truncation-mode="tail" font="headline"></label-view><label-view line-limit="1" truncation-mode="tail" font="callout"></label-view></v-stack>`, '>1'));
|
|
39
39
|
let titleLabel = vStack.querySelector(':scope>label-view:nth-child(1)');
|
|
40
40
|
if (title) {
|
|
41
41
|
titleLabel ??= vStack.appendChild($(`<label-view line-limit="1" truncation-mode="tail" font="headline"></label-view>`, '>1'));
|
package/generated/css/index.css
CHANGED
|
@@ -2264,6 +2264,12 @@
|
|
|
2264
2264
|
--accentColor5: var(--red5);
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
|
+
@layer sw-colors {
|
|
2268
|
+
[is=bordered-prominent-button] {
|
|
2269
|
+
--secondary: var(--btntext);
|
|
2270
|
+
--blue: var(--btntext);
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2267
2273
|
@layer sw-utils {
|
|
2268
2274
|
:where([is=bordered-prominent-button]) {
|
|
2269
2275
|
text-align: center;
|
|
@@ -2362,6 +2368,12 @@
|
|
|
2362
2368
|
--accentColor5: var(--red5);
|
|
2363
2369
|
}
|
|
2364
2370
|
}
|
|
2371
|
+
@layer sw-colors {
|
|
2372
|
+
[is=glass-prominent-button] {
|
|
2373
|
+
--secondary: var(--btntext);
|
|
2374
|
+
--blue: var(--btntext);
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2365
2377
|
@layer sw-utils {
|
|
2366
2378
|
:where([is=glass-prominent-button]) {
|
|
2367
2379
|
text-align: center;
|
|
@@ -2478,12 +2490,14 @@
|
|
|
2478
2490
|
font-size: var(--label--titlestack-font-size, );
|
|
2479
2491
|
line-height: var(--label--titlestack-line-height, );
|
|
2480
2492
|
font-weight: var(--label--titlestack-font-weight, );
|
|
2493
|
+
display: var(--label--titlestack-display, none);
|
|
2481
2494
|
}
|
|
2482
2495
|
label-view > [slot=image] {
|
|
2483
2496
|
aspect-ratio: 1/1;
|
|
2484
2497
|
inline-size: var(--label-imagestack-fontsize);
|
|
2485
2498
|
block-size: var(--label-imagestack-fontsize);
|
|
2486
2499
|
font-size: var(--label-imagestack-fontsize);
|
|
2500
|
+
display: var(--label--iconstack-display, none);
|
|
2487
2501
|
}
|
|
2488
2502
|
@supports (x: if(else:red)) {
|
|
2489
2503
|
:where(label-view) {
|
|
@@ -2508,17 +2522,25 @@
|
|
|
2508
2522
|
style(--label-style: title-and-icon): if(style(--label-flow: vertical): auto minmax(0, 1fr) ; else: minmax(0, 1fr) ;) ;
|
|
2509
2523
|
else: if(style(--label--has-icon: yes) and style(--label--has-title: yes): if(style(--label-flow: vertical): auto minmax(0, 1fr) ; else: minmax(0, 1fr) ;) ; else: minmax(0, 1fr) ;) ;
|
|
2510
2524
|
);
|
|
2525
|
+
--label--iconstack-display: if(
|
|
2526
|
+
style(--label-style: icon-only): grid ; style(--label-style: title-only): none ; style(--label-style: title-and-icon): grid ; else: if(style(--label--has-icon: yes): grid ; else: none;) ;
|
|
2527
|
+
);
|
|
2528
|
+
--label--titlestack-display: if(
|
|
2529
|
+
style(--label-style: icon-only): none ; style(--label-style: title-only): grid ; style(--label-style: title-and-icon): grid ; else: if(style(--label--has-title: yes): grid ; else: none;) ;
|
|
2530
|
+
);
|
|
2511
2531
|
}
|
|
2512
2532
|
}
|
|
2513
2533
|
@supports not (x: if(else:red)) {
|
|
2514
2534
|
@container style(--label-style: icon-only) {
|
|
2515
2535
|
:where(label-view:not([label-style])) {
|
|
2516
2536
|
--label-style: icon-only;
|
|
2537
|
+
--label--iconstack-display: grid;
|
|
2517
2538
|
}
|
|
2518
2539
|
}
|
|
2519
2540
|
@container style(--label-style: title-only) {
|
|
2520
2541
|
:where(label-view:not([label-style])) {
|
|
2521
2542
|
--label-style: title-only;
|
|
2543
|
+
--label--titlestack-display: grid;
|
|
2522
2544
|
}
|
|
2523
2545
|
}
|
|
2524
2546
|
@container style(--label-style: title-and-icon) {
|
|
@@ -2528,13 +2550,17 @@
|
|
|
2528
2550
|
--label--host-grid-template-rows: minmax(0, 1fr);
|
|
2529
2551
|
--label--host-align-items: center;
|
|
2530
2552
|
--label--host-justify-items: normal;
|
|
2553
|
+
--label--iconstack-display: grid;
|
|
2554
|
+
--label--titlestack-display: grid;
|
|
2531
2555
|
}
|
|
2532
2556
|
}
|
|
2533
2557
|
:where(label-view[label-style=icon-only]) {
|
|
2534
2558
|
--label-style: icon-only;
|
|
2559
|
+
--label--iconstack-display: grid;
|
|
2535
2560
|
}
|
|
2536
2561
|
:where(label-view[label-style=title-only]) {
|
|
2537
2562
|
--label-style: title-only;
|
|
2563
|
+
--label--titlestack-display: grid;
|
|
2538
2564
|
}
|
|
2539
2565
|
:where(label-view[label-style=title-and-icon]) {
|
|
2540
2566
|
--label-style: title-and-icon;
|
|
@@ -2542,6 +2568,8 @@
|
|
|
2542
2568
|
--label--host-grid-template-rows: minmax(0, 1fr);
|
|
2543
2569
|
--label--host-align-items: center;
|
|
2544
2570
|
--label--host-justify-items: normal;
|
|
2571
|
+
--label--iconstack-display: grid;
|
|
2572
|
+
--label--titlestack-display: grid;
|
|
2545
2573
|
}
|
|
2546
2574
|
@container not style(--label-style) {
|
|
2547
2575
|
:where(label-view:not([label-style]):has(> [slot=image]):has(> :not([slot]))) {
|
|
@@ -2550,22 +2578,28 @@
|
|
|
2550
2578
|
--label--host-grid-template-rows: minmax(0, 1fr);
|
|
2551
2579
|
--label--host-align-items: center;
|
|
2552
2580
|
--label--host-justify-items: normal;
|
|
2581
|
+
--label--iconstack-display: grid;
|
|
2582
|
+
--label--titlestack-display: grid;
|
|
2553
2583
|
}
|
|
2554
2584
|
:where(label-view:not([label-style]):has(> [slot=image]):not(:has(> :not([slot])))) {
|
|
2555
2585
|
--label-style: icon-only;
|
|
2586
|
+
--label--iconstack-display: grid;
|
|
2556
2587
|
}
|
|
2557
2588
|
:where(label-view:not([label-style]):has(> :not([slot])):not(:has(> [slot=image]))) {
|
|
2558
2589
|
--label-style: title-only;
|
|
2590
|
+
--label--titlestack-display: grid;
|
|
2559
2591
|
}
|
|
2560
2592
|
}
|
|
2561
2593
|
@container style(--label-style: icon-only) and style(--label-flow: vertical) {
|
|
2562
2594
|
:where(label-view:not([label-style])) {
|
|
2563
2595
|
--label-style: icon-only;
|
|
2596
|
+
--label--iconstack-display: grid;
|
|
2564
2597
|
}
|
|
2565
2598
|
}
|
|
2566
2599
|
@container style(--label-style: title-only) and style(--label-flow: vertical) {
|
|
2567
2600
|
:where(label-view:not([label-style])) {
|
|
2568
2601
|
--label-style: title-only;
|
|
2602
|
+
--label--titlestack-display: grid;
|
|
2569
2603
|
}
|
|
2570
2604
|
}
|
|
2571
2605
|
@container style(--label-style: title-and-icon) and style(--label-flow: vertical) {
|
|
@@ -2575,14 +2609,18 @@
|
|
|
2575
2609
|
--label--host-grid-template-rows: auto minmax(0, 1fr);
|
|
2576
2610
|
--label--host-align-items: normal;
|
|
2577
2611
|
--label--host-justify-items: center;
|
|
2612
|
+
--label--iconstack-display: grid;
|
|
2613
|
+
--label--titlestack-display: grid;
|
|
2578
2614
|
}
|
|
2579
2615
|
}
|
|
2580
2616
|
@container style(--label-flow: vertical) {
|
|
2581
2617
|
:where(label-view[label-style=icon-only]) {
|
|
2582
2618
|
--label-style: icon-only;
|
|
2619
|
+
--label--iconstack-display: grid;
|
|
2583
2620
|
}
|
|
2584
2621
|
:where(label-view[label-style=title-only]) {
|
|
2585
2622
|
--label-style: title-only;
|
|
2623
|
+
--label--titlestack-display: grid;
|
|
2586
2624
|
}
|
|
2587
2625
|
:where(label-view[label-style=title-and-icon]) {
|
|
2588
2626
|
--label-style: title-and-icon;
|
|
@@ -2590,6 +2628,8 @@
|
|
|
2590
2628
|
--label--host-grid-template-rows: auto minmax(0, 1fr);
|
|
2591
2629
|
--label--host-align-items: normal;
|
|
2592
2630
|
--label--host-justify-items: center;
|
|
2631
|
+
--label--iconstack-display: grid;
|
|
2632
|
+
--label--titlestack-display: grid;
|
|
2593
2633
|
}
|
|
2594
2634
|
}
|
|
2595
2635
|
@container (not style(--label-style)) and style(--label-flow: vertical) {
|
|
@@ -2599,12 +2639,16 @@
|
|
|
2599
2639
|
--label--host-grid-template-rows: auto minmax(0, 1fr);
|
|
2600
2640
|
--label--host-align-items: normal;
|
|
2601
2641
|
--label--host-justify-items: center;
|
|
2642
|
+
--label--iconstack-display: grid;
|
|
2643
|
+
--label--titlestack-display: grid;
|
|
2602
2644
|
}
|
|
2603
2645
|
:where(label-view:not([label-style]):has(> [slot=image]):not(:has(> :not([slot])))) {
|
|
2604
2646
|
--label-style: icon-only;
|
|
2647
|
+
--label--iconstack-display: grid;
|
|
2605
2648
|
}
|
|
2606
2649
|
:where(label-view:not([label-style]):has(> :not([slot])):not(:has(> [slot=image]))) {
|
|
2607
2650
|
--label-style: title-only;
|
|
2651
|
+
--label--titlestack-display: grid;
|
|
2608
2652
|
}
|
|
2609
2653
|
}
|
|
2610
2654
|
@container style(--label-line-limit: 1) {
|
|
@@ -4953,9 +4997,6 @@
|
|
|
4953
4997
|
--accentColor4: var(--gray4);
|
|
4954
4998
|
--accentColor5: var(--gray5);
|
|
4955
4999
|
}
|
|
4956
|
-
:where([tint=gray][is=bordered-button]) {
|
|
4957
|
-
--accentSubtle: var(--gray4);
|
|
4958
|
-
}
|
|
4959
5000
|
:where([tint=blue]) {
|
|
4960
5001
|
--accentColorEffective: var(--blue);
|
|
4961
5002
|
--accentColorEffective4: var(--blue4);
|
|
@@ -4965,9 +5006,6 @@
|
|
|
4965
5006
|
--accentColor4: var(--blue4);
|
|
4966
5007
|
--accentColor5: var(--blue5);
|
|
4967
5008
|
}
|
|
4968
|
-
:where([tint=blue][is=bordered-button]) {
|
|
4969
|
-
--accentSubtle: var(--blue4);
|
|
4970
|
-
}
|
|
4971
5009
|
:where([tint=red]) {
|
|
4972
5010
|
--accentColorEffective: var(--red);
|
|
4973
5011
|
--accentColorEffective4: var(--red4);
|
|
@@ -4977,9 +5015,6 @@
|
|
|
4977
5015
|
--accentColor4: var(--red4);
|
|
4978
5016
|
--accentColor5: var(--red5);
|
|
4979
5017
|
}
|
|
4980
|
-
:where([tint=red][is=bordered-button]) {
|
|
4981
|
-
--accentSubtle: var(--red4);
|
|
4982
|
-
}
|
|
4983
5018
|
}
|
|
4984
5019
|
@layer sw-utils {
|
|
4985
5020
|
:where([frame\:width=infinity]) {
|
|
@@ -7759,6 +7794,10 @@
|
|
|
7759
7794
|
--toolbaritemhighlighttext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
7760
7795
|
--toolbaritemactiveface: light-dark(oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h), oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h));
|
|
7761
7796
|
--toolbaritemactivetext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
7797
|
+
--secondary: var(--btntext);
|
|
7798
|
+
--blue: var(--btntext);
|
|
7799
|
+
--accentColorEffective: var(--btntext);
|
|
7800
|
+
--accentColor: var(--btntext);
|
|
7762
7801
|
}
|
|
7763
7802
|
:where(sidebar-toggle) {
|
|
7764
7803
|
--toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
package/package.json
CHANGED
package/scss/colors/_index.scss
CHANGED
|
@@ -523,6 +523,12 @@ $colors: map.merge(
|
|
|
523
523
|
// --toolbaritemactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
524
524
|
|
|
525
525
|
@include mixins.wire-tinted-glass(toolbaritem);
|
|
526
|
+
|
|
527
|
+
--secondary: var(--btntext);
|
|
528
|
+
--blue: var(--btntext);
|
|
529
|
+
|
|
530
|
+
--accentColorEffective: var(--btntext);
|
|
531
|
+
--accentColor: var(--btntext);
|
|
526
532
|
}
|
|
527
533
|
}
|
|
528
534
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
2
|
@use '../placeholders';
|
|
3
|
+
@use '../mixins';
|
|
3
4
|
|
|
4
5
|
@layer #{vars.$components-layer} {
|
|
5
6
|
[is='bordered-prominent-button'] {
|
|
@@ -34,6 +35,13 @@
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
@layer #{vars.$colors-layer} {
|
|
39
|
+
[is='bordered-prominent-button'] {
|
|
40
|
+
--secondary: var(--btntext);
|
|
41
|
+
--blue: var(--btntext);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
@layer #{vars.$utils-layer} {
|
|
38
46
|
[is='bordered-prominent-button'] {
|
|
39
47
|
:where(&) {
|
|
@@ -79,10 +79,17 @@ $label-line-ifs: (
|
|
|
79
79
|
--label--host-grid-template-rows: minmax(0, 1fr);
|
|
80
80
|
--label--host-align-items: center;
|
|
81
81
|
--label--host-justify-items: normal;
|
|
82
|
+
|
|
83
|
+
--label--iconstack-display: grid;
|
|
84
|
+
--label--titlestack-display: grid;
|
|
82
85
|
} @else if $label-style == h-icon-only {
|
|
83
86
|
--label-style: icon-only;
|
|
87
|
+
|
|
88
|
+
--label--iconstack-display: grid;
|
|
84
89
|
} @else if $label-style == h-title-only {
|
|
85
90
|
--label-style: title-only;
|
|
91
|
+
|
|
92
|
+
--label--titlestack-display: grid;
|
|
86
93
|
} @else if $label-style == v-title-and-icon {
|
|
87
94
|
--label-style: title-and-icon;
|
|
88
95
|
|
|
@@ -90,10 +97,17 @@ $label-line-ifs: (
|
|
|
90
97
|
--label--host-grid-template-rows: auto minmax(0, 1fr);
|
|
91
98
|
--label--host-align-items: normal;
|
|
92
99
|
--label--host-justify-items: center;
|
|
100
|
+
|
|
101
|
+
--label--iconstack-display: grid;
|
|
102
|
+
--label--titlestack-display: grid;
|
|
93
103
|
} @else if $label-style == v-icon-only {
|
|
94
104
|
--label-style: icon-only;
|
|
105
|
+
|
|
106
|
+
--label--iconstack-display: grid;
|
|
95
107
|
} @else if $label-style == v-title-only {
|
|
96
108
|
--label-style: title-only;
|
|
109
|
+
|
|
110
|
+
--label--titlestack-display: grid;
|
|
97
111
|
}
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -182,6 +196,8 @@ $label-line-ifs: (
|
|
|
182
196
|
line-height: var(--label--titlestack-line-height,);
|
|
183
197
|
|
|
184
198
|
font-weight: var(--label--titlestack-font-weight,);
|
|
199
|
+
|
|
200
|
+
display: var(--label--titlestack-display, none);
|
|
185
201
|
}
|
|
186
202
|
}
|
|
187
203
|
|
|
@@ -192,6 +208,8 @@ $label-line-ifs: (
|
|
|
192
208
|
block-size: var(--label-imagestack-fontsize);
|
|
193
209
|
|
|
194
210
|
font-size: var(--label-imagestack-fontsize);
|
|
211
|
+
|
|
212
|
+
display: var(--label--iconstack-display, none);
|
|
195
213
|
}
|
|
196
214
|
|
|
197
215
|
// vars
|
|
@@ -230,6 +248,14 @@ $label-line-ifs: (
|
|
|
230
248
|
style(--label-style: title-and-icon): if(style(--label-flow: vertical): auto minmax(0, 1fr) ; else: minmax(0, 1fr) ;) ;
|
|
231
249
|
else: if(style(--label--has-icon: yes) and style(--label--has-title: yes): if(style(--label-flow: vertical): auto minmax(0, 1fr) ; else: minmax(0, 1fr) ;) ; else: minmax(0, 1fr) ;) ;
|
|
232
250
|
);
|
|
251
|
+
|
|
252
|
+
--label--iconstack-display: if(
|
|
253
|
+
style(--label-style: icon-only): grid ; style(--label-style: title-only): none ; style(--label-style: title-and-icon): grid ; else: if(style(--label--has-icon: yes): grid ; else: none;) ;
|
|
254
|
+
);
|
|
255
|
+
|
|
256
|
+
--label--titlestack-display: if(
|
|
257
|
+
style(--label-style: icon-only): none ; style(--label-style: title-only): grid ; style(--label-style: title-and-icon): grid ; else: if(style(--label--has-title: yes): grid ; else: none;) ;
|
|
258
|
+
);
|
|
233
259
|
}
|
|
234
260
|
}
|
|
235
261
|
|
|
@@ -40,10 +40,9 @@
|
|
|
40
40
|
:where(&:has([disabled])) {
|
|
41
41
|
pointer-events: none;
|
|
42
42
|
}
|
|
43
|
-
}
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
// NOTE: MUST be right-after the above `all: unset` in this SAME page!
|
|
45
|
+
|
|
47
46
|
:where(& > button),
|
|
48
47
|
:where(& > picker-view > menu-view)::part(menu-summary),
|
|
49
48
|
:where(& > menu-view)::part(menu-summary) {
|
|
@@ -54,6 +53,18 @@
|
|
|
54
53
|
|
|
55
54
|
> button {
|
|
56
55
|
@include mixins.takeover-button-slots;
|
|
56
|
+
|
|
57
|
+
// [tint] &,
|
|
58
|
+
// &[tint] {
|
|
59
|
+
// :where(&) {
|
|
60
|
+
// // NOTE: Make everything inside prominent buttons white
|
|
61
|
+
// --secondary: var(--btntext);
|
|
62
|
+
// --blue: var(--btntext);
|
|
63
|
+
|
|
64
|
+
// --accentColorEffective: var(--btntext);
|
|
65
|
+
// --accentColor: var(--btntext);
|
|
66
|
+
// }
|
|
67
|
+
// }
|
|
57
68
|
}
|
|
58
69
|
|
|
59
70
|
// NOTE: add paddings to labels w/ text in toolbar items
|
|
@@ -75,86 +86,9 @@
|
|
|
75
86
|
// }
|
|
76
87
|
// }
|
|
77
88
|
}
|
|
78
|
-
|
|
79
|
-
// tool-bar-item[slot],
|
|
80
|
-
// tool-bar-item-group {
|
|
81
|
-
// @media (prefers-reduced-motion: no-preference) {
|
|
82
|
-
// transition:
|
|
83
|
-
// display var(--menu-animation-duration) allow-discrete ease-out,
|
|
84
|
-
// overlay var(--menu-animation-duration) allow-discrete ease-out,
|
|
85
|
-
// transform var(--menu-animation-duration) allow-discrete ease-out;
|
|
86
|
-
// will-change: transform, overlay, display;
|
|
87
|
-
// }
|
|
88
|
-
// }
|
|
89
|
-
|
|
90
|
-
// tool-bar-item {
|
|
91
|
-
// min-height: var(--toolbar-cell-min-size);
|
|
92
|
-
// min-width: var(--toolbar-cell-min-size);
|
|
93
|
-
// }
|
|
94
89
|
}
|
|
95
90
|
|
|
96
|
-
// @layer #{vars.$colors-layer} {
|
|
97
|
-
// sidebar-toggle > button,
|
|
98
|
-
// tool-bar-item > button,
|
|
99
|
-
// tool-bar-item > input,
|
|
100
|
-
// [is='tab-item'],
|
|
101
|
-
// // list-view > button,
|
|
102
|
-
// menu-view > button,
|
|
103
|
-
// [is='disclosure-group'] > button,
|
|
104
|
-
// [is='disclosure-group'] > summary {
|
|
105
|
-
// &:not(:disabled):not([readonly]) {
|
|
106
|
-
// :where(&) {
|
|
107
|
-
// @include mixins.add-focus-visible-state {
|
|
108
|
-
// --toolbaritemface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
109
|
-
// }
|
|
110
|
-
// }
|
|
111
|
-
// }
|
|
112
|
-
// }
|
|
113
|
-
|
|
114
|
-
// menu-view {
|
|
115
|
-
// @include mixins.add-focus-visible-state('::part(menu-summary)') {
|
|
116
|
-
// --toolbaritemface: var(--toolbaritemhighlightface,); //light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
117
|
-
// }
|
|
118
|
-
// @include mixins.add-hover-state('::part(menu-summary)') {
|
|
119
|
-
// --toolbaritemface: var(--toolbaritemhighlightface,); //light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
120
|
-
// }
|
|
121
|
-
// }
|
|
122
|
-
|
|
123
|
-
// list-view > button,
|
|
124
|
-
// [is='form-view'] > button {
|
|
125
|
-
// &:not(:disabled):not([readonly]) {
|
|
126
|
-
// :where(&) {
|
|
127
|
-
// --toolbaritempadistart: 0.3rem;
|
|
128
|
-
// --toolbaritempadbstart: 0.3rem;
|
|
129
|
-
// }
|
|
130
|
-
// }
|
|
131
|
-
// }
|
|
132
|
-
// }
|
|
133
|
-
|
|
134
91
|
@layer #{vars.$ui-layer} {
|
|
135
|
-
// sidebar-toggle > button,
|
|
136
|
-
// tool-bar-item > button,
|
|
137
|
-
// tool-bar-item > input,
|
|
138
|
-
// [is='tab-item'],
|
|
139
|
-
// // list-view > button,
|
|
140
|
-
// menu-view > button,
|
|
141
|
-
// [is='disclosure-group'] > summary,
|
|
142
|
-
// [is='disclosure-group'] > button {
|
|
143
|
-
// // &:not(:disabled):not([readonly]) {
|
|
144
|
-
// // :where(&) {
|
|
145
|
-
// @include mixins.add-active-state {
|
|
146
|
-
// --toolbaritemface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
147
|
-
// }
|
|
148
|
-
// // }
|
|
149
|
-
// // }
|
|
150
|
-
// }
|
|
151
|
-
|
|
152
|
-
// menu-view {
|
|
153
|
-
// @include mixins.add-active-state('::part(menu-summary)') {
|
|
154
|
-
// --toolbaritemface: var(--toolbaritemactiveface,); //light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
155
|
-
// }
|
|
156
|
-
// }
|
|
157
|
-
|
|
158
92
|
:where(tool-bar-item[slot]:has(menu-view[open])),
|
|
159
93
|
:where(tool-bar-item-group:has(> tool-bar-item menu-view[open])) {
|
|
160
94
|
--toolbar-cell-scale: var(--menu-host-offscreen-transform);
|
package/scss/utils/_index.scss
CHANGED
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
--accentColor5: var(--gray5);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
:where(&[is='bordered-button']) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
38
|
+
// :where(&[is='bordered-button']) {
|
|
39
|
+
// // --accentEmphasis: light-dark(color-mix(in oklch, var(--gray) 50%, var(--black)), color-mix(in oklch, var(--gray) 50%, var(--white)));
|
|
40
|
+
// --accentSubtle: var(--gray4);
|
|
41
|
+
// }
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
[tint='blue'] {
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
--accentColor5: var(--blue5);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
:where(&[is='bordered-button']) {
|
|
57
|
-
|
|
58
|
-
}
|
|
56
|
+
// :where(&[is='bordered-button']) {
|
|
57
|
+
// --accentSubtle: var(--blue4);
|
|
58
|
+
// }
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
[tint='red'] {
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
--accentColor5: var(--red5);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
:where(&[is='bordered-button']) {
|
|
74
|
-
|
|
75
|
-
}
|
|
73
|
+
// :where(&[is='bordered-button']) {
|
|
74
|
+
// --accentSubtle: var(--red4);
|
|
75
|
+
// }
|
|
76
76
|
}
|
|
77
77
|
}
|