@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,488 @@
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
+
8
+ @use 'sass:map';
9
+ @use 'sass:meta';
10
+ @use '../../styles/mixins';
11
+ @use '../../styles/variables/variables';
12
+ @use '../main-container/variables.header' as header-variables;
13
+ @use '../vertical-nav/mixins.vertical-nav' as vertical-nav-mixins;
14
+ @use 'mixins.header' as header-mixins;
15
+ @use 'variables.responsive-nav' as responsive-nav-variables;
16
+ @use 'mixins.responsive-nav' as responsive-nav-mixins;
17
+ @use '../../styles/variables/variables' as util-variables;
18
+ @use '../../layout/vertical-nav/variables.vertical-nav' as vertical-nav-variables;
19
+ @use '../tabs/tabs.clarity' as tabs;
20
+ @use 'variables.subnav' as nav-variables;
21
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
22
+ @use '../../styles/variables/variables.density' as density;
23
+
24
+ @include meta.load-css('properties.responsive-nav');
25
+ @include mixins.exports('responsive-nav.clarity') {
26
+ .clr-nav-close {
27
+ margin: density.$clr-base-vertical-offset-l density.$clr-base-horizontal-offset-l;
28
+ background: none;
29
+ border: none;
30
+ color: var(--color);
31
+
32
+ --color: #{tokens.$cds-global-color-white};
33
+
34
+ &:hover,
35
+ &:focus {
36
+ --color: #{tokens.$cds-global-color-warm-gray-100};
37
+ }
38
+ }
39
+
40
+ .header-hamburger-trigger,
41
+ .header-overflow-trigger {
42
+ display: none;
43
+ }
44
+
45
+ .header-hamburger-trigger {
46
+ $trigger-span-pseudo-positioning: calc(-1 * tokens.$cds-global-space-5);
47
+
48
+ & > span,
49
+ & > span::before,
50
+ & > span::after {
51
+ display: inline-block;
52
+ height: tokens.$cds-global-space-2;
53
+ width: tokens.$cds-global-space-9;
54
+ background: responsive-nav-variables.$clr-responsive-nav-trigger-bg-color;
55
+ border-radius: tokens.$cds-alias-object-border-radius-100;
56
+ }
57
+
58
+ & > span {
59
+ position: relative;
60
+ vertical-align: middle;
61
+
62
+ &::before,
63
+ &::after {
64
+ content: '';
65
+ position: absolute;
66
+ left: 0;
67
+ }
68
+
69
+ &::before {
70
+ top: $trigger-span-pseudo-positioning;
71
+ }
72
+
73
+ &::after {
74
+ bottom: $trigger-span-pseudo-positioning;
75
+ }
76
+ }
77
+
78
+ &.active {
79
+ @include responsive-nav-mixins.hamburger-menu-trigger-animation();
80
+ }
81
+ }
82
+
83
+ .header-overflow-trigger {
84
+ $overflow-trigger-pseudo-positioning: calc(-1 * tokens.$cds-global-space-5);
85
+
86
+ & > span,
87
+ & > span::before,
88
+ & > span::after {
89
+ display: inline-block;
90
+
91
+ @include mixins.equilateral(tokens.$cds-global-space-3);
92
+
93
+ background: responsive-nav-variables.$clr-responsive-nav-trigger-bg-color;
94
+ // TODO: Use border radius token?
95
+ border-radius: tokens.$cds-global-space-3;
96
+ }
97
+
98
+ & > span {
99
+ position: relative;
100
+ vertical-align: middle;
101
+
102
+ &::before,
103
+ &::after {
104
+ content: '';
105
+ position: absolute;
106
+ left: 0;
107
+ }
108
+
109
+ &::before {
110
+ top: $overflow-trigger-pseudo-positioning;
111
+ }
112
+
113
+ &::after {
114
+ bottom: $overflow-trigger-pseudo-positioning;
115
+ }
116
+ }
117
+
118
+ &.active {
119
+ @include responsive-nav-mixins.overflow-menu-trigger-animation();
120
+ }
121
+ }
122
+
123
+ @media screen and (max-width: map.get(variables.$clr-grid-breakpoints, lg)) {
124
+ .main-container {
125
+ .header-hamburger-trigger,
126
+ .header-overflow-trigger {
127
+ display: inline-block;
128
+ border: none;
129
+ background: none;
130
+ cursor: pointer;
131
+
132
+ @include mixins.equilateral(header-variables.$clr-header-height);
133
+
134
+ // TODO: replace `hamburger` and `dots` to use CDS-ICON `bars` and `ellipsis-vertical` respectively.
135
+ // 2px to vertically align the trigger lines. display flex was not working on all browsers.
136
+ padding: 0 0 tokens.$cds-global-space-2 0;
137
+ text-align: center;
138
+ white-space: nowrap;
139
+
140
+ &:focus {
141
+ // So that the outline styles aren't hidden because of the browser
142
+ outline-offset: calc(-1 * tokens.$cds-global-space-4);
143
+ }
144
+
145
+ @include header-mixins.header-nav-appearance();
146
+ }
147
+
148
+ .header-nav.clr-nav-level-1,
149
+ .subnav.clr-nav-level-1,
150
+ .sub-nav.clr-nav-level-1,
151
+ .clr-vertical-nav.clr-nav-level-1 {
152
+ @include responsive-nav-mixins.sliding-nav-positioning();
153
+
154
+ transform: translateX(calc(-1 * #{responsive-nav-variables.$clr-sliding-panel-width}));
155
+ transition: responsive-nav-variables.$clr-sliding-panel-animation;
156
+ }
157
+
158
+ .header-nav.clr-nav-level-2,
159
+ .subnav.clr-nav-level-2,
160
+ .sub-nav.clr-nav-level-2,
161
+ .clr-vertical-nav.clr-nav-level-2 {
162
+ @include responsive-nav-mixins.sliding-nav-positioning(0, 0, 0, auto);
163
+
164
+ transform: translateX(responsive-nav-variables.$clr-sliding-panel-width);
165
+ transition: responsive-nav-variables.$clr-sliding-panel-animation;
166
+ }
167
+
168
+ .subnav.clr-nav-level-1,
169
+ .sub-nav.clr-nav-level-1,
170
+ .subnav.clr-nav-level-2,
171
+ .sub-nav.clr-nav-level-2 {
172
+ .nav,
173
+ aside {
174
+ flex-direction: column;
175
+ align-items: stretch;
176
+ }
177
+
178
+ aside {
179
+ justify-content: center;
180
+ width: 100%;
181
+ }
182
+
183
+ //Such deep nesting is unfortunately required here because we don't want
184
+ //navs which are not subnav to behave in a similar way.
185
+ // TODO: more specificity in classname is preferable to nesting...
186
+ .nav {
187
+ padding-left: 0;
188
+ gap: density.$clr-base-gap-s;
189
+
190
+ .nav-item {
191
+ height: density.$clr-base-row-height-m;
192
+ margin-right: 0;
193
+ }
194
+
195
+ .nav-link {
196
+ padding: vertical-nav-variables.$clr-vertical-nav-item-padding;
197
+ width: 100%;
198
+ max-width: 100%;
199
+ overflow: hidden;
200
+ text-overflow: ellipsis;
201
+
202
+ @include vertical-nav-mixins.vertical-nav-link-colors();
203
+
204
+ &:hover,
205
+ &.active {
206
+ box-shadow: none;
207
+ }
208
+
209
+ &:hover {
210
+ &:not(.active)::before {
211
+ content: none;
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
217
+
218
+ .clr-vertical-nav.clr-nav-level-1,
219
+ .clr-vertical-nav.clr-nav-level-2 {
220
+ border-right: none;
221
+ }
222
+ }
223
+
224
+ .main-container {
225
+ .header-overflow-trigger {
226
+ position: relative;
227
+
228
+ &::after {
229
+ @include header-mixins.header-section-divider();
230
+ }
231
+ }
232
+
233
+ .header {
234
+ .branding {
235
+ max-width: mixins.baselinePx(240);
236
+ min-width: 0;
237
+ overflow: hidden;
238
+ }
239
+
240
+ .header-hamburger-trigger + .branding {
241
+ padding-left: 0;
242
+ margin-left: calc(-1 * density.$clr-base-horizontal-offset-m);
243
+
244
+ //TODO: deprecate .clr-icon, .logo
245
+ .clr-icon,
246
+ .logo,
247
+ cds-icon,
248
+ clr-icon {
249
+ display: none;
250
+ }
251
+ }
252
+
253
+ .branding + .header-overflow-trigger,
254
+ .header-nav + .header-overflow-trigger,
255
+ .header-nav + .cdk-visually-hidden + .header-overflow-trigger {
256
+ margin-left: auto;
257
+ }
258
+ }
259
+ }
260
+
261
+ .main-container {
262
+ &.open-hamburger-menu,
263
+ &.open-overflow-menu {
264
+ .header {
265
+ .header-backdrop {
266
+ position: fixed;
267
+ inset: 0;
268
+ background: tokens.$cds-alias-object-overlay-backdrop-background;
269
+ cursor: pointer;
270
+ z-index: responsive-nav-variables.$clr-sliding-panel-backdrop-z-index;
271
+ }
272
+
273
+ .header-nav.clr-nav-level-1,
274
+ .header-nav.clr-nav-level-2 {
275
+ .nav-link {
276
+ flex: 0 0 auto;
277
+ height: unset;
278
+ width: 100%;
279
+
280
+ .nav-icon,
281
+ .fa {
282
+ display: none;
283
+ }
284
+
285
+ .nav-text {
286
+ display: inline-block;
287
+ white-space: normal;
288
+ // color, line-height and font-weight should be removed or refactored in separate JIRA
289
+ color: responsive-nav-variables.$clr-sliding-panel-text-color;
290
+ }
291
+
292
+ opacity: 1;
293
+
294
+ .nav-icon + .nav-text {
295
+ display: inline-block;
296
+ }
297
+
298
+ @include vertical-nav-mixins.vertical-nav-link-colors();
299
+
300
+ &.active > .nav-text {
301
+ color: inherit;
302
+ }
303
+ }
304
+ }
305
+ }
306
+
307
+ .clr-vertical-nav .nav-trigger {
308
+ display: none;
309
+ }
310
+ }
311
+
312
+ &.open-hamburger-menu {
313
+ .header {
314
+ .branding {
315
+ position: fixed;
316
+ top: 0;
317
+ left: 0;
318
+ overflow: hidden;
319
+ width: responsive-nav-variables.$clr-sliding-panel-width;
320
+ max-width: responsive-nav-variables.$clr-sliding-panel-width;
321
+ z-index: responsive-nav-variables.$clr-sliding-panel-z-index + 1;
322
+ padding-left: density.$clr-base-horizontal-offset-2xl;
323
+
324
+ & > .nav-link {
325
+ overflow: hidden;
326
+ }
327
+
328
+ //deprecate .clr-icon, .logo
329
+ .clr-icon,
330
+ .logo,
331
+ cds-icon,
332
+ clr-icon {
333
+ display: inline-block;
334
+ }
335
+
336
+ cds-icon[shape='vm-bug'],
337
+ clr-icon[shape='vm-bug'],
338
+ .clr-vmw-logo {
339
+ background-color: header-variables.$clr-header-bg-color;
340
+ border-radius: tokens.$cds-alias-object-border-radius-100;
341
+ }
342
+
343
+ .title {
344
+ color: vertical-nav-variables.$clr-vertical-nav-item-color;
345
+ text-overflow: ellipsis;
346
+ overflow: hidden;
347
+ }
348
+ }
349
+ }
350
+
351
+ .clr-nav-close {
352
+ @include responsive-nav-mixins.menu-trigger();
353
+ @include responsive-nav-mixins.hamburger-menu-trigger-animation();
354
+ }
355
+
356
+ .header-nav.clr-nav-level-1,
357
+ .subnav.clr-nav-level-1,
358
+ .sub-nav.clr-nav-level-1,
359
+ .clr-vertical-nav.clr-nav-level-1 {
360
+ padding-top: calc(header-variables.$clr-header-height + density.$clr-base-gap-xl);
361
+ transform: translateX(0);
362
+ transition: responsive-nav-variables.$clr-sliding-panel-animation;
363
+ }
364
+ }
365
+
366
+ &.open-overflow-menu {
367
+ .header-nav.clr-nav-level-2,
368
+ .subnav.clr-nav-level-2,
369
+ .sub-nav.clr-nav-level-2,
370
+ .clr-vertical-nav.clr-nav-level-2 {
371
+ transform: translateX(0);
372
+ transition: responsive-nav-variables.$clr-sliding-panel-animation;
373
+ }
374
+
375
+ .header-nav.clr-nav-level-2,
376
+ .subnav.clr-nav-level-2,
377
+ .sub-nav.clr-nav-level-2 {
378
+ padding-top: density.$clr-base-vertical-offset-2xl;
379
+ }
380
+
381
+ .clr-nav-close {
382
+ @include responsive-nav-mixins.menu-trigger(
383
+ 0,
384
+ auto,
385
+ (calc(-1 * #{responsive-nav-variables.$clr-trigger-position}))
386
+ );
387
+ @include responsive-nav-mixins.overflow-menu-trigger-animation();
388
+ }
389
+ }
390
+
391
+ &.open-hamburger-menu {
392
+ .header-nav.clr-nav-level-1,
393
+ .subnav.clr-nav-level-1,
394
+ .sub-nav.clr-nav-level-1,
395
+ .clr-vertical-nav.clr-nav-level-1 {
396
+ overflow: inherit;
397
+ width: responsive-nav-variables.$clr-sliding-panel-width;
398
+ max-width: responsive-nav-variables.$clr-sliding-panel-width;
399
+
400
+ &::before {
401
+ content: none;
402
+ }
403
+
404
+ & .nav-link {
405
+ width: 100%;
406
+ }
407
+ }
408
+ }
409
+
410
+ &.open-overflow-menu {
411
+ .header-nav.clr-nav-level-2,
412
+ .subnav.clr-nav-level-2,
413
+ .sub-nav.clr-nav-level-2,
414
+ .clr-vertical-nav.clr-nav-level-2 {
415
+ width: responsive-nav-variables.$clr-sliding-panel-width;
416
+ max-width: responsive-nav-variables.$clr-sliding-panel-width;
417
+ }
418
+ }
419
+ }
420
+ }
421
+ @media screen and (max-width: map.get(variables.$clr-grid-breakpoints, sm)) {
422
+ .main-container {
423
+ .header {
424
+ .branding {
425
+ max-width: mixins.baselinePx(144);
426
+ min-width: 0;
427
+ overflow: hidden;
428
+ }
429
+ }
430
+
431
+ .header-nav.clr-nav-level-1,
432
+ .subnav.clr-nav-level-1,
433
+ .sub-nav.clr-nav-level-1,
434
+ .clr-vertical-nav.clr-nav-level-1 {
435
+ transform: translateX(calc(-1 * #{responsive-nav-variables.$clr-sliding-panel-width-sm}));
436
+ }
437
+
438
+ .header-nav.clr-nav-level-2,
439
+ .subnav.clr-nav-level-2,
440
+ .sub-nav.clr-nav-level-2,
441
+ .clr-vertical-nav.clr-nav-level-2 {
442
+ transform: translateX(responsive-nav-variables.$clr-sliding-panel-width-sm);
443
+ }
444
+ }
445
+
446
+ .main-container {
447
+ &.open-hamburger-menu {
448
+ .header {
449
+ .branding {
450
+ width: responsive-nav-variables.$clr-sliding-panel-width-sm;
451
+ max-width: responsive-nav-variables.$clr-sliding-panel-width-sm;
452
+ }
453
+ }
454
+
455
+ .header-nav.clr-nav-level-1,
456
+ .subnav.clr-nav-level-1,
457
+ .sub-nav.clr-nav-level-1,
458
+ .clr-vertical-nav.clr-nav-level-1 {
459
+ overflow: inherit;
460
+ width: responsive-nav-variables.$clr-sliding-panel-width-sm;
461
+ max-width: responsive-nav-variables.$clr-sliding-panel-width-sm;
462
+ }
463
+
464
+ .clr-nav-close {
465
+ @include responsive-nav-mixins.menu-trigger(auto, 0, responsive-nav-variables.$clr-trigger-position-sm);
466
+ }
467
+ }
468
+
469
+ &.open-overflow-menu {
470
+ .header-nav.clr-nav-level-2,
471
+ .subnav.clr-nav-level-2,
472
+ .sub-nav.clr-nav-level-2,
473
+ .clr-vertical-nav.clr-nav-level-2 {
474
+ width: responsive-nav-variables.$clr-sliding-panel-width-sm;
475
+ max-width: responsive-nav-variables.$clr-sliding-panel-width-sm;
476
+ }
477
+
478
+ .clr-nav-close {
479
+ @include responsive-nav-mixins.menu-trigger(
480
+ 0,
481
+ auto,
482
+ (calc(-1 * #{responsive-nav-variables.$clr-trigger-position-sm}))
483
+ );
484
+ }
485
+ }
486
+ }
487
+ }
488
+ }
@@ -0,0 +1,48 @@
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
+
8
+ @use 'sass:meta';
9
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
10
+ @use '../../styles/mixins';
11
+ @use 'variables.subnav' as subnav-variables;
12
+
13
+ @include meta.load-css('properties.subnav');
14
+ @include mixins.exports('subnav.clarity') {
15
+ /* TODO: deprecated. Remove when the clarity css naming convention is implemented. */
16
+ .sub-nav,
17
+ .subnav {
18
+ display: flex;
19
+ box-shadow: 0 calc(-1 * #{tokens.$cds-global-space-1}) 0 var(--clr-nav-box-shadow-color) inset;
20
+ justify-content: space-between; //nav to the first and aside to the very right
21
+ align-items: center;
22
+ background-color: subnav-variables.$clr-subnav-bgColor;
23
+ height: subnav-variables.$clr-subnav-height;
24
+
25
+ .nav {
26
+ flex: 1 1 auto;
27
+ padding-left: tokens.$cds-global-space-9;
28
+ }
29
+
30
+ .nav-item,
31
+ .nav-item a {
32
+ text-decoration: none;
33
+ }
34
+
35
+ aside {
36
+ flex: 0 0 auto;
37
+ display: flex;
38
+ align-items: center;
39
+ height: subnav-variables.$clr-subnav-height;
40
+ padding: 0 tokens.$cds-global-space-9;
41
+
42
+ & > :last-child {
43
+ margin-right: 0;
44
+ padding-right: 0;
45
+ }
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,13 @@
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
+ // Usage: ../styles/_reboot.scss
8
+ // Link colors
9
+ $clr-link-active-color: var(--clr-link-active-color) !default;
10
+ $clr-link-color: var(--clr-link-color) !default;
11
+ $clr-link-hover-color: var(--clr-link-hover-color) !default;
12
+ $clr-link-visited-color: var(--clr-link-visited-color) !default;
13
+ $clr-link-visited-color-hover: var(--clr-link-visited-color-hover) !default;
@@ -0,0 +1,28 @@
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
+
8
+ @use 'sass:map';
9
+ @use '../../styles/mixins';
10
+ @use '../../styles/variables/variables';
11
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
12
+
13
+ $clr-sliding-panel-text-color: var(--clr-sliding-panel-text-color) !default;
14
+
15
+ $clr-responsive-nav-trigger-bg-color: var(--clr-responsive-nav-trigger-bg-color) !default;
16
+
17
+ $clr-sliding-panel-width: mixins.baselinePx(360) !default;
18
+ $clr-sliding-panel-width-sm: mixins.baselinePx(288) !default;
19
+ $clr-trigger-position: calc(#{mixins.baselinePx(360)} + #{tokens.$cds-global-space-6}) !default;
20
+ $clr-trigger-position-sm: calc(#{mixins.baselinePx(288)} + #{tokens.$cds-global-space-6}) !default;
21
+
22
+ $clr-sliding-panel-z-index: map.get(variables.$clr-layers, sidepanel);
23
+ $clr-sliding-panel-backdrop-z-index: map.get(variables.$clr-layers, sidepanel-bg) !default;
24
+ $clr-sliding-transition-time: 0.3s !default;
25
+ $clr-transition-style: ease !default;
26
+
27
+ $clr-trigger-animation: transform (2 * $clr-sliding-transition-time) $clr-transition-style;
28
+ $clr-sliding-panel-animation: transform $clr-sliding-transition-time $clr-transition-style;
@@ -0,0 +1,21 @@
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
+
8
+ @use '../../styles/variables/variables';
9
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
10
+ @use '../../styles/variables/variables.density' as density;
11
+
12
+ // Usage: ../layout/nav/_subnav.clarity.scss
13
+ // TODO: would be nice to key text color in subnav off of the bgColor...
14
+ $clr-subnav-bgColor: var(--clr-subnav-bg-color) !default;
15
+
16
+ // Usage: ../layout/nav/_subnav.clarity.scss
17
+ // Usage: ../layout/nav/_nav.clarity.scss
18
+ $clr-subnav-height: density.$clr-base-row-height-m !default;
19
+
20
+ // Usage: ../layout/nav/_subnav.clarity.scss
21
+ $clr-nav-shadow: 0 calc(-1 * #{tokens.$cds-alias-object-border-width-100}) 0 var(--clr-nav-box-shadow-color) inset !default;
@@ -0,0 +1,41 @@
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
+
8
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
9
+ @use '../../styles/variables/variables.density' as density;
10
+
11
+ @mixin nav-link-border-appearance($position, $left-inset: false) {
12
+ position: relative;
13
+
14
+ &::before {
15
+ content: '';
16
+ position: absolute;
17
+ top: 0;
18
+ bottom: 0;
19
+ left: 0;
20
+ width: 100%;
21
+ border: none;
22
+ border-#{$position}: tokens.$cds-alias-object-border-width-300 solid transparent;
23
+ transition: border-#{$position} tokens.$cds-global-animation-duration-quick
24
+ tokens.$cds-global-animation-easing-in-out;
25
+
26
+ // overrides for left inset
27
+ @if ($left-inset) {
28
+ margin: density.$clr-base-vertical-offset-xs 0;
29
+ left: density.$clr-base-horizontal-offset-xs;
30
+ width: tokens.$cds-alias-object-border-width-100;
31
+ border-width: tokens.$cds-alias-object-border-width-400;
32
+ border-radius: tokens.$cds-alias-object-border-radius-100;
33
+ }
34
+ }
35
+
36
+ &:hover {
37
+ &::before {
38
+ border-color: tokens.$cds-alias-object-interaction-background-highlight;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,25 @@
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
+
8
+ @use '../../styles/mixins';
9
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
10
+
11
+ @include mixins.exports('tab.properties') {
12
+ @include mixins.root-or-host() {
13
+ &,
14
+ & [cds-theme] {
15
+ --clr-nav-box-shadow-color: #{tokens.$cds-alias-object-border-color};
16
+ --clr-nav-active-bg-color: #{tokens.$cds-alias-object-interaction-background-active};
17
+ --clr-nav-selected-bg-color: #{tokens.$cds-alias-object-opacity-0};
18
+ --clr-nav-hover-bg-color: #{tokens.$cds-alias-object-interaction-background-hover};
19
+ --clr-nav-selected-hover-background-color: var(--cds-alias-object-interaction-background-selected-hover);
20
+ --clr-nav-selected-active-background-color: var(--cds-alias-object-interaction-background-selected-active);
21
+ --clr-nav-link-color: #{tokens.$cds-alias-object-interaction-color};
22
+ --clr-nav-link-active-color: #{tokens.$cds-alias-object-interaction-color-active};
23
+ }
24
+ }
25
+ }