@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.
Files changed (42) hide show
  1. package/lib/css/atlas.css +405 -172
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +382 -151
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/bootstrap.css.map +1 -1
  6. package/lib/css/cadmin.css +234 -116
  7. package/lib/css/cadmin.css.map +1 -1
  8. package/lib/images/icons/date-time.svg +12 -0
  9. package/lib/images/icons/icons.svg +1 -1
  10. package/package.json +2 -2
  11. package/src/images/icons/date-time.svg +12 -0
  12. package/src/scss/atlas/variables/_buttons.scss +2 -31
  13. package/src/scss/atlas/variables/_navs.scss +20 -15
  14. package/src/scss/cadmin/components/_dropdowns.scss +4 -0
  15. package/src/scss/cadmin/components/_input-groups.scss +12 -312
  16. package/src/scss/cadmin/components/_navs.scss +35 -113
  17. package/src/scss/cadmin/components/_utilities-functional-important.scss +4 -3
  18. package/src/scss/cadmin/variables/_alerts.scss +3 -2
  19. package/src/scss/cadmin/variables/_dropdowns.scss +31 -2
  20. package/src/scss/cadmin/variables/_forms.scss +366 -5
  21. package/src/scss/cadmin/variables/_navs.scss +271 -53
  22. package/src/scss/components/_buttons.scss +87 -49
  23. package/src/scss/components/_cards.scss +16 -116
  24. package/src/scss/components/_dropdowns.scss +4 -0
  25. package/src/scss/components/_input-groups.scss +12 -308
  26. package/src/scss/components/_navs.scss +45 -128
  27. package/src/scss/functions/_lx-icons-generated.scss +2 -0
  28. package/src/scss/mixins/_buttons.scss +27 -64
  29. package/src/scss/mixins/_cards.scss +751 -557
  30. package/src/scss/mixins/_custom-forms.scss +404 -383
  31. package/src/scss/mixins/_dropdown-menu.scss +427 -355
  32. package/src/scss/mixins/_forms.scss +67 -10
  33. package/src/scss/mixins/_input-groups.scss +405 -11
  34. package/src/scss/mixins/_labels.scss +320 -296
  35. package/src/scss/mixins/_nav.scss +202 -131
  36. package/src/scss/mixins/_navbar.scss +32 -0
  37. package/src/scss/variables/_alerts.scss +1 -0
  38. package/src/scss/variables/_buttons.scss +26 -3
  39. package/src/scss/variables/_cards.scss +273 -1
  40. package/src/scss/variables/_dropdowns.scss +31 -2
  41. package/src/scss/variables/_forms.scss +405 -22
  42. package/src/scss/variables/_navs.scss +266 -33
@@ -567,75 +567,18 @@
567
567
  // Checkbox and Radio Cards
568
568
 
569
569
  .form-check-card {
570
- margin-bottom: $card-margin-bottom;
571
- margin-top: 0;
572
- padding-left: 0;
573
-
574
- .card {
575
- margin-bottom: 0;
576
- }
577
-
578
- .custom-control {
579
- display: inline;
580
- margin-right: 0;
581
- position: static;
582
-
583
- > label {
584
- font-weight: $font-weight-normal;
585
- padding-left: 0;
586
- }
587
- }
588
-
589
- .custom-control-input {
590
- z-index: 2;
591
- }
570
+ @include clay-form-check-card-variant($form-check-card);
592
571
 
593
- .custom-control-label {
594
- position: absolute;
595
- z-index: 1;
596
-
597
- &::before,
598
- &::after {
599
- top: 0;
600
- }
601
- }
602
-
603
- .form-check-input {
604
- margin-left: 0;
605
- margin-top: 0;
606
- position: absolute;
607
- z-index: 1;
608
- }
609
-
610
- .form-check-label {
611
- color: $body-color;
612
- display: inline;
613
- font-weight: $font-weight-normal;
614
- padding-left: 0;
615
- position: static;
616
- }
617
-
618
- &.active .card,
619
- .custom-control-input:checked ~ .card,
620
572
  .form-check-input:checked ~ .card {
621
- box-shadow: $form-check-card-checked-box-shadow;
622
- }
623
- }
624
-
625
- .form-check-card {
626
- &:hover {
627
- .card {
628
- box-shadow: $form-check-card-checked-box-shadow;
629
- }
630
- }
631
- }
632
-
633
- .custom-control-input,
634
- .form-check-input {
635
- &:hover {
636
- ~ .card {
637
- box-shadow: $form-check-card-checked-box-shadow;
638
- }
573
+ @include clay-card-variant(
574
+ map-deep-get(
575
+ $form-check-card,
576
+ custom-control,
577
+ custom-control-input,
578
+ checked,
579
+ card
580
+ )
581
+ );
639
582
  }
640
583
  }
