@wwtdev/bsds-css 2.4.0 → 2.5.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/components/_dropdown-options.scss +18 -23
- package/dist/components/_form-input-composite.scss +71 -4
- package/dist/components/_tab-list.scss +1 -0
- package/dist/components/_tooltip.scss +1 -1
- package/dist/components/dropdown-options.css +18 -23
- package/dist/components/form-input-composite.css +71 -4
- package/dist/components/tab-list.css +1 -0
- package/dist/components/tooltip.css +1 -1
- package/dist/wwt-bsds-preset.js +1 -0
- package/dist/wwt-bsds.css +1377 -1326
- package/dist/wwt-bsds.min.css +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
overflow-y: auto;
|
|
12
12
|
padding-block: 0.5rem;
|
|
13
13
|
padding-left: 0;
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.bs-dropdown-options:focus-visible {
|
|
18
|
+
outline: none;
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
/* Stabilize scrollbar gutter for Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=764076) */
|
|
@@ -92,8 +97,8 @@
|
|
|
92
97
|
.bs-dropdown-options :where(li:not([role="separator"]):hover),
|
|
93
98
|
.bs-dropdown-options :where(li[data-selected]) {
|
|
94
99
|
background-color: var(--bs-bg-medium);
|
|
95
|
-
border-left: 4px solid var(--bs-blue
|
|
96
|
-
color: var(--bs-blue
|
|
100
|
+
border-left: 4px solid var(--bs-ink-blue);
|
|
101
|
+
color: var(--bs-ink-blue);
|
|
97
102
|
outline: none;
|
|
98
103
|
}
|
|
99
104
|
|
|
@@ -103,8 +108,8 @@
|
|
|
103
108
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-selected]:hover) {
|
|
104
109
|
/* 25% alpha version of --bs-red-400 */
|
|
105
110
|
background-color: rgba(248, 169, 170, 0.25);
|
|
106
|
-
border-left: 4px solid var(--bs-red
|
|
107
|
-
color: var(--bs-red
|
|
111
|
+
border-left: 4px solid var(--bs-ink-red);
|
|
112
|
+
color: var(--bs-ink-red);
|
|
108
113
|
}
|
|
109
114
|
|
|
110
115
|
/* Hover or data-selected for 2-col/3-col/description variants */
|
|
@@ -114,7 +119,7 @@
|
|
|
114
119
|
.bs-dropdown-options :where(li:not([data-variant*="-col"])[data-variant~="description"][data-selected] > :nth-child(2)),
|
|
115
120
|
.bs-dropdown-options :where(li[data-variant~="2-col"][data-variant~="description"][data-selected] > :nth-child(3)),
|
|
116
121
|
.bs-dropdown-options :where(li[data-variant~="3-col"][data-variant~="description"][data-selected] > :nth-child(4)) {
|
|
117
|
-
color: var(--bs-blue
|
|
122
|
+
color: var(--bs-ink-blue);
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
/* Hover or data-selected for negative + 2-col/3-col/description variants */
|
|
@@ -124,21 +129,11 @@
|
|
|
124
129
|
.bs-dropdown-options :where(li[data-variant~="negative"]:not([data-variant*="-col"])[data-variant~="description"][data-selected] > :nth-child(2)),
|
|
125
130
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-variant~="2-col"][data-variant~="description"][data-selected] > :nth-child(3)),
|
|
126
131
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-variant~="3-col"][data-variant~="description"][data-selected] > :nth-child(4)) {
|
|
127
|
-
color: var(--bs-red
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/* List option mouse click focus (do not show) */
|
|
131
|
-
.bs-dropdown-options :where(li:focus:not(:focus-visible)){
|
|
132
|
-
outline: none;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/* data-variant="negative" list option mouse click focus (do not show) */
|
|
136
|
-
.bs-dropdown-options :where(li[data-variant~="negative"]:focus:not(:focus-visible)) {
|
|
137
|
-
outline: none;
|
|
132
|
+
color: var(--bs-ink-red);
|
|
138
133
|
}
|
|
139
134
|
|
|
140
135
|
/* List option keyboard navigation focus */
|
|
141
|
-
.bs-dropdown-options
|
|
136
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-active]) {
|
|
142
137
|
--focus-border-color: var(--bs-blue-base);
|
|
143
138
|
border: 2px solid var(--focus-border-color);
|
|
144
139
|
outline: none;
|
|
@@ -146,13 +141,13 @@
|
|
|
146
141
|
}
|
|
147
142
|
|
|
148
143
|
/* Navigation focus on a selected element should preserve 4px left border */
|
|
149
|
-
.bs-dropdown-options :where(li[data-selected]
|
|
144
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-selected][data-active]) {
|
|
150
145
|
border-left: 4px solid var(--focus-border-color);
|
|
151
146
|
padding-left: 1.25rem;
|
|
152
147
|
}
|
|
153
148
|
|
|
154
149
|
/* data-variant="negative" list option keyboard navigation focus */
|
|
155
|
-
.bs-dropdown-options :where(li[data-variant~="negative"]
|
|
150
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-variant~="negative"][data-active]) {
|
|
156
151
|
--focus-border-color: var(--bs-red-200);
|
|
157
152
|
}
|
|
158
153
|
|
|
@@ -210,11 +205,11 @@
|
|
|
210
205
|
padding-right: 0.625rem;
|
|
211
206
|
}
|
|
212
207
|
|
|
213
|
-
.bs-dropdown:where([data-no-mobile="true"]) :where(.bs-dropdown-options) :where(li
|
|
208
|
+
.bs-dropdown:where([data-no-mobile="true"]) :where(.bs-dropdown-options:focus-visible) :where(li[data-active]) {
|
|
214
209
|
padding-left: 0.625rem;
|
|
215
210
|
}
|
|
216
211
|
|
|
217
|
-
.bs-dropdown:where([data-no-mobile="true"]) :where(.bs-dropdown-options) :where(li[data-selected]
|
|
212
|
+
.bs-dropdown:where([data-no-mobile="true"]) :where(.bs-dropdown-options:focus-visible) :where(li[data-selected][data-active]) {
|
|
218
213
|
padding-left: 0.5rem;
|
|
219
214
|
}
|
|
220
215
|
|
|
@@ -228,11 +223,11 @@
|
|
|
228
223
|
padding-right: 0.625rem;
|
|
229
224
|
}
|
|
230
225
|
|
|
231
|
-
.bs-dropdown-options
|
|
226
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-active]) {
|
|
232
227
|
padding-left: 0.625rem;
|
|
233
228
|
}
|
|
234
229
|
|
|
235
|
-
.bs-dropdown-options :where(li[data-selected]
|
|
230
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-selected][data-active]) {
|
|
236
231
|
padding-left: 0.5rem;
|
|
237
232
|
}
|
|
238
233
|
}
|
|
@@ -57,15 +57,20 @@ and issues with box-sizing
|
|
|
57
57
|
flex-shrink: 0;
|
|
58
58
|
position: relative;
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
.bs-input-addon > :where([data-part="main"], .bs-input-addon, bs-input, .bs-input),
|
|
60
62
|
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"]), .bs-input-addon, bs-input, .bs-input) {
|
|
61
63
|
flex-grow: 1;
|
|
62
64
|
flex-shrink: 1;
|
|
63
65
|
}
|
|
66
|
+
|
|
67
|
+
.bs-input-addon > :where([data-part="main"]) > :where(input, select),
|
|
64
68
|
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"])) > :where(input, select) {
|
|
65
69
|
width: 100%;
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
.bs-input-addon > *:where(:not(.bs-input-addon)) {
|
|
73
|
+
align-items: center;
|
|
69
74
|
border-width: 0px;
|
|
70
75
|
display: flex;
|
|
71
76
|
height: 100%;
|
|
@@ -105,14 +110,14 @@ and issues with box-sizing
|
|
|
105
110
|
--input-addon-nested-border: var(--bs-violet-lightest);
|
|
106
111
|
}
|
|
107
112
|
|
|
108
|
-
.bs-input-addon > :where(.bs-input-addon:not(:last-child, :focus-within)),
|
|
109
|
-
.bs-input-addon > :where(:not(:last-child, :focus-within))::after {
|
|
113
|
+
.bs-input-addon > :where(.bs-input-addon:not(:last-child, :focus-within, [data-part="right"])),
|
|
114
|
+
.bs-input-addon > :where(:not(:last-child, :focus-within, [data-part="right"]))::after {
|
|
110
115
|
border-top-right-radius: 0;
|
|
111
116
|
border-bottom-right-radius: 0;
|
|
112
117
|
}
|
|
113
118
|
|
|
114
|
-
.bs-input-addon > :where(.bs-input-addon:not(:first-child, :focus-within)),
|
|
115
|
-
.bs-input-addon > :where(:not(:first-child, :focus-within))::after {
|
|
119
|
+
.bs-input-addon > :where(.bs-input-addon:not(:first-child, :focus-within, [data-part="left"])),
|
|
120
|
+
.bs-input-addon > :where(:not(:first-child, :focus-within, [data-part="left"]))::after {
|
|
116
121
|
border-top-left-radius: 0;
|
|
117
122
|
border-bottom-left-radius: 0;
|
|
118
123
|
}
|
|
@@ -136,6 +141,37 @@ and issues with box-sizing
|
|
|
136
141
|
border-radius: 0px;
|
|
137
142
|
}
|
|
138
143
|
|
|
144
|
+
/* -------- Auto Padding for Children, Auto Sizing Icons -------- */
|
|
145
|
+
/* Opt in for now, for backwards compatibility */
|
|
146
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > *:where(:not(.bs-input-addon)) {
|
|
147
|
+
padding-inline: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where([data-part="left"]:not(.bs-input-addon)),
|
|
151
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where(:first-child:not(.bs-input-addon)) {
|
|
152
|
+
padding-inline: 0.75rem 0.5rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where([data-part="right"]:not(.bs-input-addon)),
|
|
156
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where(:last-child:not(.bs-input-addon)) {
|
|
157
|
+
padding-inline: 0.5rem 0.75rem;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.bs-input-addon:where([data-autopad="true"][data-multifocus]) > *:where(:not(.bs-input-addon)) {
|
|
161
|
+
padding-inline: 0.75rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.bs-input-addon:where([data-autosize-icons="true"], [data-variant="combobox"]) > :where(:not([data-autowidth], [data-part="main"], .bs-input-addon)) {
|
|
165
|
+
height: 100%;
|
|
166
|
+
min-width: min-content;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.bs-input-addon:where([data-autosize-icons="true"], [data-variant="combobox"]) :where(svg) {
|
|
170
|
+
height: auto;
|
|
171
|
+
max-height: 100%;
|
|
172
|
+
width: 1rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
139
175
|
/* -------- Hover styles -------- */
|
|
140
176
|
.bs-input-addon:hover {
|
|
141
177
|
--input-bg: var(--bs-bg-input-hover);
|
|
@@ -223,5 +259,36 @@ and issues with box-sizing
|
|
|
223
259
|
margin-top: 0.25rem;
|
|
224
260
|
}
|
|
225
261
|
|
|
262
|
+
/* ----------------- Variant: Combobox Input ----------------- */
|
|
263
|
+
/*
|
|
264
|
+
Combobox variant also shares styles with data-autopad="true" &
|
|
265
|
+
data-autosize-icons="true" - see above
|
|
266
|
+
*/
|
|
267
|
+
.bs-input-addon:where([data-variant="combobox"]) {
|
|
268
|
+
--input-addon-nested-border: transparent;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.bs-input-addon:where([data-variant="combobox"]) :where(button svg) {
|
|
272
|
+
transform: var(--icon-btn-transform, none);
|
|
273
|
+
transition: var(--bs-trans-rotate180);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.bs-input-addon:where([data-variant="combobox"]) :where(button[data-open="true"]) {
|
|
277
|
+
--icon-btn-transform: rotate(180deg);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.bs-input-addon:where([data-variant="combobox"][data-disabled="true"]) > :where(button) {
|
|
281
|
+
opacity: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.bs-input-addon:where([data-variant="combobox"]) > :where(button) {
|
|
285
|
+
border-radius: .25rem;
|
|
286
|
+
outline: 1px solid transparent;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.bs-input-addon:where([data-variant="combobox"]) > :where(button:focus-visible:not([data-open])) {
|
|
290
|
+
outline: 1px solid var(--focus-border);
|
|
291
|
+
}
|
|
292
|
+
|
|
226
293
|
}
|
|
227
294
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
background-color: var(--bs-bg-base-elevated);
|
|
11
11
|
border-radius: 4px;
|
|
12
12
|
box-shadow: var(--bs-shadow-contentLowCenter);
|
|
13
|
-
color: var(--bs-violet
|
|
13
|
+
color: var(--bs-ink-violet);
|
|
14
14
|
display: flex;
|
|
15
15
|
font-size: var(--bs-text-sm);
|
|
16
16
|
justify-content: center;
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
overflow-y: auto;
|
|
11
11
|
padding-block: 0.5rem;
|
|
12
12
|
padding-left: 0;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.bs-dropdown-options:focus-visible {
|
|
17
|
+
outline: none;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
/* Stabilize scrollbar gutter for Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=764076) */
|
|
@@ -91,8 +96,8 @@
|
|
|
91
96
|
.bs-dropdown-options :where(li:not([role="separator"]):hover),
|
|
92
97
|
.bs-dropdown-options :where(li[data-selected]) {
|
|
93
98
|
background-color: var(--bs-bg-medium);
|
|
94
|
-
border-left: 4px solid var(--bs-blue
|
|
95
|
-
color: var(--bs-blue
|
|
99
|
+
border-left: 4px solid var(--bs-ink-blue);
|
|
100
|
+
color: var(--bs-ink-blue);
|
|
96
101
|
outline: none;
|
|
97
102
|
}
|
|
98
103
|
|
|
@@ -102,8 +107,8 @@
|
|
|
102
107
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-selected]:hover) {
|
|
103
108
|
/* 25% alpha version of --bs-red-400 */
|
|
104
109
|
background-color: rgba(248, 169, 170, 0.25);
|
|
105
|
-
border-left: 4px solid var(--bs-red
|
|
106
|
-
color: var(--bs-red
|
|
110
|
+
border-left: 4px solid var(--bs-ink-red);
|
|
111
|
+
color: var(--bs-ink-red);
|
|
107
112
|
}
|
|
108
113
|
|
|
109
114
|
/* Hover or data-selected for 2-col/3-col/description variants */
|
|
@@ -113,7 +118,7 @@
|
|
|
113
118
|
.bs-dropdown-options :where(li:not([data-variant*="-col"])[data-variant~="description"][data-selected] > :nth-child(2)),
|
|
114
119
|
.bs-dropdown-options :where(li[data-variant~="2-col"][data-variant~="description"][data-selected] > :nth-child(3)),
|
|
115
120
|
.bs-dropdown-options :where(li[data-variant~="3-col"][data-variant~="description"][data-selected] > :nth-child(4)) {
|
|
116
|
-
color: var(--bs-blue
|
|
121
|
+
color: var(--bs-ink-blue);
|
|
117
122
|
}
|
|
118
123
|
|
|
119
124
|
/* Hover or data-selected for negative + 2-col/3-col/description variants */
|
|
@@ -123,21 +128,11 @@
|
|
|
123
128
|
.bs-dropdown-options :where(li[data-variant~="negative"]:not([data-variant*="-col"])[data-variant~="description"][data-selected] > :nth-child(2)),
|
|
124
129
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-variant~="2-col"][data-variant~="description"][data-selected] > :nth-child(3)),
|
|
125
130
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-variant~="3-col"][data-variant~="description"][data-selected] > :nth-child(4)) {
|
|
126
|
-
color: var(--bs-red
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* List option mouse click focus (do not show) */
|
|
130
|
-
.bs-dropdown-options :where(li:focus:not(:focus-visible)){
|
|
131
|
-
outline: none;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/* data-variant="negative" list option mouse click focus (do not show) */
|
|
135
|
-
.bs-dropdown-options :where(li[data-variant~="negative"]:focus:not(:focus-visible)) {
|
|
136
|
-
outline: none;
|
|
131
|
+
color: var(--bs-ink-red);
|
|
137
132
|
}
|
|
138
133
|
|
|
139
134
|
/* List option keyboard navigation focus */
|
|
140
|
-
.bs-dropdown-options
|
|
135
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-active]) {
|
|
141
136
|
--focus-border-color: var(--bs-blue-base);
|
|
142
137
|
border: 2px solid var(--focus-border-color);
|
|
143
138
|
outline: none;
|
|
@@ -145,13 +140,13 @@
|
|
|
145
140
|
}
|
|
146
141
|
|
|
147
142
|
/* Navigation focus on a selected element should preserve 4px left border */
|
|
148
|
-
.bs-dropdown-options :where(li[data-selected]
|
|
143
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-selected][data-active]) {
|
|
149
144
|
border-left: 4px solid var(--focus-border-color);
|
|
150
145
|
padding-left: 1.25rem;
|
|
151
146
|
}
|
|
152
147
|
|
|
153
148
|
/* data-variant="negative" list option keyboard navigation focus */
|
|
154
|
-
.bs-dropdown-options :where(li[data-variant~="negative"]
|
|
149
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-variant~="negative"][data-active]) {
|
|
155
150
|
--focus-border-color: var(--bs-red-200);
|
|
156
151
|
}
|
|
157
152
|
|
|
@@ -209,11 +204,11 @@
|
|
|
209
204
|
padding-right: 0.625rem;
|
|
210
205
|
}
|
|
211
206
|
|
|
212
|
-
.bs-dropdown:where([data-no-mobile="true"]) :where(.bs-dropdown-options) :where(li
|
|
207
|
+
.bs-dropdown:where([data-no-mobile="true"]) :where(.bs-dropdown-options:focus-visible) :where(li[data-active]) {
|
|
213
208
|
padding-left: 0.625rem;
|
|
214
209
|
}
|
|
215
210
|
|
|
216
|
-
.bs-dropdown:where([data-no-mobile="true"]) :where(.bs-dropdown-options) :where(li[data-selected]
|
|
211
|
+
.bs-dropdown:where([data-no-mobile="true"]) :where(.bs-dropdown-options:focus-visible) :where(li[data-selected][data-active]) {
|
|
217
212
|
padding-left: 0.5rem;
|
|
218
213
|
}
|
|
219
214
|
|
|
@@ -227,11 +222,11 @@
|
|
|
227
222
|
padding-right: 0.625rem;
|
|
228
223
|
}
|
|
229
224
|
|
|
230
|
-
.bs-dropdown-options
|
|
225
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-active]) {
|
|
231
226
|
padding-left: 0.625rem;
|
|
232
227
|
}
|
|
233
228
|
|
|
234
|
-
.bs-dropdown-options :where(li[data-selected]
|
|
229
|
+
.bs-dropdown-options:where(:focus-visible) :where(li[data-selected][data-active]) {
|
|
235
230
|
padding-left: 0.5rem;
|
|
236
231
|
}
|
|
237
232
|
}
|
|
@@ -56,15 +56,20 @@ and issues with box-sizing
|
|
|
56
56
|
flex-shrink: 0;
|
|
57
57
|
position: relative;
|
|
58
58
|
}
|
|
59
|
+
|
|
60
|
+
.bs-input-addon > :where([data-part="main"], .bs-input-addon, bs-input, .bs-input),
|
|
59
61
|
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"]), .bs-input-addon, bs-input, .bs-input) {
|
|
60
62
|
flex-grow: 1;
|
|
61
63
|
flex-shrink: 1;
|
|
62
64
|
}
|
|
65
|
+
|
|
66
|
+
.bs-input-addon > :where([data-part="main"]) > :where(input, select),
|
|
63
67
|
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"])) > :where(input, select) {
|
|
64
68
|
width: 100%;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
.bs-input-addon > *:where(:not(.bs-input-addon)) {
|
|
72
|
+
align-items: center;
|
|
68
73
|
border-width: 0px;
|
|
69
74
|
display: flex;
|
|
70
75
|
height: 100%;
|
|
@@ -104,14 +109,14 @@ and issues with box-sizing
|
|
|
104
109
|
--input-addon-nested-border: var(--bs-violet-lightest);
|
|
105
110
|
}
|
|
106
111
|
|
|
107
|
-
.bs-input-addon > :where(.bs-input-addon:not(:last-child, :focus-within)),
|
|
108
|
-
.bs-input-addon > :where(:not(:last-child, :focus-within))::after {
|
|
112
|
+
.bs-input-addon > :where(.bs-input-addon:not(:last-child, :focus-within, [data-part="right"])),
|
|
113
|
+
.bs-input-addon > :where(:not(:last-child, :focus-within, [data-part="right"]))::after {
|
|
109
114
|
border-top-right-radius: 0;
|
|
110
115
|
border-bottom-right-radius: 0;
|
|
111
116
|
}
|
|
112
117
|
|
|
113
|
-
.bs-input-addon > :where(.bs-input-addon:not(:first-child, :focus-within)),
|
|
114
|
-
.bs-input-addon > :where(:not(:first-child, :focus-within))::after {
|
|
118
|
+
.bs-input-addon > :where(.bs-input-addon:not(:first-child, :focus-within, [data-part="left"])),
|
|
119
|
+
.bs-input-addon > :where(:not(:first-child, :focus-within, [data-part="left"]))::after {
|
|
115
120
|
border-top-left-radius: 0;
|
|
116
121
|
border-bottom-left-radius: 0;
|
|
117
122
|
}
|
|
@@ -135,6 +140,37 @@ and issues with box-sizing
|
|
|
135
140
|
border-radius: 0px;
|
|
136
141
|
}
|
|
137
142
|
|
|
143
|
+
/* -------- Auto Padding for Children, Auto Sizing Icons -------- */
|
|
144
|
+
/* Opt in for now, for backwards compatibility */
|
|
145
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > *:where(:not(.bs-input-addon)) {
|
|
146
|
+
padding-inline: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where([data-part="left"]:not(.bs-input-addon)),
|
|
150
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where(:first-child:not(.bs-input-addon)) {
|
|
151
|
+
padding-inline: 0.75rem 0.5rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where([data-part="right"]:not(.bs-input-addon)),
|
|
155
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where(:last-child:not(.bs-input-addon)) {
|
|
156
|
+
padding-inline: 0.5rem 0.75rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.bs-input-addon:where([data-autopad="true"][data-multifocus]) > *:where(:not(.bs-input-addon)) {
|
|
160
|
+
padding-inline: 0.75rem;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.bs-input-addon:where([data-autosize-icons="true"], [data-variant="combobox"]) > :where(:not([data-autowidth], [data-part="main"], .bs-input-addon)) {
|
|
164
|
+
height: 100%;
|
|
165
|
+
min-width: min-content;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.bs-input-addon:where([data-autosize-icons="true"], [data-variant="combobox"]) :where(svg) {
|
|
169
|
+
height: auto;
|
|
170
|
+
max-height: 100%;
|
|
171
|
+
width: 1rem;
|
|
172
|
+
}
|
|
173
|
+
|
|
138
174
|
/* -------- Hover styles -------- */
|
|
139
175
|
.bs-input-addon:hover {
|
|
140
176
|
--input-bg: var(--bs-bg-input-hover);
|
|
@@ -221,3 +257,34 @@ and issues with box-sizing
|
|
|
221
257
|
:where(label, .bs-label, bs-label) + .bs-input-addon {
|
|
222
258
|
margin-top: 0.25rem;
|
|
223
259
|
}
|
|
260
|
+
|
|
261
|
+
/* ----------------- Variant: Combobox Input ----------------- */
|
|
262
|
+
/*
|
|
263
|
+
Combobox variant also shares styles with data-autopad="true" &
|
|
264
|
+
data-autosize-icons="true" - see above
|
|
265
|
+
*/
|
|
266
|
+
.bs-input-addon:where([data-variant="combobox"]) {
|
|
267
|
+
--input-addon-nested-border: transparent;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.bs-input-addon:where([data-variant="combobox"]) :where(button svg) {
|
|
271
|
+
transform: var(--icon-btn-transform, none);
|
|
272
|
+
transition: var(--bs-trans-rotate180);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.bs-input-addon:where([data-variant="combobox"]) :where(button[data-open="true"]) {
|
|
276
|
+
--icon-btn-transform: rotate(180deg);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.bs-input-addon:where([data-variant="combobox"][data-disabled="true"]) > :where(button) {
|
|
280
|
+
opacity: 0;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.bs-input-addon:where([data-variant="combobox"]) > :where(button) {
|
|
284
|
+
border-radius: .25rem;
|
|
285
|
+
outline: 1px solid transparent;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.bs-input-addon:where([data-variant="combobox"]) > :where(button:focus-visible:not([data-open])) {
|
|
289
|
+
outline: 1px solid var(--focus-border);
|
|
290
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
background-color: var(--bs-bg-base-elevated);
|
|
10
10
|
border-radius: 4px;
|
|
11
11
|
box-shadow: var(--bs-shadow-contentLowCenter);
|
|
12
|
-
color: var(--bs-violet
|
|
12
|
+
color: var(--bs-ink-violet);
|
|
13
13
|
display: flex;
|
|
14
14
|
font-size: var(--bs-text-sm);
|
|
15
15
|
justify-content: center;
|
package/dist/wwt-bsds-preset.js
CHANGED
|
@@ -148,6 +148,7 @@ module.exports = {
|
|
|
148
148
|
"base-to-light": "var(--bs-bg-base-to-light)",
|
|
149
149
|
"base-to-medium": "var(--bs-bg-base-to-medium)",
|
|
150
150
|
"light": "var(--bs-bg-light)",
|
|
151
|
+
"light-to-base": "var(--bs-bg-light-to-base)",
|
|
151
152
|
"light-to-medium": "var(--bs-bg-light-to-medium)",
|
|
152
153
|
"medium": "var(--bs-bg-medium)",
|
|
153
154
|
"medium-to-light": "var(--bs-bg-medium-to-light)",
|