@clayui/css 3.78.0 → 3.82.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.
Files changed (88) hide show
  1. package/lib/css/atlas.css +477 -100
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +471 -95
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/cadmin.css +378 -127
  6. package/lib/css/cadmin.css.map +1 -1
  7. package/lib/images/icons/icons.svg +1 -1
  8. package/package.json +2 -2
  9. package/src/scss/_license-text.scss +1 -1
  10. package/src/scss/atlas/variables/_alerts.scss +1 -1
  11. package/src/scss/atlas/variables/_clay-color.scss +23 -9
  12. package/src/scss/atlas/variables/_custom-forms.scss +16 -4
  13. package/src/scss/atlas/variables/_date-picker.scss +38 -15
  14. package/src/scss/atlas/variables/_links.scss +19 -2
  15. package/src/scss/atlas/variables/_modals.scss +60 -28
  16. package/src/scss/atlas/variables/_navigation-bar.scss +0 -1
  17. package/src/scss/atlas/variables/_panels.scss +3 -3
  18. package/src/scss/atlas/variables/_range.scss +1 -1
  19. package/src/scss/atlas/variables/_tbar.scss +7 -3
  20. package/src/scss/atlas/variables/_time.scss +4 -2
  21. package/src/scss/atlas/variables/_toggle-switch.scss +1 -1
  22. package/src/scss/cadmin/components/_alerts.scss +1 -1
  23. package/src/scss/cadmin/components/_clay-color.scss +15 -20
  24. package/src/scss/cadmin/components/_custom-forms.scss +32 -4
  25. package/src/scss/cadmin/components/_date-picker.scss +4 -4
  26. package/src/scss/cadmin/components/_forms.scss +5 -7
  27. package/src/scss/cadmin/components/_list-group.scss +2 -2
  28. package/src/scss/cadmin/components/_modals.scss +2 -4
  29. package/src/scss/cadmin/components/_range.scss +3 -3
  30. package/src/scss/cadmin/components/_time.scss +3 -3
  31. package/src/scss/cadmin/components/_utilities.scss +22 -0
  32. package/src/scss/cadmin/variables/_alerts.scss +1 -1
  33. package/src/scss/cadmin/variables/_cards.scss +48 -19
  34. package/src/scss/cadmin/variables/_clay-color.scss +41 -20
  35. package/src/scss/cadmin/variables/_custom-forms.scss +2 -2
  36. package/src/scss/cadmin/variables/_date-picker.scss +46 -26
  37. package/src/scss/cadmin/variables/_forms.scss +5 -5
  38. package/src/scss/cadmin/variables/_list-group.scss +2 -2
  39. package/src/scss/cadmin/variables/_modals.scss +60 -28
  40. package/src/scss/cadmin/variables/_range.scss +8 -4
  41. package/src/scss/cadmin/variables/_sheets.scss +9 -5
  42. package/src/scss/cadmin/variables/_tbar.scss +177 -91
  43. package/src/scss/cadmin/variables/_time.scss +11 -6
  44. package/src/scss/cadmin/variables/_utilities.scss +21 -6
  45. package/src/scss/components/_alerts.scss +6 -2
  46. package/src/scss/components/_buttons.scss +5 -1
  47. package/src/scss/components/_clay-color.scss +15 -20
  48. package/src/scss/components/_custom-forms.scss +62 -10
  49. package/src/scss/components/_date-picker.scss +4 -4
  50. package/src/scss/components/_dropdowns.scss +5 -1
  51. package/src/scss/components/_forms.scss +5 -5
  52. package/src/scss/components/_list-group.scss +2 -2
  53. package/src/scss/components/_modals.scss +2 -2
  54. package/src/scss/components/_panels.scss +56 -12
  55. package/src/scss/components/_progress-bars.scss +29 -2
  56. package/src/scss/components/_range.scss +3 -3
  57. package/src/scss/components/_sheets.scss +3 -1
  58. package/src/scss/components/_time.scss +3 -3
  59. package/src/scss/components/_timelines.scss +7 -1
  60. package/src/scss/components/_utilities.scss +22 -0
  61. package/src/scss/mixins/_globals.scss +2 -0
  62. package/src/scss/mixins/_input-groups.scss +6 -2
  63. package/src/scss/mixins/_modals.scss +8 -4
  64. package/src/scss/mixins/_panels.scss +4 -4
  65. package/src/scss/mixins/_tbar.scss +116 -28
  66. package/src/scss/variables/_alerts.scss +1 -1
  67. package/src/scss/variables/_application-bar.scss +32 -6
  68. package/src/scss/variables/_clay-color.scss +54 -23
  69. package/src/scss/variables/_custom-forms.scss +225 -48
  70. package/src/scss/variables/_date-picker.scss +42 -22
  71. package/src/scss/variables/_drilldown.scss +5 -1
  72. package/src/scss/variables/_forms.scss +12 -8
  73. package/src/scss/variables/_links.scss +10 -2
  74. package/src/scss/variables/_list-group.scss +2 -2
  75. package/src/scss/variables/_management-bar.scss +56 -10
  76. package/src/scss/variables/_modals.scss +60 -28
  77. package/src/scss/variables/_multi-step-nav.scss +5 -1
  78. package/src/scss/variables/_navigation-bar.scss +56 -9
  79. package/src/scss/variables/_panels.scss +8 -8
  80. package/src/scss/variables/_progress-bars.scss +24 -8
  81. package/src/scss/variables/_range.scss +6 -5
  82. package/src/scss/variables/_reorder.scss +18 -5
  83. package/src/scss/variables/_sidebar.scss +25 -5
  84. package/src/scss/variables/_stickers.scss +1 -1
  85. package/src/scss/variables/_tbar.scss +174 -88
  86. package/src/scss/variables/_time.scss +5 -4
  87. package/src/scss/variables/_toggle-switch.scss +22 -10
  88. package/src/scss/variables/_utilities.scss +17 -2
