@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.
- package/README.md +29 -0
- package/STYLES.md +1796 -0
- package/accordion/_accordion.clarity.scss +81 -0
- package/accordion/_properties.accordion.scss +45 -0
- package/accordion/_variables.accordion.scss +91 -0
- package/button/_buttons.clarity.scss +374 -0
- package/button/_mixins.buttons.scss +232 -0
- package/button/_properties.buttons.scss +325 -0
- package/button/_properties.toggles.scss +35 -0
- package/button/_variables.buttons.scss +843 -0
- package/button/_variables.toggles.scss +41 -0
- package/button/button-group/_button-group.clarity.scss +193 -0
- package/clr-ui.css +31728 -0
- package/clr-ui.css.map +1 -0
- package/clr-ui.min.css +52 -0
- package/clr-ui.min.css.map +1 -0
- package/collapsible-panel/_mixins.collapsible-panel.scss +189 -0
- package/collapsible-panel/_properties.collapsible-panel.scss +42 -0
- package/collapsible-panel/_variables.collapsible-panel.scss +40 -0
- package/data/_mixins.tables.scss +111 -0
- package/data/_properties.tables.scss +62 -0
- package/data/_tables.clarity.scss +120 -0
- package/data/_variables.tables.scss +42 -0
- package/data/datagrid/_datagrid.clarity.scss +1753 -0
- package/data/datagrid/_mixins.datagrid.scss +102 -0
- package/data/datagrid/_properties.datagrid.scss +90 -0
- package/data/datagrid/_variables.datagrid.scss +96 -0
- package/data/stack-view/_properties.stack-view.scss +50 -0
- package/data/stack-view/_stack-view.clarity.scss +267 -0
- package/data/stack-view/_variables.stack-view.scss +32 -0
- package/data/tree-view/_properties.tree-view.scss +41 -0
- package/data/tree-view/_tree-view.clarity.scss +281 -0
- package/data/tree-view/_variables.tree-view.scss +51 -0
- package/emphasis/alert/_alert.clarity.scss +467 -0
- package/emphasis/alert/_mixins.alert.scss +96 -0
- package/emphasis/alert/_properties.alert.scss +183 -0
- package/emphasis/alert/_variables.alert.scss +502 -0
- package/emphasis/badge/_badges.clarity.scss +61 -0
- package/emphasis/badge/_mixins.bades.scss +34 -0
- package/emphasis/badge/_properties.badges.scss +82 -0
- package/emphasis/badge/_variables.badges.scss +160 -0
- package/emphasis/label/_labels.clarity.scss +175 -0
- package/emphasis/label/_mixins.label.scss +76 -0
- package/emphasis/label/_properties.label.scss +105 -0
- package/emphasis/label/_variables.label.scss +181 -0
- package/forms/combobox/_combobox.clarity.scss +322 -0
- package/forms/combobox/_properties.combobox.scss +45 -0
- package/forms/combobox/_variables.combobox.scss +32 -0
- package/forms/datepicker/_datepicker.clarity.scss +259 -0
- package/forms/datepicker/_mixins.datepicker.scss +90 -0
- package/forms/datepicker/_properties.datepicker.scss +46 -0
- package/forms/datepicker/_variables.datepicker.scss +74 -0
- package/forms/styles/_checkbox.clarity.scss +193 -0
- package/forms/styles/_containers.clarity.scss +228 -0
- package/forms/styles/_datalist.clarity.scss +47 -0
- package/forms/styles/_file-input.clarity.scss +134 -0
- package/forms/styles/_file.clarity.scss +52 -0
- package/forms/styles/_form.clarity.scss +87 -0
- package/forms/styles/_input-group.clarity.scss +118 -0
- package/forms/styles/_input.clarity.scss +78 -0
- package/forms/styles/_mixins.forms.scss +173 -0
- package/forms/styles/_number-input.clarity.scss +58 -0
- package/forms/styles/_password.clarity.scss +26 -0
- package/forms/styles/_properties.forms.scss +121 -0
- package/forms/styles/_radio.clarity.scss +120 -0
- package/forms/styles/_range.clarity.scss +124 -0
- package/forms/styles/_select.clarity.scss +178 -0
- package/forms/styles/_textarea.clarity.scss +77 -0
- package/forms/styles/_toggles.clarity.scss +209 -0
- package/forms/styles/_variables.forms.scss +128 -0
- package/icon/icon.component.scss +242 -0
- package/image/_icons.clarity.scss +101 -0
- package/image/_images.clarity.scss +42 -0
- package/image/_mixins.images.scss +11 -0
- package/layout/_card.clarity.scss +311 -0
- package/layout/_login.clarity.scss +240 -0
- package/layout/_properties.card.scss +36 -0
- package/layout/_properties.login.scss +32 -0
- package/layout/_variables.card.scss +23 -0
- package/layout/_variables.login.scss +22 -0
- package/layout/breadcrumbs/_breadcrumbs.clarity.scss +60 -0
- package/layout/breadcrumbs/_properties.breadcrumbs.scss +18 -0
- package/layout/breadcrumbs/_variables.breadcrumbs.scss +11 -0
- package/layout/grid/_grid.scss +23 -0
- package/layout/grid/grid/_grid.scss +39 -0
- package/layout/grid/mixins/_breakpoint.scss +83 -0
- package/layout/grid/mixins/_clearfix.scss +13 -0
- package/layout/grid/mixins/_grid-framework.scss +91 -0
- package/layout/grid/mixins/_grid.scss +39 -0
- package/layout/grid/utilities/_align.scss +30 -0
- package/layout/grid/utilities/_clearfix.scss +12 -0
- package/layout/grid/utilities/_display.scss +18 -0
- package/layout/grid/utilities/_flex.scss +222 -0
- package/layout/grid/utilities/_float.scss +26 -0
- package/layout/grid/utilities/_visibility.scss +60 -0
- package/layout/main-container/_layout.clarity.scss +87 -0
- package/layout/main-container/_properties.header.scss +39 -0
- package/layout/main-container/_variables.header.scss +32 -0
- package/layout/nav/_header.clarity.scss +40 -0
- package/layout/nav/_links.clarity.scss +84 -0
- package/layout/nav/_mixins.header.scss +332 -0
- package/layout/nav/_mixins.responsive-nav.scss +75 -0
- package/layout/nav/_nav.clarity.scss +100 -0
- package/layout/nav/_properties.nav.scss +27 -0
- package/layout/nav/_properties.responsive-nav.scss +23 -0
- package/layout/nav/_properties.subnav.scss +19 -0
- package/layout/nav/_responsive-nav.clarity.scss +488 -0
- package/layout/nav/_subnav.clarity.scss +48 -0
- package/layout/nav/_variables.nav.scss +13 -0
- package/layout/nav/_variables.responsive-nav.scss +28 -0
- package/layout/nav/_variables.subnav.scss +21 -0
- package/layout/tabs/_mixins.tabs.scss +41 -0
- package/layout/tabs/_properties.tabs.scss +25 -0
- package/layout/tabs/_tabs.clarity.scss +110 -0
- package/layout/tabs/_variables.tabs.scss +17 -0
- package/layout/vertical-nav/_mixins.vertical-nav.scss +52 -0
- package/layout/vertical-nav/_properties.vertical-nav.scss +73 -0
- package/layout/vertical-nav/_variables.vertical-nav.scss +52 -0
- package/layout/vertical-nav/_vertical-nav.clarity.scss +469 -0
- package/main.scss +14 -0
- package/modal/_modal.clarity.scss +362 -0
- package/modal/_properties.modal.scss +45 -0
- package/modal/_variables.modal.scss +38 -0
- package/package.json +15 -0
- package/popover/common/_popover.clarity.scss +28 -0
- package/popover/dropdown/_dropdown.clarity.scss +326 -0
- package/popover/dropdown/_menu-mixins.clarity.scss +132 -0
- package/popover/dropdown/_properties.dropdown.scss +50 -0
- package/popover/dropdown/_variables.dropdown.scss +36 -0
- package/popover/signpost/_properties.signpost.scss +34 -0
- package/popover/signpost/_signposts.clarity.scss +414 -0
- package/popover/signpost/_variables.signpost.scss +21 -0
- package/popover/tooltip/_mixins.tooltip.scss +186 -0
- package/popover/tooltip/_properties.tooltip.scss +28 -0
- package/popover/tooltip/_tooltips.clarity.scss +122 -0
- package/popover/tooltip/_variables.tooltip.scss +20 -0
- package/progress/progress-bars/_progress-bars.clarity.scss +616 -0
- package/progress/progress-bars/_properties.progress-bars.scss +24 -0
- package/progress/progress-bars/_variables.progress-bars.scss +15 -0
- package/progress/progress-bars/utils/_mixins.clarity.scss +18 -0
- package/progress/spinner/_mixins.spinner.scss +30 -0
- package/progress/spinner/_properties.spinner.scss +37 -0
- package/progress/spinner/_spinner.clarity.scss +148 -0
- package/progress/spinner/_variables.spinner.scss +25 -0
- package/stepper/_properties.stepper.scss +29 -0
- package/stepper/_stepper.clarity.scss +184 -0
- package/stepper/_variables.stepper.scss +13 -0
- package/styles/_a11y.scss +14 -0
- package/styles/_close.clarity.scss +60 -0
- package/styles/_components.clarity.scss +183 -0
- package/styles/_mixins.scss +478 -0
- package/styles/_normalize.scss +292 -0
- package/styles/_reboot.clarity.scss +374 -0
- package/styles/_variables.clarity.scss +139 -0
- package/styles/core/base/base.element.scss +97 -0
- package/styles/core/global.scss +12 -0
- package/styles/core/layout/_alignments.scss +18 -0
- package/styles/core/layout/_container.scss +29 -0
- package/styles/core/layout/_display.scss +58 -0
- package/styles/core/layout/_optimize.scss +60 -0
- package/styles/core/layout/_shadow-dom.scss +47 -0
- package/styles/core/layout/_spacing.scss +31 -0
- package/styles/core/layout/_type-grid.scss +66 -0
- package/styles/core/layout/_type-horizontal.scss +33 -0
- package/styles/core/layout/_type-vertical.scss +26 -0
- package/styles/core/layout/mixins/_mixins.alignment.scss +35 -0
- package/styles/core/layout/mixins/_mixins.display.scss +23 -0
- package/styles/core/layout/mixins/_mixins.grid.scss +105 -0
- package/styles/core/layout/mixins/_mixins.scss +106 -0
- package/styles/core/layout/mixins/_mixins.shadow-dom.scss +106 -0
- package/styles/core/layout/mixins/_mixins.type-horizontal.scss +113 -0
- package/styles/core/layout/mixins/_mixins.type-vertical.scss +108 -0
- package/styles/core/module.layout.scss +22 -0
- package/styles/core/module.reset.scss +48 -0
- package/styles/core/module.typography.scss +9 -0
- package/styles/core/theme.dark.scss +266 -0
- package/styles/core/theme.high-contrast.scss +42 -0
- package/styles/core/theme.low-motion.scss +20 -0
- package/styles/core/tokens/_alias-interaction.scss +59 -0
- package/styles/core/tokens/_alias-object-background.scss +14 -0
- package/styles/core/tokens/_alias-object-border.scss +21 -0
- package/styles/core/tokens/_alias-object-container.scss +20 -0
- package/styles/core/tokens/_alias-object-opacity.scss +15 -0
- package/styles/core/tokens/_alias-object-shadow.scss +17 -0
- package/styles/core/tokens/_alias-status.scss +34 -0
- package/styles/core/tokens/_alias-typography.scss +101 -0
- package/styles/core/tokens/_alias-utility.scss +38 -0
- package/styles/core/tokens/_alias-viz-colors.scss +170 -0
- package/styles/core/tokens/_global-animation.scss +32 -0
- package/styles/core/tokens/_global-colors.scss +249 -0
- package/styles/core/tokens/_global-space.scss +52 -0
- package/styles/core/tokens/_internal-scale.scss +14 -0
- package/styles/core/tokens/_properties.tokens.scss +21 -0
- package/styles/core/tokens/_variables.tokens.scss +770 -0
- package/styles/core/typography/_legacy-typography.scss +328 -0
- package/styles/core/typography/_mixins.typography.scss +18 -0
- package/styles/core/typography/_typography.scss +321 -0
- package/styles/variables/_properties.density.scss +223 -0
- package/styles/variables/_properties.global.scss +51 -0
- package/styles/variables/_properties.layout.scss +21 -0
- package/styles/variables/_properties.scss +11 -0
- package/styles/variables/_properties.typography.scss +164 -0
- package/styles/variables/_variables.density.scss +114 -0
- package/styles/variables/_variables.global.scss +82 -0
- package/styles/variables/_variables.layout.scss +37 -0
- package/styles/variables/_variables.scss +11 -0
- package/styles/variables/_variables.typography.scss +156 -0
- package/timeline/_properties.timeline.scss +38 -0
- package/timeline/_timeline.clarity.scss +172 -0
- package/timeline/_variables.timeline.scss +29 -0
- package/typography/_code.scss +36 -0
- package/typography/_font-metropolis.scss +45 -0
- package/typography/_lists.scss +81 -0
- package/typography/_typography.scss +322 -0
- package/utils/animations/_animations.clarity.scss +44 -0
- package/utils/animations/_mixins.animations.scss +33 -0
- package/wizard/_properties.wizard.scss +53 -0
- package/wizard/_variables.wizard.scss +58 -0
- package/wizard/_wizard.clarity.scss +688 -0
|
@@ -0,0 +1,222 @@
|
|
|
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/variables/variables.layout';
|
|
10
|
+
@use '../mixins/breakpoint';
|
|
11
|
+
|
|
12
|
+
// Custom styles for additional flex alignment options.
|
|
13
|
+
@each $breakpoint in map.keys(variables.$clr-grid-breakpoints) {
|
|
14
|
+
@include breakpoint.clr-media-breakpoint-up($breakpoint) {
|
|
15
|
+
$infix: breakpoint.clr-breakpoint-infix($breakpoint, variables.$clr-grid-breakpoints);
|
|
16
|
+
|
|
17
|
+
.clr-flex#{$infix}-row {
|
|
18
|
+
flex-direction: row !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.clr-flex#{$infix}-column {
|
|
22
|
+
flex-direction: column !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.clr-flex#{$infix}-row-reverse {
|
|
26
|
+
flex-direction: row-reverse !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.clr-flex#{$infix}-column-reverse {
|
|
30
|
+
flex-direction: column-reverse !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.clr-flex#{$infix}-wrap {
|
|
34
|
+
flex-wrap: wrap !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.clr-flex#{$infix}-nowrap {
|
|
38
|
+
flex-wrap: nowrap !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.clr-flex#{$infix}-wrap-reverse {
|
|
42
|
+
flex-wrap: wrap-reverse !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.clr-flex#{$infix}-fill {
|
|
46
|
+
flex: 1 1 auto !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.clr-flex#{$infix}-grow-0 {
|
|
50
|
+
flex-grow: 0 !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.clr-flex#{$infix}-grow-1 {
|
|
54
|
+
flex-grow: 1 !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.clr-flex#{$infix}-shrink-0 {
|
|
58
|
+
flex-shrink: 0 !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.clr-flex#{$infix}-shrink-1 {
|
|
62
|
+
flex-shrink: 1 !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.clr-justify-content#{$infix}-start {
|
|
66
|
+
justify-content: flex-start !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.clr-justify-content#{$infix}-end {
|
|
70
|
+
justify-content: flex-end !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.clr-justify-content#{$infix}-center {
|
|
74
|
+
justify-content: center !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.clr-justify-content#{$infix}-between {
|
|
78
|
+
justify-content: space-between !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.clr-justify-content#{$infix}-around {
|
|
82
|
+
justify-content: space-around !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.clr-align-items#{$infix}-start {
|
|
86
|
+
align-items: flex-start !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.clr-align-items#{$infix}-end {
|
|
90
|
+
align-items: flex-end !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.clr-align-items#{$infix}-center {
|
|
94
|
+
align-items: center !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.clr-align-items#{$infix}-baseline {
|
|
98
|
+
align-items: baseline !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.clr-align-items#{$infix}-stretch {
|
|
102
|
+
align-items: stretch !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.clr-align-content#{$infix}-start {
|
|
106
|
+
align-content: flex-start !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.clr-align-content#{$infix}-end {
|
|
110
|
+
align-content: flex-end !important;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.clr-align-content#{$infix}-center {
|
|
114
|
+
align-content: center !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.clr-align-content#{$infix}-between {
|
|
118
|
+
align-content: space-between !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.clr-align-content#{$infix}-around {
|
|
122
|
+
align-content: space-around !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.clr-align-content#{$infix}-stretch {
|
|
126
|
+
align-content: stretch !important;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.clr-align-self#{$infix}-auto {
|
|
130
|
+
align-self: auto !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.clr-align-self#{$infix}-start {
|
|
134
|
+
align-self: flex-start !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.clr-align-self#{$infix}-end {
|
|
138
|
+
align-self: flex-end !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.clr-align-self#{$infix}-center {
|
|
142
|
+
align-self: center !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.clr-align-self#{$infix}-baseline {
|
|
146
|
+
align-self: baseline !important;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.clr-align-self#{$infix}-stretch {
|
|
150
|
+
align-self: stretch !important;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
@each $breakpoint in map.keys(variables.$clr-grid-breakpoints) {
|
|
155
|
+
// Flex column reordering
|
|
156
|
+
@include breakpoint.clr-media-breakpoint-up($breakpoint) {
|
|
157
|
+
.clr-flex-#{$breakpoint}-first {
|
|
158
|
+
order: -1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.clr-flex-#{$breakpoint}-last {
|
|
162
|
+
order: 1;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.clr-flex-#{$breakpoint}-unordered {
|
|
166
|
+
order: 0;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Alignment for every item
|
|
171
|
+
@include breakpoint.clr-media-breakpoint-up($breakpoint) {
|
|
172
|
+
.clr-flex-items-#{$breakpoint}-top {
|
|
173
|
+
align-items: flex-start;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.clr-flex-items-#{$breakpoint}-middle {
|
|
177
|
+
align-items: center;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.clr-flex-items-#{$breakpoint}-bottom {
|
|
181
|
+
align-items: flex-end;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Alignment per item
|
|
186
|
+
@include breakpoint.clr-media-breakpoint-up($breakpoint) {
|
|
187
|
+
.clr-flex-#{$breakpoint}-top {
|
|
188
|
+
align-self: flex-start;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.clr-flex-#{$breakpoint}-middle {
|
|
192
|
+
align-self: center;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.clr-flex-#{$breakpoint}-bottom {
|
|
196
|
+
align-self: flex-end;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Horizontal alignment of item
|
|
201
|
+
@include breakpoint.clr-media-breakpoint-up($breakpoint) {
|
|
202
|
+
.clr-flex-items-#{$breakpoint}-left {
|
|
203
|
+
justify-content: flex-start;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.clr-flex-items-#{$breakpoint}-center {
|
|
207
|
+
justify-content: center;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.clr-flex-items-#{$breakpoint}-right {
|
|
211
|
+
justify-content: flex-end;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.clr-flex-items-#{$breakpoint}-around {
|
|
215
|
+
justify-content: space-around;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.clr-flex-items-#{$breakpoint}-between {
|
|
219
|
+
justify-content: space-between;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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/variables/variables.layout';
|
|
10
|
+
@use '../mixins/breakpoint';
|
|
11
|
+
|
|
12
|
+
@each $breakpoint in map.keys(variables.$clr-grid-breakpoints) {
|
|
13
|
+
@include breakpoint.clr-media-breakpoint-up($breakpoint) {
|
|
14
|
+
.clr-float-#{$breakpoint}-left {
|
|
15
|
+
float: left !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.clr-float-#{$breakpoint}-right {
|
|
19
|
+
float: right !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.clr-float-#{$breakpoint}-none {
|
|
23
|
+
float: none !important;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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/variables/variables.layout';
|
|
10
|
+
@use '../mixins/breakpoint';
|
|
11
|
+
|
|
12
|
+
// Responsive visibility utilities
|
|
13
|
+
.clr-invisible {
|
|
14
|
+
visibility: hidden !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@each $bp in map.keys(variables.$clr-grid-breakpoints) {
|
|
18
|
+
.clr-hidden-#{$bp}-up {
|
|
19
|
+
@include breakpoint.clr-media-breakpoint-up($bp) {
|
|
20
|
+
display: none !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.clr-hidden-#{$bp}-down {
|
|
25
|
+
@include breakpoint.clr-media-breakpoint-down($bp) {
|
|
26
|
+
display: none !important;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Print utilities
|
|
32
|
+
.clr-visible-print-block {
|
|
33
|
+
display: none !important;
|
|
34
|
+
|
|
35
|
+
@media print {
|
|
36
|
+
display: block !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.clr-visible-print-inline {
|
|
41
|
+
display: none !important;
|
|
42
|
+
|
|
43
|
+
@media print {
|
|
44
|
+
display: inline !important;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.clr-visible-print-inline-block {
|
|
49
|
+
display: none !important;
|
|
50
|
+
|
|
51
|
+
@media print {
|
|
52
|
+
display: inline-block !important;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.clr-hidden-print {
|
|
57
|
+
@media print {
|
|
58
|
+
display: none !important;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
@use '../../styles/variables/variables.global';
|
|
11
|
+
@use '../nav/variables.subnav' as subnav-variables;
|
|
12
|
+
@use 'variables.header' as header-variables;
|
|
13
|
+
|
|
14
|
+
@include mixins.exports('layout.clarity') {
|
|
15
|
+
.main-container {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
height: 100vh;
|
|
19
|
+
background: variables.$clr-global-app-background;
|
|
20
|
+
|
|
21
|
+
.alert.alert-app-level {
|
|
22
|
+
flex: 0 0 auto;
|
|
23
|
+
overflow-x: hidden;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
header,
|
|
27
|
+
.header {
|
|
28
|
+
flex: 0 0 header-variables.$clr-header-height;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sub-nav,
|
|
32
|
+
.subnav {
|
|
33
|
+
flex: 0 0 subnav-variables.$clr-subnav-height;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//This is a utility class which mimics the main-container class
|
|
37
|
+
//and occupies the remaining space inside of the main-container
|
|
38
|
+
//after the header just in case our users app layout requires
|
|
39
|
+
//that the .subnav and the .content-container be inside of an
|
|
40
|
+
//angular component
|
|
41
|
+
.u-main-container {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
flex: 1 1 auto;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.content-container {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex: 1 1 auto;
|
|
51
|
+
min-height: tokens.$cds-global-space-1;
|
|
52
|
+
|
|
53
|
+
.content-area {
|
|
54
|
+
flex: 1 1 auto;
|
|
55
|
+
overflow-y: auto;
|
|
56
|
+
-webkit-overflow-scrolling: touch;
|
|
57
|
+
padding: variables.$clr-content-area-padding-top variables.$clr-content-area-padding-right
|
|
58
|
+
variables.$clr-content-area-padding-bottom variables.$clr-content-area-padding-left;
|
|
59
|
+
|
|
60
|
+
& > :first-child {
|
|
61
|
+
margin-top: 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.clr-vertical-nav {
|
|
66
|
+
flex: 0 0 auto;
|
|
67
|
+
order: -1;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media print {
|
|
73
|
+
.main-container {
|
|
74
|
+
height: auto;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
body.no-scrolling,
|
|
79
|
+
body[cds-layout='no-scrolling'] {
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
|
|
82
|
+
// The selector below targets Clarity-UI and is provided for compatibility
|
|
83
|
+
.main-container .content-container .content-area {
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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/variables/variables';
|
|
10
|
+
@use '../../styles/variables/variables.density' as density;
|
|
11
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
12
|
+
|
|
13
|
+
@include mixins.exports('header.properties') {
|
|
14
|
+
@include mixins.root-or-host() {
|
|
15
|
+
--clr-header-title-font-weight: #{tokens.$cds-alias-typography-subsection-font-weight};
|
|
16
|
+
--clr-header-title-font-family: #{variables.$clr-font};
|
|
17
|
+
--clr-header-search-input-font-color: #{tokens.$cds-global-color-white};
|
|
18
|
+
--clr-header-search-placeholder-font-weight: #{tokens.$cds-alias-typography-font-weight-regular};
|
|
19
|
+
--clr-header-search-placeholder-text-color: #{tokens.$cds-global-color-construction-400};
|
|
20
|
+
--clr-header-search-border-active: #{tokens.$cds-alias-object-border-width-100} solid Highlight;
|
|
21
|
+
--clr-header-search-border-hover: #{tokens.$cds-alias-object-border-width-100} solid
|
|
22
|
+
#{tokens.$cds-global-color-construction-400};
|
|
23
|
+
--clr-header-divider-color: #{tokens.$cds-global-color-construction-600};
|
|
24
|
+
--clr-header-bg-color: #{tokens.$cds-global-color-cool-gray-1000};
|
|
25
|
+
--clr-header-2-bg-color: #{tokens.$cds-global-color-construction-800};
|
|
26
|
+
--clr-header-3-bg-color: #{tokens.$cds-global-color-azure-900};
|
|
27
|
+
--clr-header-font-color: #{tokens.$cds-global-color-construction-100};
|
|
28
|
+
--clr-header-font-color-hover: #{tokens.$cds-global-color-construction-50};
|
|
29
|
+
|
|
30
|
+
&,
|
|
31
|
+
& [clr-density] {
|
|
32
|
+
--clr-header-height: #{density.$clr-base-header-height};
|
|
33
|
+
--clr-header-search-icon-size: #{density.$clr-base-icon-size-l};
|
|
34
|
+
--clr-header-search-margin-left: #{density.$clr-base-horizontal-offset-m};
|
|
35
|
+
--clr-header-search-margin-right: #{density.$clr-base-horizontal-offset-l};
|
|
36
|
+
--clr-header-search-gap: #{density.$clr-base-gap-s};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.density' as density;
|
|
9
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
10
|
+
|
|
11
|
+
$clr-logo-width: tokens.$cds-global-space-11 !default;
|
|
12
|
+
$clr-header-outline-offset: calc(-1 * #{tokens.$cds-global-space-4}) !default;
|
|
13
|
+
$clr-header-clarity-icons-size: #{density.$clr-base-icon-size-l} !default;
|
|
14
|
+
|
|
15
|
+
$clr-header-height: var(--clr-header-height) !default;
|
|
16
|
+
$clr-header-divider-color: var(--clr-header-divider-color) !default;
|
|
17
|
+
$clr-header-bg-color: var(--clr-header-bg-color) !default;
|
|
18
|
+
$clr-header-2-bg-color: var(--clr-header-2-bg-color) !default;
|
|
19
|
+
$clr-header-3-bg-color: var(--clr-header-3-bg-color) !default;
|
|
20
|
+
$clr-header-font-color: var(--clr-header-font-color) !default;
|
|
21
|
+
$clr-header-font-color-hover: var(--clr-header-font-color-hover) !default;
|
|
22
|
+
$clr-header-title-color: $clr-header-font-color !default;
|
|
23
|
+
$clr-header-title-font-weight: var(--clr-header-title-font-weight) !default;
|
|
24
|
+
$clr-header-title-font-family: var(--clr-header-title-font-family) !default;
|
|
25
|
+
$clr-header-search-icon-size: var(--clr-header-search-icon-size) !default;
|
|
26
|
+
$clr-header-search-margin-left: var(--clr-header-search-margin-left) !default;
|
|
27
|
+
$clr-header-search-margin-right: var(--clr-header-search-margin-right) !default;
|
|
28
|
+
$clr-header-search-gap: var(--clr-header-search-gap) !default;
|
|
29
|
+
$clr-header-search-input-font-color: var(--clr-header-search-input-font-color) !default;
|
|
30
|
+
$clr-header-search-placeholder-text-color: var(--clr-header-search-placeholder-text-color) !default;
|
|
31
|
+
$clr-header-search-border-active: var(--clr-header-search-border-active) !default;
|
|
32
|
+
$clr-header-search-border-hover: var(--clr-header-search-border-hover) !default;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 'mixins.header' as header-mixins;
|
|
14
|
+
|
|
15
|
+
@include meta.load-css('../main-container/properties.header');
|
|
16
|
+
@include mixins.exports('header.clarity') {
|
|
17
|
+
// TODO: rename to follow clr naming convention
|
|
18
|
+
header,
|
|
19
|
+
.header {
|
|
20
|
+
display: flex;
|
|
21
|
+
color: header-variables.$clr-header-font-color;
|
|
22
|
+
background-color: header-variables.$clr-header-bg-color;
|
|
23
|
+
height: header-variables.$clr-header-height;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
|
|
26
|
+
@include header-mixins.header-backgrounds();
|
|
27
|
+
@include header-mixins.header-branding();
|
|
28
|
+
@include header-mixins.header-links();
|
|
29
|
+
@include header-mixins.header-nav();
|
|
30
|
+
@include header-mixins.header-actions();
|
|
31
|
+
@include header-mixins.header-search();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media screen and (max-width: map.get(variables.$clr-grid-breakpoints, md)) {
|
|
35
|
+
header,
|
|
36
|
+
.header {
|
|
37
|
+
@include header-mixins.header-search-md();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 'variables.nav' as nav-variables;
|
|
10
|
+
|
|
11
|
+
@include mixins.exports('links.clarity') {
|
|
12
|
+
a {
|
|
13
|
+
/*
|
|
14
|
+
* Due to the higher specificity of `a:link` over `.btn`, `.nav-link`, `.dropdown-item`, `.label`, `.alert-action` and `badge`
|
|
15
|
+
* it overrides the styles of both which is not required.
|
|
16
|
+
* Also `.btn, .nav-link, .dropdown-item, .label, .alert-action, .badge` doesn't need these styles, so we don't add them in these cases.
|
|
17
|
+
*/
|
|
18
|
+
&:not(.btn, .nav-link, .dropdown-item, .label, .alert-action, .badge, .clr-treenode-link) {
|
|
19
|
+
&:link {
|
|
20
|
+
color: nav-variables.$clr-link-color;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
color: nav-variables.$clr-link-hover-color;
|
|
24
|
+
|
|
25
|
+
cds-icon,
|
|
26
|
+
clr-icon {
|
|
27
|
+
color: nav-variables.$clr-link-hover-color;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:visited {
|
|
33
|
+
color: nav-variables.$clr-link-visited-color;
|
|
34
|
+
|
|
35
|
+
cds-icon,
|
|
36
|
+
clr-icon {
|
|
37
|
+
color: nav-variables.$clr-link-visited-color;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
color: nav-variables.$clr-link-visited-color-hover;
|
|
42
|
+
|
|
43
|
+
cds-icon,
|
|
44
|
+
clr-icon {
|
|
45
|
+
color: nav-variables.$clr-link-visited-color-hover;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:visited,
|
|
51
|
+
&:link {
|
|
52
|
+
&:active {
|
|
53
|
+
color: nav-variables.$clr-link-active-color;
|
|
54
|
+
|
|
55
|
+
cds-icon,
|
|
56
|
+
clr-icon {
|
|
57
|
+
color: nav-variables.$clr-link-active-color;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// only imported for demos. gives a static view of links in various states.
|
|
65
|
+
a.link-normal:link {
|
|
66
|
+
color: nav-variables.$clr-link-color;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
a.link-hovered:link {
|
|
70
|
+
color: nav-variables.$clr-link-hover-color;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
a.link-clicked:link {
|
|
74
|
+
color: nav-variables.$clr-link-active-color;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
a.link-visited:link {
|
|
78
|
+
color: nav-variables.$clr-link-visited-color;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
a.link-visited-hover:link {
|
|
82
|
+
color: nav-variables.$clr-link-visited-color-hover;
|
|
83
|
+
}
|
|
84
|
+
}
|