@rossigee/clarity-ui 18.2.1-fixed

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 (219) hide show
  1. package/README.md +29 -0
  2. package/STYLES.md +1796 -0
  3. package/accordion/_accordion.clarity.scss +81 -0
  4. package/accordion/_properties.accordion.scss +45 -0
  5. package/accordion/_variables.accordion.scss +91 -0
  6. package/button/_buttons.clarity.scss +374 -0
  7. package/button/_mixins.buttons.scss +232 -0
  8. package/button/_properties.buttons.scss +325 -0
  9. package/button/_properties.toggles.scss +35 -0
  10. package/button/_variables.buttons.scss +843 -0
  11. package/button/_variables.toggles.scss +41 -0
  12. package/button/button-group/_button-group.clarity.scss +193 -0
  13. package/clr-ui.css +31728 -0
  14. package/clr-ui.css.map +1 -0
  15. package/clr-ui.min.css +52 -0
  16. package/clr-ui.min.css.map +1 -0
  17. package/collapsible-panel/_mixins.collapsible-panel.scss +189 -0
  18. package/collapsible-panel/_properties.collapsible-panel.scss +42 -0
  19. package/collapsible-panel/_variables.collapsible-panel.scss +40 -0
  20. package/data/_mixins.tables.scss +111 -0
  21. package/data/_properties.tables.scss +62 -0
  22. package/data/_tables.clarity.scss +120 -0
  23. package/data/_variables.tables.scss +42 -0
  24. package/data/datagrid/_datagrid.clarity.scss +1753 -0
  25. package/data/datagrid/_mixins.datagrid.scss +102 -0
  26. package/data/datagrid/_properties.datagrid.scss +90 -0
  27. package/data/datagrid/_variables.datagrid.scss +96 -0
  28. package/data/stack-view/_properties.stack-view.scss +50 -0
  29. package/data/stack-view/_stack-view.clarity.scss +267 -0
  30. package/data/stack-view/_variables.stack-view.scss +32 -0
  31. package/data/tree-view/_properties.tree-view.scss +41 -0
  32. package/data/tree-view/_tree-view.clarity.scss +281 -0
  33. package/data/tree-view/_variables.tree-view.scss +51 -0
  34. package/emphasis/alert/_alert.clarity.scss +467 -0
  35. package/emphasis/alert/_mixins.alert.scss +96 -0
  36. package/emphasis/alert/_properties.alert.scss +183 -0
  37. package/emphasis/alert/_variables.alert.scss +502 -0
  38. package/emphasis/badge/_badges.clarity.scss +61 -0
  39. package/emphasis/badge/_mixins.bades.scss +34 -0
  40. package/emphasis/badge/_properties.badges.scss +82 -0
  41. package/emphasis/badge/_variables.badges.scss +160 -0
  42. package/emphasis/label/_labels.clarity.scss +175 -0
  43. package/emphasis/label/_mixins.label.scss +76 -0
  44. package/emphasis/label/_properties.label.scss +105 -0
  45. package/emphasis/label/_variables.label.scss +181 -0
  46. package/forms/combobox/_combobox.clarity.scss +322 -0
  47. package/forms/combobox/_properties.combobox.scss +45 -0
  48. package/forms/combobox/_variables.combobox.scss +32 -0
  49. package/forms/datepicker/_datepicker.clarity.scss +259 -0
  50. package/forms/datepicker/_mixins.datepicker.scss +90 -0
  51. package/forms/datepicker/_properties.datepicker.scss +46 -0
  52. package/forms/datepicker/_variables.datepicker.scss +74 -0
  53. package/forms/styles/_checkbox.clarity.scss +193 -0
  54. package/forms/styles/_containers.clarity.scss +228 -0
  55. package/forms/styles/_datalist.clarity.scss +47 -0
  56. package/forms/styles/_file-input.clarity.scss +134 -0
  57. package/forms/styles/_file.clarity.scss +52 -0
  58. package/forms/styles/_form.clarity.scss +87 -0
  59. package/forms/styles/_input-group.clarity.scss +118 -0
  60. package/forms/styles/_input.clarity.scss +78 -0
  61. package/forms/styles/_mixins.forms.scss +173 -0
  62. package/forms/styles/_number-input.clarity.scss +58 -0
  63. package/forms/styles/_password.clarity.scss +26 -0
  64. package/forms/styles/_properties.forms.scss +121 -0
  65. package/forms/styles/_radio.clarity.scss +120 -0
  66. package/forms/styles/_range.clarity.scss +124 -0
  67. package/forms/styles/_select.clarity.scss +178 -0
  68. package/forms/styles/_textarea.clarity.scss +77 -0
  69. package/forms/styles/_toggles.clarity.scss +209 -0
  70. package/forms/styles/_variables.forms.scss +128 -0
  71. package/icon/icon.component.scss +242 -0
  72. package/image/_icons.clarity.scss +101 -0
  73. package/image/_images.clarity.scss +42 -0
  74. package/image/_mixins.images.scss +11 -0
  75. package/layout/_card.clarity.scss +311 -0
  76. package/layout/_login.clarity.scss +240 -0
  77. package/layout/_properties.card.scss +36 -0
  78. package/layout/_properties.login.scss +32 -0
  79. package/layout/_variables.card.scss +23 -0
  80. package/layout/_variables.login.scss +22 -0
  81. package/layout/breadcrumbs/_breadcrumbs.clarity.scss +60 -0
  82. package/layout/breadcrumbs/_properties.breadcrumbs.scss +18 -0
  83. package/layout/breadcrumbs/_variables.breadcrumbs.scss +11 -0
  84. package/layout/grid/_grid.scss +23 -0
  85. package/layout/grid/grid/_grid.scss +39 -0
  86. package/layout/grid/mixins/_breakpoint.scss +83 -0
  87. package/layout/grid/mixins/_clearfix.scss +13 -0
  88. package/layout/grid/mixins/_grid-framework.scss +91 -0
  89. package/layout/grid/mixins/_grid.scss +39 -0
  90. package/layout/grid/utilities/_align.scss +30 -0
  91. package/layout/grid/utilities/_clearfix.scss +12 -0
  92. package/layout/grid/utilities/_display.scss +18 -0
  93. package/layout/grid/utilities/_flex.scss +222 -0
  94. package/layout/grid/utilities/_float.scss +26 -0
  95. package/layout/grid/utilities/_visibility.scss +60 -0
  96. package/layout/main-container/_layout.clarity.scss +87 -0
  97. package/layout/main-container/_properties.header.scss +39 -0
  98. package/layout/main-container/_variables.header.scss +32 -0
  99. package/layout/nav/_header.clarity.scss +40 -0
  100. package/layout/nav/_links.clarity.scss +84 -0
  101. package/layout/nav/_mixins.header.scss +332 -0
  102. package/layout/nav/_mixins.responsive-nav.scss +75 -0
  103. package/layout/nav/_nav.clarity.scss +100 -0
  104. package/layout/nav/_properties.nav.scss +27 -0
  105. package/layout/nav/_properties.responsive-nav.scss +23 -0
  106. package/layout/nav/_properties.subnav.scss +19 -0
  107. package/layout/nav/_responsive-nav.clarity.scss +488 -0
  108. package/layout/nav/_subnav.clarity.scss +48 -0
  109. package/layout/nav/_variables.nav.scss +13 -0
  110. package/layout/nav/_variables.responsive-nav.scss +28 -0
  111. package/layout/nav/_variables.subnav.scss +21 -0
  112. package/layout/tabs/_mixins.tabs.scss +41 -0
  113. package/layout/tabs/_properties.tabs.scss +25 -0
  114. package/layout/tabs/_tabs.clarity.scss +110 -0
  115. package/layout/tabs/_variables.tabs.scss +17 -0
  116. package/layout/vertical-nav/_mixins.vertical-nav.scss +52 -0
  117. package/layout/vertical-nav/_properties.vertical-nav.scss +73 -0
  118. package/layout/vertical-nav/_variables.vertical-nav.scss +52 -0
  119. package/layout/vertical-nav/_vertical-nav.clarity.scss +469 -0
  120. package/main.scss +14 -0
  121. package/modal/_modal.clarity.scss +362 -0
  122. package/modal/_properties.modal.scss +45 -0
  123. package/modal/_variables.modal.scss +38 -0
  124. package/package.json +15 -0
  125. package/popover/common/_popover.clarity.scss +28 -0
  126. package/popover/dropdown/_dropdown.clarity.scss +326 -0
  127. package/popover/dropdown/_menu-mixins.clarity.scss +132 -0
  128. package/popover/dropdown/_properties.dropdown.scss +50 -0
  129. package/popover/dropdown/_variables.dropdown.scss +36 -0
  130. package/popover/signpost/_properties.signpost.scss +34 -0
  131. package/popover/signpost/_signposts.clarity.scss +414 -0
  132. package/popover/signpost/_variables.signpost.scss +21 -0
  133. package/popover/tooltip/_mixins.tooltip.scss +186 -0
  134. package/popover/tooltip/_properties.tooltip.scss +28 -0
  135. package/popover/tooltip/_tooltips.clarity.scss +122 -0
  136. package/popover/tooltip/_variables.tooltip.scss +20 -0
  137. package/progress/progress-bars/_progress-bars.clarity.scss +616 -0
  138. package/progress/progress-bars/_properties.progress-bars.scss +24 -0
  139. package/progress/progress-bars/_variables.progress-bars.scss +15 -0
  140. package/progress/progress-bars/utils/_mixins.clarity.scss +18 -0
  141. package/progress/spinner/_mixins.spinner.scss +30 -0
  142. package/progress/spinner/_properties.spinner.scss +37 -0
  143. package/progress/spinner/_spinner.clarity.scss +148 -0
  144. package/progress/spinner/_variables.spinner.scss +25 -0
  145. package/stepper/_properties.stepper.scss +29 -0
  146. package/stepper/_stepper.clarity.scss +184 -0
  147. package/stepper/_variables.stepper.scss +13 -0
  148. package/styles/_a11y.scss +14 -0
  149. package/styles/_close.clarity.scss +60 -0
  150. package/styles/_components.clarity.scss +183 -0
  151. package/styles/_mixins.scss +478 -0
  152. package/styles/_normalize.scss +292 -0
  153. package/styles/_reboot.clarity.scss +374 -0
  154. package/styles/_variables.clarity.scss +139 -0
  155. package/styles/core/base/base.element.scss +97 -0
  156. package/styles/core/global.scss +12 -0
  157. package/styles/core/layout/_alignments.scss +18 -0
  158. package/styles/core/layout/_container.scss +29 -0
  159. package/styles/core/layout/_display.scss +58 -0
  160. package/styles/core/layout/_optimize.scss +60 -0
  161. package/styles/core/layout/_shadow-dom.scss +47 -0
  162. package/styles/core/layout/_spacing.scss +31 -0
  163. package/styles/core/layout/_type-grid.scss +66 -0
  164. package/styles/core/layout/_type-horizontal.scss +33 -0
  165. package/styles/core/layout/_type-vertical.scss +26 -0
  166. package/styles/core/layout/mixins/_mixins.alignment.scss +35 -0
  167. package/styles/core/layout/mixins/_mixins.display.scss +23 -0
  168. package/styles/core/layout/mixins/_mixins.grid.scss +105 -0
  169. package/styles/core/layout/mixins/_mixins.scss +106 -0
  170. package/styles/core/layout/mixins/_mixins.shadow-dom.scss +106 -0
  171. package/styles/core/layout/mixins/_mixins.type-horizontal.scss +113 -0
  172. package/styles/core/layout/mixins/_mixins.type-vertical.scss +108 -0
  173. package/styles/core/module.layout.scss +22 -0
  174. package/styles/core/module.reset.scss +48 -0
  175. package/styles/core/module.typography.scss +9 -0
  176. package/styles/core/theme.dark.scss +266 -0
  177. package/styles/core/theme.high-contrast.scss +42 -0
  178. package/styles/core/theme.low-motion.scss +20 -0
  179. package/styles/core/tokens/_alias-interaction.scss +59 -0
  180. package/styles/core/tokens/_alias-object-background.scss +14 -0
  181. package/styles/core/tokens/_alias-object-border.scss +21 -0
  182. package/styles/core/tokens/_alias-object-container.scss +20 -0
  183. package/styles/core/tokens/_alias-object-opacity.scss +15 -0
  184. package/styles/core/tokens/_alias-object-shadow.scss +17 -0
  185. package/styles/core/tokens/_alias-status.scss +34 -0
  186. package/styles/core/tokens/_alias-typography.scss +101 -0
  187. package/styles/core/tokens/_alias-utility.scss +38 -0
  188. package/styles/core/tokens/_alias-viz-colors.scss +170 -0
  189. package/styles/core/tokens/_global-animation.scss +32 -0
  190. package/styles/core/tokens/_global-colors.scss +249 -0
  191. package/styles/core/tokens/_global-space.scss +52 -0
  192. package/styles/core/tokens/_internal-scale.scss +14 -0
  193. package/styles/core/tokens/_properties.tokens.scss +21 -0
  194. package/styles/core/tokens/_variables.tokens.scss +770 -0
  195. package/styles/core/typography/_legacy-typography.scss +328 -0
  196. package/styles/core/typography/_mixins.typography.scss +18 -0
  197. package/styles/core/typography/_typography.scss +321 -0
  198. package/styles/variables/_properties.density.scss +223 -0
  199. package/styles/variables/_properties.global.scss +51 -0
  200. package/styles/variables/_properties.layout.scss +21 -0
  201. package/styles/variables/_properties.scss +11 -0
  202. package/styles/variables/_properties.typography.scss +164 -0
  203. package/styles/variables/_variables.density.scss +114 -0
  204. package/styles/variables/_variables.global.scss +82 -0
  205. package/styles/variables/_variables.layout.scss +37 -0
  206. package/styles/variables/_variables.scss +11 -0
  207. package/styles/variables/_variables.typography.scss +156 -0
  208. package/timeline/_properties.timeline.scss +38 -0
  209. package/timeline/_timeline.clarity.scss +172 -0
  210. package/timeline/_variables.timeline.scss +29 -0
  211. package/typography/_code.scss +36 -0
  212. package/typography/_font-metropolis.scss +45 -0
  213. package/typography/_lists.scss +81 -0
  214. package/typography/_typography.scss +322 -0
  215. package/utils/animations/_animations.clarity.scss +44 -0
  216. package/utils/animations/_mixins.animations.scss +33 -0
  217. package/wizard/_properties.wizard.scss +53 -0
  218. package/wizard/_variables.wizard.scss +58 -0
  219. package/wizard/_wizard.clarity.scss +688 -0