641
584
 
@@ -660,70 +603,27 @@
660
603
  }
661
604
 
662
605
  .form-check-bottom-left {
663
- .custom-control-input,
664
- .custom-control-label,
665
- .form-check-input {
666
- bottom: $checkbox-position;
667
- left: $checkbox-position;
668
- top: auto;
669
- transform: none;
670
- }
606
+ @include clay-form-check-card-variant($form-check-bottom-left);
671
607
  }
672
608
 
673
609
  .form-check-bottom-right {
674
- .custom-control-input,
675
- .custom-control-label,
676
- .form-check-input {
677
- bottom: $checkbox-position;
678
- left: auto;
679
- right: $checkbox-position;
680
- top: auto;
681
- transform: none;
682
- }
610
+ @include clay-form-check-card-variant($form-check-bottom-right);
683
611
  }
684
612
 
685
613
  .form-check-middle-left {
686
- .custom-control-input,
687
- .custom-control-label,
688
- .form-check-input {
689
- left: $checkbox-position;
690
- margin-top: 0;
691
- top: 50%;
692
- transform: translateY(-50%);
693
- }
614
+ @include clay-form-check-card-variant($form-check-middle-left);
694
615
  }
695
616
 
696
617
  .form-check-middle-right {
697
- .custom-control-input,
698
- .custom-control-label,
699
- .form-check-input {
700
- left: auto;
701
- margin-top: 0;
702
- right: $checkbox-position;
703
- top: 50%;
704
- transform: translateY(-50%);
705
- }
618
+ @include clay-form-check-card-variant($form-check-middle-right);
706
619
  }
707
620
 
708
621
  .form-check-top-left {
709
- .custom-control-input,
710
- .custom-control-label,
711
- .form-check-input {
712
- left: $checkbox-position;
713
- top: $checkbox-position;
714
- transform: none;
715
- }
622
+ @include clay-form-check-card-variant($form-check-top-left);
716
623
  }
717
624
 
718
625
  .form-check-top-right {
719
- .custom-control-input,
720
- .custom-control-label,
721
- .form-check-input {
722
- left: auto;
723
- right: $checkbox-position;
724
- top: $checkbox-position;
725
- transform: none;
726
- }
626
+ @include clay-form-check-card-variant($form-check-top-right);
727
627
  }
728
628
 
729
629
  // Card Page
@@ -424,6 +424,10 @@
424
424
 
425
425
  // Dropdown Menu Width
426
426
 
427
+ .dropdown-menu-width-shrink {
428
+ @include clay-dropdown-menu-variant($dropdown-menu-width-shrink);
429
+ }
430
+
427
431
  .dropdown-menu-width-full {
428
432
  @include clay-css($dropdown-menu-width-full);
429
433
  }
@@ -121,117 +121,27 @@
121
121
  // Input Group
122
122
 
123
123
  .input-group {
124
- align-items: stretch;
125
- display: flex;
126
- flex-wrap: wrap;
127
- position: relative;
128
- width: 100%;
129
-
130
- .btn-unstyled {
131
- color: inherit;
132
- }
124
+ @include clay-input-group-variant($input-group);
133
125
  }
134
126
 
135
127
  // Input Group Item
136
128
 
137
129
  .input-group-item {
138
- display: flex;
139
- flex-grow: 1;
140
- flex-wrap: wrap;
141
- margin-left: $input-group-item-margin-left;
142
- width: 1%;
143
- word-wrap: break-word;
144
-
145
- &:first-child {
146
- margin-left: 0;
147
- }
148
-
149
- > .btn {
150
- align-self: flex-start;
151
- }
152
-
153
- > .dropdown {
154
- display: flex;
155
- flex-wrap: wrap;
156
- word-wrap: break-word;
157
- width: 100%;
158
- }
130
+ @include clay-input-group-item-variant($input-group-item);
159
131
  }
160
132
 
161
133
  .input-group-item-shrink {
162
- flex-grow: 0;
163
- width: auto;
134
+ @include clay-input-group-item-variant($input-group-item-shrink);
164
135
  }
165
136
 
166
137
  // Input Group Text
167
138
 