@@ -4,7 +4,11 @@
4
4
  }
5
5
 
6
6
  .form-file-input {
7
- cursor: $input-file-cursor;
7
+ cursor: if(
8
+ variable-exists(input-file-cursor),
9
+ $input-file-cursor,
10
+ $link-cursor
11
+ );
8
12
  height: 100%;
9
13
  opacity: 0;
10
14
  overflow: hidden;
@@ -13,7 +17,11 @@
13
17
  z-index: 10;
14
18
 
15
19
  &::-webkit-file-upload-button {
16
- cursor: $input-file-cursor;
20
+ cursor: if(
21
+ variable-exists(input-file-cursor),
22
+ $input-file-cursor,
23
+ $link-cursor
24
+ );
17
25
  }
18
26
 
19
27
  &:focus {
@@ -52,10 +60,18 @@
52
60
  }
53
61
 
54
62
  &:disabled {
55
- cursor: $input-disabled-cursor;
63
+ cursor: if(
64
+ variable-exists(input-disabled-cursor),
65
+ $input-disabled-cursor,
66
+ $disabled-cursor
67
+ );
56
68
 
57
69
  &::-webkit-file-upload-button {
58
- cursor: $input-disabled-cursor;
70
+ cursor: if(
71
+ variable-exists(input-disabled-cursor),
72
+ $input-disabled-cursor,
73
+ $disabled-cursor
74
+ );
59
75
  }
60
76
  }
61
77
  }
@@ -75,7 +91,15 @@
75
91
  }
76
92
 
77
93
  .custom-control-label {
78
- @include clay-container($custom-control-label);
94
+ @include clay-css($custom-control-label);
95
+
96
+ &::before {
97
+ @include clay-css(map-get($custom-control-label, before));
98
+ }
99
+
100
+ &::after {
101
+ @include clay-css(map-get($custom-control-label, after));
102
+ }
79
103
  }
80
104
 
