@wwtdev/bsds-css 3.0.4 → 3.0.5
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/wwt-bsds-components.css +65 -23
- package/dist/wwt-bsds-components.min.css +1 -1
- package/dist/wwt-bsds.css +65 -23
- package/dist/wwt-bsds.min.css +1 -1
- package/package.json +1 -1
package/dist/wwt-bsds.css
CHANGED
|
@@ -5233,10 +5233,14 @@ label:where(.bs-label) {
|
|
|
5233
5233
|
}
|
|
5234
5234
|
.bs-option {
|
|
5235
5235
|
--description-color: var(--bs-ink-light);
|
|
5236
|
+
align-items: center;
|
|
5236
5237
|
border-left: 4px solid transparent;
|
|
5237
5238
|
border-right: 4px solid transparent;
|
|
5238
5239
|
color: var(--bs-ink-base);
|
|
5239
5240
|
cursor: pointer;
|
|
5241
|
+
display: flex;
|
|
5242
|
+
gap: var(--bs-space-2);
|
|
5243
|
+
margin-bottom: var(--bs-space-2);
|
|
5240
5244
|
overflow-wrap: break-word;
|
|
5241
5245
|
padding: var(--bs-space-1) var(--bs-space-3) var(--bs-space-1) var(--bs-space-6);
|
|
5242
5246
|
scroll-margin-bottom: var(--bs-space-3);
|
|
@@ -5249,9 +5253,6 @@ label:where(.bs-label) {
|
|
|
5249
5253
|
padding: var(--bs-space-1) var(--bs-space-2);
|
|
5250
5254
|
}
|
|
5251
5255
|
}
|
|
5252
|
-
.bs-option {
|
|
5253
|
-
margin-bottom: var(--bs-space-2); /* ask ux: 12px is too much, can't see many menu options in view */
|
|
5254
|
-
}
|
|
5255
5256
|
/* is basically doing a last visible child selector ignoring selectToTop, since filtered options and groups are hidden by v-show */
|
|
5256
5257
|
.bs-option:where(:nth-last-child(1 of [data-visible="true"][data-selected-to-top="false"])) {
|
|
5257
5258
|
margin-bottom: 0;
|
|
@@ -5259,22 +5260,22 @@ label:where(.bs-label) {
|
|
|
5259
5260
|
/* -- DISABLED -- */
|
|
5260
5261
|
/* Don't disable via pointer-events, so tooltips still work in a disabled menu item. */
|
|
5261
5262
|
.bs-option:where([aria-disabled="true"]) {
|
|
5262
|
-
color: var(--bs-ink-disabled);
|
|
5263
5263
|
--description-color: var(--bs-ink-disabled);
|
|
5264
|
+
color: var(--bs-ink-disabled);
|
|
5264
5265
|
cursor: default;
|
|
5265
5266
|
}
|
|
5266
5267
|
/* -- SELECTED -- */
|
|
5267
5268
|
.bs-option:where(:not([aria-disabled="true"], [data-negative="true"])):hover,
|
|
5268
5269
|
.bs-option:where(:not([data-multiple="true"])[aria-selected="true"]) {
|
|
5269
|
-
color: var(--bs-ink-primary);
|
|
5270
5270
|
--description-color: var(--bs-ink-primary);
|
|
5271
5271
|
background: var(--bs-bg-medium-to-light);
|
|
5272
5272
|
border-left-color: var(--bs-ink-primary);
|
|
5273
|
+
color: var(--bs-ink-primary);
|
|
5273
5274
|
}
|
|
5274
5275
|
/* selected yet disabled...should be a very rare scenario, but need to handle it */
|
|
5275
5276
|
.bs-option:where([aria-disabled="true"]):where([aria-selected="true"]) {
|
|
5276
|
-
color: var(--bs-ink-light);
|
|
5277
5277
|
border-left-color: var(--bs-ink-disabled);
|
|
5278
|
+
color: var(--bs-ink-light);
|
|
5278
5279
|
}
|
|
5279
5280
|
/* -- ACTIVE -- */
|
|
5280
5281
|
.bs-option:where([data-active="true"]) {
|
|
@@ -5283,10 +5284,10 @@ label:where(.bs-label) {
|
|
|
5283
5284
|
/* -- NEGATIVE -- */
|
|
5284
5285
|
.bs-option:where([data-negative="true"]:hover),
|
|
5285
5286
|
.bs-option:where(:not([data-multiple="true"])[data-negative="true"][aria-selected="true"]) {
|
|
5286
|
-
color: var(--bs-ink-negative);
|
|
5287
|
+
--description-color: var(--bs-ink-negative);
|
|
5287
5288
|
background: var(--bs-negative-highlight);
|
|
5288
5289
|
border-left-color: var(--bs-negative-base);
|
|
5289
|
-
|
|
5290
|
+
color: var(--bs-ink-negative);
|
|
5290
5291
|
}
|
|
5291
5292
|
.bs-option:where([data-negative="true"][aria-selected="true"]) :where(.bs-checkbox):before {
|
|
5292
5293
|
--fill-bg-color: var(--bs-negative-base);
|
|
@@ -5295,23 +5296,18 @@ label:where(.bs-label) {
|
|
|
5295
5296
|
box-shadow: inset 0 0 0 2px var(--bs-negative-base);
|
|
5296
5297
|
}
|
|
5297
5298
|
/* -- MULTIPLE -- */
|
|
5298
|
-
.bs-option:where([data-multiple="true"]) {
|
|
5299
|
-
display: grid;
|
|
5300
|
-
grid-template-columns: auto 1fr;
|
|
5301
|
-
align-items: start;
|
|
5302
|
-
gap: var(--bs-space-2);
|
|
5303
|
-
}
|
|
5304
5299
|
.bs-option:where([data-multiple="true"]) :where(.bs-checkbox) {
|
|
5300
|
+
align-self: start;
|
|
5305
5301
|
margin-top: var(--bs-space-1);
|
|
5306
5302
|
}
|
|
5307
|
-
/* --
|
|
5303
|
+
/* -- GRID LAYOUT -- */
|
|
5308
5304
|
.bs-option-grid:where([data-icon-col="true"]) {
|
|
5309
5305
|
display: grid;
|
|
5306
|
+
grid-column-gap: var(--bs-space-2);
|
|
5310
5307
|
grid-template:
|
|
5311
5308
|
"icon label"
|
|
5312
5309
|
". description"
|
|
5313
5310
|
/ auto 1fr;
|
|
5314
|
-
grid-column-gap: var(--bs-space-2);
|
|
5315
5311
|
}
|
|
5316
5312
|
.bs-option-grid:where(:not([data-icon-col="true"])) {
|
|
5317
5313
|
display: grid;
|
|
@@ -5320,10 +5316,10 @@ label:where(.bs-label) {
|
|
|
5320
5316
|
"description";
|
|
5321
5317
|
}
|
|
5322
5318
|
.bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(1)) {
|
|
5323
|
-
grid-area: icon;
|
|
5324
5319
|
align-self: center;
|
|
5325
|
-
|
|
5320
|
+
grid-area: icon;
|
|
5326
5321
|
max-height: 1.5rem;
|
|
5322
|
+
max-width: 1.5rem;
|
|
5327
5323
|
}
|
|
5328
5324
|
.bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(2)),
|
|
5329
5325
|
.bs-option-grid:where(:not([data-icon-col="true"])) :where(:nth-child(1)) {
|
|
@@ -5331,10 +5327,10 @@ label:where(.bs-label) {
|
|
|
5331
5327
|
}
|
|
5332
5328
|
.bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(3)),
|
|
5333
5329
|
.bs-option-grid:where(:not([data-icon-col="true"])) :where(:nth-child(2)) {
|
|
5334
|
-
|
|
5330
|
+
color: var(--description-color);
|
|
5335
5331
|
font-size: var(--bs-text-xs);
|
|
5332
|
+
grid-area: description;
|
|
5336
5333
|
padding-top: 0.125rem;
|
|
5337
|
-
color: var(--description-color);
|
|
5338
5334
|
}
|
|
5339
5335
|
.bs-overlay {
|
|
5340
5336
|
-webkit-backdrop-filter: blur(4px);
|
|
@@ -7555,27 +7551,73 @@ a.bs-text-button {
|
|
|
7555
7551
|
}
|
|
7556
7552
|
/* Don't use mobile sheet at any breakpoint */
|
|
7557
7553
|
.bs-dropdown:where(:not([data-mobile-sheet])) {
|
|
7558
|
-
--bs-popover-width:
|
|
7554
|
+
--bs-popover-width: unset;
|
|
7559
7555
|
height: unset;
|
|
7560
7556
|
max-height: 20rem; /* 320px */
|
|
7561
7557
|
max-width: calc(100dvw - 3rem);
|
|
7558
|
+
|
|
7559
|
+
&:where([data-size="sm"]) {
|
|
7560
|
+
--bs-popover-width: 16rem;
|
|
7561
|
+
}
|
|
7562
|
+
|
|
7563
|
+
&:where([data-size="md"]) {
|
|
7564
|
+
--bs-popover-width: 20rem;
|
|
7565
|
+
}
|
|
7566
|
+
|
|
7567
|
+
&:where([data-size="lg"]) {
|
|
7568
|
+
--bs-popover-width: 28rem;
|
|
7569
|
+
}
|
|
7570
|
+
|
|
7571
|
+
/* Prevent mobile padding on options */
|
|
7572
|
+
& :where(.bs-option) {
|
|
7573
|
+
padding: var(--bs-space-1) var(--bs-space-2);
|
|
7574
|
+
}
|
|
7562
7575
|
}
|
|
7563
7576
|
@media (min-width: 752px) {
|
|
7564
7577
|
/* Remove bottom drawer at tablet breakpoint */
|
|
7565
7578
|
.bs-dropdown:where([data-mobile-sheet="mobile"]) {
|
|
7566
|
-
--bs-popover-width:
|
|
7579
|
+
--bs-popover-width: unset;
|
|
7567
7580
|
height: unset;
|
|
7568
7581
|
max-height: 20rem; /* 320px */
|
|
7569
7582
|
max-width: calc(100dvw - 3rem);
|
|
7583
|
+
|
|
7584
|
+
&:where([data-size="sm"]) {
|
|
7585
|
+
--bs-popover-width: 16rem;
|
|
7586
|
+
}
|
|
7587
|
+
|
|
7588
|
+
&:where([data-size="md"]) {
|
|
7589
|
+
--bs-popover-width: 20rem;
|
|
7590
|
+
}
|
|
7591
|
+
|
|
7592
|
+
&:where([data-size="lg"]) {
|
|
7593
|
+
--bs-popover-width: 28rem;
|
|
7594
|
+
}
|
|
7595
|
+
|
|
7596
|
+
/* Prevent mobile padding on options */
|
|
7597
|
+
& :where(.bs-option) {
|
|
7598
|
+
padding: var(--bs-space-1) var(--bs-space-2);
|
|
7599
|
+
}
|
|
7570
7600
|
}
|
|
7571
7601
|
}
|
|
7572
7602
|
@media (min-width: 1166px) {
|
|
7573
7603
|
/* Remove bottom drawer at desktop breakpoint */
|
|
7574
7604
|
.bs-dropdown:where([data-mobile-sheet="tablet"]) {
|
|
7575
|
-
--bs-popover-width:
|
|
7605
|
+
--bs-popover-width: unset;
|
|
7576
7606
|
height: unset;
|
|
7577
7607
|
max-height: 20rem; /* 320px */
|
|
7578
7608
|
max-width: calc(100dvw - 3rem);
|
|
7609
|
+
|
|
7610
|
+
&:where([data-size="sm"]) {
|
|
7611
|
+
--bs-popover-width: 16rem;
|
|
7612
|
+
}
|
|
7613
|
+
|
|
7614
|
+
&:where([data-size="md"]) {
|
|
7615
|
+
--bs-popover-width: 20rem;
|
|
7616
|
+
}
|
|
7617
|
+
|
|
7618
|
+
&:where([data-size="lg"]) {
|
|
7619
|
+
--bs-popover-width: 28rem;
|
|
7620
|
+
}
|
|
7579
7621
|
}
|
|
7580
7622
|
}
|
|
7581
7623
|
/* Here if a consumer adds their own hr between BsOptions. Just don't override the internal option group separator. */
|