@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,467 @@
|
|
|
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 '../../popover/dropdown/variables.dropdown' as dropdown-variables;
|
|
13
|
+
@use 'variables.alert' as alert-variables;
|
|
14
|
+
@use 'mixins.alert' as alert-mixins;
|
|
15
|
+
@use '../../button/buttons.clarity';
|
|
16
|
+
@use '../../styles/variables/variables.density' as density;
|
|
17
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
18
|
+
|
|
19
|
+
@include meta.load-css('properties.alert');
|
|
20
|
+
@include mixins.exports('alert.clarity') {
|
|
21
|
+
$alertTypes: info, warning, danger, success, neutral;
|
|
22
|
+
|
|
23
|
+
.alert-icon {
|
|
24
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-l);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.alert-icon-wrapper {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
flex: 0 0 density.$clr-base-icon-size-l;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.alert-item {
|
|
33
|
+
flex: 1 1 auto;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-wrap: nowrap;
|
|
36
|
+
gap: density.$clr-base-gap-s;
|
|
37
|
+
min-height: alert-variables.$clr-alert-item-min-height;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.alert-items {
|
|
41
|
+
flex: 1 1 auto;
|
|
42
|
+
flex-flow: column nowrap;
|
|
43
|
+
gap: density.$clr-base-gap-s;
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.alert-item > span,
|
|
48
|
+
.alert-text {
|
|
49
|
+
flex: 1 1;
|
|
50
|
+
text-align: left;
|
|
51
|
+
align-self: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.alert {
|
|
55
|
+
@include mixins.generate-typography-token('SECONDARY-13-RG-CPT');
|
|
56
|
+
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: row;
|
|
60
|
+
width: auto;
|
|
61
|
+
border-radius: alert-variables.$clr-alert-borderradius;
|
|
62
|
+
padding: density.$clr-base-vertical-offset-m density.$clr-base-horizontal-offset-l;
|
|
63
|
+
gap: density.$clr-base-horizontal-offset-m;
|
|
64
|
+
|
|
65
|
+
// To be deleted with refactoring task
|
|
66
|
+
margin-top: alert-variables.$clr-alert-top-margin;
|
|
67
|
+
|
|
68
|
+
@include alert-mixins.generateAlertType(info);
|
|
69
|
+
|
|
70
|
+
&.alert-info {
|
|
71
|
+
@include alert-mixins.generateAlertType(info);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.alert-success {
|
|
75
|
+
@include alert-mixins.generateAlertType(success);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.alert-warning {
|
|
79
|
+
@include alert-mixins.generateAlertType(warning);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.alert-danger {
|
|
83
|
+
@include alert-mixins.generateAlertType(danger);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.alert-neutral {
|
|
87
|
+
@include alert-mixins.generateAlertType(neutral);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.alert-item {
|
|
91
|
+
> span,
|
|
92
|
+
.alert-text,
|
|
93
|
+
.alert-actions {
|
|
94
|
+
padding: density.$clr-base-vertical-offset-multi-row-inline-s 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.clr-icon {
|
|
98
|
+
@include mixins.equilateral(alert-variables.$clr-alert-icon-dimension-sm);
|
|
99
|
+
|
|
100
|
+
margin-right: alert-variables.$clr-icon-margin-right;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.clr-icon + .alert-text {
|
|
104
|
+
padding-left: 0;
|
|
105
|
+
|
|
106
|
+
&::before {
|
|
107
|
+
content: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.alert-actions {
|
|
113
|
+
flex: 0 0 auto;
|
|
114
|
+
white-space: nowrap;
|
|
115
|
+
display: flex;
|
|
116
|
+
gap: density.$clr-base-gap-s;
|
|
117
|
+
|
|
118
|
+
.dropdown-item {
|
|
119
|
+
color: dropdown-variables.$clr-dropdown-text-color;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.alert-action,
|
|
124
|
+
.dropdown-toggle {
|
|
125
|
+
text-decoration: underline;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.alert-action {
|
|
129
|
+
button.dropdown-toggle:not(.btn) {
|
|
130
|
+
background: transparent;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
color: dropdown-variables.$clr-dropdown-text-color;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.dropdown-toggle:not(.btn) {
|
|
137
|
+
background: transparent;
|
|
138
|
+
border: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.close {
|
|
142
|
+
order: 100;
|
|
143
|
+
flex: 0 0 density.$clr-base-icon-size-l;
|
|
144
|
+
|
|
145
|
+
@include mixins.equilateral(density.$clr-base-icon-size-l);
|
|
146
|
+
|
|
147
|
+
cds-icon,
|
|
148
|
+
clr-icon {
|
|
149
|
+
&:not([size]) {
|
|
150
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-l);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.alert-spinner.spinner-inline {
|
|
156
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-l);
|
|
157
|
+
|
|
158
|
+
margin: 0;
|
|
159
|
+
|
|
160
|
+
&::before,
|
|
161
|
+
&::after {
|
|
162
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-l);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&.alert-lightweight {
|
|
167
|
+
background: none;
|
|
168
|
+
border: none;
|
|
169
|
+
padding-top: 0;
|
|
170
|
+
padding-bottom: 0;
|
|
171
|
+
|
|
172
|
+
.alert-items .alert-item {
|
|
173
|
+
margin: 0;
|
|
174
|
+
|
|
175
|
+
> span,
|
|
176
|
+
.alert-actions,
|
|
177
|
+
.alert-text {
|
|
178
|
+
padding: 0;
|
|
179
|
+
|
|
180
|
+
@include mixins.generate-typography-token('BODY-14-RG-STD');
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.close {
|
|
185
|
+
display: none;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&:not(.alert-sm) .alert-icon {
|
|
189
|
+
margin: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@include alert-mixins.generateLightweightAlertType(info);
|
|
193
|
+
@include alert-mixins.generateLightweightAlertType(warning);
|
|
194
|
+
@include alert-mixins.generateLightweightAlertType(danger);
|
|
195
|
+
@include alert-mixins.generateLightweightAlertType(success);
|
|
196
|
+
@include alert-mixins.generateLightweightAlertType(neutral);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.alert-app-level {
|
|
201
|
+
margin: 0;
|
|
202
|
+
border: none;
|
|
203
|
+
border-radius: 0;
|
|
204
|
+
overflow-y: auto;
|
|
205
|
+
min-height: alert-variables.$clr-alert-min-height;
|
|
206
|
+
padding: density.$clr-base-vertical-offset-s density.$clr-base-horizontal-offset-m;
|
|
207
|
+
|
|
208
|
+
.alert-actions {
|
|
209
|
+
align-self: center;
|
|
210
|
+
align-items: center;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@include alert-mixins.generateAlertType(app-info);
|
|
214
|
+
|
|
215
|
+
.alert-item .btn {
|
|
216
|
+
@extend .btn;
|
|
217
|
+
@extend .btn-sm;
|
|
218
|
+
|
|
219
|
+
margin: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&.alert-info {
|
|
223
|
+
@include alert-mixins.generateAlertType(app-info);
|
|
224
|
+
|
|
225
|
+
.alert-item .btn {
|
|
226
|
+
@extend .btn-info-outline;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.alert-danger {
|
|
231
|
+
@include alert-mixins.generateAlertType(app-danger);
|
|
232
|
+
|
|
233
|
+
.alert-item .btn {
|
|
234
|
+
@extend .btn-danger-outline;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&.alert-neutral {
|
|
239
|
+
@include alert-mixins.generateAlertType(app-neutral);
|
|
240
|
+
|
|
241
|
+
.alert-item .btn {
|
|
242
|
+
@extend .btn-neutral-outline;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&.alert-warning {
|
|
247
|
+
@include alert-mixins.generateAlertType(app-warning);
|
|
248
|
+
|
|
249
|
+
.alert-item .btn {
|
|
250
|
+
@extend .btn-warning-outline;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&.alert-success {
|
|
255
|
+
@include alert-mixins.generateAlertType(app-success);
|
|
256
|
+
|
|
257
|
+
.alert-item .btn {
|
|
258
|
+
@extend .btn-success-outline;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.alert-items {
|
|
263
|
+
align-items: center;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.alert-item {
|
|
267
|
+
justify-content: center;
|
|
268
|
+
align-items: center;
|
|
269
|
+
|
|
270
|
+
> span,
|
|
271
|
+
.alert-text,
|
|
272
|
+
.alert-actions {
|
|
273
|
+
@include mixins.generate-typography-token('SECONDARY-13-RG-STD');
|
|
274
|
+
|
|
275
|
+
padding: 0;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.alert-sm {
|
|
281
|
+
padding-top: density.$clr-base-vertical-offset-xs;
|
|
282
|
+
padding-bottom: density.$clr-base-vertical-offset-xs;
|
|
283
|
+
|
|
284
|
+
.alert-items {
|
|
285
|
+
gap: 0;
|
|
286
|
+
|
|
287
|
+
.alert-item {
|
|
288
|
+
min-height: density.$clr-base-row-height-xs;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.alert-icon-wrapper {
|
|
293
|
+
flex-basis: density.$clr-base-icon-size-s;
|
|
294
|
+
padding: density.$clr-base-vertical-offset-multi-row-inline-s 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.alert-icon {
|
|
298
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-s);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.alert-item > span,
|
|
302
|
+
.alert-item .alert-text,
|
|
303
|
+
.alert-item .alert-actions {
|
|
304
|
+
@include mixins.generate-typography-token('SECONDARY-13-RG-CPT');
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.alert-spinner.spinner-inline {
|
|
308
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-s);
|
|
309
|
+
|
|
310
|
+
&::before,
|
|
311
|
+
&::after {
|
|
312
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-s);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&.alert-lightweight {
|
|
317
|
+
background: none;
|
|
318
|
+
border: none;
|
|
319
|
+
|
|
320
|
+
.alert-items {
|
|
321
|
+
gap: density.$clr-base-gap-xs;
|
|
322
|
+
|
|
323
|
+
.alert-item {
|
|
324
|
+
align-items: center;
|
|
325
|
+
min-height: density.$clr-base-row-height-s;
|
|
326
|
+
gap: density.$clr-base-gap-xs;
|
|
327
|
+
|
|
328
|
+
> span,
|
|
329
|
+
.alert-actions,
|
|
330
|
+
.alert-text {
|
|
331
|
+
@include mixins.generate-typography-token('CAPTION-LG-11-STD');
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.alert-icon-wrapper {
|
|
335
|
+
flex-basis: density.$clr-base-icon-size-s;
|
|
336
|
+
height: density.$clr-base-icon-size-s;
|
|
337
|
+
padding: 0;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.close {
|
|
343
|
+
display: none;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@media screen and (max-width: map.get(variables.$clr-grid-breakpoints, md)) {
|
|
349
|
+
.alert {
|
|
350
|
+
.alert-item {
|
|
351
|
+
flex-wrap: wrap;
|
|
352
|
+
|
|
353
|
+
.alert-text {
|
|
354
|
+
//90% was just an estimate to distance the text from the
|
|
355
|
+
//close alert button on medium and smaller breakpoints.
|
|
356
|
+
max-width: 90%;
|
|
357
|
+
//needed for safari
|
|
358
|
+
width: 90%;
|
|
359
|
+
flex-basis: 90%;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.alert-actions {
|
|
363
|
+
flex: 1 0 100%;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.alert-app-level {
|
|
369
|
+
.alert-actions {
|
|
370
|
+
margin-left: density.$clr-base-horizontal-offset-2xl;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.alert-hidden {
|
|
376
|
+
display: none;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
//alert padding/margin adjustments
|
|
380
|
+
//Multiple app level alerts
|
|
381
|
+
.alerts {
|
|
382
|
+
// To be deleted with refactoring task
|
|
383
|
+
.alert {
|
|
384
|
+
margin-top: 0;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.alerts-wrapper {
|
|
388
|
+
display: flex;
|
|
389
|
+
flex-direction: row;
|
|
390
|
+
|
|
391
|
+
clr-alert {
|
|
392
|
+
flex: 1 1 100%;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
@each $alertType in $alertTypes {
|
|
397
|
+
&.alert-#{$alertType} {
|
|
398
|
+
background: var(--clr-app-alert-#{$alertType}-pager-bg-color);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.alerts-pager {
|
|
404
|
+
color: var(--clr-app-alert-pager-text-color);
|
|
405
|
+
|
|
406
|
+
@each $alertType in $alertTypes {
|
|
407
|
+
.alert-#{$alertType} & {
|
|
408
|
+
color: var(--clr-app-alert-#{$alertType}-pager-font-color);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
min-height: alert-variables.$clr-alert-min-height;
|
|
413
|
+
flex: 1 0 var(--clr-app-alert-pager-width);
|
|
414
|
+
display: flex;
|
|
415
|
+
justify-content: center;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.alerts-pager-button {
|
|
419
|
+
@include mixins.clr-no-styles-button();
|
|
420
|
+
|
|
421
|
+
color: var(--clr-app-alert-pager-text-color);
|
|
422
|
+
cursor: pointer;
|
|
423
|
+
display: inline-flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
justify-content: center;
|
|
426
|
+
|
|
427
|
+
@include mixins.equilateral(density.$clr-base-icon-size-l);
|
|
428
|
+
|
|
429
|
+
cds-icon,
|
|
430
|
+
clr-icon {
|
|
431
|
+
color: var(--clr-app-alert-pager-text-color);
|
|
432
|
+
|
|
433
|
+
&:not([size]) {
|
|
434
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-s);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
@each $alertType in $alertTypes {
|
|
438
|
+
.alert-#{$alertType} & {
|
|
439
|
+
color: var(--clr-app-alert-#{$alertType}-pager-font-color);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.alerts-pager-control {
|
|
446
|
+
display: flex;
|
|
447
|
+
white-space: nowrap;
|
|
448
|
+
height: 100%;
|
|
449
|
+
align-items: center;
|
|
450
|
+
text-align: center;
|
|
451
|
+
gap: density.$clr-base-gap-s;
|
|
452
|
+
justify-content: space-between;
|
|
453
|
+
padding: 0 density.$clr-base-horizontal-offset-l;
|
|
454
|
+
|
|
455
|
+
> .alerts-pager-text {
|
|
456
|
+
@include mixins.generate-typography-token('SECONDARY-13-RG-EXP');
|
|
457
|
+
|
|
458
|
+
min-width: mixins.baselinePx(40);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
> * {
|
|
462
|
+
display: inline-flex;
|
|
463
|
+
justify-content: center;
|
|
464
|
+
flex: 0 1 auto;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 'variables.alert' as alert-variables;
|
|
9
|
+
|
|
10
|
+
@mixin generateAlertType($alertType: 'info') {
|
|
11
|
+
background: alert-variables.getAlertColor($alertType, bg-color);
|
|
12
|
+
color: alert-variables.getAlertColor($alertType, color);
|
|
13
|
+
|
|
14
|
+
& .alert-items .alert-item a:not(.dropdown-item, .badge, .label) {
|
|
15
|
+
color: alert-variables.getAlertColor($alertType, color);
|
|
16
|
+
|
|
17
|
+
cds-icon,
|
|
18
|
+
clr-icon {
|
|
19
|
+
fill: alert-variables.getAlertColor($alertType, color);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
$border-prop: alert-variables.getAlertColor($alertType, border-color);
|
|
24
|
+
|
|
25
|
+
@if $border-prop != 'none' {
|
|
26
|
+
border: alert-variables.$clr-alert-borderwidth solid $border-prop;
|
|
27
|
+
} @else {
|
|
28
|
+
border: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.alert-icon {
|
|
32
|
+
color: alert-variables.getAlertColor($alertType, icon);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
$myActionSassVar: alert-variables.getAlertColor($alertType, action);
|
|
36
|
+
|
|
37
|
+
.alert-actions .dropdown .dropdown-toggle {
|
|
38
|
+
color: $myActionSassVar;
|
|
39
|
+
border-color: alert-variables.getAlertColor($alertType, action-active);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.alert-action,
|
|
43
|
+
.dropdown-toggle {
|
|
44
|
+
color: $myActionSassVar;
|
|
45
|
+
|
|
46
|
+
&.btn {
|
|
47
|
+
border-color: $myActionSassVar;
|
|
48
|
+
color: $myActionSassVar;
|
|
49
|
+
|
|
50
|
+
cds-icon,
|
|
51
|
+
clr-icon {
|
|
52
|
+
color: $myActionSassVar;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:active {
|
|
56
|
+
color: $myActionSassVar;
|
|
57
|
+
|
|
58
|
+
cds-icon,
|
|
59
|
+
clr-icon {
|
|
60
|
+
color: $myActionSassVar;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.close {
|
|
67
|
+
color: alert-variables.getAlertColor($alertType, close-icon);
|
|
68
|
+
|
|
69
|
+
cds-icon,
|
|
70
|
+
clr-icon {
|
|
71
|
+
fill: alert-variables.getAlertColor($alertType, close-icon);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:focus,
|
|
75
|
+
&:hover,
|
|
76
|
+
&:active {
|
|
77
|
+
color: alert-variables.getAlertColor($alertType, close-icon-hover);
|
|
78
|
+
|
|
79
|
+
cds-icon,
|
|
80
|
+
clr-icon {
|
|
81
|
+
fill: alert-variables.getAlertColor($alertType, close-icon-hover);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
@mixin generateLightweightAlertType($alertType: 'info') {
|
|
87
|
+
&.alert-#{$alertType} {
|
|
88
|
+
.alert-text {
|
|
89
|
+
color: alert-variables.getAlertColor('lightweight-#{$alertType}', color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.alert-icon {
|
|
93
|
+
color: alert-variables.getAlertColor('lightweight-#{$alertType}', icon);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|