@clayui/css 3.65.1 → 3.69.0
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/lib/css/atlas.css +49 -94
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +31 -75
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +63 -62
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/icons.svg +1 -1
- package/package.json +2 -2
- package/src/scss/_license-text.scss +1 -1
- package/src/scss/atlas/variables/_buttons.scss +26 -26
- package/src/scss/atlas/variables/_custom-forms.scss +2 -2
- package/src/scss/atlas/variables/_dropdowns.scss +2 -2
- package/src/scss/atlas/variables/_forms.scss +6 -2
- package/src/scss/atlas/variables/_menubar.scss +6 -6
- package/src/scss/atlas/variables/_utilities.scss +1 -1
- package/src/scss/cadmin/components/_buttons.scss +14 -22
- package/src/scss/cadmin/components/_dropdowns.scss +22 -14
- package/src/scss/cadmin/variables/_buttons.scss +6 -0
- package/src/scss/cadmin/variables/_dropdowns.scss +10 -10
- package/src/scss/cadmin/variables/_forms.scss +7 -3
- package/src/scss/cadmin/variables/_menubar.scss +8 -8
- package/src/scss/cadmin/variables/_modals.scss +3 -2
- package/src/scss/cadmin/variables/_popovers.scss +3 -2
- package/src/scss/components/_alerts.scss +28 -80
- package/src/scss/components/_buttons.scss +16 -24
- package/src/scss/components/_custom-forms.scss +4 -12
- package/src/scss/components/_date-picker.scss +6 -23
- package/src/scss/components/_dropdowns.scss +30 -35
- package/src/scss/components/_forms.scss +16 -53
- package/src/scss/components/_icons.scss +4 -4
- package/src/scss/components/_labels.scss +6 -10
- package/src/scss/components/_list-group.scss +4 -9
- package/src/scss/components/_modals.scss +2 -6
- package/src/scss/components/_progress-bars.scss +2 -6
- package/src/scss/components/_stickers.scss +3 -15
- package/src/scss/components/_type.scss +3 -3
- package/src/scss/mixins/_alerts.scss +10 -24
- package/src/scss/mixins/_aspect-ratio.scss +51 -49
- package/src/scss/mixins/_badges.scss +140 -140
- package/src/scss/mixins/_buttons.scss +2 -6
- package/src/scss/mixins/_cards.scss +4 -10
- package/src/scss/mixins/_dropdown-menu.scss +19 -31
- package/src/scss/mixins/_globals.scss +1 -1
- package/src/scss/mixins/_grid.scss +59 -51
- package/src/scss/mixins/_labels.scss +228 -212
- package/src/scss/mixins/_menubar.scss +15 -46
- package/src/scss/mixins/_navbar.scss +41 -43
- package/src/scss/mixins/_pagination.scss +35 -71
- package/src/scss/mixins/_sheet.scss +2 -6
- package/src/scss/mixins/_stickers.scss +10 -19
- package/src/scss/mixins/_tbar.scss +10 -30
- package/src/scss/mixins/_utilities.scss +1 -1
- package/src/scss/variables/_dropdowns.scss +4 -4
- package/src/scss/variables/_forms.scss +3 -1
- package/src/scss/variables/_menubar.scss +8 -8
- package/src/scss/variables/_modals.scss +3 -2
- package/src/scss/variables/_popovers.scss +3 -1
|
@@ -73,8 +73,8 @@ $cadmin-dropdown-menu: map-deep-merge(
|
|
|
73
73
|
|
|
74
74
|
// .dropdown-item
|
|
75
75
|
|
|
76
|
-
$cadmin-dropdown-item-padding-x:
|
|
77
|
-
$cadmin-dropdown-item-padding-y: 8px !default;
|
|
76
|
+
$cadmin-dropdown-item-padding-x: 16px !default;
|
|
77
|
+
$cadmin-dropdown-item-padding-y: 8px !default;
|
|
78
78
|
|
|
79
79
|
$cadmin-dropdown-item-disabled-cursor: $cadmin-disabled-cursor !default;
|
|
80
80
|
|
|
@@ -163,20 +163,20 @@ $cadmin-dropdown-item-base: map-deep-merge(
|
|
|
163
163
|
line-height: $cadmin-dropdown-font-size * $cadmin-line-height-base,
|
|
164
164
|
),
|
|
165
165
|
'&.autofit-row': (
|
|
166
|
-
padding-left:
|
|
167
|
-
padding-right:
|
|
166
|
+
padding-left: calc(#{$cadmin-dropdown-item-padding-x} - 4px),
|
|
167
|
+
padding-right: calc(#{$cadmin-dropdown-item-padding-x} - 4px),
|
|
168
168
|
autofit-col: (
|
|
169
|
-
padding-left:
|
|
170
|
-
padding-right:
|
|
169
|
+
padding-left: 4px,
|
|
170
|
+
padding-right: 4px,
|
|
171
171
|
),
|
|
172
172
|
),
|
|
173
173
|
autofit-row: (
|
|
174
|
-
margin-left:
|
|
175
|
-
margin-right:
|
|
174
|
+
margin-left: -4px,
|
|
175
|
+
margin-right: -4px,
|
|
176
176
|
width: auto,
|
|
177
177
|
autofit-col: (
|
|
178
|
-
padding-left:
|
|
179
|
-
padding-right:
|
|
178
|
+
padding-left: 4px,
|
|
179
|
+
padding-right: 4px,
|
|
180
180
|
),
|
|
181
181
|
),
|
|
182
182
|
),
|
|
@@ -118,12 +118,15 @@ $cadmin-input-plaintext-color: $cadmin-body-color !default;
|
|
|
118
118
|
|
|
119
119
|
// Deprecated
|
|
120
120
|
|
|
121
|
-
$cadmin-input-height-border:
|
|
122
|
-
$cadmin-input-border-top-width
|
|
121
|
+
$cadmin-input-height-border: calc(
|
|
122
|
+
#{$cadmin-input-border-bottom-width} + #{$cadmin-input-border-top-width}
|
|
123
|
+
) !default;
|
|
123
124
|
|
|
124
125
|
// Deprecated
|
|
125
126
|
|
|
126
|
-
$cadmin-input-height-inner:
|
|
127
|
+
$cadmin-input-height-inner: calc(
|
|
128
|
+
#{$cadmin-input-height} - #{$cadmin-input-border-bottom-width} - #{$cadmin-input-border-top-width}
|
|
129
|
+
) !default;
|
|
127
130
|
|
|
128
131
|
// Deprecated
|
|
129
132
|
|
|
@@ -194,6 +197,7 @@ $cadmin-input-label: map-deep-merge(
|
|
|
194
197
|
font-weight: $cadmin-input-label-font-weight,
|
|
195
198
|
margin-bottom: $cadmin-input-label-margin-bottom,
|
|
196
199
|
max-width: 100%,
|
|
200
|
+
position: static,
|
|
197
201
|
word-wrap: break-word,
|
|
198
202
|
mobile: (
|
|
199
203
|
font-size: $cadmin-input-label-font-size-mobile,
|
|
@@ -98,7 +98,7 @@ $cadmin-menubar-vertical-transparent-md: map-deep-merge(
|
|
|
98
98
|
color: rgba($cadmin-black, 0.3),
|
|
99
99
|
),
|
|
100
100
|
show: (
|
|
101
|
-
background-color:
|
|
101
|
+
background-color: c-unset,
|
|
102
102
|
color: $cadmin-gray-900,
|
|
103
103
|
font-weight: $cadmin-font-weight-semi-bold,
|
|
104
104
|
),
|
|
@@ -124,9 +124,9 @@ $cadmin-menubar-vertical-transparent-md: map-deep-merge(
|
|
|
124
124
|
color: $cadmin-gray-600,
|
|
125
125
|
),
|
|
126
126
|
show: (
|
|
127
|
-
background-color:
|
|
128
|
-
color:
|
|
129
|
-
font-weight:
|
|
127
|
+
background-color: c-unset,
|
|
128
|
+
color: c-unset,
|
|
129
|
+
font-weight: c-unset,
|
|
130
130
|
),
|
|
131
131
|
),
|
|
132
132
|
collapse-mobile: (
|
|
@@ -311,7 +311,7 @@ $cadmin-menubar-vertical-transparent-lg: map-deep-merge(
|
|
|
311
311
|
color: rgba($cadmin-black, 0.3),
|
|
312
312
|
),
|
|
313
313
|
show: (
|
|
314
|
-
background-color:
|
|
314
|
+
background-color: c-unset,
|
|
315
315
|
color: $cadmin-gray-900,
|
|
316
316
|
font-weight: $cadmin-font-weight-semi-bold,
|
|
317
317
|
),
|
|
@@ -337,9 +337,9 @@ $cadmin-menubar-vertical-transparent-lg: map-deep-merge(
|
|
|
337
337
|
color: $cadmin-gray-600,
|
|
338
338
|
),
|
|
339
339
|
show: (
|
|
340
|
-
background-color:
|
|
341
|
-
color:
|
|
342
|
-
font-weight:
|
|
340
|
+
background-color: c-unset,
|
|
341
|
+
color: c-unset,
|
|
342
|
+
font-weight: c-unset,
|
|
343
343
|
),
|
|
344
344
|
),
|
|
345
345
|
collapse-mobile: (
|
|
@@ -19,8 +19,9 @@ $cadmin-modal-content-border-color: transparent !default;
|
|
|
19
19
|
$cadmin-modal-content-border-width: $cadmin-border-width !default;
|
|
20
20
|
|
|
21
21
|
$cadmin-modal-content-border-radius: $cadmin-border-radius-lg !default;
|
|
22
|
-
$cadmin-modal-content-inner-border-radius:
|
|
23
|
-
$cadmin-modal-content-border-width
|
|
22
|
+
$cadmin-modal-content-inner-border-radius: calc(
|
|
23
|
+
#{$cadmin-modal-content-border-radius} - #{$cadmin-modal-content-border-width}
|
|
24
|
+
) !default;
|
|
24
25
|
|
|
25
26
|
$cadmin-modal-content-box-shadow-xs: 0 0 3px 1px rgba(0, 0, 0, 0.2) !default;
|
|
26
27
|
$cadmin-modal-content-box-shadow-sm-up: 0 8px 16px rgba($cadmin-black, 0.5) !default;
|
|
@@ -3,8 +3,9 @@ $cadmin-popover-border-color: transparent !default;
|
|
|
3
3
|
$cadmin-popover-border-width: $cadmin-border-width !default;
|
|
4
4
|
|
|
5
5
|
$cadmin-popover-border-radius: $cadmin-border-radius !default; // 4px
|
|
6
|
-
$cadmin-popover-inner-border-radius:
|
|
7
|
-
$cadmin-popover-border-width
|
|
6
|
+
$cadmin-popover-inner-border-radius: calc(
|
|
7
|
+
#{$cadmin-popover-border-radius} - #{$cadmin-popover-border-width}
|
|
8
|
+
) !default;
|
|
8
9
|
|
|
9
10
|
$cadmin-popover-box-shadow: 0 1px 15px -2px rgba(0, 0, 0, 0.2) !default;
|
|
10
11
|
$cadmin-popover-font-size: $cadmin-font-size-sm !default;
|
|
@@ -21,13 +21,11 @@
|
|
|
21
21
|
@include clay-css($alert-indicator);
|
|
22
22
|
|
|
23
23
|
.lexicon-icon {
|
|
24
|
-
@include clay-css(
|
|
24
|
+
@include clay-css(map-get($alert-indicator, lexicon-icon));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
+ .lead {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@include clay-css($lead);
|
|
28
|
+
@include clay-css(map-get($alert-indicator, lead));
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
31
|
|
|
@@ -75,9 +73,7 @@
|
|
|
75
73
|
@include clay-css($alert-notifications-absolute);
|
|
76
74
|
|
|
77
75
|
@include clay-scale-component(null, $breakpoint-down) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
@include clay-css($mobile);
|
|
76
|
+
@include clay-css(map-get($alert-notifications-absolute, mobile));
|
|
81
77
|
}
|
|
82
78
|
}
|
|
83
79
|
|
|
@@ -87,9 +83,7 @@
|
|
|
87
83
|
@include clay-css($alert-notifications-fixed);
|
|
88
84
|
|
|
89
85
|
@include clay-scale-component(null, $breakpoint-down) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
@include clay-css($mobile);
|
|
86
|
+
@include clay-css(map-get($alert-notifications-fixed, mobile));
|
|
93
87
|
}
|
|
94
88
|
}
|
|
95
89
|
|
|
@@ -170,12 +164,7 @@
|
|
|
170
164
|
@include clay-css($alert-inline);
|
|
171
165
|
|
|
172
166
|
&.alert-dismissible {
|
|
173
|
-
$alert-dismissible
|
|
174
|
-
map-get($alert-inline, alert-dismissible),
|
|
175
|
-
()
|
|
176
|
-
);
|
|
177
|
-
|
|
178
|
-
@include clay-css($alert-dismissible);
|
|
167
|
+
@include clay-css(map-get($alert-inline, alert-dismissible));
|
|
179
168
|
|
|
180
169
|
&.alert-fluid {
|
|
181
170
|
$alert-dismissible-alert-fluid: setter(
|
|
@@ -195,21 +184,17 @@
|
|
|
195
184
|
@include clay-css($container-fluid);
|
|
196
185
|
|
|
197
186
|
> .alert-autofit-row {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
187
|
+
@include clay-css(
|
|
188
|
+
setter(
|
|
189
|
+
map-get($container-fluid, alert-autofit-row),
|
|
190
|
+
map-get($alert-inline, alert-autofit-row)
|
|
191
|
+
)
|
|
202
192
|
);
|
|
203
193
|
|
|
204
|
-
@include clay-css($alert-autofit-row);
|
|
205
|
-
|
|
206
194
|
.btn-group {
|
|
207
|
-
|
|
208
|
-
map-get($alert-autofit-row, btn-group)
|
|
209
|
-
()
|
|
195
|
+
@include clay-css(
|
|
196
|
+
map-get($alert-autofit-row, btn-group)
|
|
210
197
|
);
|
|
211
|
-
|
|
212
|
-
@include clay-css($btn-group);
|
|
213
198
|
}
|
|
214
199
|
}
|
|
215
200
|
}
|
|
@@ -225,16 +210,12 @@
|
|
|
225
210
|
@include clay-css($alert-autofit-row);
|
|
226
211
|
|
|
227
212
|
.btn-group {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
@include clay-css($btn-group);
|
|
213
|
+
@include clay-css(map-get($alert-autofit-row, btn-group));
|
|
231
214
|
}
|
|
232
215
|
}
|
|
233
216
|
|
|
234
217
|
.close {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
@include clay-close($close);
|
|
218
|
+
@include clay-close(map-get($alert-inline, close));
|
|
238
219
|
}
|
|
239
220
|
}
|
|
240
221
|
|
|
@@ -252,22 +233,16 @@
|
|
|
252
233
|
@include clay-css($alert-autofit-row);
|
|
253
234
|
|
|
254
235
|
> .autofit-col {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
@include clay-css($autofit-col);
|
|
236
|
+
@include clay-css(map-get($alert-autofit-row, autofit-col));
|
|
258
237
|
}
|
|
259
238
|
|
|
260
239
|
.btn-group {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
@include clay-css($btn-group);
|
|
240
|
+
@include clay-css(map-get($alert-autofit-row, btn-group));
|
|
264
241
|
}
|
|
265
242
|
}
|
|
266
243
|
|
|
267
244
|
.close {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
@include clay-close($close);
|
|
245
|
+
@include clay-close(map-get($alert-autofit-stacked, close));
|
|
271
246
|
}
|
|
272
247
|
}
|
|
273
248
|
|
|
@@ -287,27 +262,21 @@
|
|
|
287
262
|
}
|
|
288
263
|
|
|
289
264
|
> .autofit-col {
|
|
290
|
-
$autofit-col: setter(map-get($alert-autofit-row, autofit-col), ());
|
|
291
|
-
|
|
292
265
|
@include media-breakpoint-down(sm) {
|
|
293
|
-
@include clay-css($autofit-col);
|
|
266
|
+
@include clay-css(map-get($alert-autofit-row, autofit-col));
|
|
294
267
|
}
|
|
295
268
|
}
|
|
296
269
|
|
|
297
270
|
.btn-group {
|
|
298
|
-
$btn-group: setter(map-get($alert-autofit-row, btn-group), ());
|
|
299
|
-
|
|
300
271
|
@include media-breakpoint-down(sm) {
|
|
301
|
-
@include clay-css($btn-group);
|
|
272
|
+
@include clay-css(map-get($alert-autofit-row, btn-group));
|
|
302
273
|
}
|
|
303
274
|
}
|
|
304
275
|
}
|
|
305
276
|
|
|
306
277
|
.close {
|
|
307
|
-
$close: setter(map-get($alert-autofit-stacked-sm-down, close), ());
|
|
308
|
-
|
|
309
278
|
@include media-breakpoint-down(sm) {
|
|
310
|
-
@include clay-css($close);
|
|
279
|
+
@include clay-css(map-get($alert-autofit-stacked-sm-down, close));
|
|
311
280
|
}
|
|
312
281
|
}
|
|
313
282
|
}
|
|
@@ -328,27 +297,21 @@
|
|
|
328
297
|
}
|
|
329
298
|
|
|
330
299
|
> .autofit-col {
|
|
331
|
-
$autofit-col: setter(map-get($alert-autofit-row, autofit-col), ());
|
|
332
|
-
|
|
333
300
|
@include media-breakpoint-down(xs) {
|
|
334
|
-
@include clay-css($autofit-col);
|
|
301
|
+
@include clay-css(map-get($alert-autofit-row, autofit-col));
|
|
335
302
|
}
|
|
336
303
|
}
|
|
337
304
|
|
|
338
305
|
.btn-group {
|
|
339
|
-
$btn-group: setter(map-get($alert-autofit-row, btn-group), ());
|
|
340
|
-
|
|
341
306
|
@include media-breakpoint-down(xs) {
|
|
342
|
-
@include clay-css($btn-group);
|
|
307
|
+
@include clay-css(map-get($alert-autofit-row, btn-group));
|
|
343
308
|
}
|
|
344
309
|
}
|
|
345
310
|
}
|
|
346
311
|
|
|
347
312
|
.close {
|
|
348
|
-
$close: setter(map-get($alert-autofit-stacked-xs-down, close), ());
|
|
349
|
-
|
|
350
313
|
@include media-breakpoint-down(xs) {
|
|
351
|
-
@include clay-css($close);
|
|
314
|
+
@include clay-css(map-get($alert-autofit-stacked-xs-down, close));
|
|
352
315
|
}
|
|
353
316
|
}
|
|
354
317
|
}
|
|
@@ -365,22 +328,12 @@
|
|
|
365
328
|
|
|
366
329
|
> .container,
|
|
367
330
|
> .container-fluid {
|
|
368
|
-
$container-fluid
|
|
369
|
-
map-get($alert-fluid, container-fluid),
|
|
370
|
-
()
|
|
371
|
-
);
|
|
372
|
-
|
|
373
|
-
@include clay-css($container-fluid);
|
|
331
|
+
@include clay-css(map-get($alert-fluid, container-fluid));
|
|
374
332
|
}
|
|
375
333
|
}
|
|
376
334
|
|
|
377
335
|
&.alert-feedback {
|
|
378
|
-
$alert-feedback
|
|
379
|
-
map-get($alert-indicator-start, alert-feedback),
|
|
380
|
-
()
|
|
381
|
-
);
|
|
382
|
-
|
|
383
|
-
@include clay-css($alert-feedback);
|
|
336
|
+
@include clay-css(map-get($alert-indicator-start, alert-feedback));
|
|
384
337
|
}
|
|
385
338
|
|
|
386
339
|
.alert-indicator {
|
|
@@ -392,9 +345,7 @@
|
|
|
392
345
|
@include clay-css($alert-indicator);
|
|
393
346
|
|
|
394
347
|
+ .lead {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
@include clay-css($lead);
|
|
348
|
+
@include clay-css(map-get($alert-indicator, lead));
|
|
398
349
|
}
|
|
399
350
|
}
|
|
400
351
|
|
|
@@ -407,12 +358,9 @@
|
|
|
407
358
|
@include clay-css($alert-autofit-row);
|
|
408
359
|
|
|
409
360
|
.alert-indicator:only-child {
|
|
410
|
-
|
|
411
|
-
map-get($alert-autofit-row, alert-indicator-only-child)
|
|
412
|
-
()
|
|
361
|
+
@include clay-css(
|
|
362
|
+
map-get($alert-autofit-row, alert-indicator-only-child)
|
|
413
363
|
);
|
|
414
|
-
|
|
415
|
-
@include clay-css($alert-indicator-only-child);
|
|
416
364
|
}
|
|
417
365
|
}
|
|
418
366
|
}
|
|
@@ -8,11 +8,11 @@ fieldset:disabled a.btn {
|
|
|
8
8
|
@include clay-css($btn-disabled);
|
|
9
9
|
|
|
10
10
|
&:focus {
|
|
11
|
-
@include clay-css(
|
|
11
|
+
@include clay-css(map-get($btn-disabled, focus));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
&:active {
|
|
15
|
-
@include clay-css(
|
|
15
|
+
@include clay-css(map-get($btn-disabled, active));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -119,7 +119,11 @@ input[type='button'] {
|
|
|
119
119
|
starts-with($color, '#') or
|
|
120
120
|
starts-with($color, '%'),
|
|
121
121
|
$color,
|
|
122
|
-
|
|
122
|
+
if(
|
|
123
|
+
starts-with($color, 'btn-'),
|
|
124
|
+
str-insert($color, '.', 1),
|
|
125
|
+
str-insert($color, '.btn-', 1)
|
|
126
|
+
)
|
|
123
127
|
);
|
|
124
128
|
|
|
125
129
|
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
@@ -127,17 +131,9 @@ input[type='button'] {
|
|
|
127
131
|
@include clay-button-variant($value);
|
|
128
132
|
}
|
|
129
133
|
} @else {
|
|
130
|
-
$placeholder:
|
|
131
|
-
starts-with($color, '.') or starts-with($color, '#'),
|
|
132
|
-
'%#{str-slice($color, 2)}',
|
|
133
|
-
'%btn-#{$color}'
|
|
134
|
-
);
|
|
134
|
+
$placeholder: '%#{str-slice($selector, 2)}';
|
|
135
135
|
|
|
136
|
-
$placeholder-focus:
|
|
137
|
-
starts-with($color, '.') or starts-with($color, '#'),
|
|
138
|
-
'%#{str-slice($color, 2)}-focus',
|
|
139
|
-
'%btn-#{$color}-focus'
|
|
140
|
-
);
|
|
136
|
+
$placeholder-focus: '%#{str-slice($selector, 2)}-focus';
|
|
141
137
|
|
|
142
138
|
#{$placeholder} {
|
|
143
139
|
@include clay-button-variant($value);
|
|
@@ -161,7 +157,11 @@ input[type='button'] {
|
|
|
161
157
|
starts-with($color, '#') or
|
|
162
158
|
starts-with($color, '%'),
|
|
163
159
|
$color,
|
|
164
|
-
|
|
160
|
+
if(
|
|
161
|
+
starts-with($color, 'btn-'),
|
|
162
|
+
str-insert($color, '.', 1),
|
|
163
|
+
str-insert($color, '.btn-outline-', 1)
|
|
164
|
+
)
|
|
165
165
|
);
|
|
166
166
|
|
|
167
167
|
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
@@ -169,17 +169,9 @@ input[type='button'] {
|
|
|
169
169
|
@include clay-button-variant($value);
|
|
170
170
|
}
|
|
171
171
|
} @else {
|
|
172
|
-
$placeholder:
|
|
173
|
-
starts-with($color, '.') or starts-with($color, '#'),
|
|
174
|
-
'%#{str-slice($color, 2)}',
|
|
175
|
-
'%btn-outline-#{$color}'
|
|
176
|
-
);
|
|
172
|
+
$placeholder: '%#{str-slice($selector, 2)}';
|
|
177
173
|
|
|
178
|
-
$placeholder-focus:
|
|
179
|
-
starts-with($color, '.') or starts-with($color, '#'),
|
|
180
|
-
'%#{str-slice($color, 2)}-focus',
|
|
181
|
-
'%btn-outline-#{$color}-focus'
|
|
182
|
-
);
|
|
174
|
+
$placeholder-focus: '%#{str-slice($selector, 2)}-focus';
|
|
183
175
|
|
|
184
176
|
#{$placeholder} {
|
|
185
177
|
@include clay-button-variant($value);
|
|
@@ -66,15 +66,11 @@
|
|
|
66
66
|
@include clay-css($custom-control);
|
|
67
67
|
|
|
68
68
|
&:only-child {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
@include clay-css($only-child);
|
|
69
|
+
@include clay-css(map-get($custom-control, only-child));
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
label {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
@include clay-css($label);
|
|
73
|
+
@include clay-css(map-get($custom-control, label));
|
|
78
74
|
}
|
|
79
75
|
}
|
|
80
76
|
|
|
@@ -106,15 +102,11 @@ label.custom-control-label {
|
|
|
106
102
|
// Custom Control Indicator
|
|
107
103
|
|
|
108
104
|
.custom-control-label::before {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
@include clay-css($before);
|
|
105
|
+
@include clay-css(map-get($custom-control-label, before));
|
|
112
106
|
}
|
|
113
107
|
|
|
114
108
|
.custom-control-label::after {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
@include clay-css($after);
|
|
109
|
+
@include clay-css(map-get($custom-control-label, after));
|
|
118
110
|
}
|
|
119
111
|
|
|
120
112
|
.custom-control-input {
|
|
@@ -76,42 +76,25 @@
|
|
|
76
76
|
@include clay-css($date-picker-col);
|
|
77
77
|
|
|
78
78
|
&.c-selected {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
@include clay-css($_c-selected);
|
|
79
|
+
@include clay-css(map-get($date-picker-col, c-selected));
|
|
82
80
|
|
|
83
81
|
&:first-child {
|
|
84
|
-
|
|
85
|
-
map-get($date-picker-col, c-selected-first-child)
|
|
86
|
-
()
|
|
82
|
+
@include clay-css(
|
|
83
|
+
map-get($date-picker-col, c-selected-first-child)
|
|
87
84
|
);
|
|
88
|
-
|
|
89
|
-
@include clay-css($_c-selected-first-child);
|
|
90
85
|
}
|
|
91
86
|
|
|
92
87
|
&:last-child {
|
|
93
|
-
$
|
|
94
|
-
map-get($date-picker-col, c-selected-last-child),
|
|
95
|
-
()
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
@include clay-css($_c-selected-last-child);
|
|
88
|
+
@include clay-css(map-get($date-picker-col, c-selected-last-child));
|
|
99
89
|
}
|
|
100
90
|
}
|
|
101
91
|
|
|
102
92
|
&.c-selected-start {
|
|
103
|
-
$
|
|
104
|
-
map-get($date-picker-col, c-selected-start),
|
|
105
|
-
()
|
|
106
|
-
);
|
|
107
|
-
|
|
108
|
-
@include clay-css($_c-selected-start);
|
|
93
|
+
@include clay-css(map-get($date-picker-col, c-selected-start));
|
|
109
94
|
}
|
|
110
95
|
|
|
111
96
|
&.c-selected-end {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
@include clay-css($_c-selected-end);
|
|
97
|
+
@include clay-css(map-get($date-picker-col, c-selected-end));
|
|
115
98
|
}
|
|
116
99
|
}
|
|
117
100
|
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
@include clay-css($dropdown-header);
|
|
16
16
|
|
|
17
17
|
@include media-breakpoint-down(map-get($dropdown-header, breakpoint-down)) {
|
|
18
|
-
@include clay-css(
|
|
18
|
+
@include clay-css(map-get($dropdown-header, mobile));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&:first-child {
|
|
22
|
-
@include clay-css(
|
|
22
|
+
@include clay-css(map-get($dropdown-header, first-child));
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -27,9 +27,7 @@
|
|
|
27
27
|
@include clay-css($dropdown-subheader);
|
|
28
28
|
|
|
29
29
|
&:first-child {
|
|
30
|
-
@include clay-css(
|
|
31
|
-
setter(map-get($dropdown-subheader, first-child), ())
|
|
32
|
-
);
|
|
30
|
+
@include clay-css(map-get($dropdown-subheader, first-child));
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
|
|
@@ -62,41 +60,30 @@
|
|
|
62
60
|
|
|
63
61
|
.form-group + .form-group {
|
|
64
62
|
@include clay-css(
|
|
65
|
-
|
|
63
|
+
map-deep-get($dropdown-section, form-group, form-group)
|
|
66
64
|
);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
.custom-control {
|
|
70
|
-
@include clay-css(
|
|
71
|
-
setter(map-get($dropdown-section, custom-control), ())
|
|
72
|
-
);
|
|
68
|
+
@include clay-css(map-get($dropdown-section, custom-control));
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
.custom-control-label {
|
|
76
|
-
@include clay-css(
|
|
77
|
-
setter(map-get($dropdown-section, custom-control-label), ())
|
|
78
|
-
);
|
|
72
|
+
@include clay-css(map-get($dropdown-section, custom-control-label));
|
|
79
73
|
}
|
|
80
74
|
|
|
81
75
|
.custom-control-label-text {
|
|
82
76
|
@include clay-css(
|
|
83
|
-
|
|
77
|
+
map-get($dropdown-section, custom-control-label-text)
|
|
84
78
|
);
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
&.active {
|
|
88
|
-
@include clay-css(
|
|
82
|
+
@include clay-css(map-get($dropdown-section, active));
|
|
89
83
|
|
|
90
84
|
.custom-control-label {
|
|
91
85
|
@include clay-css(
|
|
92
|
-
|
|
93
|
-
map-deep-get(
|
|
94
|
-
$dropdown-section,
|
|
95
|
-
active,
|
|
96
|
-
custom-control-label
|
|
97
|
-
),
|
|
98
|
-
()
|
|
99
|
-
)
|
|
86
|
+
map-deep-get($dropdown-section, active, custom-control-label)
|
|
100
87
|
);
|
|
101
88
|
}
|
|
102
89
|
}
|
|
@@ -225,7 +212,7 @@
|
|
|
225
212
|
|
|
226
213
|
> .dropdown-toggle {
|
|
227
214
|
@include clay-button-variant(
|
|
228
|
-
|
|
215
|
+
map-get($dropdown-action, dropdown-toggle)
|
|
229
216
|
);
|
|
230
217
|
}
|
|
231
218
|
}
|
|
@@ -251,17 +238,21 @@
|
|
|
251
238
|
.dropdown-subheader,
|
|
252
239
|
.dropdown-caption,
|
|
253
240
|
.dropdown-item {
|
|
254
|
-
padding-left:
|
|
255
|
-
$dropdown-item-indicator-spacer-x
|
|
241
|
+
padding-left: calc(
|
|
242
|
+
#{$dropdown-item-padding-x} + #{$dropdown-item-indicator-size} + #{$dropdown-item-indicator-spacer-x}
|
|
243
|
+
);
|
|
256
244
|
}
|
|
257
245
|
|
|
258
246
|
@if ($enable-c-inner) {
|
|
259
247
|
.dropdown-item {
|
|
260
248
|
.c-inner {
|
|
261
|
-
margin-left:
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
249
|
+
margin-left: calc(
|
|
250
|
+
(
|
|
251
|
+
#{$dropdown-item-padding-x} +
|
|
252
|
+
#{$dropdown-item-indicator-size} +
|
|
253
|
+
#{$dropdown-item-indicator-spacer-x}
|
|
254
|
+
) *
|
|
255
|
+
-1
|
|
265
256
|
);
|
|
266
257
|
}
|
|
267
258
|
}
|
|
@@ -292,15 +283,19 @@
|
|
|
292
283
|
}
|
|
293
284
|
|
|
294
285
|
.dropdown-item {
|
|
295
|
-
padding-right:
|
|
296
|
-
$dropdown-item-indicator-spacer-x
|
|
286
|
+
padding-right: calc(
|
|
287
|
+
#{$dropdown-item-padding-x} + #{$dropdown-item-indicator-size} + #{$dropdown-item-indicator-spacer-x}
|
|
288
|
+
);
|
|
297
289
|
|
|
298
290
|
@if ($enable-c-inner) {
|
|
299
291
|
.c-inner {
|
|
300
|
-
margin-right:
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
292
|
+
margin-right: calc(
|
|
293
|
+
(
|
|
294
|
+
#{$dropdown-item-padding-x} +
|
|
295
|
+
#{$dropdown-item-indicator-size} +
|
|
296
|
+
#{$dropdown-item-indicator-spacer-x}
|
|
297
|
+
) *
|
|
298
|
+
-1
|
|
304
299
|
);
|
|
305
300
|
}
|
|
306
301
|
}
|