168
139
  .input-group-text {
169
- align-items: center;
170
- background-color: $input-group-addon-bg;
171
- border-color: $input-group-addon-border-color;
172
- border-style: solid;
173
-
174
- border-bottom-width: $input-border-bottom-width;
175
- border-left-width: $input-border-left-width;
176
- border-right-width: $input-border-right-width;
177
- border-top-width: $input-border-top-width;
178
-
179
- @include border-radius($input-border-radius);
180
-
181
- color: $input-group-addon-color;
182
- display: flex;
183
- font-size: $input-font-size;
184
- font-weight: $input-group-addon-font-weight;
185
- height: $input-height;
186
- justify-content: center;
187
- line-height: $input-line-height;
188
-
189
- // Allow use of <label> elements by overriding our default margin-bottom
190
-
191
- margin-bottom: 0;
192
- min-width: $input-group-addon-min-width;
193
- padding-bottom: $input-group-addon-padding-y;
194
- padding-left: $input-group-addon-padding-x;
195
- padding-right: $input-group-addon-padding-x;
196
- padding-top: $input-group-addon-padding-y;
197
- text-align: center;
198
- white-space: nowrap;
199
-
200
- @include clay-scale-component {
201
- height: $input-height-mobile;
202
- }
203
-
204
- label {
205
- color: $input-group-addon-color;
206
- }
207
-
208
- // Nuke default margins from checkboxes and radios to vertically center within.
209
-
210
- input[type='radio'],
211
- input[type='checkbox'] {
212
- margin-top: 0;
213
- }
214
-
215
- .custom-control,
216
- .form-check {
217
- margin-bottom: 0;
218
- }
219
-
220
- .lexicon-icon {
221
- margin-top: 0;
222
- }
140
+ @include clay-input-group-text-variant($input-group-text);
223
141
  }
224
142
 
225
143
  .input-group-text-secondary {
226
- background-color: $input-group-secondary-addon-bg;
227
- border-color: $input-group-secondary-addon-border-color;
228
- border-width: $input-group-secondary-addon-border-width;
229
- color: $input-group-secondary-addon-color;
230
- z-index: 2;
231
-
232
- label {
233
- color: $input-group-secondary-addon-color;
234
- }
144
+ @include clay-input-group-text-variant($input-group-text-secondary);
235
145
  }
236
146
 
237
147
  // Input Group Stacked
@@ -243,83 +153,7 @@
243
153
  // Input Group Sizes
244
154
 
245
155
  %clay-input-group-lg {
246
- > .input-group-item {
247
- > .btn {
248
- @include clay-button-size($input-group-lg-item-btn);
249
- }
250
-
251
- > .btn-monospaced {
252
- @include clay-button-size($input-group-lg-item-btn-monospaced);
253
- }
254
-
255
- > .form-control,
256
- > .form-file .btn {
257
- @include border-radius($input-border-radius-lg);
258
-
259
- font-size: $input-font-size-lg;
260
- height: $input-height-lg;
261
- line-height: $input-line-height-lg;
262
- padding-bottom: $input-padding-y-lg;
263
- padding-left: $input-padding-x-lg;
264
- padding-right: $input-padding-x-lg;
265
- padding-top: $input-padding-y-lg;
266
-
267
- @include clay-scale-component {
268
- height: $input-height-lg-mobile;
269
- }
270
- }
271
-
272
- > textarea.form-control,
273
- > .form-control-textarea {
274
- height: $input-textarea-height-lg;
275
- }
276
-
277
- > .form-control-plaintext {
278
- font-size: $input-font-size-lg;
279
- height: $input-height-lg;
280
- line-height: $input-line-height-lg;
281
- padding-bottom: $input-padding-y-lg;
282
- padding-top: $input-padding-y-lg;
283
-
284
- @include clay-scale-component {
285
- height: $input-height-lg-mobile;
286
- }
287
- }
288
-
289
- > .input-group-text {
290
- @include border-radius($input-border-radius-lg);
291
-
292
- font-size: $input-font-size-lg;
293
- height: $input-height-lg;
294
- min-width: $input-group-addon-min-width-lg;
295
- padding-bottom: $input-group-addon-padding-y-lg;
296
- padding-left: $input-group-addon-padding-x-lg;
297
- padding-right: $input-group-addon-padding-x-lg;
298
- padding-top: $input-group-addon-padding-y-lg;
299
- }
300
-
301
- > .input-group-inset-item {
302
- > .btn {
303
- @include clay-button-size($input-group-lg-inset-item-btn);
304
- }
305
-
306
- > .btn-monospaced {
307
- @include clay-button-variant(
308
- $input-group-lg-inset-item-btn-monospaced
309
- );
310
- }
311
-
312
- > .form-file {
313
- height: 75%;
314
-
315
- .btn {
316
- @include clay-button-size(
317
- $input-group-lg-inset-item-form-file-btn
318
- );
319
- }
320
- }
321
- }
322
- }
156
+ @include clay-input-group-variant($input-group-lg);
323
157
  }
324
158
 
325
159
  .input-group-lg {
@@ -327,83 +161,7 @@
327
161
  }
328
162
 