81
105
  label.custom-control-label {
@@ -83,11 +107,19 @@ label.custom-control-label {
83
107
  }
84
108
 
85
109
  .custom-control-label-text {
86
- @include clay-container($custom-control-label-text);
110
+ @include clay-css($custom-control-label-text);
111
+
112
+ &::before {
113
+ @include clay-css(map-get($custom-control-label-text, before));
114
+ }
115
+
116
+ &::after {
117
+ @include clay-css(map-get($custom-control-label-text, after));
118
+ }
87
119
 
88
120
  small,
89
121
  .small {
90
- @include clay-container($custom-control-label-text-small);
122
+ @include clay-css($custom-control-label-text-small);
91
123
  }
92
124
  }
93
125
 
@@ -95,7 +127,19 @@ label.custom-control-label {
95
127
 
96
128
  .custom-control-primary {
97
129
  .custom-control-label-text {
98
- @include clay-container($custom-control-primary-label-text);
130
+ @include clay-css($custom-control-primary-label-text);
131
+
132
+ &::before {
133
+ @include clay-css(
134
+ map-get($custom-control-primary-label-text, before)
135
+ );
136
+ }
137
+
138
+ &::after {
139
+ @include clay-css(
140
+ map-get($custom-control-primary-label-text, after)
141
+ );
142
+ }
99
143
  }
100
144
  }
101
145
 
@@ -240,8 +284,16 @@ label.custom-control-label {
240
284
  // in IE and (under certain conditions) Edge.
241
285
  // See https://github.com/twbs/bootstrap/issues/19398.
242
286
 
243
- background-color: $input-bg;
244
- color: $input-color;
287
+ background-color: if(
288
+ variable-exists(input-bg),
289
+ $input-bg,
290
+ $white
291
+ );
292
+ color: if(
293
+ variable-exists(input-color),
294
+ $input-color,
295
+ $gray-700
296
+ );
245
297
  }
246
298
  }
247
299
 
@@ -47,19 +47,19 @@
47
47
  // Date Picker Calendar
48
48
 
49
49
  .date-picker-calendar {
50
- @include clay-container($date-picker-calendar-container);
50
+ @include clay-css($date-picker-calendar-container);
51
51
  }
52
52
 
53
53
  .date-picker-calendar-header {
54
- @include clay-container($date-picker-calendar-header-container);
54
+ @include clay-css($date-picker-calendar-header-container);
55
55
  }
56
56
 
57
57
  .date-picker-calendar-body {
58
- @include clay-container($date-picker-calendar-body-container);
58
+ @include clay-css($date-picker-calendar-body-container);
59
59
  }
60
60
 
61
61
  .date-picker-calendar-footer {
62
- @include clay-container($date-picker-calendar-footer-container);
62
+ @include clay-css($date-picker-calendar-footer-container);
63
63
  }
64
64
 
65
65
  .date-picker-calendar-item {
@@ -45,7 +45,11 @@
45
45
  .custom-control {
46
46
  margin-bottom: 0;
47
47
  margin-right: 0;
48
- min-height: $custom-control-indicator-size;
48
+ min-height: if(
49
+ variable-exists(custom-control-indicator-size),
50
+ $custom-control-indicator-size,
51
+ null
52
+ );
49
53
  }
50
54
  }
51
55
 
@@ -180,14 +180,14 @@ div {
180
180
  }
181
181
 
182
182
  .form-control-tag-group {
183
- @include clay-container($form-control-tag-group);
183
+ @include clay-css($form-control-tag-group);
184
184
 
185
185
  .autofit-row {
186
- @include clay-container($form-control-tag-group-autofit-row);
186
+ @include clay-css($form-control-tag-group-autofit-row);
187
187
  }
188
188
 
189
189
  .autofit-col {
190
- @include clay-container($form-control-tag-group-autofit-col);
190
+ @include clay-css($form-control-tag-group-autofit-col);
191
191
 
192
192
  .form-control-inset {
193
193
  width: auto;
@@ -195,11 +195,11 @@ div {
195
195
  }
196
196
 
197
197
  .input-group-item {
198
- @include clay-container($form-control-tag-group-input-group-item);
198
+ @include clay-css($form-control-tag-group-input-group-item);
199
199
  }
200
200
 
201
201
  .inline-item {
202
- @include clay-container($form-control-tag-group-inline-item);
202
+ @include clay-css($form-control-tag-group-inline-item);
203
203
  }
204
204
 
205
205
  .btn {
@@ -522,10 +522,10 @@
522
522
 
523
523
  .list-group-sm {
524
524
  .list-group-item {
525
- @include clay-container($list-group-sm-item);
525
+ @include clay-css($list-group-sm-item);
526
526
  }
527
527
 
528
528
  .quick-action-menu {
529
- @include clay-container($list-group-sm-quick-action-menu);
529
+ @include clay-css($list-group-sm-quick-action-menu);
530
530
  }
531
531
  }
@@ -479,10 +479,10 @@
479
479
  }
480
480
 
481
481
  .modal-content {
482
- @include clay-container($modal-height-full-modal-content);
482
+ @include clay-css($modal-height-full-modal-content);
483
483
 
484
484
  @include media-breakpoint-up(sm) {
485
- @include clay-container($modal-height-full-modal-content-sm-up);
485
+ @include clay-css($modal-height-full-modal-content-sm-up);
486
486
  }
487
487
  }
488
488
  }
@@ -68,8 +68,16 @@
68
68
  }
69
69
 
70
70
  .collapse-icon {
71
- padding-left: $collapse-icon-padding-left;
72
- padding-right: $collapse-icon-padding-right;
71
+ padding-left: if(
72
+ variable-exists(collapse-icon-padding-left),
73
+ $collapse-icon-padding-left,
74
+ null
75
+ );
76
+ padding-right: if(
77
+ variable-exists(collapse-icon-padding-right),
78
+ $collapse-icon-padding-right,
79
+ 2.28125rem
80
+ );
73
81
  }
74
82
  }
75
83
 
@@ -201,27 +209,63 @@
201
209
  > .panel-group-fluid,
202
210
  > .panel-group-fluid-first,
203
211
  > .panel-group-fluid-last {
204
- margin-left: math-sign($card-spacer-x);
205
- margin-right: math-sign($card-spacer-x);
212
+ margin-left: math-sign(
213
+ if(variable-exists(card-spacer-x), $card-spacer-x, 1.25rem)
214
+ );
215
+ margin-right: math-sign(
216
+ if(variable-exists(card-spacer-x), $card-spacer-x, 1.25rem)
217
+ );
206
218
  }
207
219
  }
