@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,179 +0,0 @@
1
- @mixin tooltip() {
2
- /* -------------------- BASE STYLES -------------------- */
3
- .bs-tooltip {
4
- display: inline-block;
5
- position: relative;
6
- }
7
-
8
- .bs-tooltip :where(.bs-tooltip-text) {
9
- align-items: center;
10
- background-color: var(--bs-bg-base-elevated);
11
- border-radius: 4px;
12
- box-shadow: var(--bs-shadow-contentLowCenter);
13
- color: var(--bs-ink-violet);
14
- display: flex;
15
- font-size: var(--bs-text-sm);
16
- justify-content: center;
17
- max-width: 16rem;
18
- min-width: 4rem;
19
- opacity: 0;
20
- padding-bottom: 0.25rem;
21
- padding-left: 0.5rem;
22
- padding-right: 0.5rem;
23
- padding-top: 0.25rem;
24
- position: absolute;
25
- transform: scale(0);
26
- transition-duration: 75ms;
27
- transition-property: opacity, transform;
28
- transition-timing-function: ease-in-out;
29
- width: max-content;
30
- z-index: 999;
31
- }
32
-
33
- /* -------------------- POSITION: UNDEFINED / TOP -------------------- */
34
- .bs-tooltip:where(:not([data-position])) :where(.bs-tooltip-text),
35
- .bs-tooltip:where([data-position="top"]) :where(.bs-tooltip-text) {
36
- bottom: calc(100% + 0.5rem);
37
- left: 50%;
38
- transform-origin: bottom center;
39
- transform: translateX(-50%) scale(0);
40
- }
41
-
42
- /* Active States */
43
- :where(.bs-tooltip:not([data-position])):hover :where(.bs-tooltip-text),
44
- :where(.bs-tooltip[data-position="top"]):hover :where(.bs-tooltip-text),
45
- :where(.bs-tooltip:not([data-position])):has(:focus-visible) :where(.bs-tooltip-text),
46
- :where(.bs-tooltip[data-position="top"]):has(:focus-visible) :where(.bs-tooltip-text),
47
- :where(.bs-tooltip:not([data-position]))[data-shown] :where(.bs-tooltip-text),
48
- :where(.bs-tooltip[data-position="top"])[data-shown] :where(.bs-tooltip-text) {
49
- opacity: 1;
50
- transform: translateX(-50%) scale(1);
51
- }
52
-
53
- /* -------------------- POSITION: BOTTOM -------------------- */
54
- .bs-tooltip:where([data-position="bottom"]) :where(.bs-tooltip-text) {
55
- left: 50%;
56
- top: calc(100% + 0.5rem);
57
- transform-origin: top center;
58
- transform: translateX(-50%) scale(0);
59
- }
60
-
61
- /* Active States */
62
- :where(.bs-tooltip[data-position="bottom"]):hover :where(.bs-tooltip-text),
63
- :where(.bs-tooltip[data-position="bottom"]):has(:focus-visible) :where(.bs-tooltip-text),
64
- :where(.bs-tooltip[data-position="bottom"])[data-shown] :where(.bs-tooltip-text) {
65
- opacity: 1;
66
- transform: translateX(-50%) scale(1);
67
- }
68
-
69
- /* -------------------- POSITION: LEFT -------------------- */
70
- .bs-tooltip:where([data-position="left"]) :where(.bs-tooltip-text) {
71
- right: calc(100% + 0.5rem);
72
- top: 50%;
73
- transform-origin: center right;
74
- transform: translateY(-50%) scale(0);
75
- }
76
-
77
- /* Active States */
78
- :where(.bs-tooltip[data-position="left"]):hover :where(.bs-tooltip-text),
79
- :where(.bs-tooltip[data-position="left"]):has(:focus-visible) :where(.bs-tooltip-text),
80
- :where(.bs-tooltip[data-position="left"])[data-shown] :where(.bs-tooltip-text) {
81
- opacity: 1;
82
- transform: translateY(-50%) scale(1);
83
- }
84
-
85
- /* -------------------- POSITION: RIGHT -------------------- */
86
- .bs-tooltip:where([data-position="right"]) :where(.bs-tooltip-text) {
87
- left: calc(100% + 0.5rem);
88
- top: 50%;
89
- transform-origin: center left;
90
- transform: translateY(-50%) scale(0);
91
- }
92
-
93
- :where(.bs-tooltip[data-position="right"]):hover :where(.bs-tooltip-text),
94
- :where(.bs-tooltip[data-position="right"]):has(:focus-visible) :where(.bs-tooltip-text),
95
- :where(.bs-tooltip[data-position="right"])[data-shown] :where(.bs-tooltip-text) {
96
- opacity: 1;
97
- transform: translateY(-50%) scale(1);
98
- }
99
-
100
- /* -------------------- POSITION: CORNERS -------------------- */
101
- /* top-left */
102
- .bs-tooltip:where([data-position="top-left"]) :where(.bs-tooltip-text) {
103
- bottom: calc(100% + 0.5rem);
104
- right: calc(100% + 0.5rem);
105
- transform-origin: bottom right;
106
- }
107
-
108
- /* top-right */
109
- .bs-tooltip:where([data-position="top-right"]) :where(.bs-tooltip-text) {
110
- bottom: calc(100% + 0.5rem);
111
- left: calc(100% + 0.5rem);
112
- transform-origin: bottom left;
113
- }
114
-
115
- /* bottom-left */
116
- .bs-tooltip:where([data-position="bottom-left"]) :where(.bs-tooltip-text) {
117
- right: calc(100% + 0.5rem);
118
- top: calc(100% + 0.5rem);
119
- transform-origin: top right;
120
- }
121
-
122
- /* bottom-right */
123
- .bs-tooltip:where([data-position="bottom-right"]) :where(.bs-tooltip-text) {
124
- left: calc(100% + 0.5rem);
125
- top: calc(100% + 0.5rem);
126
- transform-origin: top left;
127
- }
128
-
129
- /* Active States */
130
- :where(.bs-tooltip[data-position="top-left"]):hover :where(.bs-tooltip-text),
131
- :where(.bs-tooltip[data-position="top-right"]):hover :where(.bs-tooltip-text),
132
- :where(.bs-tooltip[data-position="bottom-left"]):hover :where(.bs-tooltip-text),
133
- :where(.bs-tooltip[data-position="bottom-right"]):hover :where(.bs-tooltip-text),
134
- :where(.bs-tooltip[data-position="top-left"]):has(:focus-visible) :where(.bs-tooltip-text),
135
- :where(.bs-tooltip[data-position="top-right"]):has(:focus-visible) :where(.bs-tooltip-text),
136
- :where(.bs-tooltip[data-position="bottom-left"]):has(:focus-visible) :where(.bs-tooltip-text),
137
- :where(.bs-tooltip[data-position="bottom-right"]):has(:focus-visible) :where(.bs-tooltip-text),
138
- :where(.bs-tooltip[data-position="top-left"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text),
139
- :where(.bs-tooltip[data-position="top-right"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text),
140
- :where(.bs-tooltip[data-position="bottom-left"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text),
141
- :where(.bs-tooltip[data-position="bottom-right"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text) {
142
- opacity: 1;
143
- transform: scale(1);
144
- }
145
-
146
- /* -------------------- DISABLED -------------------- */
147
- /*
148
- Don't display unless data-shown is present
149
- This must go last to properly override the other classes
150
- */
151
- :where(.bs-tooltip[data-disabled]:not([data-disabled="false"]):not([data-shown])):hover :where(.bs-tooltip-text),
152
- :where(.bs-tooltip[data-disabled]:not([data-disabled="false"]):not([data-shown])):has(:focus-visible) :where(.bs-tooltip-text) {
153
- opacity: 0;
154
- transform: scale(0);
155
- }
156
- :where(.bs-tooltip[data-shown="false"][data-disabled]:not([data-disabled="false"])):hover :where(.bs-tooltip-text),
157
- :where(.bs-tooltip[data-shown="false"][data-disabled]:not([data-disabled="false"])):has(:focus-visible) :where(.bs-tooltip-text) {
158
- opacity: 0;
159
- transform: scale(0);
160
- }
161
-
162
- /* -------------------- COMPONENT-SPECIFIC STYLES -------------------- */
163
- .bs-tooltip :where(.bs-tooltip-text.escaped) {
164
- opacity: 0;
165
- transform: scale(0.5);
166
- }
167
-
168
- .bs-tooltip :where(.bs-tooltip-text.escaped-x) {
169
- opacity: 0;
170
- transform: translateX(-50%) scale(0.5);
171
- }
172
-
173
- .bs-tooltip :where(.bs-tooltip-text.escaped-y) {
174
- opacity: 0;
175
- transform: translateY(-50%) scale(0.5);
176
- }
177
-
178
- }
179
-
@@ -1,280 +0,0 @@
1
- @mixin vertical-navigation() {
2
- :root {
3
- --bs-vertical-nav-width: 9.875rem;
4
- --bs-vertical-nav-narrow-width: 4.5rem;
5
- }
6
-
7
- .bs-vertical-nav {
8
- --active-color: rgba(255, 255, 255, 0.25);
9
- --bg-color: var(--bs-navy-base);
10
- --border-color: var(--bs-border-dark);
11
- --top-offset: 48px;
12
- -ms-overflow-style: none; /* Internet Explorer 10+ */
13
- background-color: var(--bg-color);
14
- color: var(--bs-white);
15
- display: flex;
16
- flex-direction: column;
17
- height: 100dvh;
18
- left: 0;
19
- max-height: calc(100dvh - var(--top-offset));
20
- opacity: 0;
21
- overflow: scroll;
22
- padding-bottom: 1.5rem;
23
- padding-left: 1.5rem;
24
- padding-right: 1.5rem;
25
- padding-top: 1.5rem;
26
- position: fixed;
27
- right: 0;
28
- scrollbar-width: none; /* Firefox */
29
- top: var(--top-offset);
30
- /* Slight delay for visibility to change prior to opacity */
31
- transition: opacity 200ms ease 10ms;
32
- visibility: hidden;
33
- width: auto;
34
- z-index: 1000;
35
- }
36
-
37
- .bs-vertical-nav:where([data-mobile-shown="true"]) {
38
- opacity: 1;
39
- visibility: visible;
40
- }
41
-
42
- .dark .bs-vertical-nav {
43
- --active-color: rgba(255, 255, 255, 0.25);
44
- --bg-color: var(--bs-bg-base);
45
- --border-color: var(--bs-border-dark);
46
- border-right: 1px solid var(--bs-border-medium);
47
- }
48
-
49
- @media (min-width: 1166px) {
50
- .bs-vertical-nav {
51
- border-right: 1px solid var(--bg-color);
52
- opacity: 1;
53
- padding-bottom: 1rem;
54
- padding-left: 0.5rem;
55
- padding-right: 0.5rem;
56
- padding-top: 1rem;
57
- right: auto;
58
- transition: none;
59
- visibility: visible;
60
- width: var(--bs-vertical-nav-width);
61
- }
62
-
63
- .bs-vertical-nav:where([data-narrow="true"]) {
64
- width: var(--bs-vertical-nav-narrow-width);
65
- }
66
- }
67
-
68
- .bs-vertical-nav::-webkit-scrollbar {
69
- display: none; /* Safari and Chrome */
70
- }
71
-
72
- /* ===== Sections ===== */
73
- .bs-vertical-nav :where(.bs-vertical-nav-section) {
74
- border-top: 2px solid var(--border-color);
75
- margin-top: 0.5rem;
76
- padding-top: 0.5rem;
77
- }
78
-
79
- @media (min-width: 1166px) {
80
- .bs-vertical-nav :where(.bs-vertical-nav-section) {
81
- margin-top: 0.25rem;
82
- }
83
- }
84
-
85
- /* Don't show border if the very first item is a section */
86
- .bs-vertical-nav :where(ul li:first-child) {
87
- border-top: none;
88
- margin-top: 0;
89
- padding-top: 0;
90
- }
91
-
92
- .bs-vertical-nav :where(.bs-vertical-nav-section-toggle) {
93
- align-items: center;
94
- cursor: pointer;
95
- display: flex;
96
- font-size: 0.75rem;
97
- font-weight: 600;
98
- justify-content: space-between;
99
- padding-bottom: 0.5rem;
100
- padding-left: 0.75rem;
101
- padding-right: 0.5rem;
102
- padding-top: 0.5rem;
103
- width: 100%;
104
- }
105
-
106
- @media (min-width: 1166px) {
107
- .bs-vertical-nav :where(.bs-vertical-nav-section-toggle) {
108
- /* nav width - nav left padding - nav right padding */
109
- width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem);
110
- }
111
-
112
- .bs-vertical-nav :where(.bs-vertical-nav-section-toggle span:first-child) {
113
- overflow: hidden;
114
- text-align: start;
115
- text-overflow: ellipsis;
116
- /* nav width - nav left padding - nav right padding - link left padding - link right padding - caret width */
117
- width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem - 0.75rem - 0.75rem - 0.75rem);
118
- }
119
- }
120
-
121
- .bs-vertical-nav :where(.bs-vertical-nav-section-toggle-caret) {
122
- height: 0.75rem;
123
- transform: none;
124
- transition-duration: 0.2s;
125
- transition-property: transform;
126
- transition-timing-function: ease-in-out;
127
- width: 0.75rem;
128
- }
129
-
130
- .bs-vertical-nav :where(.bs-vertical-nav-section[data-collapsed="true"] .bs-vertical-nav-section-toggle-caret) {
131
- transform: rotate(180deg);
132
- }
133
-
134
- /* ===== Nav List ===== */
135
- .bs-vertical-nav :where(ul) {
136
- display: flex;
137
- flex-direction: column;
138
- gap: 0;
139
- list-style: none;
140
- margin-top: 0;
141
- padding-left: 0;
142
- }
143
-
144
- @media (min-width: 1166px) {
145
- .bs-vertical-nav :where(ul) {
146
- gap: 0.25rem;
147
- }
148
- }
149
-
150
- /* ===== Nav List Items / Links */
151
- .bs-vertical-nav :where(ul li a) {
152
- align-items: center;
153
- border-radius: 4px;
154
- cursor: pointer;
155
- display: flex;
156
- font-size: 1rem;
157
- font-weight: 400;
158
- gap: 0.5rem;
159
- height: 100%;
160
- padding-bottom: 0.75rem;
161
- padding-left: 0.75rem;
162
- padding-right: 0.75rem;
163
- padding-top: 0.75rem;
164
- width: 100%;
165
- }
166
-
167
- @media (min-width: 1166px) {
168
- .bs-vertical-nav :where(ul li a) {
169
- font-size: 0.875rem;
170
- padding-bottom: 0.5rem;
171
- padding-top: 0.5rem;
172
- /* nav width - nav left padding - nav right padding */
173
- width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem);
174
- }
175
-
176
- /* Text overflow - normal width - no icon */
177
- .bs-vertical-nav :where(ul li a:not(:has(.bs-vertical-nav-link-icon)) span:first-child) {
178
- overflow: hidden;
179
- text-overflow: ellipsis;
180
- /* nav width - nav left padding - nav right padding - link left padding - link right padding */
181
- width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem - 0.75rem - 0.75rem);
182
- }
183
-
184
- /* Text overflow - normal width - with icon */
185
- .bs-vertical-nav :where(ul li a:has(.bs-vertical-nav-link-icon) span:nth-child(2)) {
186
- overflow: hidden;
187
- text-overflow: ellipsis;
188
- /* nav width - nav left padding - nav right padding - link left padding - link right padding - icon width - icon gap */
189
- width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem - 0.75rem - 0.75rem - 0.875rem - 0.5rem);
190
- }
191
-
192
- .bs-vertical-nav:where([data-narrow="true"]) :where(ul li a) {
193
- flex-direction: column;
194
- font-size: 0.6875rem;
195
- gap: 0.25rem;
196
- line-height: 1.3;
197
- padding-bottom: 0.75rem;
198
- padding-left: 0.25rem;
199
- padding-right: 0.25rem;
200
- padding-top: 0.75rem;
201
- text-align: center;
202
- /* nav width - nav left padding - nav right padding */
203
- width: calc(var(--bs-vertical-nav-narrow-width) - 0.5rem - 0.5rem);
204
- }
205
-
206
- /* Text overflow - narrow width */
207
- .bs-vertical-nav:where([data-narrow="true"]) :where(ul li a:not(:has(.bs-vertical-nav-link-icon)) span:first-child),
208
- .bs-vertical-nav:where([data-narrow="true"]) :where(ul li a:has(.bs-vertical-nav-link-icon) span:nth-child(2)) {
209
- overflow: hidden;
210
- text-overflow: ellipsis;
211
- /* nav width - nav left padding - nav right padding - link left padding */
212
- width: calc(var(--bs-vertical-nav-narrow-width) - 0.5rem - 0.5rem);
213
- }
214
- }
215
-
216
- .bs-vertical-nav :where(ul li a:hover) {
217
- font-weight: 600;
218
- }
219
-
220
- .bs-vertical-nav :where(ul li a[data-active="true"]) {
221
- background-color: var(--active-color);
222
- font-weight: 600;
223
- }
224
-
225
- .bs-vertical-nav :where(.bs-vertical-nav-link-icon) {
226
- height: 1rem;
227
- width: 1rem;
228
- }
229
-
230
- @media (min-width: 1166px) {
231
- .bs-vertical-nav :where(.bs-vertical-nav-link-icon) {
232
- height: 0.875rem;
233
- width: 0.875rem;
234
- }
235
-
236
- .bs-vertical-nav:where([data-narrow="true"]) :where(.bs-vertical-nav-link-icon) {
237
- height: 1rem;
238
- width: 1rem;
239
- }
240
- }
241
-
242
- /* ===== End Items ===== */
243
- .bs-vertical-nav :where(.bs-vertical-nav-end-items) {
244
- display: flex;
245
- flex-direction: column;
246
- gap: 0.25rem;
247
- margin-top: auto;
248
- }
249
-
250
- .bs-vertical-nav :where(.bs-vertical-nav-end-items > *) {
251
- color: var(--bs-white);
252
- }
253
-
254
- .bs-vertical-nav :where(.bs-vertical-nav-end-items > *:not(button)) {
255
- color: var(--bs-white);
256
- padding-bottom: 0.5rem;
257
- padding-left: 0.75rem;
258
- padding-right: 0.75rem;
259
- padding-top: 0.5rem;
260
- }
261
-
262
- @media (min-width: 1166px) {
263
- .bs-vertical-nav :where(.bs-vertical-nav-end-items > *:not(button)) {
264
- font-size: 0.875rem;
265
- }
266
- }
267
-
268
- .bs-vertical-nav :where(.bs-vertical-nav-end-items > button) {
269
- margin-bottom: 0.5rem;
270
- margin-left: 0.75rem;
271
- margin-right: 0.75rem;
272
- margin-top: 0.5rem;
273
- }
274
-
275
- .bs-vertical-nav:where([data-narrow="true"]) :where(.bs-vertical-nav-end-items) {
276
- display: none;
277
- }
278
-
279
- }
280
-
@@ -1,118 +0,0 @@
1
- .bs-accordion {
2
- --accordion-link-color: var(--bs-purple-400);
3
- --accordion-link-outline-color: var(--bs-blue-base);
4
- --accordion-outline-color: transparent;
5
- --accordion-padding-inline: 0;
6
- --accordion-text-size: var(--bs-text-sm);
7
- border-block: 1px solid var(--bs-border-base);
8
- display: block;
9
- }
10
-
11
- @media (min-width: 957px) {
12
- .bs-accordion {
13
- --accordion-padding-inline: var(--bs-space-2);
14
- --accordion-text-size: var(--bs-text-base);
15
- }
16
- }
17
-
18
- /* Accordion Panel (Icon, Title, Caret) */
19
-
20
- .bs-accordion :where(.bs-accordion-toggle),
21
- .bs-accordion > :where(header) > :where(button) {
22
- align-items: center;
23
- background-color: var(--bs-bg-base);
24
- border: 0px solid transparent;
25
- border-radius: .25rem;
26
- color: var(--bs-ink-base);
27
- cursor: pointer;
28
- display: grid;
29
- font-size: var(--accordion-text-size);
30
- font-weight: var(--bs-font-normal);
31
- grid-template-columns: minmax(0px, auto) minmax(0px, 1fr) minmax(0px, auto);
32
- grid-template-areas: "start main end";
33
- line-height: 1.5;
34
- outline: 2px solid var(--accordion-outline-color);
35
- padding: var(--bs-space-0);
36
- padding-block: var(--bs-space-f-2);
37
- padding-inline: var(--accordion-padding-inline);
38
- text-decoration: none;
39
- width: 100%;
40
- }
41
-
42
- .bs-accordion :where(.bs-accordion-toggle:focus-visible),
43
- .bs-accordion > :where(header) > :where(button:focus-visible) {
44
- --accordion-outline-color: var(--bs-blue-base);
45
- }
46
-
47
- .bs-accordion :where(.bs-accordion-toggle) > *,
48
- .bs-accordion > :where(header) > :where(button) > * {
49
- font-size: inherit;
50
- font-weight: inherit;
51
- line-height: inherit;
52
- }
53
-
54
- .bs-accordion :where(.bs-accordion-toggle) > *,
55
- .bs-accordion > :where(header) > :where(button) > * {
56
- grid-area: main;
57
- margin-right: var(--bs-space-2);
58
- text-align: left;
59
- }
60
-
61
- .bs-accordion :where(.bs-accordion-toggle) > *,
62
- .bs-accordion > :where(header) > :where(button) > * {
63
- vertical-align: middle;
64
- }
65
-
66
- @media (min-width: 957px) {
67
- .bs-accordion :where(.bs-accordion-toggle) > * ,
68
- .bs-accordion > :where(header) > :where(button) > * {
69
- margin-right: var(--bs-space-3);
70
- }
71
- }
72
-
73
- .bs-accordion :where(.bs-accordion-toggle) :where([data-position]),
74
- .bs-accordion > :where(header) > :where(button) :where([data-position]) {
75
- width: var(--accordion-text-size);
76
- }
77
-
78
- .bs-accordion :where(.bs-accordion-toggle) > :where([data-position="start"]),
79
- .bs-accordion > :where(header) > :where(button) > :where([data-position="start"]) {
80
- grid-area: start;
81
- margin-right: var(--bs-space-2);
82
- }
83
-
84
- .bs-accordion :where(.bs-accordion-toggle) > :where([data-position="end"]),
85
- .bs-accordion > :where(header) > :where(button) > :where([data-position="end"]) {
86
- grid-area: end;
87
- transform: rotate(0);
88
- transition: var(--bs-trans-rotate180);
89
- }
90
-
91
- .bs-accordion > :where(header[data-open]:not([data-open="false"])) :where([data-position="end"]) {
92
- transform: rotate(180deg);
93
- }
94
-
95
- /* Accordion Content (the collapsible / expandible part) */
96
-
97
- .bs-accordion :where(.bs-accordion-content) {
98
- display: grid;
99
- font-size: var(--accordion-text-size);
100
- grid-template-rows: 0fr;
101
- overflow: hidden;
102
- padding-inline: var(--accordion-padding-inline);
103
- transition: grid-template-rows 250ms ease-out;
104
- }
105
-
106
- .bs-accordion :where(.bs-accordion-content) > :where(:first-child) {
107
- overflow: hidden;
108
- }
109
-
110
- .bs-accordion :where(.bs-accordion-content[data-open]:not([data-open="false"])) {
111
- grid-template-rows: 1fr;
112
- padding-block-end: var(--bs-space-f-2);
113
- }
114
-
115
- /* Accordion Group */
116
- :where(.bs-accordion[data-stacked]:not([data-stacked="false"])) + .bs-accordion:where([data-stacked]:not([data-stacked="false"])) {
117
- border-block-start-color: transparent;
118
- }
@@ -1,139 +0,0 @@
1
- .bs-alert {
2
- /* bs-blue-100 @ 10% */
3
- background-color: #99cff71a;
4
- border-radius: 8px;
5
- border: 2px solid var(--bs-ink-blue);
6
- column-gap: 0.75rem;
7
- display: grid;
8
- grid-template-columns: 1.125rem 1fr 1rem;
9
- grid-template-areas: "icon title close"
10
- ". description ."
11
- ". action .";
12
- padding: 1rem;
13
- }
14
-
15
- @media (min-width: 752px) {
16
- .bs-alert {
17
- padding: 1.5rem;
18
- grid-template-columns: 1.25rem 1fr 1rem;
19
- grid-template-areas: "icon title close"
20
- ". description ."
21
- ". action .";
22
- }
23
- }
24
-
25
- @media (min-width: 752px) {
26
- .bs-alert:where([data-horizontal="true"]) {
27
- padding: 1rem 1.5rem;
28
- grid-template-areas: "icon title action close";
29
- grid-template-columns: 1.125rem max-content 1fr 1rem;
30
- }
31
- }
32
-
33
- .bs-alert :where(.bs-alert-icon) {
34
- margin-top: 0.25rem;
35
- align-self: start;
36
- color: var(--bs-ink-blue);
37
- grid-area: icon;
38
- height: 1.125rem;
39
- width: 1.125rem;
40
- }
41
-
42
- .bs-alert :where(.bs-alert-title) {
43
- font-size: 1.125rem;
44
- line-height: 1.3;
45
- color: var(--bs-ink-base);
46
- grid-area: title;
47
- }
48
-
49
- @media (min-width: 752px) {
50
- .bs-alert :where(.bs-alert-title) {
51
- font-size: 1.25rem;
52
- line-height: 1.3;
53
- }
54
-
55
- .bs-alert:where([data-horizontal="true"]) :where(.bs-alert-title) {
56
- font-size: 1.125rem;
57
- line-height: 1.5;
58
- }
59
-
60
- .bs-alert:where(:not([data-horizontal="true"])) :where(.bs-alert-icon) {
61
- height: 1.25rem;
62
- width: 1.25rem;
63
- }
64
- }
65
-
66
- .bs-alert :where(.bs-alert-description) {
67
- font-size: 0.875rem;
68
- color: var(--bs-ink-medium);
69
- grid-area: description;
70
- margin-top: 0.5rem;
71
- }
72
-
73
- @media (min-width: 752px) {
74
- .bs-alert :where(.bs-alert-description) {
75
- font-size: 1rem;
76
- }
77
- }
78
-
79
- .bs-alert:where([data-horizontal="true"]) :where(.bs-alert-description) {
80
- display: none;
81
- }
82
-
83
- .bs-alert :where(.bs-alert-close) {
84
- margin-top: 0.25rem;
85
- align-self: start;
86
- background-color: transparent;
87
- cursor: pointer;
88
- grid-area: close;
89
- height: 1rem;
90
- width: 1rem;
91
- }
92
-
93
- .bs-alert :where(.bs-alert-action) {
94
- grid-area: action;
95
- margin-top: 1rem;
96
- }
97
-
98
- @media (min-width: 752px) {
99
- .bs-alert:where([data-horizontal="true"]) :where(.bs-alert-action) {
100
- margin-top: 0;
101
- }
102
- }
103
-
104
- /* COLOR VARIANTS */
105
- .bs-alert:where([data-variant="success"]) {
106
- /* bs-purple-100 @ 10% */
107
- background-color: #e0c5ef1a;
108
- border-color: var(--bs-ink-purple);
109
- }
110
-
111
- .bs-alert:where([data-variant="success"]) :where(.bs-alert-icon) {
112
- color: var(--bs-ink-purple);
113
- }
114
-
115
- .bs-alert:where([data-variant="warning"]) {
116
- /* bs-orange-100 @ 10% */
117
- background-color: #f3c4a81a;
118
- border-color: var(--bs-ink-orange);
119
- }
120
- .bs-alert:where([data-variant="warning"]) :where(.bs-alert-icon) {
121
- color: var(--bs-ink-orange);
122
- }
123
-
124
- .bs-alert:where([data-variant="negative"]) {
125
- /* bs-red-100 @ 10% */
126
- background-color: #f8a9aa1a;
127
- border-color: var(--bs-ink-red);
128
- }
129
-
130
- .bs-alert:where([data-variant="negative"]) :where(.bs-alert-icon) {
131
- color: var(--bs-ink-red);
132
- }
133
-
134
- /* DARK MODE SPECIAL CASE */
135
- .dark .bs-alert :where(.bs-alert-action) {
136
- --btn-border-color-focused: var(--bs-text-base);
137
- --btn-text-color: var(--bs-text-base);
138
- --btn-text-color-hovered: var(--bs-text-base);
139
- }