@wwtdev/bsds-css 2.0.9 → 2.1.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/components/_accordions.scss +1 -1
- package/dist/components/_badge.scss +43 -16
- package/dist/components/_buttons.scss +4 -10
- package/dist/components/_circle-buttons.scss +5 -3
- package/dist/components/_filter-buttons.scss +101 -0
- package/dist/components/_form-input-composite.scss +13 -7
- package/dist/components/_form-input-search.scss +35 -5
- package/dist/components/_form-text-fields.scss +20 -9
- package/dist/components/accordions.css +1 -1
- package/dist/components/badge.css +43 -16
- package/dist/components/buttons.css +4 -10
- package/dist/components/circle-buttons.css +5 -3
- package/dist/components/filter-buttons.css +97 -0
- package/dist/components/form-input-composite.css +13 -7
- package/dist/components/form-input-search.css +35 -5
- package/dist/components/form-text-fields.css +20 -9
- package/dist/wwt-bsds-wc-base.css +9 -0
- package/dist/wwt-bsds.css +202 -50
- package/dist/wwt-bsds.min.css +1 -1
- package/package.json +1 -1
package/dist/wwt-bsds.css
CHANGED
|
@@ -709,6 +709,14 @@ a:where(.bs-link):where(:focus:not(:focus-visible)) {
|
|
|
709
709
|
.box-shadow:where([data-variant="profile"]) {
|
|
710
710
|
box-shadow: var(--bs-shadow-profilePhoto);
|
|
711
711
|
}
|
|
712
|
+
:root {
|
|
713
|
+
/* get design sign off on these first
|
|
714
|
+
--bs-trans-color: color 100ms ease-in-out;
|
|
715
|
+
--bs-trans-outline-color: outline-color 100ms ease-in-out;
|
|
716
|
+
*/
|
|
717
|
+
|
|
718
|
+
--bs-trans-rotate180: transform 200ms ease-in-out;
|
|
719
|
+
}
|
|
712
720
|
/* Specificity should be either (0, 1, 0) (class-based) or (0, 0, 1) (element-based) for each selector */
|
|
713
721
|
.box {
|
|
714
722
|
background: var(--bg-color, var(--bs-bg-subtle));
|
|
@@ -878,7 +886,7 @@ a:where(.bs-link):where(:focus:not(:focus-visible)) {
|
|
|
878
886
|
.bs-accordion :where(header button) > :where([data-position="end"]) {
|
|
879
887
|
grid-area: end;
|
|
880
888
|
transform: rotate(0);
|
|
881
|
-
transition:
|
|
889
|
+
transition: var(--bs-trans-rotate180);
|
|
882
890
|
}
|
|
883
891
|
.bs-accordion :where(header[data-open]:not([data-open="false"])) :where([data-position="end"]) {
|
|
884
892
|
transform: rotate(180deg);
|
|
@@ -906,8 +914,11 @@ a:where(.bs-link):where(:focus:not(:focus-visible)) {
|
|
|
906
914
|
.bs-badge {
|
|
907
915
|
--badge-bg: var(--bs-red-base);
|
|
908
916
|
--badge-text: var(--bs-white);
|
|
917
|
+
display: inline-block;
|
|
909
918
|
}
|
|
910
|
-
|
|
919
|
+
/* ------ Badge wrapped around text ------ */
|
|
920
|
+
/* Badge DOT */
|
|
921
|
+
.bs-badge:where([data-position^='left'])::before,
|
|
911
922
|
.bs-badge:where(:not([data-position^='left']))::after {
|
|
912
923
|
align-items: center;
|
|
913
924
|
background: var(--badge-bg);
|
|
@@ -927,38 +938,55 @@ a:where(.bs-link):where(:focus:not(:focus-visible)) {
|
|
|
927
938
|
.bs-pill .bs-badge::after {
|
|
928
939
|
font-size: 0.8125em;
|
|
929
940
|
}
|
|
930
|
-
|
|
931
|
-
.bs-badge[data-count]
|
|
941
|
+
/* Badge COUNT */
|
|
942
|
+
.bs-badge:where([data-count][data-position^='left'])::before,
|
|
943
|
+
.bs-badge:where([data-count]:not([data-position^='left']))::after {
|
|
932
944
|
color: var(--badge-text);
|
|
933
945
|
content: attr(data-count);
|
|
934
|
-
|
|
946
|
+
height: 1rem;
|
|
935
947
|
min-width: 1rem;
|
|
936
948
|
padding: 0 4px;
|
|
937
949
|
top: -0.0625rem;
|
|
938
950
|
vertical-align: unset;
|
|
939
951
|
width: auto;
|
|
940
952
|
}
|
|
941
|
-
.bs-badge[data-count]::before
|
|
942
|
-
|
|
943
|
-
}
|
|
944
|
-
.bs-badge[data-count]::after {
|
|
945
|
-
margin-left: 0.25rem;
|
|
946
|
-
}
|
|
947
|
-
.bs-badge[data-count='0']::before,
|
|
948
|
-
.bs-badge[data-count='0']::after {
|
|
953
|
+
.bs-badge:where([data-count='0'])::before,
|
|
954
|
+
.bs-badge:where([data-count='0'])::after {
|
|
949
955
|
display: none;
|
|
950
956
|
}
|
|
951
|
-
.bs-badge[data-show-zero]:where(:not([data-show-zero="false"]))::before,
|
|
952
|
-
.bs-badge[data-show-zero]:where(:not([data-show-zero="false"]))::after {
|
|
957
|
+
.bs-badge:where([data-show-zero]):where(:not([data-show-zero="false"]))::before,
|
|
958
|
+
.bs-badge:where([data-show-zero]):where(:not([data-show-zero="false"]))::after {
|
|
953
959
|
display: inline-flex;
|
|
954
960
|
}
|
|
955
|
-
|
|
961
|
+
/* Badge SPACING against wrapped text */
|
|
962
|
+
.bs-badge::before {
|
|
963
|
+
margin-right: 0.25rem;
|
|
964
|
+
}
|
|
965
|
+
.bs-badge::after {
|
|
966
|
+
margin-left: 0.25rem;
|
|
967
|
+
}
|
|
968
|
+
/* Badge COLORS */
|
|
969
|
+
.bs-badge:where([data-badge-color^='blue']) {
|
|
956
970
|
--badge-bg: var(--bs-blue-base);
|
|
957
971
|
}
|
|
958
|
-
.bs-badge[data-badge-color^='white'] {
|
|
972
|
+
.bs-badge:where([data-badge-color^='white']) {
|
|
959
973
|
--badge-bg: var(--bs-white);
|
|
960
974
|
--badge-text: var(--bs-black);
|
|
961
975
|
}
|
|
976
|
+
/* ------ Standalone Badge (not wrapped around text) ------ */
|
|
977
|
+
.bs-badge:where([data-variant="notext"]) {
|
|
978
|
+
align-items: center;
|
|
979
|
+
display: inline-flex;
|
|
980
|
+
justify-content: center;
|
|
981
|
+
}
|
|
982
|
+
.bs-badge:where([data-variant="notext"]) {
|
|
983
|
+
line-height: 1;
|
|
984
|
+
}
|
|
985
|
+
.bs-badge:where([data-variant="notext"])::after,
|
|
986
|
+
.bs-badge:where([data-variant="notext"])::before {
|
|
987
|
+
margin: 0;
|
|
988
|
+
top: unset;
|
|
989
|
+
}
|
|
962
990
|
.bs-banner {
|
|
963
991
|
background-color: var(--bs-royal-400);
|
|
964
992
|
color: var(--bs-gray-100);
|
|
@@ -1009,7 +1037,7 @@ a:where(.bs-link):where(:focus:not(:focus-visible)) {
|
|
|
1009
1037
|
--btn-main: var(--bs-blue-base);
|
|
1010
1038
|
--btn-secondary: var(--bs-blue-medium);
|
|
1011
1039
|
--btn-highlight: var(--bs-blue-100);
|
|
1012
|
-
--btn-padding: .25rem .75rem
|
|
1040
|
+
--btn-padding: .25rem .75rem;
|
|
1013
1041
|
--btn-focus-pseudo-width: calc(100% + 0.5rem);
|
|
1014
1042
|
align-items: center;
|
|
1015
1043
|
background-color: var(--btn-main);
|
|
@@ -1020,6 +1048,7 @@ a:where(.bs-link):where(:focus:not(:focus-visible)) {
|
|
|
1020
1048
|
display: inline-flex;
|
|
1021
1049
|
font-size: var(--bs-text-md);
|
|
1022
1050
|
font-weight: 600;
|
|
1051
|
+
height: 2.5rem;
|
|
1023
1052
|
justify-content: center;
|
|
1024
1053
|
line-height: 1.5;
|
|
1025
1054
|
outline: 2px solid transparent;
|
|
@@ -1139,7 +1168,9 @@ a:where(.bs-link):where(:focus:not(:focus-visible)) {
|
|
|
1139
1168
|
}
|
|
1140
1169
|
/* Button Size */
|
|
1141
1170
|
.bs-button:where([data-size^='sm']) {
|
|
1171
|
+
--btn-padding: .25rem .75rem .375rem;
|
|
1142
1172
|
font-size: var(--bs-text-sm);
|
|
1173
|
+
height: 1.75rem;
|
|
1143
1174
|
}
|
|
1144
1175
|
.bs-button:where([data-size^='sm']):where([data-text]:not([data-text="false"])) {
|
|
1145
1176
|
font-size: var(--bs-text-base);
|
|
@@ -1163,13 +1194,6 @@ a:where(.bs-link):where(:focus:not(:focus-visible)) {
|
|
|
1163
1194
|
.bs-button:where([data-text]:not([data-text="false"]))[aria-disabled="true"] {
|
|
1164
1195
|
background-color: transparent;
|
|
1165
1196
|
}
|
|
1166
|
-
/* Icon Height */
|
|
1167
|
-
.bs-button :where(svg:not([height])) {
|
|
1168
|
-
height: var(--bs-text-base);
|
|
1169
|
-
}
|
|
1170
|
-
.bs-button:where([data-size^='sm']) :where(svg:not([height])) {
|
|
1171
|
-
height: var(--bs-text-xs);
|
|
1172
|
-
}
|
|
1173
1197
|
/* links as buttons */
|
|
1174
1198
|
a.bs-button {
|
|
1175
1199
|
align-items: center;
|
|
@@ -1216,7 +1240,7 @@ a.bs-circle-button {
|
|
|
1216
1240
|
height: calc(100% + 0.5rem);
|
|
1217
1241
|
inset: -0.25rem;
|
|
1218
1242
|
position: absolute;
|
|
1219
|
-
transition: border-color
|
|
1243
|
+
transition: border-color 125ms ease-in-out, transform 100ms ease-in-out;
|
|
1220
1244
|
width: calc(100% + 0.5rem);
|
|
1221
1245
|
}
|
|
1222
1246
|
.bs-circle-button :where(.bs-circle-button-icon) {
|
|
@@ -1269,10 +1293,12 @@ a.bs-circle-button {
|
|
|
1269
1293
|
transform-origin: center;
|
|
1270
1294
|
box-shadow: inset 0px 0px 4px 1px var(--btn-main);
|
|
1271
1295
|
}
|
|
1272
|
-
.bs-circle-button:where([data-direction="right"]):hover :where(.bs-circle-button-icon)
|
|
1296
|
+
.bs-circle-button:where([data-direction="right"]):hover :where(.bs-circle-button-icon),
|
|
1297
|
+
.bs-circle-button:where([data-direction="right"]):hover::before {
|
|
1273
1298
|
transform: translateX(.25rem);
|
|
1274
1299
|
}
|
|
1275
|
-
.bs-circle-button:where([data-direction="left"]):hover :where(.bs-circle-button-icon)
|
|
1300
|
+
.bs-circle-button:where([data-direction="left"]):hover :where(.bs-circle-button-icon),
|
|
1301
|
+
.bs-circle-button:where([data-direction="left"]):hover::before {
|
|
1276
1302
|
transform: translateX(-.25rem);
|
|
1277
1303
|
}
|
|
1278
1304
|
.bs-circle-button:where([data-ghost]:not([data-ghost="false"])):hover :where(.bs-circle-button-icon) {
|
|
@@ -1557,6 +1583,91 @@ a.bs-circle-button {
|
|
|
1557
1583
|
padding-right: 0.75rem;
|
|
1558
1584
|
}
|
|
1559
1585
|
}
|
|
1586
|
+
/*
|
|
1587
|
+
custom properties:
|
|
1588
|
+
--filterbtn-caret-size
|
|
1589
|
+
--filterbtn-caret-transform
|
|
1590
|
+
--filterbtn-color
|
|
1591
|
+
--filterbtn-focus-color
|
|
1592
|
+
--filterbtn-height
|
|
1593
|
+
--filterbtn-text-size
|
|
1594
|
+
--filterbtn-weight
|
|
1595
|
+
*/
|
|
1596
|
+
button:where(.bs-filter-button) {
|
|
1597
|
+
flex-shrink: 0;
|
|
1598
|
+
}
|
|
1599
|
+
.bs-filter-button {
|
|
1600
|
+
align-items: center;
|
|
1601
|
+
border-radius: 0.25rem;
|
|
1602
|
+
color: var(--filterbtn-color, var(--bs-ink-blue));
|
|
1603
|
+
-moz-column-gap: 0.5rem;
|
|
1604
|
+
column-gap: 0.5rem;
|
|
1605
|
+
cursor: pointer;
|
|
1606
|
+
display: inline-flex;
|
|
1607
|
+
font-size: var(--filterbtn-text-size, var(--bs-text-base));
|
|
1608
|
+
font-weight: var(--filterbtn-weight, 400);
|
|
1609
|
+
height: var(--filterbtn-height, 2rem);
|
|
1610
|
+
line-height: 1.5;
|
|
1611
|
+
outline: solid var(--filterbtn-focus-color, transparent) .125rem;
|
|
1612
|
+
outline-offset: -.125rem;
|
|
1613
|
+
padding-inline: .5rem;
|
|
1614
|
+
transition: outline-color 100ms ease-in-out;
|
|
1615
|
+
width: -moz-max-content;
|
|
1616
|
+
width: max-content;
|
|
1617
|
+
}
|
|
1618
|
+
.bs-filter-button :where(.bs-icon),
|
|
1619
|
+
.bs-filter-button :where(span:has(svg:only-child)) {
|
|
1620
|
+
display: block;
|
|
1621
|
+
height: var(--filterbtn-caret-size, 1rem);
|
|
1622
|
+
line-height: 1;
|
|
1623
|
+
transform: var(--filterbtn-caret-transform, rotate(0deg));
|
|
1624
|
+
transform-origin: center;
|
|
1625
|
+
transition: var(--bs-trans-rotate180);
|
|
1626
|
+
width: var(--filterbtn-caret-size, 1rem);
|
|
1627
|
+
}
|
|
1628
|
+
.bs-filter-button:where([data-size="sm"],[data-size="xs"]) {
|
|
1629
|
+
--filterbtn-height: 1.75rem;
|
|
1630
|
+
--filterbtn-text-size: var(--bs-text-sm);
|
|
1631
|
+
--filterbtn-caret-size: .75rem;
|
|
1632
|
+
}
|
|
1633
|
+
.bs-filter-button:where([data-size="sm"]) {
|
|
1634
|
+
--filterbtn-text-size: var(--bs-text-sm);
|
|
1635
|
+
}
|
|
1636
|
+
.bs-filter-button:where([data-size="xs"]) {
|
|
1637
|
+
--filterbtn-text-size: var(--bs-text-xs);
|
|
1638
|
+
--filterbtn-weight: 600;
|
|
1639
|
+
}
|
|
1640
|
+
/* Hover state */
|
|
1641
|
+
.bs-filter-button:hover {
|
|
1642
|
+
--filterbtn-color: var(--bs-blue-base);
|
|
1643
|
+
}
|
|
1644
|
+
/* Focus state */
|
|
1645
|
+
.bs-filter-button:where(:focus-visible) {
|
|
1646
|
+
--filterbtn-focus-color: var(--bs-blue-base);
|
|
1647
|
+
}
|
|
1648
|
+
/* Filter open state */
|
|
1649
|
+
.bs-filter-button:where([aria-expanded="true"],[data-open="true"]) {
|
|
1650
|
+
--filterbtn-caret-transform: rotate(180deg);
|
|
1651
|
+
}
|
|
1652
|
+
/* Badge non-standard color */
|
|
1653
|
+
.bs-filter-button :where(.bs-badge) {
|
|
1654
|
+
--badge-bg: var(--bs-ink-blue);
|
|
1655
|
+
}
|
|
1656
|
+
:where(.dark) .bs-filter-button :where(.bs-badge) {
|
|
1657
|
+
--badge-bg: var(--bs-blue-medium);
|
|
1658
|
+
}
|
|
1659
|
+
.bs-filter-button:hover :where(.bs-badge) {
|
|
1660
|
+
--badge-bg: var(--filterbtn-color);
|
|
1661
|
+
}
|
|
1662
|
+
/* Disabled state */
|
|
1663
|
+
.bs-filter-button:where(:disabled) {
|
|
1664
|
+
--filterbtn-color: var(--bs-ink-disabled);
|
|
1665
|
+
cursor: default;
|
|
1666
|
+
}
|
|
1667
|
+
.bs-filter-button:where(:disabled) :where(.bs-badge) {
|
|
1668
|
+
--badge-bg: var(--bs-bg-disabled);
|
|
1669
|
+
--badge-text: var(--bs-ink-disabled);
|
|
1670
|
+
}
|
|
1560
1671
|
:where(label, legend),
|
|
1561
1672
|
label:where(.bs-label) {
|
|
1562
1673
|
display: inline-block;
|
|
@@ -1618,28 +1729,37 @@ label:where(.bs-label) {
|
|
|
1618
1729
|
:where(label + select, label > select) {
|
|
1619
1730
|
margin-top: 0.25rem;
|
|
1620
1731
|
}
|
|
1732
|
+
/*
|
|
1733
|
+
Custom properties:
|
|
1734
|
+
--input-bg (background color)
|
|
1735
|
+
--input-border (border color)
|
|
1736
|
+
--input-border-width (border width)
|
|
1737
|
+
--input-caret (caret color)
|
|
1738
|
+
--input-padding-block (padding block)
|
|
1739
|
+
--input-padding-inline (padding inline)
|
|
1740
|
+
--input-placeholder (placeholder color)
|
|
1741
|
+
--input-text-size (font size)
|
|
1742
|
+
*/
|
|
1621
1743
|
input:where(:not([type='checkbox'], [type='radio'], [type='file'], [type='range'])),
|
|
1622
1744
|
textarea,
|
|
1623
1745
|
select,
|
|
1624
1746
|
:is(.bs-input, .bs-select, .bs-textarea) {
|
|
1625
|
-
--input-bg: var(--bs-bg-base);
|
|
1626
|
-
--input-border: var(--bs-violet-medium);
|
|
1627
1747
|
-webkit-appearance: none;
|
|
1628
1748
|
-moz-appearance: none;
|
|
1629
1749
|
appearance: none;
|
|
1630
|
-
background-color: var(--input-bg);
|
|
1631
|
-
border-color: var(--input-border);
|
|
1750
|
+
background-color: var(--input-bg, var(--bs-bg-base));
|
|
1751
|
+
border-color: var(--input-border, var(--bs-violet-medium));
|
|
1632
1752
|
border-radius: 0.25rem;
|
|
1633
1753
|
border-style: solid;
|
|
1634
1754
|
border-width: var(--input-border-width, 1px);
|
|
1635
|
-
caret-color: var(--bs-blue-base);
|
|
1755
|
+
caret-color: var(--input-caret, var(--bs-blue-base));
|
|
1636
1756
|
color: var(--bs-ink-base);
|
|
1637
|
-
font-size: var(--bs-text-base);
|
|
1757
|
+
font-size: var(--input-text-size, var(--bs-text-base));
|
|
1638
1758
|
font-weight: 400;
|
|
1639
1759
|
height: 2.5rem;
|
|
1640
1760
|
line-height: var(--bs-leading-base);
|
|
1641
|
-
|
|
1642
|
-
padding-inline: 0.75rem;
|
|
1761
|
+
padding-block: var(--input-padding-block, 0.0625rem);
|
|
1762
|
+
padding-inline: var(--input-padding-inline, 0.75rem);
|
|
1643
1763
|
}
|
|
1644
1764
|
input:where(:not([type='checkbox'], [type='radio'], [type='file'], [type='range'])),
|
|
1645
1765
|
textarea,
|
|
@@ -1659,11 +1779,11 @@ textarea {
|
|
|
1659
1779
|
resize: vertical;
|
|
1660
1780
|
}
|
|
1661
1781
|
:is(input, textarea, select)::-moz-placeholder, :is(.bs-input, .bs-select, .bs-textarea)::-moz-placeholder {
|
|
1662
|
-
color: var(--bs-violet-lightest);
|
|
1782
|
+
color: var(--input-placeholder, var(--bs-violet-lightest));
|
|
1663
1783
|
}
|
|
1664
1784
|
:is(input, textarea, select)::placeholder,
|
|
1665
1785
|
:is(.bs-input, .bs-select, .bs-textarea)::placeholder {
|
|
1666
|
-
color: var(--bs-violet-lightest);
|
|
1786
|
+
color: var(--input-placeholder, var(--bs-violet-lightest));
|
|
1667
1787
|
}
|
|
1668
1788
|
:is(input, textarea, select):where(:focus-visible)::-moz-placeholder, :is(.bs-input, .bs-select, .bs-textarea):where(:focus-visible)::-moz-placeholder {
|
|
1669
1789
|
opacity: 0;
|
|
@@ -1675,6 +1795,7 @@ textarea {
|
|
|
1675
1795
|
:is(input:where(:not([type='checkbox'], [type='radio'])), textarea, select):where(:focus-visible),
|
|
1676
1796
|
:is(.bs-input, .bs-select, .bs-textarea):where(:focus-visible) {
|
|
1677
1797
|
--input-border: var(--bs-blue-base);
|
|
1798
|
+
outline-style: none;
|
|
1678
1799
|
outline-width: 0px;
|
|
1679
1800
|
}
|
|
1680
1801
|
:is(input:where(:not([type='checkbox'],[type='radio'])), textarea, select):where(:disabled),
|
|
@@ -1743,7 +1864,7 @@ select,
|
|
|
1743
1864
|
border-radius: .25rem;
|
|
1744
1865
|
color: var(--bs-ink-base);
|
|
1745
1866
|
display: flex;
|
|
1746
|
-
height: 2.5rem;
|
|
1867
|
+
height: var(--input-addon-height, 2.5rem);
|
|
1747
1868
|
overflow: hidden;
|
|
1748
1869
|
padding: 0;
|
|
1749
1870
|
pointer-events: none;
|
|
@@ -1781,7 +1902,7 @@ and issues with box-sizing
|
|
|
1781
1902
|
flex-shrink: 0;
|
|
1782
1903
|
position: relative;
|
|
1783
1904
|
}
|
|
1784
|
-
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"]), .bs-input-addon, bs-input) {
|
|
1905
|
+
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"]), .bs-input-addon, bs-input, .bs-input) {
|
|
1785
1906
|
flex-grow: 1;
|
|
1786
1907
|
flex-shrink: 1;
|
|
1787
1908
|
}
|
|
@@ -1800,6 +1921,7 @@ and issues with box-sizing
|
|
|
1800
1921
|
.bs-input-addon > *,
|
|
1801
1922
|
.bs-input-addon :where(input, select),
|
|
1802
1923
|
.bs-input-addon :is(bs-input, bs-select) :where(input, select),
|
|
1924
|
+
.bs-input-addon :is(input, select):where(.bs-input, .bs-select),
|
|
1803
1925
|
.bs-input-addon :where(.bs-input-addon) {
|
|
1804
1926
|
--input-border: transparent;
|
|
1805
1927
|
--input-border-width: 0px;
|
|
@@ -1807,9 +1929,11 @@ and issues with box-sizing
|
|
|
1807
1929
|
.bs-input-addon {
|
|
1808
1930
|
--input-addon-nested-border: transparent;
|
|
1809
1931
|
}
|
|
1810
|
-
.bs-input-addon :where(:focus-within) :where(input, select),
|
|
1932
|
+
.bs-input-addon :where(:focus-within) :where(input, select, button),
|
|
1811
1933
|
.bs-input-addon :where(:focus-within) :is(bs-input, bs-select) :where(input, select),
|
|
1812
|
-
.bs-input-addon :where(input, select):where(
|
|
1934
|
+
.bs-input-addon :where(:focus-within) :is(input, select, button):where(.bs-input, .bs-select),
|
|
1935
|
+
.bs-input-addon :where(input, select, button):where(:focus, :focus-within, :focus-visible),
|
|
1936
|
+
.bs-input-addon :is(input, select):where(.bs-input, .bs-select):where(:focus, :focus-within, :focus-visible),
|
|
1813
1937
|
.bs-input-addon :is(bs-input, bs-select) :where(input, select):where(:focus, :focus-within, :focus-visible) {
|
|
1814
1938
|
--input-border: transparent;
|
|
1815
1939
|
box-shadow: none;
|
|
@@ -1854,6 +1978,7 @@ and issues with box-sizing
|
|
|
1854
1978
|
.bs-input-addon:where(:not([data-multifocus]):focus-within),
|
|
1855
1979
|
.bs-input-addon:where([data-multifocus="false"]:focus-within),
|
|
1856
1980
|
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) :where(input, select):where(:focus, :focus-within, :focus-visible),
|
|
1981
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) :is(input, select):where(.bs-input, .bs-select):where(:focus, :focus-within, :focus-visible),
|
|
1857
1982
|
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) :is(bs-input, bs-select) :where(input, select):where(:focus, :focus-within, :focus-visible) {
|
|
1858
1983
|
--input-border: var(--focus-border);
|
|
1859
1984
|
position: relative;
|
|
@@ -1866,11 +1991,13 @@ and issues with box-sizing
|
|
|
1866
1991
|
.bs-input-addon :where(.bs-input-addon:focus-within)::after {
|
|
1867
1992
|
z-index: 1;
|
|
1868
1993
|
}
|
|
1869
|
-
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) > :where(:not(.bs-input-addon)) > :where(input:focus, select:focus),
|
|
1994
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) > :where(:not(.bs-input-addon)) > :where(input:focus, select:focus, button:focus),
|
|
1995
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) > :is(input, select):where(.bs-input, .bs-select):where(:focus),
|
|
1870
1996
|
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) > :is(bs-input, bs-select) :where(input:focus, select:focus),
|
|
1871
|
-
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) > :where(input:focus, select:focus) {
|
|
1997
|
+
.bs-input-addon:where([data-multifocus]:not([data-multifocus="false"])) > :where(input:focus, select:focus, button:focus) {
|
|
1872
1998
|
border-radius: .25rem;
|
|
1873
1999
|
box-shadow: var(--focus-border) 0px 0px 0px 1px inset;
|
|
2000
|
+
z-index: 1;
|
|
1874
2001
|
}
|
|
1875
2002
|
.bs-input-addon:where(:not([data-multifocus]):focus-within)::after,
|
|
1876
2003
|
.bs-input-addon:where([data-multifocus="false"]:focus-within)::after {
|
|
@@ -1891,7 +2018,7 @@ and issues with box-sizing
|
|
|
1891
2018
|
}
|
|
1892
2019
|
/* -------- Disabled styles -------- */
|
|
1893
2020
|
.bs-input-addon:where([data-disabled]:not([data-disabled="false"])),
|
|
1894
|
-
.bs-input-addon:where([data-disabled]:not([data-disabled="false"]))
|
|
2021
|
+
.bs-input-addon:where([data-disabled]:not([data-disabled="false"])) .bs-button {
|
|
1895
2022
|
--input-bg: var(--bs-gray-200);
|
|
1896
2023
|
--input-border: var(--bs-gray-400);
|
|
1897
2024
|
color: var(--bs-gray-400);
|
|
@@ -1920,11 +2047,12 @@ and issues with box-sizing
|
|
|
1920
2047
|
.bs-input-search :where(.bs-icon svg) {
|
|
1921
2048
|
box-sizing: content-box;
|
|
1922
2049
|
}
|
|
1923
|
-
.bs-input-search
|
|
1924
|
-
--icon-size: 1.75rem;
|
|
1925
|
-
padding
|
|
2050
|
+
.bs-input-search :where([data-component="bs-icon-search"]) {
|
|
2051
|
+
--icon-size: var(--search-icon-size, 1.75rem);
|
|
2052
|
+
padding: var(--search-icon-padding, 0 0 0 .75rem);
|
|
1926
2053
|
}
|
|
1927
|
-
|
|
2054
|
+
/* Clear Button */
|
|
2055
|
+
.bs-input-search button {
|
|
1928
2056
|
align-items: center;
|
|
1929
2057
|
background-color: transparent;
|
|
1930
2058
|
cursor: pointer;
|
|
@@ -1934,11 +2062,35 @@ and issues with box-sizing
|
|
|
1934
2062
|
padding-right: 0.75rem;
|
|
1935
2063
|
transition: transform 100ms ease-in-out;
|
|
1936
2064
|
}
|
|
1937
|
-
.bs-input-search
|
|
2065
|
+
.bs-input-search button:where(:active) {
|
|
1938
2066
|
transform: scale(0.97);
|
|
1939
2067
|
transform-origin: center;
|
|
1940
2068
|
box-shadow: inset 0px 0px 4px 1px var(--bs-blue-base);
|
|
1941
2069
|
}
|
|
2070
|
+
.bs-input-search button:where(:focus) {
|
|
2071
|
+
border-radius: .25rem;
|
|
2072
|
+
box-shadow: var(--focus-border) 0px 0px 0px 1px inset;
|
|
2073
|
+
z-index: 1;
|
|
2074
|
+
}
|
|
2075
|
+
/* Filter variant */
|
|
2076
|
+
.bs-input-search:where([data-variant="filter"]) {
|
|
2077
|
+
--focus-border: transparent;
|
|
2078
|
+
--input-border: transparent;
|
|
2079
|
+
--input-addon-height: 1.5rem;
|
|
2080
|
+
--input-caret: var(--bs-blue-base);
|
|
2081
|
+
--input-padding-block: 0 0.125rem;
|
|
2082
|
+
--input-padding-inline: 0.5rem;
|
|
2083
|
+
--input-placeholder: var(--bs-ink-light);
|
|
2084
|
+
--input-text-size: var(--bs-text-sm);
|
|
2085
|
+
--search-icon-size: 1rem;
|
|
2086
|
+
--search-icon-padding: 0;
|
|
2087
|
+
}
|
|
2088
|
+
/* -------- Disabled styles -------- */
|
|
2089
|
+
.bs-input-addon:where([data-variant="filter"][data-disabled="true"]),
|
|
2090
|
+
.bs-input-addon:where([data-variant="filter"][data-disabled="true"]) :is(.bs-button, .bs-input) {
|
|
2091
|
+
--input-bg: var(--bs-bg-base);
|
|
2092
|
+
--input-border: transparent;
|
|
2093
|
+
}
|
|
1942
2094
|
.bs-field-details {
|
|
1943
2095
|
display: flex;
|
|
1944
2096
|
justify-content: space-between;
|