208
220
 
209
221
  .sheet {
210
222
  > .panel-group-fluid {
211
- margin-left: math-sign($sheet-padding-left);
212
- margin-right: math-sign($sheet-padding-right);
223
+ margin-left: math-sign(
224
+ if(variable-exists(sheet-padding-left), $sheet-padding-left, 1.5rem)
225
+ );
226
+ margin-right: math-sign(
227
+ if(
228
+ variable-exists(sheet-padding-right),
229
+ $sheet-padding-right,
230
+ 1.5rem
231
+ )
232
+ );
213
233
  }
214
234
 
215
235
  > .panel-group-fluid-first {
216
- margin-left: math-sign($sheet-padding-left);
217
- margin-right: math-sign($sheet-padding-right);
218
- margin-top: math-sign($sheet-padding-top);
236
+ margin-left: math-sign(
237
+ if(variable-exists(sheet-padding-left), $sheet-padding-left, 1.5rem)
238
+ );
239
+ margin-right: math-sign(
240
+ if(
241
+ variable-exists(sheet-padding-right),
242
+ $sheet-padding-right,
243
+ 1.5rem
244
+ )
245
+ );
246
+ margin-top: math-sign(
247
+ if(variable-exists(sheet-padding-top), $sheet-padding-top, 1.5rem)
248
+ );
219
249
  }
220
250
 
221
251
  > .panel-group-fluid-last {
222
- margin-bottom: math-sign($sheet-padding-bottom);
223
- margin-left: math-sign($sheet-padding-left);
224
- margin-right: math-sign($sheet-padding-right);
252
+ margin-bottom: math-sign(
253
+ if(
254
+ variable-exists(sheet-padding-bottom),
255
+ $sheet-padding-bottom,
256
+ 0.0625rem
257
+ )
258
+ );
259
+ margin-left: math-sign(
260
+ if(variable-exists(sheet-padding-left), $sheet-padding-left, 1.5rem)
261
+ );
262
+ margin-right: math-sign(
263
+ if(
264
+ variable-exists(sheet-padding-right),
265
+ $sheet-padding-right,
266
+ 1.5rem
267
+ )
268
+ );
225
269
  }
226
270
  }
227
271
 