329
163
  %clay-input-group-sm {
330
- > .input-group-item {
331
- > .btn {
332
- @include clay-button-size($input-group-sm-item-btn);
333
- }
334
-
335
- > .btn-monospaced {
336
- @include clay-button-size($input-group-sm-item-btn-monospaced);
337
- }
338
-
339
- > .form-control,
340
- > .form-file .btn {
341
- @include border-radius($input-border-radius-sm);
342
-
343
- font-size: $input-font-size-sm;
344
- height: $input-height-sm;
345
- line-height: $input-line-height-sm;
346
- padding-bottom: $input-padding-y-sm;
347
- padding-left: $input-padding-x-sm;
348
- padding-right: $input-padding-x-sm;
349
- padding-top: $input-padding-y-sm;
350
-
351
- @include clay-scale-component {
352
- height: $input-height-sm-mobile;
353
- }
354
- }
355
-
356
- > .form-control-plaintext {
357
- font-size: $input-font-size-sm;
358
- height: $input-height-sm;
359
- line-height: $input-line-height-sm;
360
- padding-bottom: $input-padding-y-sm;
361
- padding-top: $input-padding-y-sm;
362
-
363
- @include clay-scale-component {
364
- height: $input-height-sm-mobile;
365
- }
366
- }
367
-
368
- > textarea.form-control,
369
- > .form-control-textarea {
370
- height: $input-textarea-height-sm;
371
- }
372
-
373
- > .input-group-text {
374
- @include border-radius($input-border-radius-sm);
375
-
376
- font-size: $input-font-size-sm;
377
- height: $input-height-sm;
378
- min-width: $input-group-addon-min-width-sm;
379
- padding-bottom: $input-group-addon-padding-y-sm;
380
- padding-left: $input-group-addon-padding-x-sm;
381
- padding-right: $input-group-addon-padding-x-sm;
382
- padding-top: $input-group-addon-padding-y-sm;
383
- }
384
-
385
- > .input-group-inset-item {
386
- > .btn {
387
- @include clay-button-size($input-group-sm-inset-item-btn);
388
- }
389
-
390
- > .btn-monospaced {
391
- @include clay-button-variant(
392
- $input-group-sm-inset-item-btn-monospaced
393
- );
394
- }
395
-
396
- > .form-file {
397
- height: 75%;
398
-
399
- .btn {
400
- @include clay-button-size(
401
- $input-group-sm-inset-item-form-file-btn
402
- );
403
- }
404
- }
405
- }
406
- }
164
+ @include clay-input-group-variant($input-group-sm);
407
165
 
408
166
  &.clay-color {
409
167
  > .input-group-item > .input-group-text {
@@ -432,72 +190,18 @@
432
190
 
433
191
  // Input Group Inset
434
192
 
435
- .input-group-item.focus {
436
- @include border-radius($input-border-radius);
437
-
438
- box-shadow: $input-focus-box-shadow;
439
-
440
- .form-control,
441
- .form-control[readonly] ~ .input-group-inset-item,
442
- .input-group-inset-item {
443
- background-color: $input-focus-bg;
444
- border-color: $input-focus-border-color;
445
- }
446
- }
447
-
448
- .input-group-item.input-group-prepend.focus {
449
- @include border-right-radius(0);
450
-
451
- z-index: 1;
452
- }
453
-
454
- .input-group-item.input-group-append.focus {
455
- @include border-left-radius(0);
456
- }
457
-
458
193
  .input-group-inset {
459
- flex-grow: 1;
460
- order: 5;
461
- width: 1%;
462
-
463
- &[readonly] {
464
- &:focus {
465
- ~ .input-group-inset-item {
466
- background-color: $input-readonly-focus-bg;
467
- border-color: $input-readonly-focus-border-color;
468
- color: $input-readonly-focus-color;
469
- }
470
- }
471
-
472
- ~ .input-group-inset-item {
473
- background-color: $input-readonly-bg;
474
- border-color: $input-readonly-border-color;
475
- color: $input-readonly-color;
476
- cursor: $input-readonly-cursor;
477
- }
478
- }
479
-
480
- &:focus {
481
- box-shadow: none;
482
-
483
- ~ .input-group-inset-item {
484
- background-color: $input-focus-bg;
485
- border-color: $input-focus-border-color;
486
- }
487
- }
488
-
489
- &:disabled {
490
- ~ .input-group-inset-item {
491
- background-color: $input-disabled-bg;
492
- border-color: $input-disabled-border-color;
493
- }
494
- }
194
+ @include clay-form-control-variant($input-group-inset);
495
195
 
496
196
  ~ .form-feedback-group {
497
197
  order: 13;
498
198
  }
499
199
  }
500
200
 
201
+ .input-group-inset[readonly] {
202
+ @include clay-form-control-variant($input-group-inset-readonly);
203
+ }
204
+
501
205
  .input-group {
502
206
  .input-group-inset-item {
503
207
  align-items: center;