@@ -0,0 +1,688 @@
1
+ /*
2
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
3
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
+ * This software is released under MIT license.
5
+ * The full license information can be found in LICENSE in the root directory of this project.
6
+ */
7
+ // NOTE THAT THE MIN-WIDTH OF THE BUTTONS WILL PUSH OUT THE DIALOG IF
8
+ // SET UP IMPROPERLY. THIS IS A KNOWN ISSUE AND USERS SHOULD USE THEIR
9
+ // BEST JUDGMENT WITH BUTTONS IN THE WIZARD. NO MORE THAN THREE...
10
+ // IT'S AN ISSUE WITH THE NUMBER OF BUTTONS, NOT THE LENGTH OF THE TEXT
11
+ // INSIDE THE BUTTONS
12
+
13
+ @use 'sass:string';
14
+ @use 'sass:meta';
15
+ @use '../modal/variables.modal' as modal-variables;
16
+ @use '../styles/mixins';
17
+ @use '../styles/variables/variables.global';
18
+ @use 'variables.wizard' as wizard-variables;
19
+ @use '../styles/variables/variables.density' as density;
20
+ @use '../styles/core/tokens/variables.tokens' as tokens;
21
+
22
+ // Path from the wizard host to the content-wrapper when going through the modal.
23
+ // Used to scope styles so they don't leak into nested wizard instances.
24
+ $_modal-path: '> clr-modal > .modal > .modal-dialog > .clr-wizard-content-wrapper';
25
+
26
+ @include meta.load-css('properties.wizard');
27
+ @include mixins.exports('wizard.clarity') {
28
+ .clr-wizard {
29
+ .modal-dialog {
30
+ display: flex;
31
+ flex-direction: column;
32
+ align-items: center;
33
+ box-shadow: wizard-variables.$clr-wizard-box-shadow;
34
+ height: 50%;
35
+ max-height: 100%;
36
+ }
37
+
38
+ .clr-wizard-btn {
39
+ margin: 0;
40
+ max-width: 100%;
41
+ display: block;
42
+ }
43
+
44
+ .clr-wizard-header-action-wrapper {
45
+ display: inline-flex;
46
+ }
47
+
48
+ .clr-wizard-header-action {
49
+ @include mixins.min-equilateral(density.$clr-base-icon-size-l);
50
+
51
+ border: 0;
52
+ padding: 0;
53
+ margin: 0;
54
+ line-height: density.$clr-base-icon-size-l;
55
+ font-size: density.$clr-base-icon-size-l;
56
+ color: wizard-variables.$clr-wizard-header-action-color;
57
+ transition: color linear 0.2s;
58
+
59
+ & a {
60
+ color: wizard-variables.$clr-wizard-header-action-color;
61
+ }
62
+
63
+ &:hover,
64
+ &:active,
65
+ &:focus {
66
+ color: wizard-variables.$clr-wizard-header-action-color--hovered;
67
+ }
68
+
69
+ cds-icon:not([size]),
70
+ clr-icon:not([size]) {
71
+ @include mixins.equilateral(density.$clr-base-icon-size-l);
72
+ }
73
+ }
74
+
75
+ .clr-wizard-stepnav-list {
76
+ display: flex;
77
+ flex-direction: column;
78
+ box-shadow: none;
79
+ counter-reset: a;
80
+ white-space: nowrap;
81
+ height: auto;
82
+ list-style-type: none;
83
+ margin: 0;
84
+ width: 100%;
85
+ gap: tokens.$cds-global-space-1;
86
+ }
87
+
88
+ .clr-wizard-stepnav-item {
89
+ display: block;
90
+ border-left-width: wizard-variables.$clr-wizard-stepnav-border-size;
91
+ border-left-style: solid;
92
+ border-color: wizard-variables.$clr-wizard-stepnav-item-border-color;
93
+ color: wizard-variables.$clr-wizard-stepnav-text;
94
+ background-color: wizard-variables.$clr-wizard-stepnav-bgcolor;
95
+
96
+ button.clr-wizard-stepnav-link {
97
+ color: inherit;
98
+ background-color: inherit;
99
+ }
100
+
101
+ &.disabled {
102
+ color: wizard-variables.$clr-wizard-stepnav-text-disabled;
103
+ }
104
+
105
+ &.active {
106
+ color: wizard-variables.$clr-wizard-stepnav-text-selected;
107
+ background-color: wizard-variables.$clr-wizard-stepnav-selected-bgcolor;
108
+ border-color: wizard-variables.$clr-wizard-stepnav-selected-border-color;
109
+
110
+ &:hover {
111
+ background-color: wizard-variables.$clr-wizard-stepnav-selected-hover-bgcolor;
112
+ }
113
+
114
+ &:active {
115
+ background-color: wizard-variables.$clr-wizard-stepnav-selected-active-bgcolor;
116
+ }
117
+ }
118
+
119
+ &:not(.disabled, .active) {
120
+ &:hover {
121
+ color: wizard-variables.$clr-wizard-stepnav-text-hover;
122
+ background-color: wizard-variables.$clr-wizard-stepnav-hover-bgcolor;
123
+ }
124
+
125
+ &:active {
126
+ color: wizard-variables.$clr-wizard-stepnav-text-active;
127
+ background-color: wizard-variables.$clr-wizard-stepnav-active-bgcolor;
128
+ }
129
+ }
130
+
131
+ .clr-wizard-stepnav-link-title {
132
+ overflow-wrap: break-word;
133
+ word-break: normal;
134
+ white-space: normal;
135
+ }
136
+
137
+ &.complete {
138
+ border-color: wizard-variables.$clr-wizard-stepnav-item-complete-border-color;
139
+
140
+ .clr-wizard-stepnav-link-icon {
141
+ cds-icon,
142
+ clr-icon {
143
+ --color: #{wizard-variables.$clr-wizard-stepnav-link-complete-icon-color};
144
+ }
145
+ }
146
+ }
147
+
148
+ &.error {
149
+ border-color: wizard-variables.$clr-wizard-stepnav-item-error-border-color;
150
+
151
+ &.active:not(:active, :hover) {
152
+ background-color: wizard-variables.$clr-wizard-stepnav-selected-error-bgcolor;
153
+ }
154
+
155
+ .clr-wizard-stepnav-link-icon {
156
+ cds-icon,
157
+ clr-icon {
158
+ --color: #{wizard-variables.$clr-wizard-stepnav-link-error-icon-color};
159
+ }
160
+ }
161
+ }
162
+
163
+ &.no-click button {
164
+ pointer-events: none;
165
+ }
166
+ }
167
+
168
+ .clr-wizard-stepnav-link {
169
+ width: 100%;
170
+ display: flex;
171
+ place-content: normal;
172
+ color: inherit;
173
+ align-items: center;
174
+ text-align: left;
175
+ text-transform: none;
176
+ margin: 0;
177
+ gap: density.$clr-base-gap-s;
178
+ padding: density.$clr-base-vertical-offset-m density.$clr-base-horizontal-offset-m;
179
+ height: auto;
180
+ max-width: inherit;
181
+
182
+ @include mixins.generate-typography-token('BODY-14-MD-STD');
183
+
184
+ .clr-wizard-stepnav-link-icon {
185
+ display: flex;
186
+ }
187
+
188
+ .clr-wizard-stepnav-link-icon,
189
+ .clr-wizard-stepnav-link-page-number {
190
+ min-width: density.$clr-base-icon-size-s;
191
+ }
192
+
193
+ .clr-wizard-stepnav-link-page-number {
194
+ text-align: center;
195
+ }
196
+ }
197
+
198
+ .clr-wizard-footer-buttons {
199
+ text-align: right;
200
+ margin: 0;
201
+ }
202
+
203
+ .clr-wizard-footer-buttons-wrapper {
204
+ display: flex;
205
+ flex-flow: row nowrap;
206
+ gap: density.$clr-base-gap-l;
207
+
208
+ &.align-start {
209
+ justify-content: flex-start;
210
+ }
211
+
212
+ &.align-end {
213
+ justify-content: flex-end;
214
+ }
215
+ }
216
+
217
+ .clr-wizard-btn-wrapper {
218
+ flex: 0 1 auto;
219
+ }
220
+
221
+ .clr-wizard-btn-wrapper[aria-hidden='true'] {
222
+ display: none;
223
+ }
224
+
225
+ .clr-wizard-btn.btn-link {
226
+ padding: 0;
227
+ }
228
+
229
+ .clr-wizard-content {
230
+ display: flex;
231
+ flex-direction: column;
232
+ flex: 1 1 auto;
233
+ }
234
+
235
+ .clr-wizard-page:not([aria-hidden='true']) {
236
+ display: flex;
237
+ flex-direction: column;
238
+ flex: 1 1 auto;
239
+ }
240
+
241
+ .spinner:not(.spinner-inline, .clr-treenode-spinner) {
242
+ left: calc(50% + #{mixins.baselinePx(115)});
243
+ position: absolute;
244
+ top: 40%;
245
+ }
246
+ }
247
+
248
+ // Structural layout styles scoped to the content-wrapper to prevent
249
+ // leaking into nested wizard instances.
250
+ .clr-wizard-content-wrapper {
251
+ display: flex;
252
+ flex-direction: row;
253
+ flex: 1 1 100%;
254
+
255
+ @include mixins.equilateral(100%);
256
+ // firefox fix
257
+ max-height: 100%;
258
+
259
+ > .clr-wizard-main-content {
260
+ border-radius: 0 wizard-variables.$clr-wizard-border-radius wizard-variables.$clr-wizard-border-radius 0;
261
+ box-shadow: none;
262
+ padding: 0;
263
+ flex: 2 2 auto;
264
+ width: 66%;
265
+ height: initial;
266
+ overflow: hidden;
267
+ display: flex;
268
+ align-items: flex-start;
269
+ flex-direction: column;
270
+ }
271
+
272
+ > .clr-wizard-main-content > .clr-wizard-header {
273
+ flex: 0 0 auto;
274
+ width: 100%;
275
+ display: flex;
276
+ justify-content: space-between;
277
+ align-items: flex-start;
278
+ border-bottom: none;
279
+ gap: density.$clr-base-gap-s;
280
+ padding: wizard-variables.$clr-wizard-vertical-space wizard-variables.$clr-wizard-horizontal-space 0;
281
+ }
282
+
283
+ > .clr-wizard-main-content .clr-wizard-page-title {
284
+ display: flex;
285
+ flex-direction: row;
286
+ width: 100%;
287
+ margin: 0;
288
+
289
+ @include mixins.generate-typography-token('SECTION-20-STD');
290
+ }
291
+
292
+ > .clr-wizard-main-content .clr-wizard-page-title-text {
293
+ display: inline-block;
294
+ flex: 0 1 auto;
295
+ width: 100%;
296
+ outline: none;
297
+ }
298
+
299
+ > .clr-wizard-main-content .clr-wizard-page-title-wrapper {
300
+ width: 100%;
301
+ }
302
+
303
+ > .clr-wizard-main-content .clr-wizard-header-actions-wrapper {
304
+ height: density.$clr-base-row-height-s;
305
+ padding-left: density.$clr-base-horizontal-offset-l;
306
+ padding-right: density.$clr-base-horizontal-offset-xs;
307
+ }
308
+
309
+ .close {
310
+ font-size: initial;
311
+ line-height: initial;
312
+
313
+ cds-icon,
314
+ clr-icon {
315
+ fill: modal-variables.$clr-modal-close-color;
316
+
317
+ &:not([size]) {
318
+ @include mixins.equilateral(modal-variables.$clr-modal-icon-size);
319
+ }
320
+ }
321
+
322
+ &:hover {
323
+ cds-icon,
324
+ clr-icon {
325
+ fill: variables.$clr-close-color-hover;
326
+ }
327
+
328
+ &:active {
329
+ cds-icon,
330
+ clr-icon {
331
+ fill: variables.$clr-close-color-active;
332
+ }
333
+ }
334
+ }
335
+ }
336
+
337
+ > .clr-wizard-main-content .clr-wizard-body {
338
+ flex: 1 1 auto;
339
+ display: flex;
340
+ flex-direction: column;
341
+ color: wizard-variables.$clr-wizard-main-text-color;
342
+ width: 100%;
343
+ padding: wizard-variables.$clr-wizard-vertical-space wizard-variables.$clr-wizard-horizontal-space;
344
+ }
345
+
346
+ > .clr-wizard-main-content > .clr-wizard-footer {
347
+ display: block;
348
+ width: 100%;
349
+ flex: 0 0 wizard-variables.$clr-wizard-footer-height;
350
+ height: wizard-variables.$clr-wizard-footer-height;
351
+ min-height: wizard-variables.$clr-wizard-footer-height;
352
+ max-height: wizard-variables.$clr-wizard-footer-height;
353
+ padding: wizard-variables.$clr-wizard-footer-vertical-space wizard-variables.$clr-wizard-horizontal-space;
354
+ border-top: tokens.$cds-global-space-1 solid wizard-variables.$clr-wizard-stepnav-border-color;
355
+ }
356
+
357
+ > .clr-wizard-main-content > .clr-wizard-body-wrapper {
358
+ max-height: 100%;
359
+ display: flex;
360
+ flex-direction: column;
361
+ flex-grow: 1;
362
+ width: 100%;
363
+ overflow: hidden auto;
364
+ }
365
+
366
+ > .clr-wizard-stepnav-wrapper {
367
+ flex: 1 1 auto;
368
+ height: 100%;
369
+ width: 34%;
370
+ max-width: 34%;
371
+ display: flex;
372
+ flex-direction: column;
373
+ overflow: hidden;
374
+ border-right: tokens.$cds-global-space-1 solid wizard-variables.$clr-wizard-stepnav-border-color;
375
+ background-color: wizard-variables.$clr-wizard-stepnav-bgcolor;
376
+ border-radius: wizard-variables.$clr-wizard-border-radius 0 0 wizard-variables.$clr-wizard-border-radius;
377
+ }
378
+
379
+ > .clr-wizard-stepnav-wrapper > .clr-wizard-stepnav {
380
+ padding-left: wizard-variables.$clr-wizard-horizontal-space;
381
+ display: block;
382
+ color: wizard-variables.$clr-wizard-stepnav-text;
383
+ width: 100%;
384
+ flex: 1 1 auto;
385
+ overflow-y: auto;
386
+ }
387
+
388
+ > .clr-wizard-stepnav-wrapper > .clr-wizard-title,
389
+ > .clr-wizard-title-wrapper .clr-wizard-title {
390
+ margin-top: 0;
391
+ flex: 0 0 auto;
392
+ color: wizard-variables.$clr-wizard-title-text;
393
+ padding: wizard-variables.$clr-wizard-vertical-space wizard-variables.$clr-wizard-horizontal-space;
394
+
395
+ @include mixins.generate-typography-token('SECTION-20-STD');
396
+ }
397
+ }
398
+
399
+ // Sizing — all selectors use either direct child or the full modal path
400
+ // to avoid leaking into nested wizard instances.
401
+ .clr-wizard {
402
+ &.wizard-md {
403
+ > clr-modal > .modal > .modal-dialog {
404
+ min-height: wizard-variables.$clr-wizard-all-dialog-min-height;
405
+ max-height: wizard-variables.$clr-wizard-md-dialog-max-height;
406
+ }
407
+
408
+ #{$_modal-path} > .clr-wizard-main-content,
409
+ #{$_modal-path} > .clr-wizard-stepnav-wrapper,
410
+ > .clr-wizard-content-wrapper > .clr-wizard-main-content,
411
+ > .clr-wizard-content-wrapper > .clr-wizard-stepnav-wrapper {
412
+ max-height: wizard-variables.$clr-wizard-md-dialog-max-height;
413
+ }
414
+
415
+ #{$_modal-path} > .clr-wizard-stepnav-wrapper,
416
+ > .clr-wizard-content-wrapper > .clr-wizard-stepnav-wrapper {
417
+ min-width: wizard-variables.$clr-wizard-md-nav-min-width;
418
+ max-width: wizard-variables.$clr-wizard-md-nav-max-width;
419
+ }
420
+ }
421
+
422
+ &.wizard-lg {
423
+ > clr-modal > .modal > .modal-dialog {
424
+ min-height: wizard-variables.$clr-wizard-all-dialog-min-height;
425
+ max-height: wizard-variables.$clr-wizard-lg-dialog-max-height;
426
+ }
427
+
428
+ #{$_modal-path} > .clr-wizard-main-content,
429
+ #{$_modal-path} > .clr-wizard-stepnav-wrapper,
430
+ > .clr-wizard-content-wrapper > .clr-wizard-main-content,
431
+ > .clr-wizard-content-wrapper > .clr-wizard-stepnav-wrapper {
432
+ max-height: wizard-variables.$clr-wizard-lg-dialog-max-height;
433
+ }
434
+
435
+ #{$_modal-path} > .clr-wizard-stepnav-wrapper,
436
+ > .clr-wizard-content-wrapper > .clr-wizard-stepnav-wrapper {
437
+ min-width: wizard-variables.$clr-wizard-lg-nav-min-width;
438
+ max-width: wizard-variables.$clr-wizard-lg-nav-max-width;
439
+ }
440
+ }
441
+
442
+ &.wizard-xl {
443
+ > clr-modal > .modal > .modal-dialog {
444
+ height: wizard-variables.$clr-wizard-xl-dialog-max-height;
445
+ max-height: none;
446
+ }
447
+
448
+ #{$_modal-path} > .clr-wizard-stepnav-wrapper,
449
+ > .clr-wizard-content-wrapper > .clr-wizard-stepnav-wrapper {
450
+ min-width: wizard-variables.$clr-wizard-xl-nav-min-width;
451
+ max-width: wizard-variables.$clr-wizard-xl-nav-max-width;
452
+ }
453
+ }
454
+ }
455
+
456
+ .clr-wizard-page {
457
+ & > *:first-child {
458
+ margin-top: 0;
459
+
460
+ & > *:first-child {
461
+ margin-top: 0;
462
+ }
463
+ }
464
+
465
+ & > form:first-child {
466
+ padding-top: 0;
467
+
468
+ & > .form-block:first-child {
469
+ margin-top: 0;
470
+ }
471
+ }
472
+ }
473
+
474
+ // Inline wizards are used by vSphere plugins to display a wizard inside an iframe that is inside a modal.
475
+ .clr-wizard--inline {
476
+ display: block;
477
+ width: 100%;
478
+
479
+ & > clr-modal > .modal:focus {
480
+ outline-style: none;
481
+ outline-color: transparent;
482
+ }
483
+
484
+ clr-modal {
485
+ @include mixins.equilateral(100%);
486
+
487
+ display: block;
488
+ }
489
+
490
+ .modal {
491
+ padding: 0;
492
+ position: static;
493
+ height: 100%;
494
+ max-height: 100%;
495
+
496
+ .content-container {
497
+ height: 100%;
498
+
499
+ .nav-panel {
500
+ @include mixins.equilateral(99%);
501
+ }
502
+ }
503
+
504
+ .modal-dialog {
505
+ min-height: 100%;
506
+
507
+ @include mixins.equilateral(100%);
508
+
509
+ z-index: auto;
510
+ }
511
+ }
512
+
513
+ #{$_modal-path} > .clr-wizard-main-content > .clr-wizard-body-wrapper {
514
+ height: 100%;
515
+ }
516
+
517
+ .close {
518
+ display: none;
519
+ }
520
+
521
+ .nav.navList {
522
+ padding-top: 0;
523
+ }
524
+
525
+ .modal-backdrop {
526
+ @include mixins.equilateral(0);
527
+
528
+ display: none;
529
+ }
530
+
531
+ #{$_modal-path} {
532
+ align-items: stretch;
533
+ height: 100%;
534
+ }
535
+
536
+ #{$_modal-path} > .clr-wizard-stepnav-wrapper,
537
+ #{$_modal-path} > .clr-wizard-main-content {
538
+ min-height: 100%;
539
+ height: auto;
540
+ max-height: 100%;
541
+
542
+ .clr-wizard-stepnav {
543
+ height: 100%;
544
+ }
545
+ }
546
+ }
547
+
548
+ .clr-wizard--no-shadow {
549
+ > .clr-wizard-content-wrapper,
550
+ #{$_modal-path},
551
+ > clr-modal > .modal > .modal-dialog {
552
+ box-shadow: none;
553
+ }
554
+ }
555
+
556
+ .clr-wizard--no-title {
557
+ > .clr-wizard-content-wrapper .clr-wizard-title,
558
+ #{$_modal-path} .clr-wizard-title {
559
+ display: none;
560
+ }
561
+
562
+ > .clr-wizard-content-wrapper .clr-wizard-stepnav,
563
+ #{$_modal-path} .clr-wizard-stepnav {
564
+ padding-top: density.$clr-base-vertical-offset-2xl;
565
+ }
566
+ }
567
+
568
+ .clr-wizard.wizard-horizontal {
569
+ > .clr-wizard-content-wrapper,
570
+ #{$_modal-path} {
571
+ flex-direction: column;
572
+
573
+ > .clr-wizard-title-wrapper {
574
+ display: flex;
575
+ align-items: center;
576
+ gap: density.$clr-base-gap-s;
577
+ padding: wizard-variables.$clr-wizard-vertical-space wizard-variables.$clr-wizard-horizontal-space;
578
+
579
+ .clr-wizard-title {
580
+ flex: 1;
581
+ padding: 0;
582
+ }
583
+ }
584
+
585
+ > .clr-wizard-main-content,
586
+ > .clr-wizard-stepnav-wrapper {
587
+ width: 100%;
588
+ }
589
+
590
+ > .clr-wizard-stepnav-wrapper {
591
+ flex: 0;
592
+ height: unset;
593
+ max-width: unset;
594
+ overflow: unset;
595
+ border-right: 0;
596
+ border-bottom: tokens.$cds-global-space-1 solid wizard-variables.$clr-wizard-stepnav-border-color;
597
+ border-radius: wizard-variables.$clr-wizard-border-radius wizard-variables.$clr-wizard-border-radius 0 0;
598
+
599
+ .clr-wizard-stepnav {
600
+ display: flex;
601
+ position: relative;
602
+ padding: 0 wizard-variables.$clr-wizard-horizontal-space;
603
+ }
604
+
605
+ .clr-wizard-stepnav-nav {
606
+ width: 100%;
607
+ }
608
+
609
+ .clr-wizard-stepnav-list {
610
+ display: flex;
611
+ flex-direction: row;
612
+ overflow-x: hidden;
613
+ }
614
+
615
+ .clr-wizard-stepnav-item {
616
+ flex: 1 0 auto;
617
+ border-left: 0;
618
+ border-bottom-width: wizard-variables.$clr-wizard-stepnav-border-size;
619
+ border-bottom-style: solid;
620
+
621
+ .clr-wizard-stepnav-link {
622
+ padding: density.$clr-base-horizontal-offset-m density.$clr-base-horizontal-offset-2xl
623
+ density.$clr-base-horizontal-offset-m density.$clr-base-horizontal-offset-m;
624
+ }
625
+
626
+ &:not(.complete, .error) {
627
+ .clr-wizard-stepnav-link {
628
+ padding-left: density.$clr-base-horizontal-offset-m;
629
+ }
630
+ }
631
+ }
632
+
633
+ .clr-wizard-stepnav-scroll-button-left,
634
+ .clr-wizard-stepnav-scroll-button-right {
635
+ position: absolute;
636
+ padding: 0 density.$clr-base-horizontal-offset-s;
637
+ background-color: tokens.$cds-alias-object-container-background;
638
+ height: 100%;
639
+ margin: 0;
640
+ z-index: 1;
641
+
642
+ &:active {
643
+ background-color: tokens.$cds-alias-object-interaction-background-active;
644
+ }
645
+
646
+ &:hover {
647
+ background-color: tokens.$cds-alias-object-interaction-background-hover;
648
+ }
649
+ }
650
+
651
+ .clr-wizard-stepnav-scroll-button-left {
652
+ left: density.$clr-base-horizontal-offset-xs;
653
+ }
654
+
655
+ .clr-wizard-stepnav-scroll-button-right {
656
+ right: density.$clr-base-horizontal-offset-xs;
657
+ }
658
+ }
659
+ }
660
+ }
661
+
662
+ .wizard-in-page {
663
+ height: 100%;
664
+
665
+ @at-root .main-container .content-container .content-area &.wizard-in-page--fill-content-area {
666
+ display: block;
667
+ height: calc(100% + #{variables.$clr-content-area-padding-top} + #{variables.$clr-content-area-padding-bottom});
668
+ margin: calc(-1 * #{variables.$clr-content-area-padding-top})
669
+ calc(-1 * #{variables.$clr-content-area-padding-right}) calc(-1 * #{variables.$clr-content-area-padding-bottom})
670
+ calc(-1 * #{variables.$clr-content-area-padding-left});
671
+ padding: 0;
672
+ }
673
+
674
+ &.wizard-in-page--fill-content-area {
675
+ display: flex;
676
+ flex-direction: column;
677
+ flex: 1 1 auto;
678
+ margin: calc(-1 * #{wizard-variables.$clr-wizard-vertical-space})
679
+ calc(-1 * #{wizard-variables.$clr-wizard-horizontal-space});
680
+ }
681
+ }
682
+
683
+ @media screen {
684
+ .clr-wizard-page[aria-hidden='true'] {
685
+ display: none;
686
+ }
687
+ }
688
+ }