@@ -124,11 +124,38 @@
124
124
  @each $color, $value in $progress-palette {
125
125
  .progress-#{$color} {
126
126
  .progress-bar {
127
- background-color: map-get($value, bar-bg);
127
+ $progress-bar: setter(map-get($value, progress-bar), ());
128
+ $progress-bar: map-merge(
129
+ $progress-bar,
130
+ (
131
+ background-color:
132
+ setter(
133
+ map-get($progress-bar, background-color),
134
+ map-get($value, bar-bg)
135
+ ),
136
+ )
137
+ );
138
+
139
+ @include clay-css($progress-bar);
128
140
  }
129
141
 
130
142
  .progress-group-feedback {
131
- color: map-get($value, group-feedback-color);
143
+ $progress-group-feedback: setter(
144
+ map-get($value, progress-group-feedback),
145
+ ()
146
+ );
147
+ $progress-group-feedback: map-merge(
148
+ $progress-group-feedback,
149
+ (
150
+ color:
151
+ setter(
152
+ map-get($progress-group-feedback, color),
153
+ map-get($value, group-feedback-color)
154
+ ),
155
+ )
156
+ );
157
+
158
+ @include clay-css($progress-group-feedback);
132
159
  }
133
160
  }
134
161
  }
@@ -2,15 +2,15 @@
2
2
  padding-bottom: 0.1px;
3
3
 
4
4
  .input-group {
5
- @include clay-container($clay-range-input-group);
5
+ @include clay-css($clay-range-input-group);
6
6
  }
7
7
 
8
8
  .input-group-item {
9
- @include clay-container($clay-range-input-group-item);
9
+ @include clay-css($clay-range-input-group-item);
10
10
  }
11
11
 
12
12
  .input-group-text {
13
- @include clay-container($clay-range-input-group-text);
13
+ @include clay-css($clay-range-input-group-text);
14
14
  }
15
15
 
16
16
  &.disabled {
@@ -95,7 +95,9 @@
95
95
 
96
96
  > .card-page:last-child,
97
97
  .card-page-last {
98
- margin-bottom: math-sign($card-margin-bottom);
98
+ margin-bottom: math-sign(
99
+ if(variable-exists(card-margin-bottom), $card-margin-bottom, 1.5rem)
100
+ );
99
101
  }
100
102
 
101
103
  &::after {
@@ -16,7 +16,7 @@
16
16
  }
17
17
 
18
18
  .input-group-text {
19
- @include clay-container($clay-time-input-group-text);
19
+ @include clay-css($clay-time-input-group-text);
20
20
  }
21
21
 
22
22
  .clay-time-ampm {
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  .clay-time-edit {
33
- @include clay-container($clay-time-edit);
33
+ @include clay-css($clay-time-edit);
34
34
 
35
35
  &:first-child {
36
36
  margin-left: math-sign(map-get($clay-time-edit, padding-left));
@@ -57,7 +57,7 @@
57
57
  }
58
58
 
59
59
  .clay-time-inner-spin {
60
- @include clay-container($clay-time-inner-spin);
60
+ @include clay-css($clay-time-inner-spin);
61
61
 
62
62
  .btn {
63
63
  @include clay-button-variant($clay-time-inner-spin-btn);
@@ -69,7 +69,13 @@
69
69
 
70
70
  .panel {
71
71
  .timeline-increment {
72
- margin-left: math-sign($panel-border-left-width);
72
+ margin-left: math-sign(
73
+ if(
74
+ variable-exists(panel-border-left-width),
75
+ $panel-border-left-width,
76
+ 1px
77
+ )
78
+ );
73
79
  }
74
80
  }
75
81
  }
@@ -324,6 +324,28 @@
324
324
  background-color: $page-header-bg;
325
325
  }
326
326
 
327
+ // Clay Gap
328
+
329
+ @each $breakpoint in map-keys($grid-breakpoints) {
330
+ @include media-breakpoint-up($breakpoint) {
331
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
332
+
333
+ @each $size, $length in $c-gap {
334
+ .c-gap#{$infix}-#{$size} {
335
+ gap: $length;
336
+ }
337
+
338
+ .c-gapx#{$infix}-#{$size} {
339
+ column-gap: $length;
340
+ }
341
+
342
+ .c-gapy#{$infix}-#{$size} {
343
+ row-gap: $length;
344
+ }
345
+ }
346
+ }
347
+ }
348
+
327
349
  // Clay Margin and Padding
