@wwtdev/bsds-css 2.29.0 → 3.0.0-rc.21

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.
Files changed (94) hide show
  1. package/README.md +4 -4
  2. package/dist/wwt-bsds-preset.js +196 -68
  3. package/dist/wwt-bsds.css +2182 -1460
  4. package/dist/wwt-bsds.min.css +1 -1
  5. package/package.json +7 -11
  6. package/dist/components/_accordions.scss +0 -122
  7. package/dist/components/_alert.scss +0 -143
  8. package/dist/components/_badge.scss +0 -95
  9. package/dist/components/_banner.scss +0 -68
  10. package/dist/components/_buttons.scss +0 -289
  11. package/dist/components/_chart.scss +0 -169
  12. package/dist/components/_circle-buttons.scss +0 -231
  13. package/dist/components/_dropdown-options.scss +0 -236
  14. package/dist/components/_dropdown.scss +0 -189
  15. package/dist/components/_empty-state.scss +0 -99
  16. package/dist/components/_filter-buttons.scss +0 -116
  17. package/dist/components/_flyout.scss +0 -75
  18. package/dist/components/_form-booleans.scss +0 -182
  19. package/dist/components/_form-character-count.scss +0 -21
  20. package/dist/components/_form-container.scss +0 -111
  21. package/dist/components/_form-elements.scss +0 -40
  22. package/dist/components/_form-field-details.scss +0 -19
  23. package/dist/components/_form-hints.scss +0 -22
  24. package/dist/components/_form-input-composite.scss +0 -312
  25. package/dist/components/_form-input-phone.scss +0 -21
  26. package/dist/components/_form-input-search.scss +0 -74
  27. package/dist/components/_form-labels.scss +0 -40
  28. package/dist/components/_form-switches.scss +0 -154
  29. package/dist/components/_form-text-fields.scss +0 -205
  30. package/dist/components/_horizontal-navigation-mobile.scss +0 -238
  31. package/dist/components/_horizontal-navigation.scss +0 -220
  32. package/dist/components/_inline-tabs.scss +0 -86
  33. package/dist/components/_loader.scss +0 -105
  34. package/dist/components/_modal.scss +0 -185
  35. package/dist/components/_overlay.scss +0 -34
  36. package/dist/components/_pagination.scss +0 -85
  37. package/dist/components/_pills.scss +0 -216
  38. package/dist/components/_profile-details.scss +0 -44
  39. package/dist/components/_profile-img.scss +0 -73
  40. package/dist/components/_profile-layout.scss +0 -29
  41. package/dist/components/_spinner.scss +0 -95
  42. package/dist/components/_tab-list.scss +0 -151
  43. package/dist/components/_table.scss +0 -331
  44. package/dist/components/_tables.scss +0 -84
  45. package/dist/components/_timeline.scss +0 -122
  46. package/dist/components/_toast.scss +0 -149
  47. package/dist/components/_toaster.scss +0 -27
  48. package/dist/components/_tooltip.scss +0 -183
  49. package/dist/components/_vertical-navigation.scss +0 -280
  50. package/dist/components/accordions.css +0 -118
  51. package/dist/components/alert.css +0 -139
  52. package/dist/components/badge.css +0 -91
  53. package/dist/components/banner.css +0 -64
  54. package/dist/components/buttons.css +0 -285
  55. package/dist/components/chart.css +0 -165
  56. package/dist/components/circle-buttons.css +0 -227
  57. package/dist/components/dropdown-options.css +0 -232
  58. package/dist/components/dropdown.css +0 -185
  59. package/dist/components/empty-state.css +0 -95
  60. package/dist/components/filter-buttons.css +0 -112
  61. package/dist/components/flyout.css +0 -71
  62. package/dist/components/form-booleans.css +0 -178
  63. package/dist/components/form-character-count.css +0 -17
  64. package/dist/components/form-container.css +0 -108
  65. package/dist/components/form-elements.css +0 -36
  66. package/dist/components/form-field-details.css +0 -15
  67. package/dist/components/form-hints.css +0 -18
  68. package/dist/components/form-input-composite.css +0 -308
  69. package/dist/components/form-input-phone.css +0 -17
  70. package/dist/components/form-input-search.css +0 -70
  71. package/dist/components/form-labels.css +0 -36
  72. package/dist/components/form-switches.css +0 -150
  73. package/dist/components/form-text-fields.css +0 -201
  74. package/dist/components/horizontal-navigation-mobile.css +0 -234
  75. package/dist/components/horizontal-navigation.css +0 -216
  76. package/dist/components/inline-tabs.css +0 -83
  77. package/dist/components/loader.css +0 -101
  78. package/dist/components/modal.css +0 -181
  79. package/dist/components/overlay.css +0 -30
  80. package/dist/components/pagination.css +0 -81
  81. package/dist/components/pills.css +0 -212
  82. package/dist/components/profile-details.css +0 -40
  83. package/dist/components/profile-img.css +0 -69
  84. package/dist/components/profile-layout.css +0 -25
  85. package/dist/components/spinner.css +0 -91
  86. package/dist/components/tab-list.css +0 -147
  87. package/dist/components/table.css +0 -327
  88. package/dist/components/tables.css +0 -80
  89. package/dist/components/timeline.css +0 -118
  90. package/dist/components/toast.css +0 -145
  91. package/dist/components/toaster.css +0 -23
  92. package/dist/components/tooltip.css +0 -179
  93. package/dist/components/vertical-navigation.css +0 -276
  94. package/dist/wwt-bsds-wc-base.css +0 -1129
