@wwtdev/bsds-css 2.22.0 → 2.23.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/wwt-bsds.css CHANGED
@@ -3772,6 +3772,10 @@ textarea {
3772
3772
  outline-style: none;
3773
3773
  outline-width: 0px;
3774
3774
  }
3775
+ /* OPEN state */
3776
+ :is(select, .bs-select):where(:open) {
3777
+ background: var(--bs-bg-base-to-light);
3778
+ }
3775
3779
  /* DISABLED state */
3776
3780
  :is(input:where(:not([type='checkbox'],[type='radio'])), textarea, select):where(:disabled),
3777
3781
  :is(.bs-input, .bs-select, .bs-textarea):where(:disabled) {
@@ -4407,15 +4411,17 @@ select[multiple],
4407
4411
  }
4408
4412
  }
4409
4413
  .bs-modal {
4410
- --base-modal-width: 35rem;
4411
- --modal-padding: 1.5rem;
4412
- --sm-modal-width: 21.25rem;
4413
- --lg-modal-width: 45.3125rem;
4414
- --lg-modal-padding: 2rem;
4414
+ --base-modal-width: 35rem; /* 560px */
4415
+ --lg-modal-padding: 2rem; /* 32px */
4416
+ --lg-modal-width: 45.3125rem; /* 725px */
4417
+ --modal-padding: 1.5rem; /* 24px */
4418
+ --sm-modal-width: 21.25rem; /* 340px */
4415
4419
  background-color: var(--bs-bg-base-to-medium);
4416
4420
  border-radius: 4px;
4417
4421
  bottom: 0;
4418
4422
  box-shadow: var(--bs-shadow-contentHigh);
4423
+ display: flex;
4424
+ flex-direction: column;
4419
4425
  height: -moz-fit-content;
4420
4426
  height: fit-content;
4421
4427
  left: 0;
@@ -4423,7 +4429,6 @@ select[multiple],
4423
4429
  max-height: calc(100% - 3rem);
4424
4430
  opacity: 0;
4425
4431
  overflow: auto;
4426
- padding: var(--modal-padding);
4427
4432
  position: fixed;
4428
4433
  right: 0;
4429
4434
  top: 0;
@@ -4433,138 +4438,124 @@ select[multiple],
4433
4438
  width: calc(100% - 3rem);
4434
4439
  z-index: 9999;
4435
4440
  }
4436
- .bs-modal:where([data-has-header-or-footer="true"]) {
4437
- padding: 0;
4438
- }
4439
4441
  @media (min-width: 752px) {
4440
4442
  .bs-modal {
4441
4443
  max-height: min(calc(100vh - 3rem), 40.625rem);
4442
4444
  width: var(--base-modal-width);
4443
4445
  }
4446
+
4444
4447
  .bs-modal:where([data-size="sm"]) {
4445
4448
  width: var(--sm-modal-width);
4446
4449
  }
4450
+
4447
4451
  .bs-modal:where([data-size="lg"]) {
4448
4452
  width: var(--lg-modal-width);
4449
4453
  }
4450
4454
  }
