@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,259 @@
|
|
|
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 'sass:map';
|
|
10
|
+
@use '../../styles/mixins';
|
|
11
|
+
@use '../../styles/variables/variables.global';
|
|
12
|
+
@use 'variables.datepicker' as datepicker-variables;
|
|
13
|
+
@use 'mixins.datepicker' as datepicker-mixins;
|
|
14
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
15
|
+
@use '../../button/variables.buttons' as button-variables;
|
|
16
|
+
@use '../../styles/variables/variables.density' as density;
|
|
17
|
+
|
|
18
|
+
@include meta.load-css('properties.datepicker');
|
|
19
|
+
@include mixins.exports('datepicker.clarity') {
|
|
20
|
+
.datepicker {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-flow: row wrap;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
|
|
25
|
+
//Dimensions
|
|
26
|
+
padding: datepicker-variables.$clr-calendar-vertical-padding datepicker-variables.$clr-calendar-horizontal-padding;
|
|
27
|
+
gap: density.$clr-base-gap-m;
|
|
28
|
+
height: datepicker-variables.$clr-calendar-height;
|
|
29
|
+
|
|
30
|
+
//Other Props
|
|
31
|
+
background: datepicker-variables.$clr-calendar-background-color;
|
|
32
|
+
border: tokens.$cds-alias-object-border-width-100 solid datepicker-variables.$clr-calendar-border-color;
|
|
33
|
+
border-radius: density.$clr-base-border-radius-s;
|
|
34
|
+
box-shadow: tokens.$cds-alias-object-shadow-100;
|
|
35
|
+
z-index: map.get(variables.$clr-layers, dropdown-menu);
|
|
36
|
+
|
|
37
|
+
.datepicker-view-manager {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
place-content: space-between;
|
|
41
|
+
min-width: datepicker-variables.$clr-calendar-width;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.has-action-buttons {
|
|
45
|
+
height: calc(
|
|
46
|
+
datepicker-variables.$clr-calendar-height + datepicker-variables.$clr-calendar-action-buttons-height +
|
|
47
|
+
density.$clr-base-gap-s
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.datepicker-actions {
|
|
52
|
+
height: datepicker-variables.$clr-calendar-action-buttons-height;
|
|
53
|
+
display: flex;
|
|
54
|
+
border-top: tokens.$cds-global-space-1 solid tokens.$cds-alias-object-container-border-color;
|
|
55
|
+
justify-content: end;
|
|
56
|
+
padding-top: density.$clr-base-vertical-offset-xl;
|
|
57
|
+
gap: density.$clr-base-horizontal-offset-m;
|
|
58
|
+
|
|
59
|
+
button {
|
|
60
|
+
margin: 0;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.clr-date-range-picker-nav {
|
|
66
|
+
width: datepicker-variables.$clr-calendar-options-width;
|
|
67
|
+
border-radius: density.$clr-base-border-radius-s;
|
|
68
|
+
height: 100%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.calendar-header {
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: space-between;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.calendar-switchers,
|
|
78
|
+
.year-switchers {
|
|
79
|
+
display: flex;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.year-switchers {
|
|
83
|
+
flex: 0 0 auto;
|
|
84
|
+
align-self: center;
|
|
85
|
+
|
|
86
|
+
// this width is pointless in flex situation
|
|
87
|
+
width: datepicker-variables.$clr-switcher-width;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.calendar-table {
|
|
91
|
+
// clr-calendar have dispaly: inline, preventing flex from having an effect.
|
|
92
|
+
flex: 1 1 auto;
|
|
93
|
+
border-spacing: 0 datepicker-variables.$clr-calendar-button-gap;
|
|
94
|
+
//Dimensions
|
|
95
|
+
width: 100%;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
td.calendar-cell,
|
|
99
|
+
td.calendar-table .calendar-cell {
|
|
100
|
+
//Dimensions
|
|
101
|
+
|
|
102
|
+
@include mixins.min-equilateral(datepicker-variables.$clr-calendar-btn-size);
|
|
103
|
+
|
|
104
|
+
padding: 0;
|
|
105
|
+
|
|
106
|
+
//Other Props
|
|
107
|
+
text-align: center;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.day {
|
|
111
|
+
display: inline;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.weekdays {
|
|
115
|
+
flex: 0 0 datepicker-variables.$clr-calendar-btn-size;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.weekday {
|
|
119
|
+
@include mixins.generate-typography-token(
|
|
120
|
+
'SECONDARY-13-SB-CPT',
|
|
121
|
+
(
|
|
122
|
+
font-size: datepicker-variables.$clr-calendar-weekday-font-size,
|
|
123
|
+
)
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
padding: 0 density.$clr-base-horizontal-offset-m;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.calendar-btn {
|
|
130
|
+
@include datepicker-mixins.generate-calendar-button();
|
|
131
|
+
@include datepicker-mixins.generate-calendar-focus-style();
|
|
132
|
+
@include mixins.generate-typography-token(
|
|
133
|
+
'SECTION-20-STD',
|
|
134
|
+
(
|
|
135
|
+
font-size: datepicker-variables.$clr-calendar-picker-btn-font-size,
|
|
136
|
+
font-weight: datepicker-variables.$clr-calendar-picker-btn-font-weight,
|
|
137
|
+
)
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.day-btn {
|
|
142
|
+
@include datepicker-mixins.generate-calendar-button($padding: 0);
|
|
143
|
+
@include datepicker-mixins.generate-calendar-focus-style();
|
|
144
|
+
@include datepicker-mixins.generate-calendar-hover-active-color-style();
|
|
145
|
+
@include mixins.generate-typography-token('SECONDARY-13-RG-EXP');
|
|
146
|
+
@include datepicker-mixins.generate-current-date-style();
|
|
147
|
+
@include datepicker-mixins.generate-selected-date-style();
|
|
148
|
+
|
|
149
|
+
//Dimensions
|
|
150
|
+
width: 100%;
|
|
151
|
+
|
|
152
|
+
//Other Props
|
|
153
|
+
color: inherit;
|
|
154
|
+
|
|
155
|
+
&.is-excluded {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.is-disabled {
|
|
160
|
+
color: tokens.$cds-alias-object-interaction-color-disabled;
|
|
161
|
+
pointer-events: none;
|
|
162
|
+
background: none;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.calendar-pickers {
|
|
167
|
+
display: flex;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.switcher {
|
|
171
|
+
@include datepicker-mixins.generate-calendar-hover-active-color-style();
|
|
172
|
+
|
|
173
|
+
color: datepicker-variables.$clr-calendar-btn-color;
|
|
174
|
+
|
|
175
|
+
cds-icon,
|
|
176
|
+
clr-icon {
|
|
177
|
+
&:not([size]) {
|
|
178
|
+
@include mixins.equilateral(density.$clr-base-icon-size-s);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.monthpicker-trigger,
|
|
184
|
+
.yearpicker-trigger {
|
|
185
|
+
//Dimensions
|
|
186
|
+
min-width: datepicker-variables.$clr-calendar-btn-picker-trigger-width;
|
|
187
|
+
width: datepicker-variables.$clr-calendar-btn-picker-trigger-width;
|
|
188
|
+
padding: 0 density.$clr-base-horizontal-offset-s;
|
|
189
|
+
|
|
190
|
+
//Other Props
|
|
191
|
+
color: datepicker-variables.$clr-calendar-btn-picker-trigger-color;
|
|
192
|
+
text-align: center;
|
|
193
|
+
|
|
194
|
+
@include mixins.overflow-ellipsis();
|
|
195
|
+
|
|
196
|
+
&.year-range {
|
|
197
|
+
width: calc(datepicker-variables.$clr-calendar-btn-picker-trigger-width * 2);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.monthpicker,
|
|
202
|
+
.yearpicker {
|
|
203
|
+
min-height: datepicker-variables.$clr-monthpicker-min-height;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.monthpicker,
|
|
207
|
+
.yearpicker,
|
|
208
|
+
.daypicker {
|
|
209
|
+
display: flex;
|
|
210
|
+
flex-flow: column wrap;
|
|
211
|
+
row-gap: density.$clr-base-gap-s;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.years {
|
|
215
|
+
flex-direction: row;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.month,
|
|
219
|
+
.year {
|
|
220
|
+
@include datepicker-mixins.generate-calendar-button(
|
|
221
|
+
$padding: datepicker-variables.$clr-calendar-month-cell-horizontal-padding
|
|
222
|
+
);
|
|
223
|
+
@include datepicker-mixins.generate-calendar-hover-active-color-style();
|
|
224
|
+
@include mixins.generate-typography-token('SECONDARY-13-RG-CPT');
|
|
225
|
+
@include datepicker-mixins.generate-current-date-style();
|
|
226
|
+
@include datepicker-mixins.generate-selected-date-style();
|
|
227
|
+
|
|
228
|
+
height: datepicker-variables.$clr-calendar-header-btn-height;
|
|
229
|
+
width: datepicker-variables.$clr-month-year-btn-width;
|
|
230
|
+
|
|
231
|
+
&.is-disabled {
|
|
232
|
+
color: tokens.$cds-alias-object-interaction-color-disabled;
|
|
233
|
+
pointer-events: none;
|
|
234
|
+
|
|
235
|
+
&:hover {
|
|
236
|
+
background: none;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.months,
|
|
242
|
+
.years {
|
|
243
|
+
row-gap: datepicker-variables.$clr-calendar-button-gap;
|
|
244
|
+
flex-wrap: wrap;
|
|
245
|
+
display: flex;
|
|
246
|
+
place-content: space-between;
|
|
247
|
+
width: datepicker-variables.$clr-calendar-width;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.month {
|
|
251
|
+
text-align: center;
|
|
252
|
+
|
|
253
|
+
@include mixins.overflow-ellipsis();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.year {
|
|
257
|
+
text-align: center;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.datepicker' as datepicker-variables;
|
|
10
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
11
|
+
@use '../../styles/variables/variables.density' as density;
|
|
12
|
+
|
|
13
|
+
@mixin generate-calendar-button(
|
|
14
|
+
$height: datepicker-variables.$clr-calendar-btn-size,
|
|
15
|
+
$padding: datepicker-variables.$clr-calendar-btn-horizontal-padding
|
|
16
|
+
) {
|
|
17
|
+
//Dimensions
|
|
18
|
+
|
|
19
|
+
@include mixins.min-equilateral($height);
|
|
20
|
+
|
|
21
|
+
padding: 0 $padding;
|
|
22
|
+
margin: 0 !important; //Because stupid forms target buttons directly. We really need to refactor forms.
|
|
23
|
+
|
|
24
|
+
//Other Props
|
|
25
|
+
color: inherit;
|
|
26
|
+
border: none;
|
|
27
|
+
border-radius: density.$clr-base-border-radius-s;
|
|
28
|
+
background: none;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
@mixin generate-calendar-focus-style() {
|
|
32
|
+
&.in-range {
|
|
33
|
+
background: datepicker-variables.$clr-calendar-in-range-cell-background-color;
|
|
34
|
+
border-radius: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
background: datepicker-variables.$clr-calendar-btn-hover-focus-color;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:focus {
|
|
42
|
+
//Only because we have defined a background color for focus above
|
|
43
|
+
// using cds-alias-object-interaction-outline token will be better when focus state get implemented
|
|
44
|
+
outline: tokens.$cds-global-color-blue-700 solid 2px;
|
|
45
|
+
outline-offset: calc(-1 * tokens.$cds-global-space-2);
|
|
46
|
+
background: tokens.$cds-alias-object-interaction-background-hover;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:active {
|
|
50
|
+
background: datepicker-variables.$clr-calendar-btn-active-color-bg;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
@mixin generate-current-date-style() {
|
|
54
|
+
&.is-today {
|
|
55
|
+
color: datepicker-variables.$clr-calendar-today-date-cell-color;
|
|
56
|
+
border: tokens.$cds-global-space-1 solid datepicker-variables.$clr-calendar-today-date-cell-border-color;
|
|
57
|
+
font-weight: datepicker-variables.$clr-calendar-today-date-cell-font-weight;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@mixin generate-selected-date-style() {
|
|
61
|
+
&.is-selected,
|
|
62
|
+
&.is-start-range,
|
|
63
|
+
&.is-end-range {
|
|
64
|
+
background: datepicker-variables.$clr-calendar-active-cell-background-color;
|
|
65
|
+
color: datepicker-variables.$clr-calendar-active-cell-color;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.is-start-range:not(.is-end-range) {
|
|
69
|
+
border-top-right-radius: 0;
|
|
70
|
+
border-bottom-right-radius: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.is-end-range:not(.is-start-range) {
|
|
74
|
+
border-top-left-radius: 0;
|
|
75
|
+
border-bottom-left-radius: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.is-selected:focus {
|
|
79
|
+
background: datepicker-variables.$clr-calendar-active-focus-cell-background-color;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
@mixin generate-calendar-hover-active-color-style() {
|
|
83
|
+
&:hover {
|
|
84
|
+
color: datepicker-variables.$clr-calendar-btn-hover-focus-color-text;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:active {
|
|
88
|
+
color: datepicker-variables.$clr-calendar-btn-active-color;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.density' as density;
|
|
11
|
+
|
|
12
|
+
@include mixins.exports('datepicker.properties') {
|
|
13
|
+
@include mixins.root-or-host() {
|
|
14
|
+
// Typography
|
|
15
|
+
--clr-calendar-today-date-cell-font-weight: #{tokens.$cds-alias-typography-font-weight-semibold};
|
|
16
|
+
--clr-calendar-picker-btn-font-weight: #{tokens.$cds-alias-typography-font-weight-medium};
|
|
17
|
+
|
|
18
|
+
&,
|
|
19
|
+
& [clr-density] {
|
|
20
|
+
--clr-calendar-weekday-font-size: #{density.$clr-base-typography-font-size-inline};
|
|
21
|
+
--clr-calendar-picker-btn-font-size: #{density.$clr-base-typography-font-size-section};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&,
|
|
25
|
+
& [cds-theme] {
|
|
26
|
+
--clr-calendar-background-color: #{tokens.$cds-alias-object-container-background};
|
|
27
|
+
--clr-calendar-border-color: #{tokens.$cds-alias-object-border-color};
|
|
28
|
+
--clr-calendar-option-text-color: #{tokens.$cds-alias-object-interaction-color};
|
|
29
|
+
--clr-calendar-active-option-border-color: #{tokens.$cds-alias-object-interaction-background-highlight};
|
|
30
|
+
--clr-calendar-range-cell-background-color: #{tokens.$cds-alias-object-interaction-background-selected};
|
|
31
|
+
--clr-calendar-btn-color: #{tokens.$cds-alias-object-interaction-color};
|
|
32
|
+
--clr-calendar-today-date-cell-color: #{tokens.$cds-alias-typography-color-400};
|
|
33
|
+
--clr-calendar-today-date-cell-border-color: #{tokens.$cds-alias-object-interaction-border-color};
|
|
34
|
+
--clr-calendar-active-cell-background-color: #{tokens.$cds-alias-object-interaction-background-highlight};
|
|
35
|
+
--clr-calendar-active-focus-cell-background-color: #{tokens.$cds-alias-object-interaction-background-highlight};
|
|
36
|
+
--clr-calendar-active-cell-color: #{tokens.$cds-alias-typography-color-100};
|
|
37
|
+
--clr-calendar-btn-picker-trigger-color: #{tokens.$cds-alias-typography-link-color};
|
|
38
|
+
--clr-calendar-btn-picker-trigger-hover-color: #{tokens.$cds-alias-typography-link-color-hover};
|
|
39
|
+
--clr-calendar-btn-picker-trigger-active-color: #{tokens.$cds-alias-typography-link-color};
|
|
40
|
+
--clr-calendar-btn-hover-focus-color: #{tokens.$cds-alias-object-interaction-background-hover};
|
|
41
|
+
--clr-calendar-btn-hover-focus-color-text: #{tokens.$cds-alias-object-interaction-color-hover};
|
|
42
|
+
--clr-calendar-btn-active-color: #{tokens.$cds-alias-object-interaction-color-active};
|
|
43
|
+
--clr-calendar-btn-active-color-bg: #{tokens.$cds-alias-object-interaction-background-active};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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/mixins';
|
|
10
|
+
@use '../../button/variables.buttons' as button-variables;
|
|
11
|
+
@use '../../styles/variables/variables.density' as density;
|
|
12
|
+
|
|
13
|
+
$clr-calendar-background-color: var(--clr-calendar-background-color) !default;
|
|
14
|
+
$clr-calendar-border-color: var(--clr-calendar-border-color) !default;
|
|
15
|
+
$clr-calendar-vertical-padding: #{density.$clr-base-vertical-offset-xl};
|
|
16
|
+
$clr-calendar-horizontal-padding: #{density.$clr-base-horizontal-offset-xl};
|
|
17
|
+
$clr-calendar-button-gap: #{density.$clr-base-gap-xs};
|
|
18
|
+
|
|
19
|
+
$clr-calendar-options-width: mixins.baselinePx(150);
|
|
20
|
+
$clr-calendar-action-buttons-height: calc(
|
|
21
|
+
#{button-variables.$clr-btn-height} + #{density.$clr-base-vertical-offset-xl}
|
|
22
|
+
); // Button Height + Padding set on .datepicker-actions class
|
|
23
|
+
|
|
24
|
+
$clr-calendar-btn-size: #{density.$clr-base-row-height-m};
|
|
25
|
+
$clr-calendar-btn-color: var(--clr-calendar-btn-color) !default;
|
|
26
|
+
$clr-calendar-btn-hover-focus-color: var(--clr-calendar-btn-hover-focus-color) !default;
|
|
27
|
+
$clr-calendar-btn-active-color-bg: var(--clr-calendar-btn-active-color-bg) !default;
|
|
28
|
+
$clr-calendar-btn-hover-focus-color-text: var(--clr-calendar-btn-hover-focus-color-text) !default;
|
|
29
|
+
$clr-calendar-btn-active-color: var(--clr-calendar-btn-active-color) !default;
|
|
30
|
+
$clr-calendar-btn-picker-trigger-color: var(--clr-calendar-btn-picker-trigger-color) !default;
|
|
31
|
+
$clr-calendar-btn-picker-trigger-width: calc(2 * #{density.$clr-base-layout-space-2xl}) !default;
|
|
32
|
+
|
|
33
|
+
$clr-calendar-btn-horizontal-padding: #{density.$clr-base-horizontal-offset-s};
|
|
34
|
+
|
|
35
|
+
$clr-calendar-header-btn-height: #{density.$clr-base-row-height-l};
|
|
36
|
+
$clr-calendar-month-cell-horizontal-padding: #{density.$clr-base-horizontal-offset-l};
|
|
37
|
+
|
|
38
|
+
$clr-calendar-picker-btn-font-size: var(--clr-calendar-picker-btn-font-size);
|
|
39
|
+
$clr-calendar-picker-btn-font-weight: var(--clr-calendar-picker-btn-font-weight);
|
|
40
|
+
|
|
41
|
+
$clr-calendar-today-date-cell-color: var(--clr-calendar-today-date-cell-color) !default;
|
|
42
|
+
$clr-calendar-today-date-cell-font-weight: var(--clr-calendar-today-date-cell-font-weight);
|
|
43
|
+
|
|
44
|
+
$clr-calendar-active-cell-background-color: var(--clr-calendar-active-cell-background-color) !default;
|
|
45
|
+
$clr-calendar-active-focus-cell-background-color: var(--clr-calendar-active-focus-cell-background-color) !default;
|
|
46
|
+
$clr-calendar-active-cell-color: var(--clr-calendar-active-cell-color) !default;
|
|
47
|
+
|
|
48
|
+
$clr-calendar-weekday-font-size: var(--clr-calendar-weekday-font-size);
|
|
49
|
+
$clr-calendar-weekday-height: density.$clr-base-typography-line-height-16;
|
|
50
|
+
|
|
51
|
+
$clr-switcher-width: calc($clr-calendar-btn-size * 3);
|
|
52
|
+
|
|
53
|
+
// (3 navigation buttons + 2 month / year trigger buttons)
|
|
54
|
+
$clr-calendar-width: calc(3 * #{$clr-calendar-btn-size} + (2 * #{$clr-calendar-btn-picker-trigger-width}));
|
|
55
|
+
|
|
56
|
+
//(7 = 6 date rows + 1 row for calendar switches and month/year pickers) + 1 row for day heading + 2 * 16px padding + 2px for border + 6 * 4px vertical gap for buttons
|
|
57
|
+
$clr-calendar-height: calc(
|
|
58
|
+
(7 * #{$clr-calendar-header-btn-height}) + #{$clr-calendar-weekday-height} + (2 * #{$clr-calendar-vertical-padding}) +
|
|
59
|
+
(2 * #{tokens.$cds-alias-object-border-width-100}) + #{density.$clr-base-gap-s}
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
$clr-monthpicker-min-height: calc(6 * #{$clr-calendar-header-btn-height});
|
|
63
|
+
$clr-month-year-btn-width: calc(
|
|
64
|
+
0.5 * #{$clr-calendar-width} - #{$clr-calendar-horizontal-padding} - #{tokens.$cds-alias-object-border-width-100}
|
|
65
|
+
); // Calendar width - calendar padding - border
|
|
66
|
+
$clr-calendar-today-date-cell-border-color: var(--clr-calendar-today-date-cell-border-color);
|
|
67
|
+
|
|
68
|
+
$clr-calendar-option-text-color: var(--clr-calendar-option-text-color) !default;
|
|
69
|
+
$clr-calendar-option-hover-background-color: var(--clr-calendar-btn-hover-color);
|
|
70
|
+
$clr-calendar-options-background-color: var(--clr-vertical-nav-bg-color);
|
|
71
|
+
$clr-calendar-active-option-border-color: var(--clr-calendar-active-option-border-color);
|
|
72
|
+
$clr-calendar-in-range-cell-background-color: var(--clr-calendar-range-cell-background-color);
|
|
73
|
+
$clr-calendar-options-active-text-color: var(--clr-vertical-nav-item-active-color);
|
|
74
|
+
$clr-calendar-options-active-background-color: var(--clr-vertical-nav-selected-bg-color);
|
|
@@ -0,0 +1,193 @@
|
|
|
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 '../../emphasis/alert/variables.alert' as alert-variables;
|
|
9
|
+
@use '../../styles/mixins';
|
|
10
|
+
@use '../../styles/variables/variables.global';
|
|
11
|
+
@use '../../styles/variables/variables.density' as density;
|
|
12
|
+
@use 'mixins.forms' as forms-mixins;
|
|
13
|
+
@use 'variables.forms' as forms-variables;
|
|
14
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
15
|
+
|
|
16
|
+
@include mixins.exports('forms.checkbox') {
|
|
17
|
+
$mark-half-size: calc(#{forms-variables.$clr-forms-checkbox-mark-size} * 0.5);
|
|
18
|
+
|
|
19
|
+
//Remove the default checkbox appearance
|
|
20
|
+
%custom-checkbox {
|
|
21
|
+
@include mixins.clr-appearance-normal();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// @TODO un-nest the checkbox from the wrapper, after old forms are removed
|
|
25
|
+
.clr-checkbox-wrapper {
|
|
26
|
+
@include forms-mixins.form-flatten-validate-text();
|
|
27
|
+
|
|
28
|
+
position: relative;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
|
|
32
|
+
@include forms-mixins.checkbox-radio-toggle-control-group-gap();
|
|
33
|
+
|
|
34
|
+
.clr-control-label {
|
|
35
|
+
@include forms-mixins.checkbox-radio-label-styles(
|
|
36
|
+
forms-variables.$clr-forms-checkbox-label-height,
|
|
37
|
+
forms-variables.$clr-forms-checkbox-label-color,
|
|
38
|
+
'SECONDARY-13-RG-CPT'
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
//Hide the default checkbox behind the pseudo elements
|
|
43
|
+
//Opacity is set to 0 so that the input remains accessible
|
|
44
|
+
input[type='checkbox'] {
|
|
45
|
+
@include forms-mixins.checkbox-radio-input-styles(forms-variables.$clr-forms-checkbox-size);
|
|
46
|
+
|
|
47
|
+
@extend %custom-checkbox;
|
|
48
|
+
|
|
49
|
+
padding: density.$clr-base-vertical-offset-xs 0;
|
|
50
|
+
|
|
51
|
+
&:not(:disabled) {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//Checkbox base
|
|
56
|
+
&::before {
|
|
57
|
+
@include forms-mixins.checkbox-radio-shared-inactive(
|
|
58
|
+
forms-variables.$clr-forms-checkbox-height,
|
|
59
|
+
forms-variables.$clr-forms-border-color
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
border-radius: forms-variables.$clr-forms-checkbox-border-radius;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
//Checkmark
|
|
66
|
+
&::after {
|
|
67
|
+
position: absolute;
|
|
68
|
+
content: '';
|
|
69
|
+
display: none;
|
|
70
|
+
height: calc(#{$mark-half-size} + #{tokens.$cds-global-space-1});
|
|
71
|
+
width: forms-variables.$clr-forms-checkbox-mark-size;
|
|
72
|
+
border-left: forms-variables.$clr-forms-checkbox-mark-border-size solid
|
|
73
|
+
forms-variables.$clr-forms-checkbox-mark-color;
|
|
74
|
+
border-bottom: forms-variables.$clr-forms-checkbox-mark-border-size solid
|
|
75
|
+
forms-variables.$clr-forms-checkbox-mark-color;
|
|
76
|
+
left: $mark-half-size;
|
|
77
|
+
transform: translate(0, $mark-half-size) rotate(-45deg);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:focus {
|
|
81
|
+
outline: none;
|
|
82
|
+
|
|
83
|
+
&::before {
|
|
84
|
+
@include mixins.include-outline-style-form-fields(mixins.baselinePx(3));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:checked {
|
|
89
|
+
&::before {
|
|
90
|
+
background: forms-variables.$clr-forms-checkbox-background-color;
|
|
91
|
+
border: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&::after {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.clr-indeterminate,
|
|
100
|
+
&:indeterminate {
|
|
101
|
+
&::before {
|
|
102
|
+
border: #{tokens.$cds-alias-object-border-width-100} solid
|
|
103
|
+
forms-variables.$clr-forms-checkbox-indeterminate-border-color;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&::after {
|
|
107
|
+
border-left: none;
|
|
108
|
+
border-bottom-color: forms-variables.$clr-forms-checkbox-indeterminate-border-color;
|
|
109
|
+
display: inline-block;
|
|
110
|
+
transform: translate(0, $mark-half-size);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:disabled {
|
|
115
|
+
+ label {
|
|
116
|
+
cursor: not-allowed;
|
|
117
|
+
color: forms-variables.$clr-forms-label-disabled-color;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&::before {
|
|
121
|
+
background-color: forms-variables.$clr-forms-checkbox-disabled-background-color;
|
|
122
|
+
border-color: forms-variables.$clr-forms-checkbox-disabled-border-color;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:checked {
|
|
126
|
+
&::before {
|
|
127
|
+
background-color: forms-variables.$clr-forms-checkbox-disabled-checked-background-color;
|
|
128
|
+
border: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&::after {
|
|
132
|
+
border-color: forms-variables.$clr-forms-checkbox-disabled-mark-color;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.clr-indeterminate::after,
|
|
137
|
+
&:indeterminate::after {
|
|
138
|
+
border-color: forms-variables.$clr-forms-checkbox-disabled-indeterminate-color;
|
|
139
|
+
border-left: none;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.clr-checkbox-inline {
|
|
145
|
+
@include forms-mixins.form-inline-input();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.clr-error .clr-checkbox-wrapper:not(.datagrid-select .clr-checkbox-wrapper) input[type='checkbox']::before {
|
|
150
|
+
border-color: forms-variables.$clr-forms-invalid-color;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.clr-form-control-disabled .clr-checkbox-wrapper,
|
|
154
|
+
.clr-checkbox-wrapper.clr-checkbox-wrapper-disabled {
|
|
155
|
+
.clr-control-label {
|
|
156
|
+
cursor: not-allowed;
|
|
157
|
+
color: forms-variables.$clr-forms-label-disabled-color;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
input[type='checkbox']::before {
|
|
161
|
+
background-color: forms-variables.$clr-forms-checkbox-disabled-background-color;
|
|
162
|
+
border-color: forms-variables.$clr-forms-checkbox-disabled-border-color;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
input[type='checkbox']:checked {
|
|
166
|
+
&::before {
|
|
167
|
+
background-color: forms-variables.$clr-forms-checkbox-disabled-checked-background-color;
|
|
168
|
+
border: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&::after {
|
|
172
|
+
border-color: forms-variables.$clr-forms-checkbox-disabled-mark-color;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
input[type='checkbox'].clr-indeterminate::after,
|
|
177
|
+
input[type='checkbox']:indeterminate::after {
|
|
178
|
+
border-color: forms-variables.$clr-forms-checkbox-disabled-indeterminate-color;
|
|
179
|
+
border-left: none;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.clr-form-compact .clr-checkbox-wrapper {
|
|
184
|
+
padding-top: 0;
|
|
185
|
+
|
|
186
|
+
@include forms-mixins.form-flatten-compact-adjustments();
|
|
187
|
+
@include forms-mixins.form-inline-input();
|
|
188
|
+
|
|
189
|
+
.clr-control-label {
|
|
190
|
+
margin-top: 0;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|