@ebay/skin 19.33.0 → 19.35.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/dist/accordion/accordion.css +0 -2
- package/dist/alert-dialog/alert-dialog.css +16 -6
- package/dist/avatar/avatar.css +23 -5
- package/dist/breadcrumbs/breadcrumbs.css +13 -0
- package/dist/button/button.css +65 -11
- package/dist/calendar/calendar.css +67 -12
- package/dist/carousel/carousel.css +24 -12
- package/dist/ccd/ccd.css +4 -0
- package/dist/checkbox/checkbox.css +16 -2
- package/dist/chip/chip.css +7 -3
- package/dist/chips-combobox/chips-combobox.css +18 -1
- package/dist/combobox/combobox.css +37 -15
- package/dist/confirm-dialog/confirm-dialog.css +16 -6
- package/dist/cta-button/cta-button.css +20 -10
- package/dist/date-textbox/date-textbox.css +6 -1
- package/dist/details/details.css +4 -0
- package/dist/dialog/dialog.css +19 -0
- package/dist/donut-chart/donut-chart.css +8 -0
- package/dist/drawer-dialog/drawer-dialog.css +16 -6
- package/dist/education-notice/education-notice.css +12 -0
- package/dist/eek/eek.css +28 -0
- package/dist/field/field.css +23 -0
- package/dist/file-input/file-input.css +12 -1
- package/dist/file-preview-card/file-preview-card.css +3 -9
- package/dist/file-preview-card-group/file-preview-card-group.css +3 -0
- package/dist/filter-button/filter-button.css +8 -1
- package/dist/filter-chip/filter-chip.css +13 -28
- package/dist/filter-menu/filter-menu.css +24 -4
- package/dist/filter-menu-button/filter-menu-button.css +26 -4
- package/dist/flag/flag.css +252 -0
- package/dist/floating-label/floating-label.css +20 -2
- package/dist/fullscreen-dialog/fullscreen-dialog.css +12 -2
- package/dist/global/global.css +4 -0
- package/dist/icon-button/icon-button.css +24 -0
- package/dist/infotip/infotip.css +35 -11
- package/dist/inline-notice/inline-notice.css +5 -0
- package/dist/item-tile/item-tile.css +0 -1
- package/dist/layout-grid/layout-grid.css +7 -0
- package/dist/lightbox-dialog/lightbox-dialog.css +29 -7
- package/dist/link/link.css +6 -4
- package/dist/list/list.css +15 -3
- package/dist/listbox/listbox.css +22 -10
- package/dist/listbox-button/listbox-button.css +34 -8
- package/dist/menu/menu.css +5 -21
- package/dist/menu-button/menu-button.css +35 -10
- package/dist/number-input/number-input.css +17 -1
- package/dist/page-grid/page-grid.css +4 -3
- package/dist/page-notice/page-notice.css +21 -1
- package/dist/pagination/pagination.css +22 -6
- package/dist/panel-dialog/panel-dialog.css +20 -6
- package/dist/phone-input/phone-input.css +20 -0
- package/dist/progress-bar/progress-bar.css +6 -1
- package/dist/progress-bar-expressive/progress-bar-expressive.css +85 -61
- package/dist/progress-spinner/progress-spinner.css +2 -0
- package/dist/progress-stepper/progress-stepper.css +24 -0
- package/dist/radio/radio.css +16 -2
- package/dist/section-notice/section-notice.css +16 -0
- package/dist/section-title/section-title.css +14 -2
- package/dist/segmented-buttons/segmented-buttons.css +13 -3
- package/dist/select/select.css +17 -5
- package/dist/selection-chip/selection-chip.css +9 -20
- package/dist/skeleton/skeleton.css +23 -0
- package/dist/snackbar-dialog/snackbar-dialog.css +15 -4
- package/dist/star-rating/star-rating.css +2 -0
- package/dist/star-rating-select/star-rating-select.css +8 -1
- package/dist/svg/icon/icon-affirm-black-12-colored.svg +16 -0
- package/dist/svg/icon/icon-affirm-black-18-colored.svg +16 -0
- package/dist/svg/icon/icon-affirm-black-24-colored.svg +16 -0
- package/dist/svg/icon/icon-affirm-black-32-colored.svg +16 -0
- package/dist/svg/icon/icon-affirm-white-12-colored.svg +24 -0
- package/dist/svg/icon/icon-affirm-white-18-colored.svg +24 -0
- package/dist/svg/icon/icon-affirm-white-24-colored.svg +24 -0
- package/dist/svg/icon/icon-affirm-white-32-colored.svg +24 -0
- package/dist/svg/icon/icon-live-bag-16.svg +1 -1
- package/dist/svg/icon/icon-live-bag-20.svg +1 -1
- package/dist/svg/icon/icon-live-bag-24.svg +1 -1
- package/dist/svg/icon/icon-live-bag-filled-24.svg +1 -1
- package/dist/svg/icon/icon-live-bag-thin-16.svg +1 -1
- package/dist/svg/icons.svg +165 -5
- package/dist/switch/switch.css +8 -21
- package/dist/table/table.css +47 -0
- package/dist/tabs/tabs.css +0 -5
- package/dist/textbox/textbox.css +9 -20
- package/dist/toast-dialog/toast-dialog.css +9 -1
- package/dist/toggle-button/toggle-button.css +32 -0
- package/dist/toggle-button-group/toggle-button-group.css +16 -0
- package/dist/tooltip/tooltip.css +37 -14
- package/dist/tourtip/tourtip.css +43 -16
- package/dist/typography/typography.css +20 -0
- package/dist/utility/utility.css +7 -0
- package/dist/video/video.css +23 -1
- package/eslint.config.mjs +7 -5
- package/package.json +6 -3
package/dist/textbox/textbox.css
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.textbox {
|
|
7
|
-
|
|
7
|
+
color: var(--textbox-foreground-color, var(--color-foreground-primary));
|
|
8
8
|
background-color: var(
|
|
9
9
|
--textbox-background-color,
|
|
10
10
|
var(--color-background-secondary)
|
|
11
11
|
);
|
|
12
12
|
border-color: var(--textbox-border-color, var(--color-border-medium));
|
|
13
13
|
border-radius: var(--textbox-border-radius, var(--border-radius-50));
|
|
14
|
+
align-items: center;
|
|
14
15
|
border-style: solid;
|
|
15
16
|
border-width: 1px;
|
|
16
17
|
box-sizing: border-box;
|
|
17
|
-
color: var(--textbox-foreground-color, var(--color-foreground-primary));
|
|
18
18
|
display: inline-flex;
|
|
19
19
|
font-size: var(--font-size-body);
|
|
20
20
|
gap: var(--spacing-100);
|
|
@@ -22,30 +22,26 @@
|
|
|
22
22
|
position: relative;
|
|
23
23
|
width: fit-content;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
25
|
.textbox button.icon-btn {
|
|
27
26
|
background-color: initial;
|
|
28
27
|
padding: 0;
|
|
29
28
|
}
|
|
30
|
-
|
|
31
29
|
.textbox--focus,
|
|
32
30
|
.textbox:has(> .textbox__control:focus):not(.textbox--readonly):not(
|
|
33
31
|
:has(> .textbox__control[readonly])
|
|
34
32
|
) {
|
|
33
|
+
box-shadow: 0 0 0 1px var(--color-border-strong);
|
|
34
|
+
border-color: var(--textbox-focus-border-color, var(--color-border-strong));
|
|
35
35
|
background-color: var(
|
|
36
36
|
--textbox-focus-background-color,
|
|
37
37
|
var(--color-background-primary)
|
|
38
38
|
);
|
|
39
|
-
border-color: var(--textbox-focus-border-color, var(--color-border-strong));
|
|
40
|
-
box-shadow: 0 0 0 1px var(--color-border-strong);
|
|
41
39
|
}
|
|
42
|
-
|
|
43
40
|
.textbox--readonly,
|
|
44
41
|
.textbox:has(> .textbox__control[readonly]) {
|
|
45
42
|
background-color: initial;
|
|
46
43
|
border: none;
|
|
47
44
|
}
|
|
48
|
-
|
|
49
45
|
.textbox--disabled,
|
|
50
46
|
.textbox:has(> .textbox__control[disabled]) {
|
|
51
47
|
border-color: var(
|
|
@@ -57,7 +53,6 @@
|
|
|
57
53
|
var(--color-foreground-disabled)
|
|
58
54
|
);
|
|
59
55
|
}
|
|
60
|
-
|
|
61
56
|
.textbox--invalid,
|
|
62
57
|
.textbox:has(> .textbox__control[aria-invalid="true"]) {
|
|
63
58
|
border-color: var(
|
|
@@ -105,7 +100,6 @@ textarea.textbox__control {
|
|
|
105
100
|
margin: 0;
|
|
106
101
|
outline: none;
|
|
107
102
|
}
|
|
108
|
-
|
|
109
103
|
input.textbox__control[disabled],
|
|
110
104
|
textarea.textbox__control[disabled] {
|
|
111
105
|
border-color: var(
|
|
@@ -117,7 +111,6 @@ textarea.textbox__control[disabled] {
|
|
|
117
111
|
var(--color-foreground-disabled)
|
|
118
112
|
);
|
|
119
113
|
}
|
|
120
|
-
|
|
121
114
|
input.textbox__control[disabled]::-webkit-input-placeholder,
|
|
122
115
|
textarea.textbox__control[disabled]::-webkit-input-placeholder {
|
|
123
116
|
color: var(
|
|
@@ -125,7 +118,6 @@ textarea.textbox__control[disabled]::-webkit-input-placeholder {
|
|
|
125
118
|
var(--color-foreground-ghost)
|
|
126
119
|
);
|
|
127
120
|
}
|
|
128
|
-
|
|
129
121
|
input.textbox__control[disabled]::-moz-placeholder,
|
|
130
122
|
textarea.textbox__control[disabled]::-moz-placeholder {
|
|
131
123
|
color: var(
|
|
@@ -133,7 +125,6 @@ textarea.textbox__control[disabled]::-moz-placeholder {
|
|
|
133
125
|
var(--color-foreground-ghost)
|
|
134
126
|
);
|
|
135
127
|
}
|
|
136
|
-
|
|
137
128
|
input.textbox__control[disabled]:-ms-input-placeholder,
|
|
138
129
|
textarea.textbox__control[disabled]:-ms-input-placeholder {
|
|
139
130
|
color: var(
|
|
@@ -141,7 +132,6 @@ textarea.textbox__control[disabled]:-ms-input-placeholder {
|
|
|
141
132
|
var(--color-foreground-ghost)
|
|
142
133
|
);
|
|
143
134
|
}
|
|
144
|
-
|
|
145
135
|
input.textbox__control[aria-invalid="true"],
|
|
146
136
|
textarea.textbox__control[aria-invalid="true"] {
|
|
147
137
|
border-color: var(
|
|
@@ -149,7 +139,6 @@ textarea.textbox__control[aria-invalid="true"] {
|
|
|
149
139
|
var(--color-border-attention)
|
|
150
140
|
);
|
|
151
141
|
}
|
|
152
|
-
|
|
153
142
|
input.textbox__control::placeholder,
|
|
154
143
|
textarea.textbox__control::placeholder {
|
|
155
144
|
color: var(--textbox-placeholder-color, var(--color-foreground-secondary));
|
|
@@ -158,20 +147,20 @@ textarea.textbox__control::placeholder {
|
|
|
158
147
|
}
|
|
159
148
|
|
|
160
149
|
input.textbox__control {
|
|
161
|
-
height: calc(var(--input-default-height)
|
|
150
|
+
height: calc(-2px + var(--input-default-height));
|
|
162
151
|
}
|
|
163
152
|
|
|
164
153
|
.textbox--large input.textbox__control {
|
|
165
|
-
height: calc(var(--input-large-height)
|
|
154
|
+
height: calc(-2px + var(--input-large-height));
|
|
166
155
|
}
|
|
167
156
|
|
|
168
157
|
.textbox .icon-btn > svg,
|
|
169
158
|
.textbox > svg {
|
|
170
159
|
color: var(--textbox-icon-color, var(--color-foreground-secondary));
|
|
171
160
|
display: inline-flex;
|
|
172
|
-
fill: var(--textbox-icon-color, var(--color-foreground-secondary));
|
|
173
161
|
height: 1lh;
|
|
174
162
|
pointer-events: none;
|
|
163
|
+
fill: var(--textbox-icon-color, var(--color-foreground-secondary));
|
|
175
164
|
}
|
|
176
165
|
|
|
177
166
|
.textbox > span:first-child,
|
|
@@ -186,11 +175,11 @@ input.textbox__control {
|
|
|
186
175
|
}
|
|
187
176
|
|
|
188
177
|
.textbox .icon-btn:last-child {
|
|
189
|
-
margin-inline-start: calc(var(--spacing-100)
|
|
178
|
+
margin-inline-start: calc(-1 * var(--spacing-100));
|
|
190
179
|
}
|
|
191
180
|
|
|
192
181
|
.textbox .icon-btn:first-child {
|
|
193
|
-
margin-inline-end: calc(var(--spacing-100)
|
|
182
|
+
margin-inline-end: calc(-1 * var(--spacing-100));
|
|
194
183
|
}
|
|
195
184
|
|
|
196
185
|
input.textbox__control[readonly]:focus,
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
--state-layer-neutral-on-strong: rgb(var(--color-neutral-900-rgb), 0);
|
|
6
6
|
--state-layer-neutral: rgb(var(--color-neutral-900-rgb), 0);
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
@keyframes toast-dialog-open {
|
|
9
10
|
0% {
|
|
10
11
|
opacity: 0;
|
|
@@ -52,9 +53,11 @@ dialog.toast-dialog {
|
|
|
52
53
|
.toast-dialog[open].toast-dialog--close {
|
|
53
54
|
animation: toast-dialog-close 0.2s cubic-bezier(0.21, 0.31, 1, 1.22);
|
|
54
55
|
}
|
|
56
|
+
|
|
55
57
|
.toast-dialog a {
|
|
56
58
|
color: var(--color-foreground-on-success);
|
|
57
59
|
}
|
|
60
|
+
|
|
58
61
|
.toast-dialog a:focus {
|
|
59
62
|
outline: 1px auto currentColor;
|
|
60
63
|
}
|
|
@@ -75,9 +78,11 @@ dialog.toast-dialog {
|
|
|
75
78
|
opacity: 0;
|
|
76
79
|
transform: translateY(110%);
|
|
77
80
|
}
|
|
81
|
+
|
|
78
82
|
.toast-dialog__window {
|
|
79
83
|
padding: var(--spacing-100) var(--spacing-200) var(--spacing-200);
|
|
80
84
|
}
|
|
85
|
+
|
|
81
86
|
.toast-dialog__header {
|
|
82
87
|
align-items: center;
|
|
83
88
|
display: flex;
|
|
@@ -92,8 +97,8 @@ button.icon-btn.toast-dialog__close {
|
|
|
92
97
|
color: var(--color-foreground-on-success);
|
|
93
98
|
flex-shrink: 0;
|
|
94
99
|
margin-inline-start: auto;
|
|
95
|
-
overflow: hidden;
|
|
96
100
|
padding: 0;
|
|
101
|
+
overflow: hidden;
|
|
97
102
|
position: relative;
|
|
98
103
|
}
|
|
99
104
|
button.icon-btn.toast-dialog__close:after {
|
|
@@ -127,9 +132,11 @@ button.icon-btn.toast-dialog__close[href]:active:after {
|
|
|
127
132
|
button.icon-btn.toast-dialog__close:focus {
|
|
128
133
|
outline: 2px solid var(--color-foreground-on-success);
|
|
129
134
|
}
|
|
135
|
+
|
|
130
136
|
button.icon-btn.toast-dialog__close > svg {
|
|
131
137
|
fill: currentColor;
|
|
132
138
|
}
|
|
139
|
+
|
|
133
140
|
.toast-dialog__footer {
|
|
134
141
|
display: flex;
|
|
135
142
|
justify-content: flex-end;
|
|
@@ -201,6 +208,7 @@ button.icon-btn.toast-dialog__close > svg {
|
|
|
201
208
|
.toast-dialog__footer button.btn--secondary:focus {
|
|
202
209
|
outline: 2px solid var(--color-foreground-on-success);
|
|
203
210
|
}
|
|
211
|
+
|
|
204
212
|
@media (min-width: 512px) {
|
|
205
213
|
.toast-dialog {
|
|
206
214
|
border-radius: var(--border-radius-100);
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
--toggle-button-gallery-width-min: 168px;
|
|
8
8
|
--toggle-button-gallery-width-max: 342px;
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
.toggle-button {
|
|
11
12
|
background-color: var(--color-background-primary);
|
|
12
13
|
border: 1px solid var(--color-border-medium);
|
|
@@ -30,58 +31,71 @@
|
|
|
30
31
|
outline-style: outset;
|
|
31
32
|
outline-width: 2px;
|
|
32
33
|
}
|
|
34
|
+
|
|
33
35
|
.toggle-button[aria-disabled="true"],
|
|
34
36
|
.toggle-button[disabled] {
|
|
35
37
|
border-color: var(--color-border-disabled);
|
|
36
38
|
}
|
|
39
|
+
|
|
37
40
|
.toggle-button * {
|
|
38
41
|
pointer-events: none;
|
|
39
42
|
}
|
|
43
|
+
|
|
40
44
|
.toggle-button[aria-pressed="true"] {
|
|
41
45
|
background-color: var(--color-background-secondary);
|
|
42
46
|
border: 1px solid var(--color-border-strong);
|
|
43
47
|
box-shadow: 0 0 0 1px var(--color-border-strong);
|
|
44
48
|
font-weight: 700;
|
|
45
49
|
}
|
|
50
|
+
|
|
46
51
|
.toggle-button[aria-disabled="true"][aria-pressed="true"],
|
|
47
52
|
.toggle-button[disabled][aria-pressed="true"] {
|
|
48
53
|
border-color: var(--color-border-disabled);
|
|
49
54
|
box-shadow: 0 0 0 1px var(--color-border-disabled);
|
|
50
55
|
}
|
|
56
|
+
|
|
51
57
|
.toggle-button:not([aria-disabled="true"], [disabled]):hover {
|
|
52
58
|
background-color: var(--state-layer-hover);
|
|
53
59
|
}
|
|
60
|
+
|
|
54
61
|
.toggle-button:not([aria-disabled="true"], [disabled]):active {
|
|
55
62
|
background-color: var(--state-layer-pressed);
|
|
56
63
|
}
|
|
64
|
+
|
|
57
65
|
.toggle-button__content {
|
|
58
66
|
align-self: center;
|
|
59
67
|
display: flex;
|
|
60
68
|
flex-direction: column;
|
|
61
69
|
text-align: left;
|
|
62
70
|
}
|
|
71
|
+
|
|
63
72
|
.toggle-button__icon,
|
|
64
73
|
.toggle-button__image-container {
|
|
65
74
|
margin-bottom: var(--spacing-200);
|
|
66
75
|
margin-right: var(--spacing-200);
|
|
67
76
|
margin-top: var(--spacing-200);
|
|
68
77
|
}
|
|
78
|
+
|
|
69
79
|
.toggle-button__image-container {
|
|
70
80
|
align-self: center;
|
|
71
81
|
}
|
|
82
|
+
|
|
72
83
|
.toggle-button__image-container svg.icon {
|
|
73
84
|
height: 100%;
|
|
74
85
|
}
|
|
86
|
+
|
|
75
87
|
.toggle-button__image-container img {
|
|
76
88
|
height: 100%;
|
|
77
89
|
max-height: 56px;
|
|
78
90
|
max-width: 56px;
|
|
79
91
|
}
|
|
92
|
+
|
|
80
93
|
.toggle-button__image {
|
|
81
94
|
display: inline-block;
|
|
82
95
|
height: 56px;
|
|
83
96
|
width: 56px;
|
|
84
97
|
}
|
|
98
|
+
|
|
85
99
|
.toggle-button__title {
|
|
86
100
|
font-size: var(--font-size-medium);
|
|
87
101
|
font-weight: 700;
|
|
@@ -89,13 +103,16 @@
|
|
|
89
103
|
margin-bottom: var(--spacing-50);
|
|
90
104
|
margin-top: var(--spacing-200);
|
|
91
105
|
}
|
|
106
|
+
|
|
92
107
|
.toggle-button__title:only-child {
|
|
93
108
|
margin-bottom: var(--spacing-200);
|
|
94
109
|
}
|
|
110
|
+
|
|
95
111
|
.toggle-button[aria-disabled="true"] .toggle-button__title,
|
|
96
112
|
.toggle-button[disabled] .toggle-button__title {
|
|
97
113
|
color: var(--color-foreground-disabled);
|
|
98
114
|
}
|
|
115
|
+
|
|
99
116
|
.toggle-button
|
|
100
117
|
.toggle-button__content:only-child
|
|
101
118
|
.toggle-button__title:only-child {
|
|
@@ -105,27 +122,33 @@
|
|
|
105
122
|
text-align: center;
|
|
106
123
|
width: 100%;
|
|
107
124
|
}
|
|
125
|
+
|
|
108
126
|
.toggle-button:not([aria-pressed="true"])
|
|
109
127
|
.toggle-button__content:only-child
|
|
110
128
|
.toggle-button__title:only-child {
|
|
111
129
|
font-weight: 400;
|
|
112
130
|
}
|
|
131
|
+
|
|
113
132
|
.toggle-button__subtitle {
|
|
114
133
|
color: var(--color-foreground-secondary);
|
|
115
134
|
line-height: var(--font-size-large-1);
|
|
116
135
|
margin-bottom: var(--spacing-200);
|
|
117
136
|
}
|
|
137
|
+
|
|
118
138
|
.toggle-button[aria-disabled="true"] .toggle-button__subtitle,
|
|
119
139
|
.toggle-button[disabled] .toggle-button__subtitle {
|
|
120
140
|
color: var(--color-foreground-disabled);
|
|
121
141
|
}
|
|
142
|
+
|
|
122
143
|
.toggle-button__subtitle p {
|
|
123
144
|
margin: 0;
|
|
124
145
|
}
|
|
146
|
+
|
|
125
147
|
.toggle-button[aria-pressed="true"] .toggle-button__subtitle {
|
|
126
148
|
color: var(--color-foreground-primary);
|
|
127
149
|
font-weight: 400;
|
|
128
150
|
}
|
|
151
|
+
|
|
129
152
|
.toggle-button[aria-disabled="true"][aria-pressed="true"]
|
|
130
153
|
.toggle-button__subtitle,
|
|
131
154
|
.toggle-button[disabled][aria-pressed="true"] .toggle-button__subtitle {
|
|
@@ -136,37 +159,44 @@
|
|
|
136
159
|
max-width: var(--toggle-button-list-width-max);
|
|
137
160
|
min-width: var(--toggle-button-list-width-min);
|
|
138
161
|
}
|
|
162
|
+
|
|
139
163
|
.toggle-button--list-layout .toggle-button__content:not(:only-child),
|
|
140
164
|
.toggle-button--list-layout .toggle-button__image-container {
|
|
141
165
|
align-self: self-start;
|
|
142
166
|
}
|
|
167
|
+
|
|
143
168
|
.toggle-button--gallery-layout {
|
|
144
169
|
flex-direction: column;
|
|
145
170
|
justify-content: left;
|
|
146
171
|
max-width: var(--toggle-button-gallery-width-max);
|
|
147
172
|
min-width: var(--toggle-button-gallery-width-min);
|
|
148
173
|
}
|
|
174
|
+
|
|
149
175
|
.toggle-button--gallery-layout .toggle-button__content {
|
|
150
176
|
align-self: self-start;
|
|
151
177
|
}
|
|
178
|
+
|
|
152
179
|
.toggle-button--gallery-layout .toggle-button__icon,
|
|
153
180
|
.toggle-button--gallery-layout .toggle-button__image-container {
|
|
154
181
|
margin-bottom: 0;
|
|
155
182
|
margin-right: 0;
|
|
156
183
|
text-align: left;
|
|
157
184
|
}
|
|
185
|
+
|
|
158
186
|
.toggle-button--gallery-layout .toggle-button__image-container {
|
|
159
187
|
padding-bottom: 60%;
|
|
160
188
|
position: relative;
|
|
161
189
|
text-align: center;
|
|
162
190
|
width: 100%;
|
|
163
191
|
}
|
|
192
|
+
|
|
164
193
|
.toggle-button--gallery-layout .toggle-button__image {
|
|
165
194
|
height: 100%;
|
|
166
195
|
inset: 0;
|
|
167
196
|
position: absolute;
|
|
168
197
|
width: 100%;
|
|
169
198
|
}
|
|
199
|
+
|
|
170
200
|
.toggle-button[aria-disabled="true"] .toggle-button__icon,
|
|
171
201
|
.toggle-button[aria-disabled="true"] .toggle-button__image,
|
|
172
202
|
.toggle-button[disabled] .toggle-button__icon,
|
|
@@ -174,11 +204,13 @@
|
|
|
174
204
|
filter: grayscale(1);
|
|
175
205
|
opacity: 0.5;
|
|
176
206
|
}
|
|
207
|
+
|
|
177
208
|
.toggle-button--gallery-layout .toggle-button__image-container img {
|
|
178
209
|
height: 100%;
|
|
179
210
|
max-height: 200px;
|
|
180
211
|
max-width: none;
|
|
181
212
|
}
|
|
213
|
+
|
|
182
214
|
.toggle-button--gallery-layout .toggle-button__icon ~ .toggle-button__content {
|
|
183
215
|
align-self: flex-start;
|
|
184
216
|
}
|
|
@@ -15,9 +15,11 @@
|
|
|
15
15
|
--row-gallery-toggle-buttons-md: 4;
|
|
16
16
|
--row-gallery-toggle-buttons-xl: 6;
|
|
17
17
|
}
|
|
18
|
+
|
|
18
19
|
.toggle-button-group {
|
|
19
20
|
container: toggle-buttons-container/inline-size;
|
|
20
21
|
}
|
|
22
|
+
|
|
21
23
|
@supports not (contain: inline-size) {
|
|
22
24
|
@media (max-width: 320px) {
|
|
23
25
|
.toggle-button-group[data-columns-min="1"] ul {
|
|
@@ -52,11 +54,13 @@
|
|
|
52
54
|
padding: 0;
|
|
53
55
|
width: 100%;
|
|
54
56
|
}
|
|
57
|
+
|
|
55
58
|
.toggle-button-group li {
|
|
56
59
|
display: inline-block;
|
|
57
60
|
min-height: var(--toggle-button-height-min);
|
|
58
61
|
width: 100%;
|
|
59
62
|
}
|
|
63
|
+
|
|
60
64
|
.toggle-button-group .toggle-button {
|
|
61
65
|
height: 100%;
|
|
62
66
|
margin: 0;
|
|
@@ -66,34 +70,42 @@
|
|
|
66
70
|
.toggle-button-group--list-layout ul {
|
|
67
71
|
grid-template-columns: repeat(var(--row-list-toggle-buttons-min), 1fr);
|
|
68
72
|
}
|
|
73
|
+
|
|
69
74
|
.toggle-button-group--list-layout .toggle-button {
|
|
70
75
|
justify-content: left;
|
|
71
76
|
max-width: 100%;
|
|
72
77
|
min-width: auto;
|
|
73
78
|
}
|
|
79
|
+
|
|
74
80
|
.toggle-button-group--gallery-layout ul {
|
|
75
81
|
grid-template-columns: repeat(var(--row-gallery-toggle-buttons-min), 1fr);
|
|
76
82
|
}
|
|
83
|
+
|
|
77
84
|
.toggle-button-group--gallery-layout li {
|
|
78
85
|
max-width: 100%;
|
|
79
86
|
}
|
|
87
|
+
|
|
80
88
|
.toggle-button-group--gallery-layout .toggle-button {
|
|
81
89
|
flex-direction: column;
|
|
82
90
|
max-width: 100%;
|
|
83
91
|
min-width: auto;
|
|
84
92
|
}
|
|
93
|
+
|
|
85
94
|
.toggle-button-group--list-layout .toggle-button__content:not(:only-child),
|
|
86
95
|
.toggle-button-group--list-layout .toggle-button__image-container {
|
|
87
96
|
align-self: flex-start;
|
|
88
97
|
}
|
|
98
|
+
|
|
89
99
|
.toggle-button-group--gallery-layout .toggle-button {
|
|
90
100
|
justify-content: flex-start;
|
|
91
101
|
}
|
|
102
|
+
|
|
92
103
|
.toggle-button-group--gallery-layout .toggle-button__icon,
|
|
93
104
|
.toggle-button-group--gallery-layout .toggle-button__image {
|
|
94
105
|
margin-bottom: 0;
|
|
95
106
|
margin-right: 0;
|
|
96
107
|
}
|
|
108
|
+
|
|
97
109
|
.toggle-button-group--gallery-layout
|
|
98
110
|
.toggle-button__icon
|
|
99
111
|
~ .toggle-button__content,
|
|
@@ -102,24 +114,28 @@
|
|
|
102
114
|
~ .toggle-button__content {
|
|
103
115
|
align-self: flex-start;
|
|
104
116
|
}
|
|
117
|
+
|
|
105
118
|
.toggle-button-group--gallery-layout .toggle-button__icon,
|
|
106
119
|
.toggle-button-group--gallery-layout .toggle-button__image-container {
|
|
107
120
|
margin-bottom: 0;
|
|
108
121
|
margin-right: 0;
|
|
109
122
|
text-align: left;
|
|
110
123
|
}
|
|
124
|
+
|
|
111
125
|
.toggle-button-group--gallery-layout .toggle-button__image-container {
|
|
112
126
|
padding-bottom: 60%;
|
|
113
127
|
position: relative;
|
|
114
128
|
text-align: center;
|
|
115
129
|
width: 100%;
|
|
116
130
|
}
|
|
131
|
+
|
|
117
132
|
.toggle-button-group--gallery-layout .toggle-button__image {
|
|
118
133
|
height: 100%;
|
|
119
134
|
inset: 0;
|
|
120
135
|
position: absolute;
|
|
121
136
|
width: 100%;
|
|
122
137
|
}
|
|
138
|
+
|
|
123
139
|
.toggle-button-group--gallery-layout .toggle-button__image-container img {
|
|
124
140
|
height: 100%;
|
|
125
141
|
max-height: 200px;
|
package/dist/tooltip/tooltip.css
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
.tooltip {
|
|
5
5
|
position: relative;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
span.tooltip {
|
|
8
9
|
display: inline-block;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
.tooltip__overlay {
|
|
11
13
|
box-shadow: var(--bubble-shadow);
|
|
12
14
|
display: none;
|
|
@@ -18,22 +20,26 @@ span.tooltip {
|
|
|
18
20
|
transform: scaleX(1);
|
|
19
21
|
width: max-content;
|
|
20
22
|
}
|
|
23
|
+
|
|
21
24
|
.tooltip__mask,
|
|
22
25
|
.tooltip__overlay {
|
|
23
26
|
border-radius: var(--bubble-border-radius, var(--border-radius-50));
|
|
24
27
|
z-index: 1;
|
|
25
28
|
}
|
|
29
|
+
|
|
26
30
|
.tooltip__mask {
|
|
31
|
+
position: relative;
|
|
27
32
|
background-color: var(
|
|
28
33
|
--tooltip-background-color,
|
|
29
34
|
var(--color-background-inverse)
|
|
30
35
|
);
|
|
31
36
|
color: var(--tooltip-foreground-color, var(--color-foreground-on-inverse));
|
|
32
|
-
position: relative;
|
|
33
37
|
}
|
|
38
|
+
|
|
34
39
|
span.tooltip__mask {
|
|
35
40
|
display: block;
|
|
36
41
|
}
|
|
42
|
+
|
|
37
43
|
.tooltip__cell {
|
|
38
44
|
display: flex;
|
|
39
45
|
overflow-wrap: anywhere;
|
|
@@ -46,6 +52,7 @@ span.tooltip__mask {
|
|
|
46
52
|
.tooltip__cell a:focus {
|
|
47
53
|
outline: 1px dashed currentColor;
|
|
48
54
|
}
|
|
55
|
+
|
|
49
56
|
.tooltip__content {
|
|
50
57
|
flex-grow: 1;
|
|
51
58
|
}
|
|
@@ -55,91 +62,107 @@ span.tooltip__mask {
|
|
|
55
62
|
.tooltip__content p:not(:first-of-type) {
|
|
56
63
|
margin-top: var(--spacing-50);
|
|
57
64
|
}
|
|
65
|
+
|
|
58
66
|
button.tooltip__close {
|
|
59
67
|
align-self: flex-start;
|
|
60
68
|
background: none;
|
|
61
69
|
border: 0;
|
|
62
70
|
flex-shrink: 0;
|
|
63
71
|
height: var(--spacing-400);
|
|
64
|
-
margin: calc(var(--spacing-100)
|
|
72
|
+
margin: calc(-1 * var(--spacing-100)) calc(-1 * var(--spacing-100)) 0
|
|
65
73
|
var(--spacing-100);
|
|
66
74
|
padding: 0;
|
|
67
75
|
white-space: nowrap;
|
|
68
76
|
width: 32px;
|
|
69
77
|
}
|
|
78
|
+
|
|
70
79
|
.tooltip__pointer {
|
|
71
|
-
background-color: var(
|
|
72
|
-
--tooltip-background-color,
|
|
73
|
-
var(--color-background-inverse)
|
|
74
|
-
);
|
|
75
80
|
height: 8px;
|
|
76
81
|
position: absolute;
|
|
77
82
|
transform: rotate(45deg);
|
|
78
83
|
width: 8px;
|
|
79
84
|
z-index: 0;
|
|
85
|
+
background-color: var(
|
|
86
|
+
--tooltip-background-color,
|
|
87
|
+
var(--color-background-inverse)
|
|
88
|
+
);
|
|
80
89
|
}
|
|
90
|
+
|
|
81
91
|
.tooltip__pointer--top-left {
|
|
82
|
-
left: 12px;
|
|
83
92
|
top: -4px;
|
|
93
|
+
left: 12px;
|
|
84
94
|
}
|
|
95
|
+
|
|
85
96
|
.tooltip__pointer--top {
|
|
86
|
-
left: calc(50% - 4px);
|
|
87
97
|
top: -4px;
|
|
98
|
+
left: calc(50% - 4px);
|
|
88
99
|
}
|
|
100
|
+
|
|
89
101
|
.tooltip__pointer--top-right {
|
|
102
|
+
top: -4px;
|
|
90
103
|
left: auto;
|
|
91
104
|
right: 12px;
|
|
92
|
-
top: -4px;
|
|
93
105
|
}
|
|
106
|
+
|
|
94
107
|
.tooltip__pointer--bottom-left {
|
|
95
108
|
bottom: -4px;
|
|
96
|
-
left: 12px;
|
|
97
109
|
top: auto;
|
|
110
|
+
left: 12px;
|
|
98
111
|
}
|
|
112
|
+
|
|
99
113
|
.tooltip__pointer--bottom {
|
|
100
114
|
bottom: -4px;
|
|
101
|
-
left: calc(50% - 4px);
|
|
102
115
|
top: auto;
|
|
116
|
+
left: calc(50% - 4px);
|
|
103
117
|
}
|
|
118
|
+
|
|
104
119
|
.tooltip__pointer--bottom-right {
|
|
105
120
|
bottom: -4px;
|
|
121
|
+
top: auto;
|
|
106
122
|
left: auto;
|
|
107
123
|
right: 12px;
|
|
108
|
-
top: auto;
|
|
109
124
|
}
|
|
125
|
+
|
|
110
126
|
.tooltip__pointer--left {
|
|
111
|
-
left: -4px;
|
|
112
127
|
top: calc(50% - 4px);
|
|
128
|
+
left: -4px;
|
|
113
129
|
}
|
|
130
|
+
|
|
114
131
|
.tooltip__pointer--left-bottom {
|
|
115
132
|
bottom: 12px;
|
|
116
133
|
left: -4px;
|
|
117
134
|
top: auto;
|
|
118
135
|
}
|
|
136
|
+
|
|
119
137
|
.tooltip__pointer--left-top {
|
|
120
138
|
left: -4px;
|
|
121
139
|
top: 12px;
|
|
122
140
|
}
|
|
141
|
+
|
|
123
142
|
.tooltip__pointer--right {
|
|
143
|
+
top: calc(50% - 4px);
|
|
124
144
|
left: auto;
|
|
125
145
|
right: -4px;
|
|
126
|
-
top: calc(50% - 4px);
|
|
127
146
|
}
|
|
147
|
+
|
|
128
148
|
.tooltip__pointer--right-bottom {
|
|
129
149
|
bottom: 12px;
|
|
130
150
|
left: auto;
|
|
131
151
|
right: -4px;
|
|
132
152
|
top: auto;
|
|
133
153
|
}
|
|
154
|
+
|
|
134
155
|
.tooltip__pointer--right-top {
|
|
135
156
|
left: auto;
|
|
136
157
|
right: -4px;
|
|
137
158
|
top: 12px;
|
|
138
159
|
}
|
|
160
|
+
|
|
139
161
|
.tooltip--expanded .tooltip__overlay,
|
|
140
162
|
.tooltip__host[aria-expanded="true"] ~ .tooltip__overlay {
|
|
141
163
|
display: block;
|
|
142
164
|
}
|
|
165
|
+
|
|
143
166
|
@media (min-width: 512px) {
|
|
144
167
|
.tooltip__overlay {
|
|
145
168
|
max-width: 400px;
|