4451
- .bs-modal:where([data-shown]:not([data-shown="false"])) {
4455
+ .bs-modal:where([data-shown="true"]) {
4452
4456
  opacity: 1;
4453
4457
  }
4458
+ /* Header Container */
4454
4459
  .bs-modal :where(.bs-modal-header-container) {
4455
4460
  padding: var(--modal-padding);
4456
4461
  }
4457
4462
  .bs-modal:where([data-size="lg"]) :where(.bs-modal-header-container) {
4458
4463
  padding: var(--lg-modal-padding);
4459
4464
  }
4465
+ .bs-modal:where([data-header-border="true"]) :where(.bs-modal-header-container) {
4466
+ border-bottom: 1px solid var(--bs-border-base);
4467
+ }
4468
+ .bs-modal:where([data-full-width="true"]) :where(.bs-modal-header-container) {
4469
+ padding-left: 0;
4470
+ padding-right: 0;
4471
+ }
4472
+ /* Header Row */
4460
4473
  .bs-modal :where(.bs-modal-header) {
4461
4474
  align-items: center;
4462
4475
  display: flex;
4463
4476
  justify-content: space-between;
4464
- margin-bottom: 0.5rem;
4465
4477
  }
4478
+ /* Title */
4466
4479
  .bs-modal :where(.bs-modal-title) {
4467
4480
  flex-grow: 1;
4468
4481
  font-size: var(--bs-text-lg);
4469
4482
  font-weight: 400;
4470
4483
  margin-right: 2rem;
4471
4484
  }
4485
+ /* Subtitle */
4472
4486
  .bs-modal :where(.bs-modal-subtitle) {
4473
4487
  font-size: var(--bs-text-sm);
4474
4488
  font-weight: 400;
4475
- margin: 0;
4489
+ margin-top: 0.5rem;
4476
4490
  width: 100%;
4477
- margin-bottom: 1.5rem;
4478
- }
4479
- .bs-modal :where(.bs-modal-only-close-button-modal-header) {
4480
- display: flex;
4481
- justify-content: flex-end;
4482
4491
  }
4483
- .bs-modal :where(.bs-modal-header-container):where(:has(.bs-modal-only-close-button-modal-header)) {
4484
- margin-bottom: 0;
4485
- padding-bottom: 0;
4492
+ /* Close Button */
4493
+ .bs-modal :where(.bs-modal-close-button) {
4494
+ background-color: transparent;
4495
+ cursor: pointer;
4486
4496
  }
4487
- .bs-modal :where(.bs-modal-full-width-header-close-button) {
4497
+ .bs-modal:where(:not(:has(.bs-modal-header-container))) :where(.bs-modal-close-button) {
4488
4498
  position: absolute;
4489
- right: 0.75rem;
4490
- top: 0.75rem;
4499
+ right: 1rem;
4500
+ top: 1rem;
4491
4501
  }
4492
- .bs-modal :where(.bs-modal-close-button) {
4493
- cursor: pointer;
4502
+ .bs-modal:where([data-full-width="true"]:has(> .bs-modal-header-container)) :where(.bs-modal-close-button) {
4503
+ margin-right: var(--modal-padding);
4494
4504
  }
4505
+ .bs-modal:where([data-full-width="true"][data-size="lg"]:has(> .bs-modal-header-container)) :where(.bs-modal-close-button) {
4506
+ margin-right: var(--lg-modal-padding);
4507
+ }
4508
+ /* Progress */
4495
4509
  .bs-modal :where(.bs-modal-progress) {
4510
+ margin-top: 1.5rem;
4496
4511
  width: 100%;
4497
4512
  }
4513
+ /* Body */
4498
4514
  .bs-modal :where(.bs-modal-body) {
4499
- padding: 0 var(--modal-padding);
4515
+ overflow-y: auto;
4516
+ padding: var(--modal-padding);
4517
+ }
4518
+ .bs-modal:where([data-full-height="true"]) :where(.bs-modal-body) {
4519
+ padding-bottom: 0;
4520
+ padding-top: 0;
4500
4521
  }
4501
- .bs-modal:where([data-header-border="true"]) :where(.bs-modal-body) {
4502
- padding-top: var(--modal-padding);
4522
+ .bs-modal:where([data-full-width="true"]) :where(.bs-modal-body) {
4523
+ padding-left: 0;
4524
+ padding-right: 0;
4503
4525
  }
4504
- .bs-modal:where([data-footer-border="true"]) :where(.bs-modal-body) {
4505
- padding-bottom: var(--modal-padding);
4526
+ /* Has header, but no header border */
4527
+ .bs-modal:where(:not([data-header-border]):has(> .bs-modal-header-container)) :where(.bs-modal-body),
4528
+ .bs-modal:where([data-header-border="false"]:has(> .bs-modal-header-container)) :where(.bs-modal-body) {
4529
+ padding-top: 0;
4506
4530
  }
4507
- .bs-modal:where([data-size="lg"]) :where(.bs-modal-body) {
4508
- padding: 0 var(--lg-modal-padding);
4531
+ /* Has footer, but no footer border */
4532
+ .bs-modal:where(:not([data-footer-border])) :where(.bs-modal-body:has(~ .bs-modal-footer)),
4533
+ .bs-modal:where([data-footer-border="false"]) :where(.bs-modal-body:has(~ .bs-modal-footer)) {
4534
+ padding-bottom: 0;
4509
4535
  }
4510
4536
  .bs-modal:where([data-body-background-contrast="true"]) :where(.bs-modal-body) {
4511
4537
  background-color: var(--bs-bg-light);
4512
4538
  }
4513
- .bs-modal:where([data-no-header-container="true"]):where([data-size="lg"]) :where(.bs-modal-body) {
4514
- padding-top: var(--lg-modal-padding);
4515
- }
4516
- .bs-modal:where([data-no-header-container="true"]) :where(.bs-modal-body) {
4517
- padding-top: var(--modal-padding);
4518
- }
4519
- .bs-modal:where([data-no-footer="true"]):where([data-size="lg"]) :where(.bs-modal-body) {
4520
- padding-bottom: var(--lg-modal-padding);
4521
- }
4522
- .bs-modal:where([data-no-footer="true"]) :where(.bs-modal-body) {
4523
- padding-bottom: var(--modal-padding);
4524
- }
4525
- .bs-modal:where([data-no-footer="true"]):where([data-full-height="true"]) :where(.bs-modal-body) {
4526
- padding-bottom: 0;
4527
- }
4539
+ /* Footer */
4528
4540
  .bs-modal :where(.bs-modal-footer) {
4529
- padding: var(--modal-padding);
4541
+ padding-bottom: 1rem;
4542
+ padding-left: var(--modal-padding);
4543
+ padding-right: var(--modal-padding);
4544
+ padding-top: 1rem;
4530
4545
  }
4531
4546
  .bs-modal:where([data-size="lg"]) :where(.bs-modal-footer) {
4532
- padding: var(--lg-modal-padding);
4533
- }
4534
- .bs-modal:where([data-sticky-header="true"]) :where(.bs-modal-header-container) {
4535
- position: sticky;
4536
- top: 0;
4537
- z-index: 1;
4538
- background: inherit;
4539
- }
4540
- .bs-modal:where([data-sticky-footer="true"]) :where(.bs-modal-footer) {
4541
- position: sticky;
4542
- bottom: 0;
4543
- z-index: 1;
4544
- background: inherit;
4545
- }
4546
- .bs-modal:where([data-header-border="true"]) :where(.bs-modal-header-container) {
4547
- border-bottom: 1px solid var(--bs-border-base);
4547
+ padding-bottom: 1.5rem;
4548
+ padding-left: var(--lg-modal-padding);
4549
+ padding-right: var(--lg-modal-padding);
4550
+ padding-top: 1.5rem;
4548
4551
  }
4549
4552
  .bs-modal:where([data-footer-border="true"]) :where(.bs-modal-footer) {
4550
4553
  border-top: 1px solid var(--bs-border-base);
4551
4554
  }
4552
- .bs-modal:where([data-full-width="true"]) :where(.bs-modal-section) {
4555
+ .bs-modal:where([data-full-width="true"]) :where(.bs-modal-footer) {
4553
4556
  padding-left: 0;
4554
4557
  padding-right: 0;
4555
4558
  }
4556
- .bs-modal:where([data-full-height="true"]) :where(.bs-modal-section) {
4557
- padding-top: 0;
4558
- padding-bottom: 0;
4559
- }
4560
- .bs-modal:where([data-full-width="true"]) {
4561
- padding-left: 0;
4562
- padding-right: 0;
4563
- }
4564
- .bs-modal:where([data-full-height="true"]) {
4565
- padding-top: 0;
4566
- padding-bottom: 0;
4567
- }
4568
4559
  /* Vue Transition Styles - Only used in Vue component */
4569
4560
  .bs-modal:where(.bs-modal-enter-from),
4570
4561
  .bs-modal:where(.bs-modal-leave-to) {