@wwtdev/bsds-css 2.28.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 +2189 -1471
  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 -224
  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 -179
  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 -220
  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 -175
  93. package/dist/components/vertical-navigation.css +0 -276
  94. package/dist/wwt-bsds-wc-base.css +0 -1129
@@ -1,224 +0,0 @@
1
- @mixin pills() {
2
- .bs-pill {
3
- --pill-background: var(--bs-bg-medium);
4
- --pill-border: transparent;
5
- --pill-text: #162FB4; /* one-off component-specific */
6
- --pill-gap: var(--bs-space-2);
7
-
8
- align-items: center;
9
- appearance: none;
10
- background-color: var(--pill-background);
11
- border: 1px solid var(--pill-border);
12
- border-radius: 4px;
13
- color: var(--pill-text);
14
- display: inline-flex;
15
- font-size: var(--bs-text-xs);
16
- height: 1.5rem;
17
- gap: var(--pill-gap);
18
- line-height: 1rem;
19
- padding: 0 .375rem;
20
- text-decoration: none;
21
- }
22
-
23
- :where(.bs-pill .bs-icon) {
24
- height: 1rem;
25
- width: 1rem;
26
- }
27
-
28
- /* ------------------------------- Dark mode (basic & status types only) ------------------------------- */
29
- :where(.dark) .bs-pill {
30
- --pill-text: #7585D1;
31
- }
32
-
33
- /* ------------------------------ Auto-truncation for content ------------------------------ */
34
- .bs-pill:has([data-truncate="true"]) {
35
- max-width: 100%;
36
- }
37
- .bs-pill > :where([data-truncate="true"]) {
38
- display: inline-block;
39
- overflow: hidden;
40
- text-overflow: ellipsis;
41
- white-space: nowrap;
42
- }
43
-
44
- /* If false, pass thru .bs-pill display styles */
45
- .bs-pill > :where([data-truncate="false"]) {
46
- display: inline-flex;
47
- align-items: center;
48
- gap: var(--pill-gap);
49
- }
50
-
51
- /* ------------------------------ Button and Link Styles ------------------------------ */
52
- :is(a, button).bs-pill {
53
- color: var(--pill-text);
54
- cursor: pointer;
55
- transition: all 0.15s ease-in-out;
56
- }
57
- :is(a, button).bs-pill:is(:hover, :focus) {
58
- --pill-border: var(--bs-royal-base);
59
-
60
- color: var(--pill-text);
61
- outline: transparent;
62
- }
63
-
64
- /* ------------------------------ Background Colors ------------------------------ */
65
- :where(.box[data-invert]) .bs-pill {
66
- --pill-background: var(--bs-bg-invert-to-base-subtle);
67
- --pill-text: var(--bs-gray-100);
68
- }
69
- :where(.box[data-invert]) :is(a, button).bs-pill:is(:hover, :focus) {
70
- --pill-border: var(--bs-gray-100);
71
- }
72
- :where(.dark .box[data-invert]) .bs-pill {
73
- --pill-text: var(--bs-royal-400);
74
- }
75
- :where(.dark .box[data-invert]) :is(a, button).bs-pill:is(:hover, :focus) {
76
- --pill-border: var(--bs-royal-400);
77
- }
78
-
79
- /* ------------------ Generally Applicable ::Before Styles ------------------ */
80
- .bs-pill::before {
81
- flex-shrink: 0;
82
- }
83
-
84
- /* ------------------------------ Status Styles ------------------------------ */
85
- .bs-pill:where([data-status]) {
86
- --status-color: var(--bs-blue-base);
87
- }
88
- .bs-pill:where([data-status])::before {
89
- background-color: var(--status-color);
90
- border-radius: 100%;
91
- content: '';
92
- height: 12px;
93
- width: 12px;
94
- }
95
-
96
- /* ----- Status Colors ----- */
97
- .bs-pill:where([data-status^="active"]) {
98
- --status-color: var(--bs-blue-base);
99
- }
100
- .bs-pill:where([data-status^="complete"]) {
101
- --status-color: var(--bs-purple-400);
102
- }
103
- .bs-pill:where([data-status^="disabled"]) {
104
- --status-color: var(--bs-gray-300);
105
- }
106
- .bs-pill:where([data-status^="error"]) {
107
- --status-color: var(--bs-red-400);
108
- }
109
- .bs-pill:where([data-status^="positive"]) {
110
- --status-color: #16986D;
111
- }
112
- .bs-pill:where([data-status^="warning"]) {
113
- --status-color: var(--bs-orange-warning);
114
- }
115
- /* Deprecated; use "data-status disabled" instead */
116
- .bs-pill:where([data-status^="inactive"]) {
117
- --status-color: var(--bs-gray-300);
118
- }
119
-
120
- /* ------------------------------ Filter Styles ------------------------------ */
121
- .bs-pill:where([data-variant^="filter"]) {
122
- --pill-background: var(--bs-bg-base);
123
- --pill-border: var(--bs-border-base);
124
- --pill-text: var(--bs-ink-base);
125
- }
126
- .bs-pill:where([data-variant^="filter"]):is(:hover, :focus) {
127
- --pill-border: var(--bs-border-base);
128
- }
129
- :is(a, button).bs-pill:where([data-variant^="filter"]):is(:hover, :focus) {
130
- --pill-border: var(--bs-ink-base);
131
- }
132
-
133
- /* ------------------------------ Variant: "Filter Add" Styles ------------------------------ */
134
- /* Black + */
135
- .bs-pill:where([data-variant^="filter"][data-variant*="add"])::after {
136
- 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");
137
- }
138
- /* White + */
139
- :where(.dark) .bs-pill:where([data-variant^="filter"][data-variant*="add"]):not(:disabled, [aria-disabled="true"])::after{
140
- 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");
141
- }
142
-
143
-
144
- /* ------------------------------ Variant: "Filter Remove" Styles ------------------------------ */
145
- /* Black X */
146
- .bs-pill:where([data-variant^="filter"][data-variant*="remove"])::after {
147
- 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");
148
- }
149
- /* White X */
150
- :where(.dark) .bs-pill:where([data-variant^="filter"][data-variant*="remove"]):not(:disabled, [aria-disabled="true"])::after {
151
- 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");
152
- }
153
- /* Dark Red X */
154
- .bs-pill:where([data-variant^="filter"][data-variant*="remove"]):hover::after {
155
- 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='%23D91214'/%3E%3C/svg%3E%0A");
156
- }
157
- /* Light Red X */
158
- :where(.dark) .bs-pill:where([data-variant^="filter"][data-variant*="remove"]):hover::after {
159
- 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='%23F15355'/%3E%3C/svg%3E%0A");
160
- }
161
-
162
- /* ------------------------------ Variant: "Filter Active" Styles ------------------------------ */
163
- .bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])) {
164
- --pill-background: var(--bs-blue-base);
165
- --pill-border: transparent;
166
- --pill-text: var(--bs-white);
167
- }
168
- .bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])):is(:hover, :focus) {
169
- --pill-border: transparent;
170
- }
171
- :is(a, button).bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])):is(:hover, :focus) {
172
- --pill-background: var(--bs-blue-500);
173
- --pill-border: transparent;
174
- }
175
- /* White X */
176
- .bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"]))::after {
177
- 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");
178
- }
179
- /* Black X */
180
- .bs-pill:where([data-variant^="filter"][data-active]:not([data-active="false"])):where(:disabled, [aria-disabled="true"])::after {
181
- 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");
182
- }
183
-
184
- /* ------------------------------ Variant: "Live Now" Styles ------------------------------ */
185
- .bs-pill:where([data-variant^="live"]) {
186
- --pill-background: var(--bs-plum-base);
187
- --pill-text: var(--bs-white);
188
- --pill-gap: var(--bs-space-1);
189
- text-transform: uppercase;
190
- }
191
- .bs-pill:where([data-variant^="live"]):hover {
192
- --pill-border: transparent;
193
- }
194
- .bs-pill:where([data-variant^="live"])::before {
195
- background-color: var(--bs-red-400);
196
- border: 3px solid var(--bs-white);
197
- border-radius: 100%;
198
- content: '';
199
- height: 12px;
200
- width: 12px;
201
- }
202
-
203
- /* ------------------------------ Variant: "Inactive" Styles ------------------------------ */
204
- .bs-pill:where([data-variant^="inactive"]) {
205
- --pill-background: var(--bs-gray-base);
206
- --pill-text: var(--bs-ink-invert);
207
- }
208
-
209
-
210
- /* ------------------------------ Disabled Styles ------------------------------ */
211
- /* ----- Not to be confused with data-status="disabled" or variant "inactive". These are for link/button/filter pills. ----- */
212
- .bs-pill:is(:disabled, [aria-disabled="true"]) {
213
- pointer-events: none;
214
- color: var(--bs-ink-disabled);
215
- background-color: var(--bs-bg-disabled);
216
- }
217
-
218
- .bs-pill:where([data-variant^="filter"]):not([data-active]):is(:disabled, [aria-disabled="true"]),
219
- .bs-pill:where([data-variant^="filter"])[data-active="false"]:is(:disabled, [aria-disabled="true"]) {
220
- --pill-border: var(--bs-gray-400);
221
- }
222
-
223
- }
224
-
@@ -1,44 +0,0 @@
1
- @mixin profile-details() {
2
- .bs-profile-details {
3
- color: var(--bs-ink-light);
4
- font-size: var(--bs-text-sm);
5
- line-height: 1.3;
6
- }
7
-
8
- .bs-profile-details > :where(*) {
9
- display: block;
10
- }
11
-
12
- .bs-profile-details > :where(.bs-profile-name) {
13
- color: var(--profile-name-color, var(--bs-ink-base));
14
- text-decoration: var(--profile-name-decoration, none);
15
- }
16
-
17
- /* Action button aka Follow toggle. */
18
- .bs-profile-details > :where(button:first-child) {
19
- color: var(--profile-action-color, var(--bs-orange-warning));
20
- font-size: inherit;
21
- }
22
- .bs-profile-details > :where(button:first-child:hover) {
23
- text-decoration: underline;
24
- }
25
- /* Remove the profile name underline when hovering on the action button. */
26
- .bs-profile-details:has(:where(button:first-child:hover)) {
27
- --profile-name-decoration: none;
28
- }
29
-
30
- /* Action button and optional meta details w/ icon */
31
- .bs-profile-details > :where([data-icon]) {
32
- align-items: center;
33
- column-gap: 0.5rem;
34
- cursor: pointer;
35
- display: flex;
36
- font-size: inherit;
37
- }
38
- .bs-profile-details .bs-icon {
39
- height: .75rem;
40
- width: .75rem;
41
- }
42
-
43
- }
44
-
@@ -1,73 +0,0 @@
1
- @mixin profile-img() {
2
- .bs-profile-img,
3
- .bs-profile-img:where([data-img-size^='sm']) {
4
- --profile-size: 2rem;
5
- --profile-text: 0.8125rem;
6
-
7
- aspect-ratio: 1/1;
8
- border-radius: 50%;
9
- height: var(--profile-size);
10
- overflow: hidden;
11
- position: relative;
12
- width: var(--profile-size);
13
- }
14
-
15
- .bs-profile-img :where(img) {
16
- height: 100%;
17
- object-fit: cover;
18
- width: 100%;
19
- }
20
- .bs-profile-img:where([data-no-img]:not([data-no-img="false"])) img {
21
- display: none;
22
- }
23
-
24
- .bs-profile-img::before,
25
- .bs-profile-img::after {
26
- border-radius: 50%;
27
- border-collapse: collapse;
28
- height: 100%;
29
- inset: 0;
30
- position: absolute;
31
- width: 100%;
32
- }
33
- /* Shadow */
34
- .bs-profile-img::before {
35
- box-shadow: var(--bs-shadow-profilePhoto);
36
- content: '';
37
- }
38
- .bs-profile-img:where([data-no-img]:not([data-no-img="false"]))::before {
39
- display: none;
40
- }
41
- /* Initials */
42
- .bs-profile-img:where([data-no-img]:not([data-no-img="false"]))::after {
43
- align-items: center;
44
- border: 1px solid currentColor;
45
- color: var(--bs-blue-500);
46
- content: attr(data-initials);
47
- display: flex;
48
- font-size: var(--profile-text);
49
- justify-content: center;
50
- text-transform: uppercase;
51
- line-height: 1;
52
- }
53
-
54
- /* Profile Sizes */
55
- .bs-profile-img:where([data-img-size^='xs']) {
56
- --profile-size: 1.5rem;
57
- --profile-text: 0.625rem;
58
- }
59
- .bs-profile-img:where([data-img-size^='md']) {
60
- --profile-size: 3rem;
61
- --profile-text: var(--bs-text-md);
62
- }
63
- .bs-profile-img:where([data-img-size^='lg']) {
64
- --profile-size: 4rem;
65
- --profile-text: var(--bs-text-lg);
66
- }
67
- .bs-profile-img:where([data-img-size^='xl']) {
68
- --profile-size: 5.75rem;
69
- --profile-text: var(--bs-text-2xl);
70
- }
71
-
72
- }
73
-
@@ -1,29 +0,0 @@
1
- @mixin profile-layout() {
2
- /* Profile with User Details */
3
- .bs-profile:where([data-layout]),
4
- .bs-profile:where([data-layout^='vertical']) {
5
- display: grid;
6
- row-gap: 0.5rem;
7
- }
8
-
9
- .bs-profile:where([data-layout^='horizontal']) {
10
- column-gap: 1rem;
11
- grid-template-columns: auto 1fr;
12
- align-items: center;
13
- }
14
-
15
- /* When wrapped in a link */
16
- a.bs-profile:where([data-layout]) {
17
- text-decoration: none;
18
- }
19
-
20
- a.bs-profile:where([data-layout]) {
21
- --profile-name-color: var(--bs-ink-blue);
22
- }
23
-
24
- a.bs-profile:where([data-layout]):hover {
25
- --profile-name-decoration: underline;
26
- }
27
-
28
- }
29
-
@@ -1,95 +0,0 @@
1
- @mixin spinner() {
2
- :where(.bs-spinner) {
3
- display: block;
4
- }
5
-
6
- /* ------------ Sizes ------------ */
7
- .bs-spinner {
8
- aspect-ratio: 1;
9
- fill: none;
10
- height: var(--spinner-size, 2rem);
11
- width: var(--spinner-size, 2rem);
12
- }
13
-
14
- .bs-spinner:where([data-size="sm"]) {
15
- --spinner-size: 1rem;
16
- }
17
-
18
- .bs-spinner:where([data-size="md"]) {
19
- --spinner-size: 2rem;
20
- }
21
-
22
- .bs-spinner:where([data-size="lg"]) {
23
- --spinner-size: 3rem;
24
- }
25
-
26
- /* ------------ Color Variants ------------ */
27
-
28
- .bs-spinner :where(circle) {
29
- animation: bs-spin 1s linear infinite;
30
- stroke-linecap: round;
31
- stroke-width: 10%;
32
- transition: all 1s ease-in-out;
33
- }
34
-
35
- .bs-spinner:where(:not([data-variant="gradient"])) :where(circle) {
36
- animation: bs-spin 1s linear infinite, bs-stroke-change 2s linear infinite;
37
- }
38
-
39
- .bs-spinner :where(circle) {
40
- --bs-spinner-color-1: var(--bs-blue-400);
41
- --bs-spinner-color-2: var(--bs-blue-200);
42
- }
43
-
44
- .bs-spinner:where([data-variant="white"]) :where(circle) {
45
- --bs-spinner-color-1: white;
46
- --bs-spinner-color-2: white;
47
- }
48
-
49
- :where(#bs-spinner-gradient stop) {
50
- stop-color: var(--bs-plum-400);
51
- }
52
- :where(#bs-spinner-gradient stop:first-child) {
53
- stop-color: var(--bs-blue-400);
54
- }
55
- :where(#bs-spinner-gradient stop:last-child) {
56
- stop-color: var(--bs-red-400);
57
- }
58
-
59
- @keyframes bs-spin {
60
- 0% {
61
- stroke-dasharray: 0 100;
62
- stroke-dashoffset: 0;
63
- }
64
- 25% {
65
- stroke-dasharray: 33 67;
66
- stroke-dashoffset: -40;
67
- }
68
- 70% {
69
- stroke-dasharray: 33 67;
70
- stroke-dashoffset: -60;
71
- }
72
- 85% {
73
- stroke-dasharray: 17 83;
74
- stroke-dashoffset: -77;
75
- }
76
- 100% {
77
- stroke-dasharray: 0 100;
78
- stroke-dashoffset: -100;
79
- }
80
- }
81
-
82
- @keyframes bs-stroke-change {
83
- 0% {
84
- stroke: var(--bs-spinner-color-1);
85
- }
86
- 33% {
87
- stroke: var(--bs-spinner-color-2, var(--bs-spinner-color-1));
88
- }
89
- 100% {
90
- stroke: var(--bs-spinner-color-1);
91
- }
92
- }
93
-
94
- }
95
-
@@ -1,151 +0,0 @@
1
- @mixin tab-list() {
2
- .bs-tab-list {
3
- --active-line-max-width: 0;
4
- --active-line-offset: 0;
5
- --active-line-scale: 0;
6
- --active-line-transition-duration: 300ms;
7
- --tab-color: var(--bs-ink-light);
8
- --tab-cursor: pointer;
9
- --tab-display: inline-flex;
10
- --tab-justify: center;
11
- --tab-list-opacity: 1;
12
- --tab-text-size: var(--bs-text-sm);
13
- --tab-weight: var(--bs-font-normal);
14
- align-items: center;
15
- border-bottom: 1px solid var(--bs-border-base);
16
- display: flex;
17
- font-size: var(--tab-text-size);
18
- gap: 1rem;
19
- height: 2.5rem;
20
- justify-content: var(--tab-justify);
21
- line-height: 1.5;
22
- opacity: var(--tab-list-opacity);
23
- overflow-x: clip;
24
- overflow-y: visible;
25
- position: relative;
26
- width: 100%;
27
- }
28
-
29
- .bs-tab-list:where([data-resizing="true"]) {
30
- --tab-list-opacity: 0;
31
- }
32
-
33
- @media (min-width: 1166px) {
34
- .bs-tab-list {
35
- --tab-justify: flex-start;
36
- --tab-text-size: var(--bs-text-base);
37
- }
38
- }
39
-
40
- /* ------------- Tabs ------------- */
41
- .bs-tab-list-tabs {
42
- align-items: center;
43
- display: flex;
44
- flex-grow: 1;
45
- gap: 1rem;
46
- }
47
-
48
- @media (min-width: 1166px) {
49
- .bs-tab-list-tabs {
50
- flex-grow: 0;
51
- }
52
- }
53
-
54
- .bs-tab-list-tabs :where([role="tab"]) {
55
- align-items: center;
56
- color: var(--tab-color, var(--bs-ink-light));
57
- column-gap: 0.5rem;
58
- cursor: var(--tab-cursor);
59
- display: var(--tab-display);
60
- flex-basis: var(--tab-basis, content);
61
- flex-grow: var(--tab-grow, 1);
62
- flex-shrink: var(--tab-shrink, 0);
63
- font-size: inherit;
64
- font-weight: var(--tab-weight, var(--bs-font-normal));
65
- height: 2.5rem;
66
- justify-content: var(--tab-justify-self, center);
67
- outline-color: var(--bs-blue-base);
68
- outline-offset: -1px;
69
- padding: 0.5rem;
70
- text-decoration: none;
71
- }
72
-
73
- .bs-tab-list-tabs :where([role="tab"][tabindex="-1"]) {
74
- --tab-cursor: default;
75
- }
76
-
77
- .bs-tab-list-tabs :where([role="tab"][data-hidden="true"]) {
78
- --tab-display: none;
79
- }
80
-
81
- .bs-tab-list-tabs :where([role="tab"][aria-selected="true"]) {
82
- --tab-color: var(--bs-ink-base);
83
- --tab-weight: var(--bs-font-bold);
84
- }
85
-
86
- /* ---- always use DT styles when tabs have yet to be width-adapted (they're invisible during this time) ---- */
87
- .bs-tab-list:where([data-resizing="true"]) {
88
- --tab-basis: auto;
89
- --tab-grow: 0;
90
- --tab-justify-self: flex-start;
91
- --tab-shrink: 0;
92
- }
93
-
94
- @media (min-width: 1166px) {
95
- .bs-tab-list {
96
- --tab-basis: auto;
97
- --tab-grow: 0;
98
- --tab-justify-self: flex-start;
99
- --tab-shrink: 0;
100
- }
101
- }
102
-
103
- /* ------------- Active line ------------- */
104
- .bs-tab-list::after {
105
- background-color: var(--bs-blue-base);
106
- bottom: 0;
107
- content: '';
108
- height: 0.25rem;
109
- left: 0;
110
- position: absolute;
111
- transform-origin: top left;
112
- transform: translate(var(--active-line-offset)) scaleX(var(--active-line-scale));
113
- transition: transform var(--active-line-transition-duration) ease-in;
114
- width: 100%;
115
- }
116
-
117
- /* ------------- Tab Panels ------------- */
118
- .bs-tab-panel:where([role="tabpanel"]) {
119
- display: none;
120
- }
121
-
122
- .bs-tab-panel:where([role="tabpanel"][data-active="true"]) {
123
- display: block;
124
- }
125
-
126
- /* ------------- Toggle ------------- */
127
- .bs-tab-list-toggle {
128
- align-items: center;
129
- color: var(--tab-color, var(--bs-ink-light));
130
- column-gap: 0.5rem;
131
- cursor: pointer;
132
- display: inline-flex;
133
- font-size: var(--tab-text-size, 0.875rem);
134
- font-weight: var(--tab-weight, var(--bs-font-normal));
135
- gap: 0.375rem;
136
- height: 2.5rem;
137
- justify-content: var(--tab-justify-self, center);
138
- padding: 0.5rem;
139
- }
140
-
141
- .bs-tab-list-toggle:where([data-hidden="true"]) {
142
- display: none;
143
- }
144
-
145
- .bs-tab-list-toggle:where([data-active="true"]) {
146
- color: var(--bs-ink-base);
147
- font-weight: var(--bs-font-bold);
148
- }
149
-
150
- }
151
-