@@ -1,212 +0,0 @@
1
- .bs-pill {
2
- --pill-background: var(--bs-bg-medium);
3
- --pill-border: transparent;
4
- --pill-text: #162FB4; /* one-off component-specific */
5
- --pill-gap: var(--bs-space-2);
6
-
7
- align-items: center;
8
- appearance: none;
9
- background-color: var(--pill-background);
10
- border: 1px solid var(--pill-border);
11
- border-radius: 4px;
12
- color: var(--pill-text);
13
- display: inline-flex;
14
- font-size: var(--bs-text-xs);
15
- height: 1.5rem;
16
- gap: var(--pill-gap);
17
- line-height: 1rem;
18
- padding: 0 .375rem;
19
- text-decoration: none;
20
- }
21
-
22
- :where(.bs-pill .bs-icon) {
23
- height: 1rem;
24
- width: 1rem;
25
- }
26
-
27
- /* ------------------------------- Dark mode (basic & status types only) ------------------------------- */
28
- :where(.dark) .bs-pill {
29
- --pill-text: #7585D1;
30
- }
31
-
32
- /* ------------------------------ Auto-truncation for content ------------------------------ */
33
- .bs-pill:has([data-truncate="true"]) {
34
- max-width: 100%;
35
- }
36
- .bs-pill > :where([data-truncate="true"]) {
37
- display: inline-block;
38
- overflow: hidden;
39
- text-overflow: ellipsis;
40
- white-space: nowrap;
41
- }
42
-
43
- /* If false, pass thru .bs-pill display styles */
44
- .bs-pill > :where([data-truncate="false"]) {
45
- display: inline-flex;
46
- align-items: center;
47
- gap: var(--pill-gap);
48
- }
49
-
50
- /* ------------------------------ Button and Link Styles ------------------------------ */
51
- :is(a, button).bs-pill {
52
- color: var(--pill-text);
53
- cursor: pointer;
54
- transition: all 0.15s ease-in-out;
55
- }
56
- :is(a, button).bs-pill:is(:hover, :focus) {
57
- --pill-border: var(--bs-royal-base);
58
-
59
- color: var(--pill-text);
60
- outline: transparent;
61
- }
62
-
63
- /* ------------------------------ Background Colors ------------------------------ */
64
- :where(.box[data-invert]) .bs-pill {
65
- --pill-background: var(--bs-bg-invert-to-base-subtle);
66
- --pill-text: var(--bs-gray-100);
67
- }
68
- :where(.box[data-invert]) :is(a, button).bs-pill:is(:hover, :focus) {
69
- --pill-border: var(--bs-gray-100);
70
- }
71
- :where(.dark .box[data-invert]) .bs-pill {
72
- --pill-text: var(--bs-royal-400);
73
- }
74
- :where(.dark .box[data-invert]) :is(a, button).bs-pill:is(:hover, :focus) {
75
- --pill-border: var(--bs-royal-400);
76
- }
77
-
78
- /* ------------------ Generally Applicable ::Before Styles ------------------ */
79
- .bs-pill::before {
80
- flex-shrink: 0;
81
- }
82
-
83
- /* ------------------------------ Status Styles ------------------------------ */
84
- .bs-pill:where([data-status]) {
85
- --status-color: var(--bs-blue-base);
86
- }
87
- .bs-pill:where([data-status])::before {
88
- background-color: var(--status-color);
89
- border-radius: 100%;
90
- content: '';
91
- height: 12px;
92
- width: 12px;
93
- }
94
-
95
- /* ----- Status Colors ----- */
96
- .bs-pill:where([data-status^="active"]) {
97
- --status-color: var(--bs-blue-base);
98
- }
99
- .bs-pill:where([data-status^="complete"]) {
100
- --status-color: var(--bs-purple-400);
101
- }
102
- .bs-pill:where([data-status^="disabled"]) {
103
- --status-color: var(--bs-gray-300);
104
- }
105
- .bs-pill:where([data-status^="error"]) {
106
- --status-color: var(--bs-red-400);
107
- }
108
- .bs-pill:where([data-status^="positive"]) {
109
- --status-color: #16986D;
110
- }
111
- .bs-pill:where([data-status^="warning"]) {
112
- --status-color: var(--bs-orange-warning);
113
- }
114
- /* Deprecated; use "data-status disabled" instead */
115
- .bs-pill:where([data-status^="inactive"]) {
116
- --status-color: var(--bs-gray-300);
117
- }
118
-
119
- /* ------------------------------ Filter Styles ------------------------------ */
120
- .bs-pill:where([data-variant^="filter"]) {
121
- --pill-background: var(--bs-bg-base);
122
- --pill-border: var(--bs-border-base);
123
- --pill-text: var(--bs-ink-base);
124
- }
125
- .bs-pill:where([data-variant^="filter"]):is(:hover, :focus) {
126
- --pill-border: var(--bs-border-base);
127
- }
128
- :is(a, button).bs-pill:where([data-variant^="filter"]):is(:hover, :focus) {
129
- --pill-border: var(--bs-ink-base);
130
- }
131
-
132
- /* ------------------------------ Variant: "Filter Add" Styles ------------------------------ */
133
- /* Black + */
134
- .bs-pill:where([data-variant^="filter"][data-variant*="add"])::after {
135
- content: url("data:image/svg+xml,%3Csvg width='8' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.5 4.5V8h1V4.5H8v-1H4.5V0h-1v3.5H0v1h3.5Z' fill='%230A0B19'/%3E%3C/svg%3E");
136
- }
137
- /* White + */
138
- :where(.dark) .bs-pill:where([data-variant^="filter"][data-variant*="add"]):not(:disabled, [aria-disabled="true"])::after{
139
- content: url("data:image/svg+xml,%3Csvg width='8' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.5 4.5V8h1V4.5H8v-1H4.5V0h-1v3.5H0v1h3.5Z' fill='%23ffffff'/%3E%3C/svg%3E");
140
- }
141
-
142
-
143
- /* ------------------------------ Variant: "Filter Remove" Styles ------------------------------ */
144
- /* Black X */
145
- .bs-pill:where([data-variant^="filter"][data-variant*="remove"])::after {
146
- content: url("data:image/svg+xml,%3Csvg width='8' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 .703 7.297 0 4 3.297.703 0 0 .703 3.297 4 0 7.297.703 8 4 4.703 7.297 8 8 7.297 4.703 4 8 .703Z' fill='%230A0B19'/%3E%3C/svg%3E%0A");
147
- }
148
- /* White X */
149
- :where(.dark) .bs-pill:where([data-variant^="filter"][data-variant*="remove"]):not(:disabled, [aria-disabled="true"])::after {
150
- content: url("data:image/svg+xml,%3Csvg width='8' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 .703 7.297 0 4 3.297.703 0 0 .703 3.297 4 0 7.297.703 8 4 4.703 7.297 8 8 7.297 4.703 4 8 .703Z' fill='%23ffffff'/%3E%3C/svg%3E%0A");
151
- }
152
-
153
- /* ------------------------------ Variant: "Filter Active" Styles ------------------------------ */
154
- .bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])) {
155
- --pill-background: var(--bs-blue-base);
156
- --pill-border: transparent;
157
- --pill-text: var(--bs-white);
158
- }
159
- .bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])):is(:hover, :focus) {
160
- --pill-border: transparent;
161
- }
162
- :is(a, button).bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])):is(:hover, :focus) {
163
- --pill-background: var(--bs-blue-500);
164
- --pill-border: transparent;
165
- }
166
- /* White X */
167
- .bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"]))::after {
168
- content: url("data:image/svg+xml,%3Csvg width='8' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 .703 7.297 0 4 3.297.703 0 0 .703 3.297 4 0 7.297.703 8 4 4.703 7.297 8 8 7.297 4.703 4 8 .703Z' fill='%23fff'/%3E%3C/svg%3E");
169
- }
170
- /* Black X */
171
- .bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])):where(:disabled, [aria-disabled="true"])::after {
172
- content: url("data:image/svg+xml,%3Csvg width='8' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 .703 7.297 0 4 3.297.703 0 0 .703 3.297 4 0 7.297.703 8 4 4.703 7.297 8 8 7.297 4.703 4 8 .703Z' fill='%230A0B19'/%3E%3C/svg%3E%0A");
173
- }
174
-
175
- /* ------------------------------ Variant: "Live Now" Styles ------------------------------ */
176
- .bs-pill:where([data-variant^="live"]) {
177
- --pill-background: var(--bs-plum-base);
178
- --pill-text: var(--bs-white);
179
- --pill-gap: var(--bs-space-1);
180
- text-transform: uppercase;
181
- }
182
- .bs-pill:where([data-variant^="live"]):hover {
183
- --pill-border: transparent;
184
- }
185
- .bs-pill:where([data-variant^="live"])::before {
186
- background-color: var(--bs-red-400);
187
- border: 3px solid var(--bs-white);
188
- border-radius: 100%;
189
- content: '';
190
- height: 12px;
191
- width: 12px;
192
- }
193
-
194
- /* ------------------------------ Variant: "Inactive" Styles ------------------------------ */
195
- .bs-pill:where([data-variant^="inactive"]) {
196
- --pill-background: var(--bs-gray-base);
197
- --pill-text: var(--bs-ink-invert);
198
- }
199
-
200
-
201
- /* ------------------------------ Disabled Styles ------------------------------ */
202
- /* ----- Not to be confused with data-status="disabled" or variant "inactive". These are for link/button/filter pills. ----- */
203
- .bs-pill:is(:disabled, [aria-disabled="true"]) {
204
- pointer-events: none;
205
- color: var(--bs-ink-disabled);
206
- background-color: var(--bs-bg-disabled);
207
- }
208
-
209
- .bs-pill:where([data-variant^="filter"]):not([data-active]):is(:disabled, [aria-disabled="true"]),
210
- .bs-pill:where([data-variant^="filter"])[data-active="false"]:is(:disabled, [aria-disabled="true"]) {
211
- --pill-border: var(--bs-gray-400);
212
- }
@@ -1,40 +0,0 @@
1
- .bs-profile-details {
2
- color: var(--bs-ink-light);
3
- font-size: var(--bs-text-sm);
4
- line-height: 1.3;
5
- }
6
-
7
- .bs-profile-details > :where(*) {
8
- display: block;
9
- }
10
-
11
- .bs-profile-details > :where(.bs-profile-name) {
12
- color: var(--profile-name-color, var(--bs-ink-base));
13
- text-decoration: var(--profile-name-decoration, none);
14
- }
15
-
16
- /* Action button aka Follow toggle. */
17
- .bs-profile-details > :where(button:first-child) {
18
- color: var(--profile-action-color, var(--bs-orange-warning));
19
- font-size: inherit;
20
- }
21
- .bs-profile-details > :where(button:first-child:hover) {
22
- text-decoration: underline;
23
- }
24
- /* Remove the profile name underline when hovering on the action button. */
25
- .bs-profile-details:has(:where(button:first-child:hover)) {
26
- --profile-name-decoration: none;
27
- }
28
-
29
- /* Action button and optional meta details w/ icon */
30
- .bs-profile-details > :where([data-icon]) {
31
- align-items: center;
32
- column-gap: 0.5rem;
33
- cursor: pointer;
34
- display: flex;
35
- font-size: inherit;
36
- }
37
- .bs-profile-details .bs-icon {
38
- height: .75rem;
39
- width: .75rem;
40
- }
@@ -1,69 +0,0 @@
1
- .bs-profile-img,
2
- .bs-profile-img:where([data-img-size^='sm']) {
3
- --profile-size: 2rem;
4
- --profile-text: 0.8125rem;
5
-
6
- aspect-ratio: 1/1;
7
- border-radius: 50%;
8
- height: var(--profile-size);
9
- overflow: hidden;
10
- position: relative;
11
- width: var(--profile-size);
12
- }
13
-
14
- .bs-profile-img :where(img) {
15
- height: 100%;
16
- object-fit: cover;
17
- width: 100%;
18
- }
19
- .bs-profile-img:where([data-no-img]:not([data-no-img="false"])) img {
20
- display: none;
21
- }
22
-
23
- .bs-profile-img::before,
24
- .bs-profile-img::after {
25
- border-radius: 50%;
26
- border-collapse: collapse;
27
- height: 100%;
28
- inset: 0;
29
- position: absolute;
30
- width: 100%;
31
- }
32
- /* Shadow */
33
- .bs-profile-img::before {
34
- box-shadow: var(--bs-shadow-profilePhoto);
35
- content: '';
36
- }
37
- .bs-profile-img:where([data-no-img]:not([data-no-img="false"]))::before {
38
- display: none;
39
- }
40
- /* Initials */
41
- .bs-profile-img:where([data-no-img]:not([data-no-img="false"]))::after {
42
- align-items: center;
43
- border: 1px solid currentColor;
44
- color: var(--bs-blue-500);
45
- content: attr(data-initials);
46
- display: flex;
47
- font-size: var(--profile-text);
48
- justify-content: center;
49
- text-transform: uppercase;
50
- line-height: 1;
51
- }
52
-
53
- /* Profile Sizes */
54
- .bs-profile-img:where([data-img-size^='xs']) {
55
- --profile-size: 1.5rem;
56
- --profile-text: 0.625rem;
57
- }
58
- .bs-profile-img:where([data-img-size^='md']) {
59
- --profile-size: 3rem;
60
- --profile-text: var(--bs-text-md);
61
- }
62
- .bs-profile-img:where([data-img-size^='lg']) {
63
- --profile-size: 4rem;
64
- --profile-text: var(--bs-text-lg);
65
- }
66
- .bs-profile-img:where([data-img-size^='xl']) {
67
- --profile-size: 5.75rem;
68
- --profile-text: var(--bs-text-2xl);
69
- }
@@ -1,25 +0,0 @@
1
- /* Profile with User Details */
2
- .bs-profile:where([data-layout]),
3
- .bs-profile:where([data-layout^='vertical']) {
4
- display: grid;
5
- row-gap: 0.5rem;
6
- }
7
-
8
- .bs-profile:where([data-layout^='horizontal']) {
9
- column-gap: 1rem;
10
- grid-template-columns: auto 1fr;
11
- align-items: center;
12
- }
13
-
14
- /* When wrapped in a link */
15
- a.bs-profile:where([data-layout]) {
16
- text-decoration: none;
17
- }
18
-
19
- a.bs-profile:where([data-layout]) {
20
- --profile-name-color: var(--bs-ink-blue);
21
- }
22
-
23
- a.bs-profile:where([data-layout]):hover {
24
- --profile-name-decoration: underline;
25
- }
@@ -1,91 +0,0 @@
1
- :where(.bs-spinner) {
2
- display: block;
3
- }
4
-
5
- /* ------------ Sizes ------------ */
6
- .bs-spinner {
7
- aspect-ratio: 1;
8
- fill: none;
9
- height: var(--spinner-size, 2rem);
10
- width: var(--spinner-size, 2rem);
11
- }
12
-
13
- .bs-spinner:where([data-size="sm"]) {
14
- --spinner-size: 1rem;
15
- }
16
-
17
- .bs-spinner:where([data-size="md"]) {
18
- --spinner-size: 2rem;
19
- }
20
-
21
- .bs-spinner:where([data-size="lg"]) {
22
- --spinner-size: 3rem;
23
- }
24
-
25
- /* ------------ Color Variants ------------ */
26
-
27
- .bs-spinner :where(circle) {
28
- animation: bs-spin 1s linear infinite;
29
- stroke-linecap: round;
30
- stroke-width: 10%;
31
- transition: all 1s ease-in-out;
32
- }
33
-
34
- .bs-spinner:where(:not([data-variant="gradient"])) :where(circle) {
35
- animation: bs-spin 1s linear infinite, bs-stroke-change 2s linear infinite;
36
- }
37
-
38
- .bs-spinner :where(circle) {
39
- --bs-spinner-color-1: var(--bs-blue-400);
40
- --bs-spinner-color-2: var(--bs-blue-200);
41
- }
42
-
43
- .bs-spinner:where([data-variant="white"]) :where(circle) {
44
- --bs-spinner-color-1: white;
45
- --bs-spinner-color-2: white;
46
- }
47
-
48
- :where(#bs-spinner-gradient stop) {
49
- stop-color: var(--bs-plum-400);
50
- }
51
- :where(#bs-spinner-gradient stop:first-child) {
52
- stop-color: var(--bs-blue-400);
53
- }
54
- :where(#bs-spinner-gradient stop:last-child) {
55
- stop-color: var(--bs-red-400);
56
- }
57
-
58
- @keyframes bs-spin {
59
- 0% {
60
- stroke-dasharray: 0 100;
61
- stroke-dashoffset: 0;
62
- }
63
- 25% {
64
- stroke-dasharray: 33 67;
65
- stroke-dashoffset: -40;
66
- }
67
- 70% {
68
- stroke-dasharray: 33 67;
69
- stroke-dashoffset: -60;
70
- }
71
- 85% {
72
- stroke-dasharray: 17 83;
73
- stroke-dashoffset: -77;
74
- }
75
- 100% {
76
- stroke-dasharray: 0 100;
77
- stroke-dashoffset: -100;
78
- }
79
- }
80
-
81
- @keyframes bs-stroke-change {
82
- 0% {
83
- stroke: var(--bs-spinner-color-1);
84
- }
85
- 33% {
86
- stroke: var(--bs-spinner-color-2, var(--bs-spinner-color-1));
87
- }
88
- 100% {
89
- stroke: var(--bs-spinner-color-1);
90
- }
91
- }
@@ -1,147 +0,0 @@
1
- .bs-tab-list {
2
- --active-line-max-width: 0;
3
- --active-line-offset: 0;
4
- --active-line-scale: 0;
5
- --active-line-transition-duration: 300ms;
6
- --tab-color: var(--bs-ink-light);
7
- --tab-cursor: pointer;
8
- --tab-display: inline-flex;
9
- --tab-justify: center;
10
- --tab-list-opacity: 1;
11
- --tab-text-size: var(--bs-text-sm);
12
- --tab-weight: var(--bs-font-normal);
13
- align-items: center;
14
- border-bottom: 1px solid var(--bs-border-base);
15
- display: flex;
16
- font-size: var(--tab-text-size);
17
- gap: 1rem;
18
- height: 2.5rem;
19
- justify-content: var(--tab-justify);
20
- line-height: 1.5;
21
- opacity: var(--tab-list-opacity);
22
- overflow-x: clip;
23
- overflow-y: visible;
24
- position: relative;
25
- width: 100%;
26
- }
27
-
28
- .bs-tab-list:where([data-resizing="true"]) {
29
- --tab-list-opacity: 0;
30
- }
31
-
32
- @media (min-width: 1166px) {
33
- .bs-tab-list {
34
- --tab-justify: flex-start;
35
- --tab-text-size: var(--bs-text-base);
36
- }
37
- }
38
-
39
- /* ------------- Tabs ------------- */
40
- .bs-tab-list-tabs {
41
- align-items: center;
42
- display: flex;
43
- flex-grow: 1;
44
- gap: 1rem;
45
- }
46
-
47
- @media (min-width: 1166px) {
48
- .bs-tab-list-tabs {
49
- flex-grow: 0;
50
- }
51
- }
52
-
53
- .bs-tab-list-tabs :where([role="tab"]) {
54
- align-items: center;
55
- color: var(--tab-color, var(--bs-ink-light));
56
- column-gap: 0.5rem;
57
- cursor: var(--tab-cursor);
58
- display: var(--tab-display);
59
- flex-basis: var(--tab-basis, content);
60
- flex-grow: var(--tab-grow, 1);
61
- flex-shrink: var(--tab-shrink, 0);
62
- font-size: inherit;
63
- font-weight: var(--tab-weight, var(--bs-font-normal));
64
- height: 2.5rem;
65
- justify-content: var(--tab-justify-self, center);
66
- outline-color: var(--bs-blue-base);
67
- outline-offset: -1px;
68
- padding: 0.5rem;
69
- text-decoration: none;
70
- }
71
-
72
- .bs-tab-list-tabs :where([role="tab"][tabindex="-1"]) {
73
- --tab-cursor: default;
74
- }
75
-
76
- .bs-tab-list-tabs :where([role="tab"][data-hidden="true"]) {
77
- --tab-display: none;
78
- }
79
-
80
- .bs-tab-list-tabs :where([role="tab"][aria-selected="true"]) {
81
- --tab-color: var(--bs-ink-base);
82
- --tab-weight: var(--bs-font-bold);
83
- }
84
-
85
- /* ---- always use DT styles when tabs have yet to be width-adapted (they're invisible during this time) ---- */
86
- .bs-tab-list:where([data-resizing="true"]) {
87
- --tab-basis: auto;
88
- --tab-grow: 0;
89
- --tab-justify-self: flex-start;
90
- --tab-shrink: 0;
91
- }
92
-
93
- @media (min-width: 1166px) {
94
- .bs-tab-list {
95
- --tab-basis: auto;
96
- --tab-grow: 0;
97
- --tab-justify-self: flex-start;
98
- --tab-shrink: 0;
99
- }
100
- }
101
-
102
- /* ------------- Active line ------------- */
103
- .bs-tab-list::after {
104
- background-color: var(--bs-blue-base);
105
- bottom: 0;
106
- content: '';
107
- height: 0.25rem;
108
- left: 0;
109
- position: absolute;
110
- transform-origin: top left;
111
- transform: translate(var(--active-line-offset)) scaleX(var(--active-line-scale));
112
- transition: transform var(--active-line-transition-duration) ease-in;
113
- width: 100%;
114
- }
115
-
116
- /* ------------- Tab Panels ------------- */
117
- .bs-tab-panel:where([role="tabpanel"]) {
118
- display: none;
119
- }
120
-
121
- .bs-tab-panel:where([role="tabpanel"][data-active="true"]) {
122
- display: block;
123
- }
124
-
125
- /* ------------- Toggle ------------- */
126
- .bs-tab-list-toggle {
127
- align-items: center;
128
- color: var(--tab-color, var(--bs-ink-light));
129
- column-gap: 0.5rem;
130
- cursor: pointer;
131
- display: inline-flex;
132
- font-size: var(--tab-text-size, 0.875rem);
133
- font-weight: var(--tab-weight, var(--bs-font-normal));
134
- gap: 0.375rem;
135
- height: 2.5rem;
136
- justify-content: var(--tab-justify-self, center);
137
- padding: 0.5rem;
138
- }
139
-
140
- .bs-tab-list-toggle:where([data-hidden="true"]) {
141
- display: none;
142
- }
143
-
144
- .bs-tab-list-toggle:where([data-active="true"]) {
145
- color: var(--bs-ink-base);
146
- font-weight: var(--bs-font-bold);
147
- }