328
350
 
329
351
  @each $breakpoint in map-keys($grid-breakpoints) {
@@ -119,6 +119,7 @@
119
119
  'font-style',
120
120
  'font-variant',
121
121
  'font-weight',
122
+ 'gap',
122
123
  'grid',
123
124
  'grid-area',
124
125
  'grid-auto-columns',
@@ -199,6 +200,7 @@
199
200
  'position',
200
201
  'resize',
201
202
  'right',
203
+ 'row-gap',
202
204
  'scroll-behavior',
203
205
  'scrollbar-width',
204
206
  'table-layout',
@@ -27,7 +27,7 @@
27
27
  $breakpoint: setter(map-get($map, breakpoint), md);
28
28
  $breakpoint-down: clay-breakpoint-prev($breakpoint);
29
29
 
30
- $item: setter(map-get($map, item), ());
30
+ $item: setter(map-get($map, input-group-item), map-get($map, item), ());
31
31
  $item: map-merge(
32
32
  $item,
33
33
  (
@@ -55,7 +55,11 @@
55
55
  )
56
56
  );
57
57
 
58
- $item-shrink: setter(map-get($map, item-shrink), ());
58
+ $item-shrink: setter(
59
+ map-get($map, input-group-item-shrink),
60
+ map-get($map, item-shrink),
61
+ ()
62
+ );
59
63
  $item-shrink: map-merge(
60
64
  $item-shrink,
61
65
  (
@@ -24,7 +24,7 @@
24
24
  @if (type-of($map) == 'map') {
25
25
  $enabled: setter(map-get($map, enabled), true);
26
26
 
27
- $header: setter(map-get($map, header), ());
27
+ $header: setter(map-get($map, modal-header), map-get($map, header), ());
28
28
  $header: map-merge(
29
29
  $header,
30
30
  (
@@ -46,7 +46,11 @@
46
46
  )
47
47
  );
48
48
 
49
- $header-close: setter(map-get($map, header-close), ());
49
+ $header-close: setter(
50
+ map-deep-get($map, header, close),
51
+ map-get($map, header-close),
52
+ ()
53
+ );
50
54
  $header-close: map-merge(
51
55
  $header-close,
52
56
  (
@@ -75,7 +79,7 @@
75
79
  )
76
80
  );
77
81
 
78
- $body: setter(map-get($map, body), ());
82
+ $body: setter(map-get($map, modal-body), map-get($map, body), ());
79
83
  $body: map-merge(
80
84
  $body,
81
85
  (
@@ -88,7 +92,7 @@
88
92
  )
89
93
  );
90
94
 
91
- $footer: setter(map-get($map, footer), ());
95
+ $footer: setter(map-get($map, modal-footer), map-get($map, footer), ());
92
96
  $footer: map-merge(
93
97
  $footer,
94
98
  (
@@ -67,7 +67,7 @@
67
67
  )
68
68
  );
69
69
 
70
- $header: setter(map-get($map, header), ());
70
+ $header: setter(map-get($map, panel-header), map-get($map, header), ());
71
71
  $header: map-merge(
72
72
  $header,
73
73
  (
@@ -184,7 +184,7 @@
184
184
  $header-link: setter(map-get($header, link), ());
185
185
  $header-link: map-deep-merge($header-link, $old-header-link);
186
186
 
187
- $title: setter(map-get($map, title), ());
187
+ $title: setter(map-get($map, panel-title), map-get($map, title), ());
188
188
  $title: map-merge(
189
189
  $title,
190
190
  (
@@ -238,7 +238,7 @@
238
238
  )
239
239
  );
240
240
 
241
- $body: setter(map-get($map, body), ());
241
+ $body: setter(map-get($map, panel-body), map-get($map, body), ());
242
242
  $body: map-merge(
243
243
  $body,
244
244
  (
@@ -285,7 +285,7 @@
285
285
  )
286
286
  );
287
287
 
288
- $footer: setter(map-get($map, footer), ());
288
+ $footer: setter(map-get($map, panel-footer), map-get($map, footer), ());
289
289
  $footer: map-merge(
290
290
  $footer,
291
291
  (