@wwtdev/bsds-css 1.15.11 → 1.15.13
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/_accordions.scss +1 -1
- package/dist/components/_banner.scss +1 -1
- package/dist/components/_buttons.scss +16 -16
- package/dist/components/_circle-buttons.scss +1 -1
- package/dist/components/_dropdown.scss +6 -6
- package/dist/components/_form-booleans.scss +1 -1
- package/dist/components/_form-elements.scss +3 -3
- package/dist/components/_form-hints.scss +1 -1
- package/dist/components/_form-input-composite.scss +13 -11
- package/dist/components/_form-labels.scss +10 -2
- package/dist/components/_form-switches.scss +1 -1
- package/dist/components/_form-text-fields.scss +1 -1
- package/dist/components/_modal.scss +1 -1
- package/dist/components/_overlay.scss +1 -1
- package/dist/components/_pagination.scss +2 -2
- package/dist/components/_pills.scss +8 -7
- package/dist/components/_profile-img.scss +3 -3
- package/dist/components/_toast.scss +5 -5
- package/dist/components/_tooltip.scss +11 -6
- package/dist/components/accordions.css +1 -1
- package/dist/components/banner.css +1 -1
- package/dist/components/buttons.css +16 -16
- package/dist/components/circle-buttons.css +1 -1
- package/dist/components/dropdown.css +6 -6
- package/dist/components/form-booleans.css +1 -1
- package/dist/components/form-elements.css +3 -3
- package/dist/components/form-hints.css +1 -1
- package/dist/components/form-input-composite.css +13 -11
- package/dist/components/form-labels.css +10 -2
- package/dist/components/form-switches.css +1 -1
- package/dist/components/form-text-fields.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/overlay.css +1 -1
- package/dist/components/pagination.css +2 -2
- package/dist/components/pills.css +8 -7
- package/dist/components/profile-img.css +3 -3
- package/dist/components/toast.css +5 -5
- package/dist/components/tooltip.css +11 -6
- package/dist/wwt-bsds.css +84 -70
- package/dist/wwt-bsds.min.css +1 -1
- package/package.json +1 -1
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
margin-left: -0.75rem;
|
|
53
53
|
width: calc(100% + 1.5rem);
|
|
54
54
|
}
|
|
55
|
-
.bs-dropdown:where([data-search]) :where(.bs-dropdown-options) {
|
|
55
|
+
.bs-dropdown:where([data-search]:not([data-search="false"])) :where(.bs-dropdown-options) {
|
|
56
56
|
--options-height-max: 11.5rem;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/* data-shown */
|
|
60
|
-
.bs-dropdown:where([data-shown]) {
|
|
60
|
+
.bs-dropdown:where([data-shown]:not([data-shown="false"])) {
|
|
61
61
|
opacity: 1;
|
|
62
62
|
transform: translateY(0);
|
|
63
63
|
z-index: 999;
|
|
@@ -102,18 +102,18 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/* data-shown */
|
|
105
|
-
.bs-dropdown:where([data-shown]) {
|
|
105
|
+
.bs-dropdown:where([data-shown]:not([data-shown="false"])) {
|
|
106
106
|
opacity: 1;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/* data-top */
|
|
110
|
-
.bs-dropdown:where([data-top]) {
|
|
110
|
+
.bs-dropdown:where([data-top]:not([data-top="false"])) {
|
|
111
111
|
--dropdown-wscreen-bottom: calc(100% + 0.5rem);
|
|
112
112
|
--dropdown-wscreen-top: auto;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/* data-justify="center" */
|
|
116
|
-
.bs-dropdown-parent:where([data-center]) :where(.bs-dropdown) {
|
|
116
|
+
.bs-dropdown-parent:where([data-center]:not([data-center="false"])) :where(.bs-dropdown) {
|
|
117
117
|
--dropdown-wscreen-left: 50%;
|
|
118
118
|
transform: translateX(-50%);
|
|
119
119
|
}
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
.bs-dropdown :where(.bs-dropdown-options) {
|
|
122
122
|
--options-height-max: 20rem;
|
|
123
123
|
}
|
|
124
|
-
.bs-dropdown:where([data-search]) :where(.bs-dropdown-options) {
|
|
124
|
+
.bs-dropdown:where([data-search]:not([data-search="false"])) :where(.bs-dropdown-options) {
|
|
125
125
|
--options-height-max: 17.25rem;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -176,7 +176,7 @@ input:where([type='radio']):checked:disabled::before {
|
|
|
176
176
|
|
|
177
177
|
/* Error state */
|
|
178
178
|
|
|
179
|
-
input:where([type='checkbox'], [type='radio'])[data-error] {
|
|
179
|
+
input:where([type='checkbox'], [type='radio'])[data-error]:where(:not([data-error="false"])) {
|
|
180
180
|
--box-shadow: var(--bs-red-base);
|
|
181
181
|
--outline-color: var(--bs-red-base);
|
|
182
182
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* Generally applicable (all input types) */
|
|
2
|
-
:where([data-required]) {
|
|
2
|
+
:where([data-required]:not([data-required="false"])) {
|
|
3
3
|
color: var(--bs-ink-red);
|
|
4
4
|
font-weight: var(--bs-font-bold, 600);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
:where([data-disabled], [data-disabled] [data-required]) {
|
|
7
|
+
:where([data-disabled]:not([data-disabled="false"]), [data-disabled]:not([data-disabled="false"]) [data-required]:not([data-required="false"])) {
|
|
8
8
|
color: var(--bs-gray-400);
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/* Errors and Messages */
|
|
19
|
-
:is(input, select, textarea):where([data-error]) {
|
|
19
|
+
:is(input, select, textarea):where([data-error]:not([data-error="false"])) {
|
|
20
20
|
--input-border: var(--bs-ink-red);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -131,8 +131,9 @@ and issues with box-sizing
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.bs-input-addon:where(:not([data-multifocus]):focus-within),
|
|
134
|
-
.bs-input-addon:where([data-multifocus]
|
|
135
|
-
.bs-input-addon:where([data-multifocus]
|
|
134
|
+
.bs-input-addon:where([data-multifocus="false"]:focus-within),
|
|
135
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) :where(input, select):where(:focus, :focus-within, :focus-visible),
|
|
136
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) :is(bs-input, bs-select) :where(input, select):where(:focus, :focus-within, :focus-visible) {
|
|
136
137
|
--input-border: var(--focus-border);
|
|
137
138
|
position: relative;
|
|
138
139
|
z-index: 1;
|
|
@@ -147,14 +148,15 @@ and issues with box-sizing
|
|
|
147
148
|
z-index: 1;
|
|
148
149
|
}
|
|
149
150
|
|
|
150
|
-
.bs-input-addon:where([data-multifocus]) > :where(:not(.bs-input-addon)) > :where(input:focus, select:focus),
|
|
151
|
-
.bs-input-addon:where([data-multifocus]) > :is(bs-input, bs-select) :where(input:focus, select:focus),
|
|
152
|
-
.bs-input-addon:where([data-multifocus]) > :where(input:focus, select:focus) {
|
|
151
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) > :where(:not(.bs-input-addon)) > :where(input:focus, select:focus),
|
|
152
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) > :is(bs-input, bs-select) :where(input:focus, select:focus),
|
|
153
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) > :where(input:focus, select:focus) {
|
|
153
154
|
border-radius: .25rem;
|
|
154
155
|
box-shadow: var(--focus-border) 0px 0px 0px 1px inset;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
|
-
.bs-input-addon:where(:not([data-multifocus]):focus-within)::after
|
|
158
|
+
.bs-input-addon:where(:not([data-multifocus]):focus-within)::after,
|
|
159
|
+
.bs-input-addon:where([data-multifocus="false"]:focus-within)::after {
|
|
158
160
|
border-width: 1px;
|
|
159
161
|
border-radius: .25rem;
|
|
160
162
|
}
|
|
@@ -165,7 +167,7 @@ and issues with box-sizing
|
|
|
165
167
|
}
|
|
166
168
|
|
|
167
169
|
/* Straight-lined ::before border to fill the gap below the rounded ::after border */
|
|
168
|
-
.bs-input-addon:where([data-multifocus]) :where(:focus-within)::before {
|
|
170
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) :where(:focus-within)::before {
|
|
169
171
|
border-bottom-width: 1px;
|
|
170
172
|
border-color: var(--bs-violet-300);
|
|
171
173
|
border-radius: 0;
|
|
@@ -185,14 +187,14 @@ and issues with box-sizing
|
|
|
185
187
|
}
|
|
186
188
|
|
|
187
189
|
/* -------- Error styles -------- */
|
|
188
|
-
.bs-input-addon:where([data-error]),
|
|
189
|
-
.bs-input-addon:where([data-error]) :where(.bs-input-addon) {
|
|
190
|
+
.bs-input-addon:where([data-error]:not([data-error="false"])),
|
|
191
|
+
.bs-input-addon:where([data-error]:not([data-error="false"])) :where(.bs-input-addon) {
|
|
190
192
|
--focus-border: var(--bs-red-400);
|
|
191
193
|
--input-border: var(--bs-red-400);
|
|
192
194
|
}
|
|
193
195
|
|
|
194
|
-
.bs-input-addon:where([data-error],[data-disabled]) > *::before,
|
|
195
|
-
.bs-input-addon:where(.bs-input-addon[data-error] .bs-input-addon, .bs-input-addon[data-disabled] .bs-input-addon) > *::before {
|
|
196
|
+
.bs-input-addon:where([data-error]:not([data-error="false"]),[data-disabled]:not([data-disabled="false"])) > *::before,
|
|
197
|
+
.bs-input-addon:where(.bs-input-addon[data-error]:not([data-error="false"]) .bs-input-addon, .bs-input-addon[data-disabled]:not([data-disabled="false"]) .bs-input-addon) > *::before {
|
|
196
198
|
border-color: var(--input-border);
|
|
197
199
|
}
|
|
198
200
|
|
|
@@ -9,10 +9,18 @@
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
:where([data-required]) {
|
|
12
|
+
:where([data-required]:not([data-required="false"])) {
|
|
13
13
|
color: var(--bs-ink-red);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
:where(label[data-disabled]
|
|
16
|
+
:where(label[data-disabled]:not([data-disabled="false"])) {
|
|
17
|
+
--label-color: var(--bs-ink-disabled);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where([data-disabled]:not([data-disabled="false"]) [data-required]:not([data-required="false"])) {
|
|
21
|
+
--label-color: var(--bs-ink-disabled);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where([data-disabled]:not([data-disabled="false"])) label {
|
|
17
25
|
--label-color: var(--bs-ink-disabled);
|
|
18
26
|
}
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
color: var(--bs-ink-disabled);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.bs-pagination button:where([data-selected]) {
|
|
41
|
+
.bs-pagination button:where([data-selected]:not([data-selected="false"])) {
|
|
42
42
|
background-color: var(--bs-blue-base);
|
|
43
43
|
color: var(--bs-gray-50);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.bs-pagination:where([data-fixed]) {
|
|
46
|
+
.bs-pagination:where([data-fixed]:not([data-fixed="false"])) {
|
|
47
47
|
background-color: var(--bs-bg-base-elevated);
|
|
48
48
|
bottom: 0;
|
|
49
49
|
left: 0;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/* ------------------------------ Background Colors ------------------------------ */
|
|
43
|
-
:where(.box, [class*="bg-"]:not([class~="bg-white"])) .bs-pill:where(:not([data-variant^="live"], [data-active])) {
|
|
43
|
+
:where(.box, [class*="bg-"]:not([class~="bg-white"])) .bs-pill:where(:not([data-variant^="live"], [data-active]:not([data-active="false"]))) {
|
|
44
44
|
--pill-background: var(--bs-bg-base);
|
|
45
45
|
}
|
|
46
46
|
:where(.box[data-invert]) .bs-pill {
|
|
@@ -132,24 +132,24 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
/* ----- Filter Active Styles ----- */
|
|
135
|
-
.bs-pill:where([data-variant^="filter"][data-active]) {
|
|
135
|
+
.bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])) {
|
|
136
136
|
--pill-background: var(--bs-blue-base);
|
|
137
137
|
--pill-border: transparent;
|
|
138
138
|
--pill-text: var(--bs-white);
|
|
139
139
|
}
|
|
140
|
-
.bs-pill:where([data-variant^="filter"][data-active]):is(:hover, :focus) {
|
|
140
|
+
.bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])):is(:hover, :focus) {
|
|
141
141
|
--pill-border: transparent;
|
|
142
142
|
}
|
|
143
|
-
:is(a, button).bs-pill:where([data-variant^="filter"][data-active]):is(:hover, :focus) {
|
|
143
|
+
:is(a, button).bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])):is(:hover, :focus) {
|
|
144
144
|
--pill-background: var(--bs-blue-500);
|
|
145
145
|
--pill-border: transparent;
|
|
146
146
|
}
|
|
147
147
|
/* White X */
|
|
148
|
-
.bs-pill:where([data-variant^="filter"][data-active])::after {
|
|
148
|
+
.bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"]))::after {
|
|
149
149
|
content: url("data:image/svg+xml,%3Csvg width='8' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 .703 7.297 0 4 3.297.703 0 0 .703 3.297 4 0 7.297.703 8 4 4.703 7.297 8 8 7.297 4.703 4 8 .703Z' fill='%23fff'/%3E%3C/svg%3E");
|
|
150
150
|
}
|
|
151
151
|
/* Black X */
|
|
152
|
-
.bs-pill:where([data-variant^="filter"][data-active]):where(:disabled, [aria-disabled="true"])::after {
|
|
152
|
+
.bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])):where(:disabled, [aria-disabled="true"])::after {
|
|
153
153
|
content: url("data:image/svg+xml,%3Csvg width='8' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 .703 7.297 0 4 3.297.703 0 0 .703 3.297 4 0 7.297.703 8 4 4.703 7.297 8 8 7.297 4.703 4 8 .703Z' fill='%230A0B19'/%3E%3C/svg%3E%0A");
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -179,7 +179,8 @@
|
|
|
179
179
|
background-color: var(--bs-bg-disabled);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
.bs-pill:where([data-variant^="filter"]):not([data-active]):is(:disabled, [aria-disabled="true"])
|
|
182
|
+
.bs-pill:where([data-variant^="filter"]):not([data-active]):is(:disabled, [aria-disabled="true"]),
|
|
183
|
+
.bs-pill:where([data-variant^="filter"])[data-active="false"]:is(:disabled, [aria-disabled="true"]) {
|
|
183
184
|
--pill-border: var(--bs-gray-400);
|
|
184
185
|
}
|
|
185
186
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
object-fit: cover;
|
|
17
17
|
width: 100%;
|
|
18
18
|
}
|
|
19
|
-
.bs-profile-img:where([data-no-img]) img {
|
|
19
|
+
.bs-profile-img:where([data-no-img]:not([data-no-img="false"])) img {
|
|
20
20
|
display: none;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
box-shadow: var(--bs-shadow-profilePhoto);
|
|
35
35
|
content: '';
|
|
36
36
|
}
|
|
37
|
-
.bs-profile-img:where([data-no-img])::before {
|
|
37
|
+
.bs-profile-img:where([data-no-img]:not([data-no-img="false"]))::before {
|
|
38
38
|
display: none;
|
|
39
39
|
}
|
|
40
40
|
/* Initials */
|
|
41
|
-
.bs-profile-img:where([data-no-img])::after {
|
|
41
|
+
.bs-profile-img:where([data-no-img]:not([data-no-img="false"]))::after {
|
|
42
42
|
border: 1px solid currentColor;
|
|
43
43
|
color: var(--bs-blue-500);
|
|
44
44
|
content: attr(data-initials);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
z-index: 999;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.bs-toast:where([data-stacked]) {
|
|
22
|
+
.bs-toast:where([data-stacked]:not([data-stacked="false"])) {
|
|
23
23
|
bottom: auto;
|
|
24
24
|
left: auto;
|
|
25
25
|
position: static;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/* Mobile - Toast comes up from bottom */
|
|
31
|
-
.bs-toast:where([data-shown]) {
|
|
31
|
+
.bs-toast:where([data-shown]:not([data-shown="false"])) {
|
|
32
32
|
opacity: 1;
|
|
33
33
|
transform: translate(0, 0);
|
|
34
34
|
}
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
padding-top: 0.5rem;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.bs-toast-actions:where([data-stacked]) {
|
|
72
|
+
.bs-toast-actions:where([data-stacked]:not([data-stacked="false"])) {
|
|
73
73
|
flex-direction: column-reverse;
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -118,12 +118,12 @@
|
|
|
118
118
|
transform: translate(calc(100% + 1.5rem), 0);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.bs-toast:where([data-shown]) {
|
|
121
|
+
.bs-toast:where([data-shown]:not([data-shown="false"])) {
|
|
122
122
|
opacity: 1;
|
|
123
123
|
transform: translate(0, 0);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.bs-toast-actions:where([data-stacked]) {
|
|
126
|
+
.bs-toast-actions:where([data-stacked]:not([data-stacked="false"])) {
|
|
127
127
|
flex-direction: row;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
:where(.bs-tooltip[data-position="top-right"]):focus-within :where(.bs-tooltip-text),
|
|
135
135
|
:where(.bs-tooltip[data-position="bottom-left"]):focus-within :where(.bs-tooltip-text),
|
|
136
136
|
:where(.bs-tooltip[data-position="bottom-right"]):focus-within :where(.bs-tooltip-text),
|
|
137
|
-
:where(.bs-tooltip[data-position="top-left"])[data-shown] :where(.bs-tooltip-text),
|
|
138
|
-
:where(.bs-tooltip[data-position="top-right"])[data-shown] :where(.bs-tooltip-text),
|
|
139
|
-
:where(.bs-tooltip[data-position="bottom-left"])[data-shown] :where(.bs-tooltip-text),
|
|
140
|
-
:where(.bs-tooltip[data-position="bottom-right"])[data-shown] :where(.bs-tooltip-text) {
|
|
137
|
+
:where(.bs-tooltip[data-position="top-left"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text),
|
|
138
|
+
:where(.bs-tooltip[data-position="top-right"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text),
|
|
139
|
+
:where(.bs-tooltip[data-position="bottom-left"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text),
|
|
140
|
+
:where(.bs-tooltip[data-position="bottom-right"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text) {
|
|
141
141
|
opacity: 1;
|
|
142
142
|
transform: scale(1);
|
|
143
143
|
}
|
|
@@ -147,8 +147,13 @@
|
|
|
147
147
|
Don't display unless data-shown is present
|
|
148
148
|
This must go last to properly override the other classes
|
|
149
149
|
*/
|
|
150
|
-
:where(.bs-tooltip[data-disabled]:not([data-shown])):hover :where(.bs-tooltip-text),
|
|
151
|
-
:where(.bs-tooltip[data-disabled]:not([data-shown])):focus-within :where(.bs-tooltip-text) {
|
|
150
|
+
:where(.bs-tooltip[data-disabled]:not([data-disabled="false"]):not([data-shown])):hover :where(.bs-tooltip-text),
|
|
151
|
+
:where(.bs-tooltip[data-disabled]:not([data-disabled="false"]):not([data-shown])):focus-within :where(.bs-tooltip-text) {
|
|
152
|
+
opacity: 0;
|
|
153
|
+
transform: scale(0);
|
|
154
|
+
}
|
|
155
|
+
:where(.bs-tooltip[data-shown="false"][data-disabled]:not([data-disabled="false"])):hover :where(.bs-tooltip-text),
|
|
156
|
+
:where(.bs-tooltip[data-shown="false"][data-disabled]:not([data-disabled="false"])):focus-within :where(.bs-tooltip-text) {
|
|
152
157
|
opacity: 0;
|
|
153
158
|
transform: scale(0);
|
|
154
159
|
}
|