@wwtdev/bsds-css 3.0.4 → 3.0.6
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 +68 -30
- package/dist/wwt-bsds-components.min.css +1 -1
- package/dist/wwt-bsds.css +68 -30
- 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);
|
|
@@ -5465,11 +5461,6 @@ label:where(.bs-label) {
|
|
|
5465
5461
|
position: relative;
|
|
5466
5462
|
text-decoration: none;
|
|
5467
5463
|
}
|
|
5468
|
-
.bs-pill-content {
|
|
5469
|
-
display: inline-flex;
|
|
5470
|
-
align-items: center;
|
|
5471
|
-
gap: var(--pill-gap);
|
|
5472
|
-
}
|
|
5473
5464
|
.bs-pill :where(.bs-icon) {
|
|
5474
5465
|
height: 0.75rem;
|
|
5475
5466
|
width: 0.75rem;
|
|
@@ -5479,10 +5470,11 @@ label:where(.bs-label) {
|
|
|
5479
5470
|
.bs-pill:has([data-truncate="true"]) {
|
|
5480
5471
|
max-width: 100%;
|
|
5481
5472
|
}
|
|
5482
|
-
.bs-pill
|
|
5483
|
-
|
|
5473
|
+
.bs-pill > :where([data-truncate="true"]) {
|
|
5474
|
+
display: inline-block;
|
|
5484
5475
|
overflow: hidden;
|
|
5485
5476
|
text-overflow: ellipsis;
|
|
5477
|
+
white-space: nowrap;
|
|
5486
5478
|
}
|
|
5487
5479
|
/* ------------------------------ Button and Link Styles ------------------------------ */
|
|
5488
5480
|
:is(a, button).bs-pill {
|
|
@@ -7555,27 +7547,73 @@ a.bs-text-button {
|
|
|
7555
7547
|
}
|
|
7556
7548
|
/* Don't use mobile sheet at any breakpoint */
|
|
7557
7549
|
.bs-dropdown:where(:not([data-mobile-sheet])) {
|
|
7558
|
-
--bs-popover-width:
|
|
7550
|
+
--bs-popover-width: unset;
|
|
7559
7551
|
height: unset;
|
|
7560
7552
|
max-height: 20rem; /* 320px */
|
|
7561
7553
|
max-width: calc(100dvw - 3rem);
|
|
7554
|
+
|
|
7555
|
+
&:where([data-size="sm"]) {
|
|
7556
|
+
--bs-popover-width: 16rem;
|
|
7557
|
+
}
|
|
7558
|
+
|
|
7559
|
+
&:where([data-size="md"]) {
|
|
7560
|
+
--bs-popover-width: 20rem;
|
|
7561
|
+
}
|
|
7562
|
+
|
|
7563
|
+
&:where([data-size="lg"]) {
|
|
7564
|
+
--bs-popover-width: 28rem;
|
|
7565
|
+
}
|
|
7566
|
+
|
|
7567
|
+
/* Prevent mobile padding on options */
|
|
7568
|
+
& :where(.bs-option) {
|
|
7569
|
+
padding: var(--bs-space-1) var(--bs-space-2);
|
|
7570
|
+
}
|
|
7562
7571
|
}
|
|
7563
7572
|
@media (min-width: 752px) {
|
|
7564
7573
|
/* Remove bottom drawer at tablet breakpoint */
|
|
7565
7574
|
.bs-dropdown:where([data-mobile-sheet="mobile"]) {
|
|
7566
|
-
--bs-popover-width:
|
|
7575
|
+
--bs-popover-width: unset;
|
|
7567
7576
|
height: unset;
|
|
7568
7577
|
max-height: 20rem; /* 320px */
|
|
7569
7578
|
max-width: calc(100dvw - 3rem);
|
|
7579
|
+
|
|
7580
|
+
&:where([data-size="sm"]) {
|
|
7581
|
+
--bs-popover-width: 16rem;
|
|
7582
|
+
}
|
|
7583
|
+
|
|
7584
|
+
&:where([data-size="md"]) {
|
|
7585
|
+
--bs-popover-width: 20rem;
|
|
7586
|
+
}
|
|
7587
|
+
|
|
7588
|
+
&:where([data-size="lg"]) {
|
|
7589
|
+
--bs-popover-width: 28rem;
|
|
7590
|
+
}
|
|
7591
|
+
|
|
7592
|
+
/* Prevent mobile padding on options */
|
|
7593
|
+
& :where(.bs-option) {
|
|
7594
|
+
padding: var(--bs-space-1) var(--bs-space-2);
|
|
7595
|
+
}
|
|
7570
7596
|
}
|
|
7571
7597
|
}
|
|
7572
7598
|
@media (min-width: 1166px) {
|
|
7573
7599
|
/* Remove bottom drawer at desktop breakpoint */
|
|
7574
7600
|
.bs-dropdown:where([data-mobile-sheet="tablet"]) {
|
|
7575
|
-
--bs-popover-width:
|
|
7601
|
+
--bs-popover-width: unset;
|
|
7576
7602
|
height: unset;
|
|
7577
7603
|
max-height: 20rem; /* 320px */
|
|
7578
7604
|
max-width: calc(100dvw - 3rem);
|
|
7605
|
+
|
|
7606
|
+
&:where([data-size="sm"]) {
|
|
7607
|
+
--bs-popover-width: 16rem;
|
|
7608
|
+
}
|
|
7609
|
+
|
|
7610
|
+
&:where([data-size="md"]) {
|
|
7611
|
+
--bs-popover-width: 20rem;
|
|
7612
|
+
}
|
|
7613
|
+
|
|
7614
|
+
&:where([data-size="lg"]) {
|
|
7615
|
+
--bs-popover-width: 28rem;
|
|
7616
|
+
}
|
|
7579
7617
|
}
|
|
7580
7618
|
}
|
|
7581
7619
|
/* Here if a consumer adds their own hr between BsOptions. Just don't override the internal option group separator. */
|