@wwtdev/bsds-css 3.0.15 → 3.0.17
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 +48 -22
- package/dist/wwt-bsds-components.min.css +1 -1
- package/dist/wwt-bsds.css +48 -22
- package/dist/wwt-bsds.min.css +1 -1
- package/package.json +1 -1
package/dist/wwt-bsds.css
CHANGED
|
@@ -5257,7 +5257,7 @@ label:where(.bs-label) {
|
|
|
5257
5257
|
box-shadow: inset 0 0 0 2px var(--bs-primary-base);
|
|
5258
5258
|
}
|
|
5259
5259
|
/* -- NEGATIVE -- */
|
|
5260
|
-
.bs-option:where([data-negative="true"]:hover),
|
|
5260
|
+
.bs-option:where(:not([aria-disabled="true"])[data-negative="true"]:hover),
|
|
5261
5261
|
.bs-option:where(:not([data-multiple="true"])[data-negative="true"][aria-selected="true"]) {
|
|
5262
5262
|
--description-color: var(--bs-ink-negative);
|
|
5263
5263
|
background: var(--bs-negative-highlight);
|
|
@@ -5303,7 +5303,7 @@ label:where(.bs-label) {
|
|
|
5303
5303
|
.bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(3)),
|
|
5304
5304
|
.bs-option-grid:where(:not([data-icon-col="true"])) :where(:nth-child(2)) {
|
|
5305
5305
|
color: var(--description-color);
|
|
5306
|
-
font-size: var(--bs-text-
|
|
5306
|
+
font-size: var(--bs-text-sm);
|
|
5307
5307
|
grid-area: description;
|
|
5308
5308
|
padding-top: 0.125rem;
|
|
5309
5309
|
}
|
|
@@ -6641,7 +6641,7 @@ a.bs-text-button {
|
|
|
6641
6641
|
@media (min-width: 1166px) {
|
|
6642
6642
|
.bs-vertical-nav {
|
|
6643
6643
|
opacity: 1;
|
|
6644
|
-
padding: 1rem;
|
|
6644
|
+
padding: 1rem 0.5rem;
|
|
6645
6645
|
right: auto;
|
|
6646
6646
|
visibility: visible;
|
|
6647
6647
|
pointer-events: auto;
|
|
@@ -6657,6 +6657,13 @@ a.bs-text-button {
|
|
|
6657
6657
|
width: var(--bs-vertical-nav-narrow-width);
|
|
6658
6658
|
}
|
|
6659
6659
|
|
|
6660
|
+
/* Collapsible variant keeps 1rem inline gutter in all states (collapsed and click-expanded),
|
|
6661
|
+
unlike wide/narrow which use 0.5rem. Targeting data-collapsible (not data-collapsed) so
|
|
6662
|
+
the rule also applies when the toggle is click-expanded. */
|
|
6663
|
+
.bs-vertical-nav:where([data-collapsible="true"]) {
|
|
6664
|
+
padding-inline: 1rem;
|
|
6665
|
+
}
|
|
6666
|
+
|
|
6660
6667
|
.bs-vertical-nav:where([data-collapsed="true"]) {
|
|
6661
6668
|
width: var(--bs-vertical-nav-collapsed-width);
|
|
6662
6669
|
}
|
|
@@ -6750,8 +6757,8 @@ a.bs-text-button {
|
|
|
6750
6757
|
}
|
|
6751
6758
|
@media (min-width: 1166px) {
|
|
6752
6759
|
.bs-vertical-nav :where(.bs-vertical-nav-section-toggle) {
|
|
6753
|
-
/* nav width - nav left padding - nav right padding */
|
|
6754
|
-
width: calc(var(--bs-vertical-nav-width) -
|
|
6760
|
+
/* nav width - nav left padding - nav right padding (0.5rem each for wide) */
|
|
6761
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem);
|
|
6755
6762
|
}
|
|
6756
6763
|
|
|
6757
6764
|
.bs-vertical-nav :where(.bs-vertical-nav-section-toggle span:first-child) {
|
|
@@ -6759,7 +6766,7 @@ a.bs-text-button {
|
|
|
6759
6766
|
text-align: start;
|
|
6760
6767
|
text-overflow: ellipsis;
|
|
6761
6768
|
/* nav width - nav left padding - nav right padding - link left padding - link right padding - caret width */
|
|
6762
|
-
width: calc(var(--bs-vertical-nav-width) -
|
|
6769
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem - 0.75rem - 0.75rem - 0.75rem);
|
|
6763
6770
|
}
|
|
6764
6771
|
}
|
|
6765
6772
|
.bs-vertical-nav :where(.bs-vertical-nav-section-toggle-caret) {
|
|
@@ -6777,7 +6784,7 @@ a.bs-text-button {
|
|
|
6777
6784
|
.bs-vertical-nav :where(ul) {
|
|
6778
6785
|
display: flex;
|
|
6779
6786
|
flex-direction: column;
|
|
6780
|
-
gap: 0;
|
|
6787
|
+
gap: 0.25rem;
|
|
6781
6788
|
list-style: none;
|
|
6782
6789
|
margin-top: 0;
|
|
6783
6790
|
padding-left: 0;
|
|
@@ -6810,13 +6817,17 @@ a.bs-text-button {
|
|
|
6810
6817
|
font-size: 0.875rem;
|
|
6811
6818
|
min-height: 2.5rem; /* Fixed minimum height to prevent height changes */
|
|
6812
6819
|
padding: 0.5rem 0.75rem; /* Explicit padding for consistency */
|
|
6813
|
-
/* nav width - nav left padding - nav right padding */
|
|
6820
|
+
/* nav width - nav left padding - nav right padding (0.5rem each for wide) */
|
|
6821
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem);
|
|
6822
|
+
}
|
|
6823
|
+
|
|
6824
|
+
/* Collapsible click-expanded: wide width but with 1rem inline gutter, not 0.5rem */
|
|
6825
|
+
.bs-vertical-nav:where([data-collapsible="true"]) :where(ul li a) {
|
|
6814
6826
|
width: calc(var(--bs-vertical-nav-width) - 1rem - 1rem);
|
|
6815
6827
|
}
|
|
6816
6828
|
|
|
6817
|
-
/*
|
|
6829
|
+
/* Collapsible collapsed: narrow content-box inside 1rem gutter */
|
|
6818
6830
|
.bs-vertical-nav:where([data-collapsed="true"]) :where(ul li a) {
|
|
6819
|
-
/* collapsed width - nav left padding - nav right padding */
|
|
6820
6831
|
width: calc(var(--bs-vertical-nav-collapsed-width) - 1rem - 1rem);
|
|
6821
6832
|
}
|
|
6822
6833
|
|
|
@@ -6826,7 +6837,7 @@ a.bs-text-button {
|
|
|
6826
6837
|
text-overflow: ellipsis;
|
|
6827
6838
|
white-space: nowrap;
|
|
6828
6839
|
/* nav width - nav left padding - nav right padding - link left padding - link right padding */
|
|
6829
|
-
width: calc(var(--bs-vertical-nav-width) -
|
|
6840
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem - 0.75rem - 0.75rem);
|
|
6830
6841
|
}
|
|
6831
6842
|
|
|
6832
6843
|
/* Text overflow - normal width - with icon */
|
|
@@ -6835,28 +6846,35 @@ a.bs-text-button {
|
|
|
6835
6846
|
text-overflow: ellipsis;
|
|
6836
6847
|
white-space: nowrap;
|
|
6837
6848
|
/* nav width - nav left padding - nav right padding - link left padding - link right padding - icon width - icon gap */
|
|
6838
|
-
width: calc(var(--bs-vertical-nav-width) -
|
|
6849
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem - 0.75rem - 0.75rem - 1rem - 0.5rem);
|
|
6839
6850
|
}
|
|
6840
6851
|
|
|
6841
6852
|
.bs-vertical-nav:where([data-narrow="true"]) :where(ul li a) {
|
|
6842
6853
|
flex-direction: column;
|
|
6843
6854
|
font-size: 0.6875rem;
|
|
6844
|
-
gap: 0.5rem;
|
|
6855
|
+
gap: 0.5rem;
|
|
6856
|
+
justify-content: center;
|
|
6845
6857
|
line-height: 1.3;
|
|
6846
|
-
|
|
6858
|
+
/* 68px covers 1- and 2-line labels at 11px/1.3 lh + 16px icon + 8px gap + 16px padding */
|
|
6859
|
+
min-height: 4.25rem;
|
|
6860
|
+
padding: 0.5rem 0.75rem;
|
|
6847
6861
|
text-align: center;
|
|
6848
|
-
/*
|
|
6849
|
-
width: calc(var(--bs-vertical-nav-narrow-width) -
|
|
6862
|
+
/* narrow-width (72px) - 0.5rem left - 0.5rem right = 56px, matches span */
|
|
6863
|
+
width: calc(var(--bs-vertical-nav-narrow-width) - 0.5rem - 0.5rem);
|
|
6850
6864
|
}
|
|
6851
6865
|
|
|
6852
|
-
/* Text overflow - narrow
|
|
6853
|
-
|
|
6854
|
-
|
|
6866
|
+
/* Text overflow - narrow: multi-word wraps naturally at spaces ("Content Audit" → 2 lines).
|
|
6867
|
+
Single long words overflow their line and truncate with ellipsis ("Presentations" → "Present...").
|
|
6868
|
+
Span is 52px, 4px narrower than the 56px link, centered via align-items: center on the link.
|
|
6869
|
+
That gives 2px of inner padding each side inside the active highlight (per UX).
|
|
6870
|
+
Specificity bumped to (0,2,2) to beat later generic `ul li a > span:last-child {width: auto}`. */
|
|
6871
|
+
.bs-vertical-nav[data-narrow="true"] :where(ul li a:not(:has(.bs-vertical-nav-link-icon))) span:first-child,
|
|
6872
|
+
.bs-vertical-nav[data-narrow="true"] :where(ul li a:has(.bs-vertical-nav-link-icon)) span:nth-child(2) {
|
|
6855
6873
|
overflow: hidden;
|
|
6856
6874
|
text-overflow: ellipsis;
|
|
6857
|
-
white-space:
|
|
6858
|
-
/*
|
|
6859
|
-
width: calc(var(--bs-vertical-nav-narrow-width) - 0.5rem - 0.5rem);
|
|
6875
|
+
white-space: normal;
|
|
6876
|
+
/* narrow-width - nav padding (0.5rem each) - 2px inner padding (0.125rem each) = 52px */
|
|
6877
|
+
width: calc(var(--bs-vertical-nav-narrow-width) - 0.5rem - 0.5rem - 0.125rem - 0.125rem);
|
|
6860
6878
|
}
|
|
6861
6879
|
}
|
|
6862
6880
|
.bs-vertical-nav-section:where([data-app-links="true"]) {
|
|
@@ -6880,6 +6898,14 @@ a.bs-text-button {
|
|
|
6880
6898
|
font-weight: 600;
|
|
6881
6899
|
transition: background-color 200ms ease-out;
|
|
6882
6900
|
}
|
|
6901
|
+
/* Keyboard focus ring — matches house convention (accordion, filter-button, link, pagination) */
|
|
6902
|
+
.bs-vertical-nav :where(ul li a:focus-visible) {
|
|
6903
|
+
outline: 2px solid var(--bs-primary-base);
|
|
6904
|
+
outline-offset: 2px;
|
|
6905
|
+
}
|
|
6906
|
+
.bs-vertical-nav :where(ul li a:focus:not(:focus-visible)) {
|
|
6907
|
+
outline: none;
|
|
6908
|
+
}
|
|
6883
6909
|
/* Icon sizing - mobile/default */
|
|
6884
6910
|
.bs-vertical-nav :where(.bs-vertical-nav-link-icon) {
|
|
6885
6911
|
height: 1rem;
|