@wwtdev/bsds-css 3.0.3 → 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-preset.js +3 -25
- package/dist/wwt-bsds.css +65 -23
- package/dist/wwt-bsds.min.css +1 -1
- package/package.json +1 -1
|
@@ -3794,10 +3794,14 @@ label:where(.bs-label) {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
.bs-option {
|
|
3796
3796
|
--description-color: var(--bs-ink-light);
|
|
3797
|
+
align-items: center;
|
|
3797
3798
|
border-left: 4px solid transparent;
|
|
3798
3799
|
border-right: 4px solid transparent;
|
|
3799
3800
|
color: var(--bs-ink-base);
|
|
3800
3801
|
cursor: pointer;
|
|
3802
|
+
display: flex;
|
|
3803
|
+
gap: var(--bs-space-2);
|
|
3804
|
+
margin-bottom: var(--bs-space-2);
|
|
3801
3805
|
overflow-wrap: break-word;
|
|
3802
3806
|
padding: var(--bs-space-1) var(--bs-space-3) var(--bs-space-1) var(--bs-space-6);
|
|
3803
3807
|
scroll-margin-bottom: var(--bs-space-3);
|
|
@@ -3810,9 +3814,6 @@ label:where(.bs-label) {
|
|
|
3810
3814
|
padding: var(--bs-space-1) var(--bs-space-2);
|
|
3811
3815
|
}
|
|
3812
3816
|
}
|
|
3813
|
-
.bs-option {
|
|
3814
|
-
margin-bottom: var(--bs-space-2); /* ask ux: 12px is too much, can't see many menu options in view */
|
|
3815
|
-
}
|
|
3816
3817
|
/* is basically doing a last visible child selector ignoring selectToTop, since filtered options and groups are hidden by v-show */
|
|
3817
3818
|
.bs-option:where(:nth-last-child(1 of [data-visible="true"][data-selected-to-top="false"])) {
|
|
3818
3819
|
margin-bottom: 0;
|
|
@@ -3820,22 +3821,22 @@ label:where(.bs-label) {
|
|
|
3820
3821
|
/* -- DISABLED -- */
|
|
3821
3822
|
/* Don't disable via pointer-events, so tooltips still work in a disabled menu item. */
|
|
3822
3823
|
.bs-option:where([aria-disabled="true"]) {
|
|
3823
|
-
color: var(--bs-ink-disabled);
|
|
3824
3824
|
--description-color: var(--bs-ink-disabled);
|
|
3825
|
+
color: var(--bs-ink-disabled);
|
|
3825
3826
|
cursor: default;
|
|
3826
3827
|
}
|
|
3827
3828
|
/* -- SELECTED -- */
|
|
3828
3829
|
.bs-option:where(:not([aria-disabled="true"], [data-negative="true"])):hover,
|
|
3829
3830
|
.bs-option:where(:not([data-multiple="true"])[aria-selected="true"]) {
|
|
3830
|
-
color: var(--bs-ink-primary);
|
|
3831
3831
|
--description-color: var(--bs-ink-primary);
|
|
3832
3832
|
background: var(--bs-bg-medium-to-light);
|
|
3833
3833
|
border-left-color: var(--bs-ink-primary);
|
|
3834
|
+
color: var(--bs-ink-primary);
|
|
3834
3835
|
}
|
|
3835
3836
|
/* selected yet disabled...should be a very rare scenario, but need to handle it */
|
|
3836
3837
|
.bs-option:where([aria-disabled="true"]):where([aria-selected="true"]) {
|
|
3837
|
-
color: var(--bs-ink-light);
|
|
3838
3838
|
border-left-color: var(--bs-ink-disabled);
|
|
3839
|
+
color: var(--bs-ink-light);
|
|
3839
3840
|
}
|
|
3840
3841
|
/* -- ACTIVE -- */
|
|
3841
3842
|
.bs-option:where([data-active="true"]) {
|
|
@@ -3844,10 +3845,10 @@ label:where(.bs-label) {
|
|
|
3844
3845
|
/* -- NEGATIVE -- */
|
|
3845
3846
|
.bs-option:where([data-negative="true"]:hover),
|
|
3846
3847
|
.bs-option:where(:not([data-multiple="true"])[data-negative="true"][aria-selected="true"]) {
|
|
3847
|
-
color: var(--bs-ink-negative);
|
|
3848
|
+
--description-color: var(--bs-ink-negative);
|
|
3848
3849
|
background: var(--bs-negative-highlight);
|
|
3849
3850
|
border-left-color: var(--bs-negative-base);
|
|
3850
|
-
|
|
3851
|
+
color: var(--bs-ink-negative);
|
|
3851
3852
|
}
|
|
3852
3853
|
.bs-option:where([data-negative="true"][aria-selected="true"]) :where(.bs-checkbox):before {
|
|
3853
3854
|
--fill-bg-color: var(--bs-negative-base);
|
|
@@ -3856,23 +3857,18 @@ label:where(.bs-label) {
|
|
|
3856
3857
|
box-shadow: inset 0 0 0 2px var(--bs-negative-base);
|
|
3857
3858
|
}
|
|
3858
3859
|
/* -- MULTIPLE -- */
|
|
3859
|
-
.bs-option:where([data-multiple="true"]) {
|
|
3860
|
-
display: grid;
|
|
3861
|
-
grid-template-columns: auto 1fr;
|
|
3862
|
-
align-items: start;
|
|
3863
|
-
gap: var(--bs-space-2);
|
|
3864
|
-
}
|
|
3865
3860
|
.bs-option:where([data-multiple="true"]) :where(.bs-checkbox) {
|
|
3861
|
+
align-self: start;
|
|
3866
3862
|
margin-top: var(--bs-space-1);
|
|
3867
3863
|
}
|
|
3868
|
-
/* --
|
|
3864
|
+
/* -- GRID LAYOUT -- */
|
|
3869
3865
|
.bs-option-grid:where([data-icon-col="true"]) {
|
|
3870
3866
|
display: grid;
|
|
3867
|
+
grid-column-gap: var(--bs-space-2);
|
|
3871
3868
|
grid-template:
|
|
3872
3869
|
"icon label"
|
|
3873
3870
|
". description"
|
|
3874
3871
|
/ auto 1fr;
|
|
3875
|
-
grid-column-gap: var(--bs-space-2);
|
|
3876
3872
|
}
|
|
3877
3873
|
.bs-option-grid:where(:not([data-icon-col="true"])) {
|
|
3878
3874
|
display: grid;
|
|
@@ -3881,10 +3877,10 @@ label:where(.bs-label) {
|
|
|
3881
3877
|
"description";
|
|
3882
3878
|
}
|
|
3883
3879
|
.bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(1)) {
|
|
3884
|
-
grid-area: icon;
|
|
3885
3880
|
align-self: center;
|
|
3886
|
-
|
|
3881
|
+
grid-area: icon;
|
|
3887
3882
|
max-height: 1.5rem;
|
|
3883
|
+
max-width: 1.5rem;
|
|
3888
3884
|
}
|
|
3889
3885
|
.bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(2)),
|
|
3890
3886
|
.bs-option-grid:where(:not([data-icon-col="true"])) :where(:nth-child(1)) {
|
|
@@ -3892,10 +3888,10 @@ label:where(.bs-label) {
|
|
|
3892
3888
|
}
|
|
3893
3889
|
.bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(3)),
|
|
3894
3890
|
.bs-option-grid:where(:not([data-icon-col="true"])) :where(:nth-child(2)) {
|
|
3895
|
-
|
|
3891
|
+
color: var(--description-color);
|
|
3896
3892
|
font-size: var(--bs-text-xs);
|
|
3893
|
+
grid-area: description;
|
|
3897
3894
|
padding-top: 0.125rem;
|
|
3898
|
-
color: var(--description-color);
|
|
3899
3895
|
}
|
|
3900
3896
|
.bs-overlay {
|
|
3901
3897
|
-webkit-backdrop-filter: blur(4px);
|
|
@@ -6116,27 +6112,73 @@ a.bs-text-button {
|
|
|
6116
6112
|
}
|
|
6117
6113
|
/* Don't use mobile sheet at any breakpoint */
|
|
6118
6114
|
.bs-dropdown:where(:not([data-mobile-sheet])) {
|
|
6119
|
-
--bs-popover-width:
|
|
6115
|
+
--bs-popover-width: unset;
|
|
6120
6116
|
height: unset;
|
|
6121
6117
|
max-height: 20rem; /* 320px */
|
|
6122
6118
|
max-width: calc(100dvw - 3rem);
|
|
6119
|
+
|
|
6120
|
+
&:where([data-size="sm"]) {
|
|
6121
|
+
--bs-popover-width: 16rem;
|
|
6122
|
+
}
|
|
6123
|
+
|
|
6124
|
+
&:where([data-size="md"]) {
|
|
6125
|
+
--bs-popover-width: 20rem;
|
|
6126
|
+
}
|
|
6127
|
+
|
|
6128
|
+
&:where([data-size="lg"]) {
|
|
6129
|
+
--bs-popover-width: 28rem;
|
|
6130
|
+
}
|
|
6131
|
+
|
|
6132
|
+
/* Prevent mobile padding on options */
|
|
6133
|
+
& :where(.bs-option) {
|
|
6134
|
+
padding: var(--bs-space-1) var(--bs-space-2);
|
|
6135
|
+
}
|
|
6123
6136
|
}
|
|
6124
6137
|
@media (min-width: 752px) {
|
|
6125
6138
|
/* Remove bottom drawer at tablet breakpoint */
|
|
6126
6139
|
.bs-dropdown:where([data-mobile-sheet="mobile"]) {
|
|
6127
|
-
--bs-popover-width:
|
|
6140
|
+
--bs-popover-width: unset;
|
|
6128
6141
|
height: unset;
|
|
6129
6142
|
max-height: 20rem; /* 320px */
|
|
6130
6143
|
max-width: calc(100dvw - 3rem);
|
|
6144
|
+
|
|
6145
|
+
&:where([data-size="sm"]) {
|
|
6146
|
+
--bs-popover-width: 16rem;
|
|
6147
|
+
}
|
|
6148
|
+
|
|
6149
|
+
&:where([data-size="md"]) {
|
|
6150
|
+
--bs-popover-width: 20rem;
|
|
6151
|
+
}
|
|
6152
|
+
|
|
6153
|
+
&:where([data-size="lg"]) {
|
|
6154
|
+
--bs-popover-width: 28rem;
|
|
6155
|
+
}
|
|
6156
|
+
|
|
6157
|
+
/* Prevent mobile padding on options */
|
|
6158
|
+
& :where(.bs-option) {
|
|
6159
|
+
padding: var(--bs-space-1) var(--bs-space-2);
|
|
6160
|
+
}
|
|
6131
6161
|
}
|
|
6132
6162
|
}
|
|
6133
6163
|
@media (min-width: 1166px) {
|
|
6134
6164
|
/* Remove bottom drawer at desktop breakpoint */
|
|
6135
6165
|
.bs-dropdown:where([data-mobile-sheet="tablet"]) {
|
|
6136
|
-
--bs-popover-width:
|
|
6166
|
+
--bs-popover-width: unset;
|
|
6137
6167
|
height: unset;
|
|
6138
6168
|
max-height: 20rem; /* 320px */
|
|
6139
6169
|
max-width: calc(100dvw - 3rem);
|
|
6170
|
+
|
|
6171
|
+
&:where([data-size="sm"]) {
|
|
6172
|
+
--bs-popover-width: 16rem;
|
|
6173
|
+
}
|
|
6174
|
+
|
|
6175
|
+
&:where([data-size="md"]) {
|
|
6176
|
+
--bs-popover-width: 20rem;
|
|
6177
|
+
}
|
|
6178
|
+
|
|
6179
|
+
&:where([data-size="lg"]) {
|
|
6180
|
+
--bs-popover-width: 28rem;
|
|
6181
|
+
}
|
|
6140
6182
|
}
|
|
6141
6183
|
}
|
|
6142
6184
|
/* Here if a consumer adds their own hr between BsOptions. Just don't override the internal option group separator. */
|