@clayui/css 3.42.0 → 3.44.2
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 +405 -172
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +382 -151
- package/lib/css/base.css.map +1 -1
- package/lib/css/bootstrap.css.map +1 -1
- package/lib/css/cadmin.css +234 -116
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/date-time.svg +12 -0
- package/lib/images/icons/icons.svg +1 -1
- package/package.json +2 -2
- package/src/images/icons/date-time.svg +12 -0
- package/src/scss/atlas/variables/_buttons.scss +2 -31
- package/src/scss/atlas/variables/_navs.scss +20 -15
- package/src/scss/cadmin/components/_dropdowns.scss +4 -0
- package/src/scss/cadmin/components/_input-groups.scss +12 -312
- package/src/scss/cadmin/components/_navs.scss +35 -113
- package/src/scss/cadmin/components/_utilities-functional-important.scss +4 -3
- package/src/scss/cadmin/variables/_alerts.scss +3 -2
- package/src/scss/cadmin/variables/_dropdowns.scss +31 -2
- package/src/scss/cadmin/variables/_forms.scss +366 -5
- package/src/scss/cadmin/variables/_navs.scss +271 -53
- package/src/scss/components/_buttons.scss +87 -49
- package/src/scss/components/_cards.scss +16 -116
- package/src/scss/components/_dropdowns.scss +4 -0
- package/src/scss/components/_input-groups.scss +12 -308
- package/src/scss/components/_navs.scss +45 -128
- package/src/scss/functions/_lx-icons-generated.scss +2 -0
- package/src/scss/mixins/_buttons.scss +27 -64
- package/src/scss/mixins/_cards.scss +751 -557
- package/src/scss/mixins/_custom-forms.scss +404 -383
- package/src/scss/mixins/_dropdown-menu.scss +427 -355
- package/src/scss/mixins/_forms.scss +67 -10
- package/src/scss/mixins/_input-groups.scss +405 -11
- package/src/scss/mixins/_labels.scss +320 -296
- package/src/scss/mixins/_nav.scss +202 -131
- package/src/scss/mixins/_navbar.scss +32 -0
- package/src/scss/variables/_alerts.scss +1 -0
- package/src/scss/variables/_buttons.scss +26 -3
- package/src/scss/variables/_cards.scss +273 -1
- package/src/scss/variables/_dropdowns.scss +31 -2
- package/src/scss/variables/_forms.scss +405 -22
- package/src/scss/variables/_navs.scss +266 -33
|
@@ -205,26 +205,65 @@
|
|
|
205
205
|
/// A mixin to create Form Control variants. You can base your variant off Bootstrap's `.form-control` class or create your own base class (e.g., `<input class="form-control my-custom-form-control" type="text" />` or `<input class="my-custom-form-control" type="text" />`).
|
|
206
206
|
/// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
|
|
207
207
|
/// @example
|
|
208
|
-
///
|
|
209
|
-
///
|
|
208
|
+
/// (
|
|
209
|
+
/// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
|
|
210
|
+
/// // .form-control
|
|
211
|
+
/// placeholder: (
|
|
212
|
+
/// // .form-control::placeholder
|
|
213
|
+
/// ),
|
|
214
|
+
/// selection: (
|
|
215
|
+
/// // .form-control::-moz-selection, .form-control::selection
|
|
216
|
+
/// ),
|
|
217
|
+
/// input-group-inset-item: (
|
|
218
|
+
/// // .form-control ~ .input-group-inset-item
|
|
219
|
+
/// ),
|
|
220
|
+
/// hover: (
|
|
221
|
+
/// // .form-control:hover
|
|
222
|
+
/// placeholder: (
|
|
223
|
+
/// // .form-control:hover::placeholder
|
|
224
|
+
/// ),
|
|
225
|
+
/// input-group-inset-item: (
|
|
226
|
+
/// // .form-control:hover ~ .input-group-inset-item
|
|
227
|
+
/// ),
|
|
228
|
+
/// ),
|
|
229
|
+
/// focus: (
|
|
230
|
+
/// // .form-control:focus, .form-control.focus
|
|
231
|
+
/// placeholder: (
|
|
232
|
+
/// // .form-control:focus::placeholder,
|
|
233
|
+
/// // .form-control.focus::placeholder
|
|
234
|
+
/// ),
|
|
235
|
+
/// input-group-inset-item: (
|
|
236
|
+
/// // .form-control:focus ~ .input-group-inset-item,
|
|
237
|
+
/// // .form-control.focus ~ .input-group-inset-item
|
|
238
|
+
/// ),
|
|
239
|
+
/// ),
|
|
240
|
+
/// disabled: (
|
|
241
|
+
/// // .form-control:disabled, .form-control.disabled
|
|
242
|
+
/// placeholder: (
|
|
243
|
+
/// // .form-control:disabled::placeholder,
|
|
244
|
+
/// // .form-control.disabled::placeholder
|
|
245
|
+
/// ),
|
|
246
|
+
/// input-group-inset-item: (
|
|
247
|
+
/// // .form-control:disabled ~ .input-group-inset-item,
|
|
248
|
+
/// // .form-control.disabled ~ .input-group-inset-item
|
|
249
|
+
/// ),
|
|
250
|
+
/// ),
|
|
251
|
+
/// )
|
|
252
|
+
/// -=-=-=-=-=- Deprecated -=-=-=-=-=-
|
|
210
253
|
/// placeholder-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
211
254
|
/// placeholder-opacity: {Number | String | Null}, // deprecated after 3.7.0
|
|
212
|
-
/// placeholder: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
213
255
|
/// selection-bg: {Color | String | Null}, // deprecated after 3.7.0
|
|
214
256
|
/// selection-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
215
|
-
/// selection: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
216
257
|
/// hover-bg: {Color | String | Null}, // deprecated after 3.7.0
|
|
217
258
|
/// hover-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
|
|
218
259
|
/// hover-box-shadow: {String | List | Null}, // deprecated after 3.7.0
|
|
219
260
|
/// hover-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
220
261
|
/// hover-placeholder-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
221
|
-
/// hover: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
222
262
|
/// focus-bg: {Color | String | Null}, // deprecated after 3.7.0
|
|
223
263
|
/// focus-bg-image: {String | List | Null}, // deprecated after 3.7.0
|
|
224
264
|
/// focus-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
|
|
225
265
|
/// focus-box-shadow: {String | List | Null}, // deprecated after 3.7.0
|
|
226
266
|
/// focus-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
227
|
-
/// focus: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
228
267
|
/// focus-placeholder-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
229
268
|
/// focus-placeholder: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
230
269
|
/// readonly-bg: {Color | String | Null}, // deprecated after v2.18.0
|
|
@@ -242,12 +281,8 @@
|
|
|
242
281
|
/// disabled-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
243
282
|
/// disabled-cursor: {String | Null}, // deprecated after 3.7.0
|
|
244
283
|
/// disabled-opacity: {Number | String | Null}, // deprecated after 3.7.0
|
|
245
|
-
/// disabled: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
246
284
|
/// disabled-placeholder-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
247
285
|
/// disabled-placeholder: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
248
|
-
/// @todo
|
|
249
|
-
/// - Add @example
|
|
250
|
-
/// - Add @link to documentation
|
|
251
286
|
|
|
252
287
|
@mixin clay-form-control-variant($map) {
|
|
253
288
|
@if (type-of($map) == 'map') {
|
|
@@ -495,12 +530,22 @@
|
|
|
495
530
|
@include clay-css($selection);
|
|
496
531
|
}
|
|
497
532
|
|
|
533
|
+
~ .input-group-inset-item {
|
|
534
|
+
@include clay-css(map-deep-get($map, input-group-inset-item));
|
|
535
|
+
}
|
|
536
|
+
|
|
498
537
|
&:hover {
|
|
499
538
|
@include clay-css($hover);
|
|
500
539
|
|
|
501
540
|
&::placeholder {
|
|
502
541
|
@include clay-css($hover-placeholder);
|
|
503
542
|
}
|
|
543
|
+
|
|
544
|
+
~ .input-group-inset-item {
|
|
545
|
+
@include clay-css(
|
|
546
|
+
map-deep-get($map, hover, input-group-inset-item)
|
|
547
|
+
);
|
|
548
|
+
}
|
|
504
549
|
}
|
|
505
550
|
|
|
506
551
|
&:focus,
|
|
@@ -510,6 +555,12 @@
|
|
|
510
555
|
&::placeholder {
|
|
511
556
|
@include clay-css($focus-placeholder);
|
|
512
557
|
}
|
|
558
|
+
|
|
559
|
+
~ .input-group-inset-item {
|
|
560
|
+
@include clay-css(
|
|
561
|
+
map-deep-get($map, focus, input-group-inset-item)
|
|
562
|
+
);
|
|
563
|
+
}
|
|
513
564
|
}
|
|
514
565
|
|
|
515
566
|
// @deprecated after v2.18.0 [readonly] can have hover focus styles, declare a separate selector and use `clay-form-control-variant` mixin (e.g., `.form-control[readonly] { @include clay-form-control-variant($the-readonly-map); }`).
|
|
@@ -543,6 +594,12 @@
|
|
|
543
594
|
&::placeholder {
|
|
544
595
|
@include clay-css($disabled-placeholder);
|
|
545
596
|
}
|
|
597
|
+
|
|
598
|
+
~ .input-group-inset-item {
|
|
599
|
+
@include clay-css(
|
|
600
|
+
map-deep-get($map, disabled, input-group-inset-item)
|
|
601
|
+
);
|
|
602
|
+
}
|
|
546
603
|
}
|
|
547
604
|
}
|
|
548
605
|
}
|
|
@@ -98,22 +98,416 @@
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
/// A mixin
|
|
102
|
-
/// @deprecated use `clay-container` instead
|
|
101
|
+
/// A mixin to create `input-group-item` variants
|
|
103
102
|
/// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
|
|
104
103
|
/// @example
|
|
105
|
-
///
|
|
104
|
+
/// (
|
|
105
|
+
/// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
|
|
106
|
+
/// // .input-group-text
|
|
107
|
+
/// label: (
|
|
108
|
+
/// // .input-group-text label
|
|
109
|
+
/// ),
|
|
110
|
+
/// custom-control: (
|
|
111
|
+
/// // .input-group-text .custom-control
|
|
112
|
+
/// // @include clay-custom-control-variant();
|
|
113
|
+
/// ),
|
|
114
|
+
/// form-check: (
|
|
115
|
+
/// // .input-group-text .form-check
|
|
116
|
+
/// input: (
|
|
117
|
+
/// // .input-group-text .form-check input[type='radio'],
|
|
118
|
+
/// // .input-group-text .form-check input[type='checkbox']
|
|
119
|
+
/// ),
|
|
120
|
+
/// ),
|
|
121
|
+
/// lexicon-icon: (
|
|
122
|
+
/// // .input-group-text .lexicon-icon
|
|
123
|
+
/// ),
|
|
124
|
+
/// media-breakpoint-down: (
|
|
125
|
+
/// xs: (
|
|
126
|
+
/// // @include media-breakpoint-down(xs) {
|
|
127
|
+
/// // @include clay-input-group-text-variant();
|
|
128
|
+
/// // }
|
|
129
|
+
/// ),
|
|
130
|
+
/// sm: (
|
|
131
|
+
/// // @include media-breakpoint-down(sm) {
|
|
132
|
+
/// // @include clay-input-group-text-variant();
|
|
133
|
+
/// // }
|
|
134
|
+
/// ),
|
|
135
|
+
/// md: (
|
|
136
|
+
/// // @include media-breakpoint-down(md) {
|
|
137
|
+
/// // @include clay-input-group-text-variant();
|
|
138
|
+
/// // }
|
|
139
|
+
/// ),
|
|
140
|
+
/// lg: (
|
|
141
|
+
/// // @include media-breakpoint-down(lg) {
|
|
142
|
+
/// // @include clay-input-group-text-variant();
|
|
143
|
+
/// // }
|
|
144
|
+
/// ),
|
|
145
|
+
/// ),
|
|
146
|
+
/// )
|
|
106
147
|
/// -=-=-=-=-=- Deprecated -=-=-=-=-=-
|
|
107
148
|
/// bg: {Color | String | Null}, // deprecated after 3.9.0
|
|
108
149
|
|
|
109
150
|
@mixin clay-input-group-text-variant($map) {
|
|
110
|
-
$
|
|
111
|
-
$map,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
151
|
+
@if (type-of($map) == 'map') {
|
|
152
|
+
$enabled: setter(map-get($map, enabled), true);
|
|
153
|
+
|
|
154
|
+
$base: map-merge(
|
|
155
|
+
$map,
|
|
156
|
+
(
|
|
157
|
+
background-color:
|
|
158
|
+
setter(map-get($map, bg), map-get($map, background-color)),
|
|
159
|
+
)
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
@if ($enabled) {
|
|
163
|
+
@include clay-css($base);
|
|
164
|
+
|
|
165
|
+
label {
|
|
166
|
+
@include clay-css(map-deep-get($map, label));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.custom-control {
|
|
170
|
+
@include clay-custom-control-variant(
|
|
171
|
+
map-deep-get($map, custom-control)
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.form-check {
|
|
176
|
+
@include clay-css(map-deep-get($map, form-check));
|
|
177
|
+
|
|
178
|
+
input[type='radio'],
|
|
179
|
+
input[type='checkbox'] {
|
|
180
|
+
@include clay-css(map-deep-get($map, form-check, input));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.lexicon-icon {
|
|
185
|
+
@include clay-css(map-deep-get($map, lexicon-icon));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@if (map-get($map, media-breakpoint-down)) {
|
|
189
|
+
@each $breakpoint
|
|
190
|
+
in map-keys(map-get($map, media-breakpoint-down))
|
|
191
|
+
{
|
|
192
|
+
$media-breakpoint-down: map-deep-get(
|
|
193
|
+
$map,
|
|
194
|
+
media-breakpoint-down,
|
|
195
|
+
$breakpoint
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
@if ($breakpoint) {
|
|
199
|
+
@include media-breakpoint-down($breakpoint) {
|
|
200
|
+
@include clay-input-group-text-variant(
|
|
201
|
+
$media-breakpoint-down
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/// A mixin to create `input-group-item` variants
|
|
212
|
+
/// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
|
|
213
|
+
/// @example
|
|
214
|
+
/// (
|
|
215
|
+
/// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
|
|
216
|
+
/// // .input-group-item
|
|
217
|
+
/// focus: (
|
|
218
|
+
/// // .input-group-item.focus
|
|
219
|
+
/// // @include clay-input-group-item-variant();
|
|
220
|
+
/// ),
|
|
221
|
+
/// first-child: (
|
|
222
|
+
/// // .input-group-item:first-child
|
|
223
|
+
/// ),
|
|
224
|
+
/// input-group-prepend: (
|
|
225
|
+
/// // .input-group-item.input-group-prepend
|
|
226
|
+
/// ),
|
|
227
|
+
/// input-group-append: (
|
|
228
|
+
/// // .input-group-item.input-group-append
|
|
229
|
+
/// ),
|
|
230
|
+
/// btn: (
|
|
231
|
+
/// // .input-group-item > .btn
|
|
232
|
+
/// // @include clay-button-variant();
|
|
233
|
+
/// ),
|
|
234
|
+
/// btn-monospaced: (
|
|
235
|
+
/// // .input-group-item > .btn-monospaced
|
|
236
|
+
/// // @include clay-button-variant();
|
|
237
|
+
/// ),
|
|
238
|
+
/// dropdown: (
|
|
239
|
+
/// // .input-group-item > .dropdown
|
|
240
|
+
/// ),
|
|
241
|
+
/// form-control: (
|
|
242
|
+
/// // .input-group-item > .form-control
|
|
243
|
+
/// // @include clay-form-control-variant();
|
|
244
|
+
/// label: (
|
|
245
|
+
/// // .input-group-item > .form-control .label
|
|
246
|
+
/// // @include clay-label-variant();
|
|
247
|
+
/// ),
|
|
248
|
+
/// ),
|
|
249
|
+
/// form-file: (
|
|
250
|
+
/// // .input-group-item > .form-file
|
|
251
|
+
/// btn: (
|
|
252
|
+
/// // .input-group-item > .form-file .btn
|
|
253
|
+
/// // @include clay-button-variant();
|
|
254
|
+
/// ),
|
|
255
|
+
/// ),
|
|
256
|
+
/// textarea: (
|
|
257
|
+
/// // .input-group-item > textarea.form-control,
|
|
258
|
+
/// // .input-group-item > .form-control-textarea
|
|
259
|
+
/// // @include clay-form-control-variant();
|
|
260
|
+
/// ),
|
|
261
|
+
/// form-control-plaintext: (
|
|
262
|
+
/// // .input-group-item > .form-control-plaintext
|
|
263
|
+
/// // @include clay-form-control-variant();
|
|
264
|
+
/// ),
|
|
265
|
+
/// input-group-text: (
|
|
266
|
+
/// // .input-group-item > .input-group-text
|
|
267
|
+
/// // @include clay-input-group-text-variant();
|
|
268
|
+
/// ),
|
|
269
|
+
/// input-group-inset-item: (
|
|
270
|
+
/// // .input-group-item > .input-group-inset-item
|
|
271
|
+
/// btn: (
|
|
272
|
+
/// // .input-group-item > .input-group-inset-item > .btn
|
|
273
|
+
/// // @include clay-button-variant();
|
|
274
|
+
/// ),
|
|
275
|
+
/// btn-monospaced: (
|
|
276
|
+
/// // .input-group-item > .input-group-inset-item > .btn-monospaced
|
|
277
|
+
/// // @include clay-button-variant();
|
|
278
|
+
/// ),
|
|
279
|
+
/// form-file: (
|
|
280
|
+
/// // .input-group-item > .input-group-inset-item > .form-file
|
|
281
|
+
/// btn: (
|
|
282
|
+
/// // .input-group-item > .input-group-inset-item > .form-file .btn
|
|
283
|
+
/// // @include clay-button-variant();
|
|
284
|
+
/// ),
|
|
285
|
+
/// ),
|
|
286
|
+
/// ),
|
|
287
|
+
/// form-control-inset: (
|
|
288
|
+
/// // .input-group-item .form-control-inset
|
|
289
|
+
/// ),
|
|
290
|
+
/// )
|
|
291
|
+
|
|
292
|
+
@mixin clay-input-group-item-variant($map) {
|
|
293
|
+
@if (type-of($map) == 'map') {
|
|
294
|
+
$enabled: setter(map-get($map, enabled), true);
|
|
295
|
+
|
|
296
|
+
@if ($enabled) {
|
|
297
|
+
@include clay-css($map);
|
|
298
|
+
|
|
299
|
+
&.focus {
|
|
300
|
+
@include clay-input-group-item-variant(
|
|
301
|
+
map-deep-get($map, focus)
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&:first-child {
|
|
306
|
+
@include clay-css(map-deep-get($map, first-child));
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
&.input-group-prepend {
|
|
310
|
+
@include clay-css(map-deep-get($map, input-group-prepend));
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&.input-group-append {
|
|
314
|
+
@include clay-css(map-deep-get($map, input-group-append));
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
> .btn {
|
|
318
|
+
@include clay-button-variant(map-deep-get($map, btn));
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
> .btn-monospaced {
|
|
322
|
+
@include clay-button-variant(
|
|
323
|
+
map-deep-get($map, btn-monospaced)
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
> .dropdown {
|
|
328
|
+
@include clay-css(map-deep-get($map, dropdown));
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
> .form-control {
|
|
332
|
+
@include clay-form-control-variant(
|
|
333
|
+
map-deep-get($map, form-control)
|
|
334
|
+
);
|
|
335
|
+
|
|
336
|
+
.label {
|
|
337
|
+
@include clay-label-variant(
|
|
338
|
+
map-deep-get($map, form-control, label)
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
> .form-file {
|
|
344
|
+
@include clay-css(map-deep-get($map, form-file));
|
|
345
|
+
|
|
346
|
+
.btn {
|
|
347
|
+
@include clay-button-variant(
|
|
348
|
+
map-deep-get($map, form-file, btn)
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
> textarea.form-control,
|
|
354
|
+
> .form-control-textarea {
|
|
355
|
+
@include clay-form-control-variant(
|
|
356
|
+
map-deep-get($map, textarea)
|
|
357
|
+
);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
> .form-control-plaintext {
|
|
361
|
+
@include clay-form-control-variant(
|
|
362
|
+
map-deep-get($map, form-control-plaintext)
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
> .input-group-text {
|
|
367
|
+
@include clay-input-group-text-variant(
|
|
368
|
+
map-deep-get($map, input-group-text)
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
> .input-group-inset-item {
|
|
373
|
+
@include clay-css(map-deep-get($map, input-group-inset-item));
|
|
117
374
|
|
|
118
|
-
|
|
375
|
+
> .btn {
|
|
376
|
+
@include clay-button-variant(
|
|
377
|
+
map-deep-get($map, input-group-inset-item, btn)
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
> .btn-monospaced {
|
|
382
|
+
@include clay-button-variant(
|
|
383
|
+
map-deep-get(
|
|
384
|
+
$map,
|
|
385
|
+
input-group-inset-item,
|
|
386
|
+
btn-monospaced
|
|
387
|
+
)
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
> .form-file {
|
|
392
|
+
@include clay-css(map-deep-get($map, form-file));
|
|
393
|
+
|
|
394
|
+
.btn {
|
|
395
|
+
@include clay-button-variant(
|
|
396
|
+
map-deep-get($map, form-file, btn)
|
|
397
|
+
);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.form-control-inset {
|
|
403
|
+
@include clay-form-control-variant(
|
|
404
|
+
map-deep-get($map, form-control-inset)
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/// A mixin to create `input-group` variants
|
|
412
|
+
/// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
|
|
413
|
+
/// @example
|
|
414
|
+
/// (
|
|
415
|
+
/// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
|
|
416
|
+
/// // .input-group
|
|
417
|
+
/// input-group-item: (
|
|
418
|
+
/// // .input-group > .input-group-item
|
|
419
|
+
/// // @include clay-input-group-item-variant();
|
|
420
|
+
/// ),
|
|
421
|
+
/// input-group-item-shrink: (
|
|
422
|
+
/// // .input-group > .input-group-item-shrink
|
|
423
|
+
/// // @include clay-input-group-item-variant();
|
|
424
|
+
/// ),
|
|
425
|
+
/// btn-primary: (
|
|
426
|
+
/// // .input-group .btn-primary
|
|
427
|
+
/// // @include clay-button-variant();
|
|
428
|
+
/// ),
|
|
429
|
+
/// btn-secondary: (
|
|
430
|
+
/// // .input-group .btn-secondary
|
|
431
|
+
/// // @include clay-button-variant();
|
|
432
|
+
/// ),
|
|
433
|
+
/// btn-unstyled: (
|
|
434
|
+
/// // .input-group .btn-unstyled
|
|
435
|
+
/// // @include clay-button-variant();
|
|
436
|
+
/// ),
|
|
437
|
+
/// media-breakpoint-down: (
|
|
438
|
+
/// xs: (
|
|
439
|
+
/// // @include media-breakpoint-down(xs) {
|
|
440
|
+
/// // @include clay-input-group-variant();
|
|
441
|
+
/// // }
|
|
442
|
+
/// ),
|
|
443
|
+
/// sm: (
|
|
444
|
+
/// // @include media-breakpoint-down(sm) {
|
|
445
|
+
/// // @include clay-input-group-variant();
|
|
446
|
+
/// // }
|
|
447
|
+
/// ),
|
|
448
|
+
/// md: (
|
|
449
|
+
/// // @include media-breakpoint-down(md) {
|
|
450
|
+
/// // @include clay-input-group-variant();
|
|
451
|
+
/// // }
|
|
452
|
+
/// ),
|
|
453
|
+
/// lg: (
|
|
454
|
+
/// // @include media-breakpoint-down(lg) {
|
|
455
|
+
/// // @include clay-input-group-variant();
|
|
456
|
+
/// // }
|
|
457
|
+
/// ),
|
|
458
|
+
/// ),
|
|
459
|
+
/// )
|
|
460
|
+
|
|
461
|
+
@mixin clay-input-group-variant($map) {
|
|
462
|
+
@if (type-of($map) == 'map') {
|
|
463
|
+
$enabled: setter(map-get($map, enabled), true);
|
|
464
|
+
|
|
465
|
+
@if ($enabled) {
|
|
466
|
+
@include clay-css($map);
|
|
467
|
+
|
|
468
|
+
> .input-group-item {
|
|
469
|
+
@include clay-input-group-item-variant(
|
|
470
|
+
map-deep-get($map, input-group-item)
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
> .input-group-item-shrink {
|
|
475
|
+
@include clay-input-group-item-variant(
|
|
476
|
+
map-deep-get($map, input-group-item-shrink)
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.btn-primary {
|
|
481
|
+
@include clay-button-variant(map-deep-get($map, btn-primary));
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.btn-secondary {
|
|
485
|
+
@include clay-button-variant(map-deep-get($map, btn-secondary));
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.btn-unstyled {
|
|
489
|
+
@include clay-button-variant(map-deep-get($map, btn-unstyled));
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
@if (map-get($map, media-breakpoint-down)) {
|
|
493
|
+
@each $breakpoint
|
|
494
|
+
in map-keys(map-get($map, media-breakpoint-down))
|
|
495
|
+
{
|
|
496
|
+
$media-breakpoint-down: map-deep-get(
|
|
497
|
+
$map,
|
|
498
|
+
media-breakpoint-down,
|
|
499
|
+
$breakpoint
|
|
500
|
+
);
|
|
501
|
+
|
|
502
|
+
@if ($breakpoint) {
|
|
503
|
+
@include media-breakpoint-down($breakpoint) {
|
|
504
|
+
@include clay-input-group-variant(
|
|
505
|
+
$media-breakpoint-down
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
119
513
|
}
|