@clayui/css 3.92.0 → 3.93.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 (45) hide show
  1. package/lib/css/atlas.css +99 -1
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +92 -1
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/cadmin.css +127 -69
  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/cadmin/components/_drilldown.scss +1 -1
  11. package/src/scss/cadmin/components/_forms.scss +1 -1
  12. package/src/scss/cadmin/components/_input-groups.scss +2 -1
  13. package/src/scss/cadmin/components/_multi-step-nav.scss +3 -1
  14. package/src/scss/cadmin/components/_side-navigation.scss +2 -2
  15. package/src/scss/components/_alerts.scss +24 -22
  16. package/src/scss/components/_aspect-ratio.scss +33 -31
  17. package/src/scss/components/_badges.scss +28 -26
  18. package/src/scss/components/_buttons.scss +105 -97
  19. package/src/scss/components/_drilldown.scss +1 -1
  20. package/src/scss/components/_dropdowns.scss +10 -8
  21. package/src/scss/components/_forms.scss +12 -9
  22. package/src/scss/components/_input-groups.scss +2 -1
  23. package/src/scss/components/_labels.scss +48 -44
  24. package/src/scss/components/_list-group.scss +13 -11
  25. package/src/scss/components/_loaders.scss +22 -18
  26. package/src/scss/components/_modals.scss +4 -2
  27. package/src/scss/components/_multi-step-nav.scss +3 -1
  28. package/src/scss/components/_navs.scss +10 -8
  29. package/src/scss/components/_popovers.scss +33 -27
  30. package/src/scss/components/_progress-bars.scss +39 -33
  31. package/src/scss/components/_sheets.scss +39 -0
  32. package/src/scss/components/_side-navigation.scss +2 -2
  33. package/src/scss/components/_sidebar.scss +12 -10
  34. package/src/scss/components/_spinners.scss +20 -0
  35. package/src/scss/components/_stickers.scss +50 -46
  36. package/src/scss/components/_tables.scss +32 -30
  37. package/src/scss/components/_utilities-functional-important.scss +75 -63
  38. package/src/scss/functions/_global-functions.scss +25 -1
  39. package/src/scss/mixins/_alerts.scss +11 -9
  40. package/src/scss/mixins/_buttons.scss +60 -0
  41. package/src/scss/mixins/_dropdown-menu.scss +36 -0
  42. package/src/scss/mixins/_globals.scss +29 -1
  43. package/src/scss/mixins/_links.scss +9 -7
  44. package/src/scss/mixins/_transition.scss +7 -1
  45. package/src/scss/variables/_sheets.scss +17 -0
@@ -19,29 +19,31 @@ fieldset:disabled a.btn {
19
19
  // Button Sizes
20
20
 
21
21
  @each $size, $value in $btn-sizes {
22
- $selector: if(
23
- starts-with($size, 'btn-'),
24
- clay-str-replace($size, 'btn-', '.btn-'),
25
- $size
26
- );
27
-
28
- @if (starts-with($size, '%') or map-get($value, extend)) {
29
- #{$selector} {
30
- @include clay-button-variant($value);
31
- }
32
- } @else {
33
- $placeholder: if(
22
+ @if not clay-is-map-unset($value) {
23
+ $selector: if(
34
24
  starts-with($size, 'btn-'),
35
- '%clay-#{$size}',
36
- '%#{str-slice($size, 2)}'
25
+ clay-str-replace($size, 'btn-', '.btn-'),
26
+ $size
37
27
  );
38
28
 
39
- #{$placeholder} {
40
- @include clay-button-variant($value);
41
- }
42
-
43
- #{$selector} {
44
- @extend #{$placeholder} !optional;
29
+ @if (starts-with($size, '%') or map-get($value, extend)) {
30
+ #{$selector} {
31
+ @include clay-button-variant($value);
32
+ }
33
+ } @else {
34
+ $placeholder: if(
35
+ starts-with($size, 'btn-'),
36
+ '%clay-#{$size}',
37
+ '%#{str-slice($size, 2)}'
38
+ );
39
+
40
+ #{$placeholder} {
41
+ @include clay-button-variant($value);
42
+ }
43
+
44
+ #{$selector} {
45
+ @extend #{$placeholder} !optional;
46
+ }
45
47
  }
46
48
  }
47
49
  }
@@ -80,33 +82,35 @@ input[type='button'] {
80
82
  // Button Monospaced
81
83
 
82
84
  @each $size, $value in $btn-monospaced-sizes {
83
- $selector: if(
84
- starts-with($size, 'btn-monospaced-'),
85
- clay-str-replace($size, 'btn-monospaced', '.btn-monospaced.btn'),
86
- if(
87
- $size == 'btn-monospaced',
88
- clay-str-replace($size, 'btn-monospaced', '.btn-monospaced'),
89
- $size
90
- )
91
- );
92
-
93
- @if (starts-with($size, '%') or map-get($value, extend)) {
94
- #{$selector} {
95
- @include clay-button-variant($value);
96
- }
97
- } @else {
98
- $placeholder: if(
99
- starts-with($size, 'btn-monospaced'),
100
- '%clay-#{$size}',
101
- '%#{str-slice($size, 2)}'
85
+ @if not clay-is-map-unset($value) {
86
+ $selector: if(
87
+ starts-with($size, 'btn-monospaced-'),
88
+ clay-str-replace($size, 'btn-monospaced', '.btn-monospaced.btn'),
89
+ if(
90
+ $size == 'btn-monospaced',
91
+ clay-str-replace($size, 'btn-monospaced', '.btn-monospaced'),
92
+ $size
93
+ )
102
94
  );
103
95
 
104
- #{$placeholder} {
105
- @include clay-button-variant($value);
106
- }
107
-
108
- #{$selector} {
109
- @extend #{$placeholder} !optional;
96
+ @if (starts-with($size, '%') or map-get($value, extend)) {
97
+ #{$selector} {
98
+ @include clay-button-variant($value);
99
+ }
100
+ } @else {
101
+ $placeholder: if(
102
+ starts-with($size, 'btn-monospaced'),
103
+ '%clay-#{$size}',
104
+ '%#{str-slice($size, 2)}'
105
+ );
106
+
107
+ #{$placeholder} {
108
+ @include clay-button-variant($value);
109
+ }
110
+
111
+ #{$selector} {
112
+ @extend #{$placeholder} !optional;
113
+ }
110
114
  }
111
115
  }
112
116
  }
@@ -114,37 +118,39 @@ input[type='button'] {
114
118
  // Button Variants
115
119
 
116
120
  @each $color, $value in $btn-palette {
117
- $selector: if(
118
- starts-with($color, '.') or
119
- starts-with($color, '#') or
120
- starts-with($color, '%'),
121
- $color,
122
- if(
123
- starts-with($color, 'btn'),
124
- str-insert($color, '.', 1),
125
- str-insert($color, '.btn-', 1)
126
- )
127
- );
121
+ @if not clay-is-map-unset($value) {
122
+ $selector: if(
123
+ starts-with($color, '.') or
124
+ starts-with($color, '#') or
125
+ starts-with($color, '%'),
126
+ $color,
127
+ if(
128
+ starts-with($color, 'btn'),
129
+ str-insert($color, '.', 1),
130
+ str-insert($color, '.btn-', 1)
131
+ )
132
+ );
128
133
 
129
- @if (starts-with($color, '%') or map-get($value, extend)) {
130
- #{$selector} {
131
- @include clay-button-variant($value);
132
- }
133
- } @else {
134
- $placeholder: '%#{str-slice($selector, 2)}';
134
+ @if (starts-with($color, '%') or map-get($value, extend)) {
135
+ #{$selector} {
136
+ @include clay-button-variant($value);
137
+ }
138
+ } @else {
139
+ $placeholder: '%#{str-slice($selector, 2)}';
135
140
 
136
- $placeholder-focus: '%#{str-slice($selector, 2)}-focus';
141
+ $placeholder-focus: '%#{str-slice($selector, 2)}-focus';
137
142
 
138
- #{$placeholder} {
139
- @include clay-button-variant($value);
140
- }
143
+ #{$placeholder} {
144
+ @include clay-button-variant($value);
145
+ }
141
146
 
142
- #{$selector} {
143
- @extend #{$placeholder} !optional;
144
- }
147
+ #{$selector} {
148
+ @extend #{$placeholder} !optional;
149
+ }
145
150
 
146
- #{$placeholder-focus} {
147
- @include clay-button-variant(map-get($value, focus));
151
+ #{$placeholder-focus} {
152
+ @include clay-button-variant(map-get($value, focus));
153
+ }
148
154
  }
149
155
  }
150
156
  }
@@ -152,37 +158,39 @@ input[type='button'] {
152
158
  // Button Outline Variants
153
159
 
154
160
  @each $color, $value in $btn-outline-palette {
155
- $selector: if(
156
- starts-with($color, '.') or
157
- starts-with($color, '#') or
158
- starts-with($color, '%'),
159
- $color,
160
- if(
161
- starts-with($color, 'btn'),
162
- str-insert($color, '.', 1),
163
- str-insert($color, '.btn-outline-', 1)
164
- )
165
- );
161
+ @if not clay-is-map-unset($value) {
162
+ $selector: if(
163
+ starts-with($color, '.') or
164
+ starts-with($color, '#') or
165
+ starts-with($color, '%'),
166
+ $color,
167
+ if(
168
+ starts-with($color, 'btn'),
169
+ str-insert($color, '.', 1),
170
+ str-insert($color, '.btn-outline-', 1)
171
+ )
172
+ );
166
173
 
167
- @if (starts-with($color, '%') or map-get($value, extend)) {
168
- #{$selector} {
169
- @include clay-button-variant($value);
170
- }
171
- } @else {
172
- $placeholder: '%#{str-slice($selector, 2)}';
174
+ @if (starts-with($color, '%') or map-get($value, extend)) {
175
+ #{$selector} {
176
+ @include clay-button-variant($value);
177
+ }
178
+ } @else {
179
+ $placeholder: '%#{str-slice($selector, 2)}';
173
180
 
174
- $placeholder-focus: '%#{str-slice($selector, 2)}-focus';
181
+ $placeholder-focus: '%#{str-slice($selector, 2)}-focus';
175
182
 
176
- #{$placeholder} {
177
- @include clay-button-variant($value);
178
- }
183
+ #{$placeholder} {
184
+ @include clay-button-variant($value);
185
+ }
179
186
 
180
- #{$selector} {
181
- @extend #{$placeholder} !optional;
182
- }
187
+ #{$selector} {
188
+ @extend #{$placeholder} !optional;
189
+ }
183
190
 
184
- #{$placeholder-focus} {
185
- @include clay-button-variant(map-get($value, focus));
191
+ #{$placeholder-focus} {
192
+ @include clay-button-variant(map-get($value, focus));
193
+ }
186
194
  }
187
195
  }
188
196
  }
@@ -13,7 +13,7 @@
13
13
  // Drilldown Transition Classes
14
14
 
15
15
  .drilldown-transition {
16
- transition: $drilldown-transition;
16
+ @include transition($drilldown-transition);
17
17
  }
18
18
 
19
19
  .drilldown-item.transitioning {
@@ -124,14 +124,16 @@
124
124
  // Dropdown Menu Variants
125
125
 
126
126
  @each $key, $value in $dropdown-menu-palette {
127
- $selector: if(
128
- starts-with($key, '.') or starts-with($key, '#'),
129
- $key,
130
- str-insert($key, '.', 1)
131
- );
132
-
133
- #{$selector} {
134
- @include clay-dropdown-menu-variant($value);
127
+ @if not clay-is-map-unset($value) {
128
+ $selector: if(
129
+ starts-with($key, '.') or starts-with($key, '#'),
130
+ $key,
131
+ str-insert($key, '.', 1)
132
+ );
133
+
134
+ #{$selector} {
135
+ @include clay-dropdown-menu-variant($value);
136
+ }
135
137
  }
136
138
  }
137
139
 
@@ -158,14 +158,16 @@ fieldset[disabled] .form-control {
158
158
  }
159
159
 
160
160
  @each $key, $value in $input-palette {
161
- $selector: if(
162
- starts-with($key, '.') or starts-with($key, '#'),
163
- $key,
164
- str-insert($key, '.', 1)
165
- );
166
-
167
- #{$selector} {
168
- @include clay-form-control-variant($value);
161
+ @if not clay-is-map-unset($value) {
162
+ $selector: if(
163
+ starts-with($key, '.') or starts-with($key, '#'),
164
+ $key,
165
+ str-insert($key, '.', 1)
166
+ );
167
+
168
+ #{$selector} {
169
+ @include clay-form-control-variant($value);
170
+ }
169
171
  }
170
172
  }
171
173
 
@@ -343,7 +345,8 @@ textarea.form-control-plaintext,
343
345
 
344
346
  &::-webkit-slider-thumb {
345
347
  border-radius: 100px;
346
- transition: $input-transition;
348
+
349
+ @include transition($input-transition);
347
350
  }
348
351
  }
349
352
 
@@ -226,7 +226,8 @@
226
226
  margin-bottom: 0;
227
227
  padding-left: $input-group-inset-item-padding-left;
228
228
  padding-right: $input-group-inset-item-padding-right;
229
- transition: $input-transition;
229
+
230
+ @include transition($input-transition);
230
231
 
231
232
  .btn {
232
233
  @include clay-button-size($input-group-inset-item-btn);
@@ -89,31 +89,33 @@
89
89
  // Label Sizes
90
90
 
91
91
  @each $selector, $value in $label-sizes {
92
- $selector: if(
93
- starts-with($selector, '.') or
94
- starts-with($selector, '#') or
95
- starts-with($selector, '%'),
96
- $selector,
97
- str-insert($selector, '.', 1)
98
- );
99
-
100
- @if (starts-with($selector, '%') or map-get($value, extend)) {
101
- #{$selector} {
102
- @include clay-label-variant($value);
103
- }
104
- } @else {
105
- $placeholder: if(
106
- starts-with($selector, '.') or starts-with($selector, '#'),
107
- '%#{str-slice($selector, 2)}',
108
- '%#{$selector}'
92
+ @if not clay-is-map-unset($value) {
93
+ $selector: if(
94
+ starts-with($selector, '.') or
95
+ starts-with($selector, '#') or
96
+ starts-with($selector, '%'),
97
+ $selector,
98
+ str-insert($selector, '.', 1)
109
99
  );
110
100
 
111
- #{$placeholder} {
112
- @include clay-label-variant($value);
113
- }
101
+ @if (starts-with($selector, '%') or map-get($value, extend)) {
102
+ #{$selector} {
103
+ @include clay-label-variant($value);
104
+ }
105
+ } @else {
106
+ $placeholder: if(
107
+ starts-with($selector, '.') or starts-with($selector, '#'),
108
+ '%#{str-slice($selector, 2)}',
109
+ '%#{$selector}'
110
+ );
111
+
112
+ #{$placeholder} {
113
+ @include clay-label-variant($value);
114
+ }
114
115
 
115
- #{$selector} {
116
- @extend #{$placeholder} !optional;
116
+ #{$selector} {
117
+ @extend #{$placeholder} !optional;
118
+ }
117
119
  }
118
120
  }
119
121
  }
@@ -121,31 +123,33 @@
121
123
  // Label Variants
122
124
 
123
125
  @each $color, $value in $label-palette {
124
- $selector: if(
125
- starts-with($color, '.') or
126
- starts-with($color, '#') or
127
- starts-with($color, '%'),
128
- $color,
129
- str-insert($color, '.label-', 1)
130
- );
131
-
132
- @if (starts-with($color, '%') or map-get($value, extend)) {
133
- #{$selector} {
134
- @include clay-label-variant($value);
135
- }
136
- } @else {
137
- $placeholder: if(
138
- starts-with($color, '.') or starts-with($color, '#'),
139
- '%#{str-slice($color, 2)}',
140
- '%label-#{$color}'
126
+ @if not clay-is-map-unset($value) {
127
+ $selector: if(
128
+ starts-with($color, '.') or
129
+ starts-with($color, '#') or
130
+ starts-with($color, '%'),
131
+ $color,
132
+ str-insert($color, '.label-', 1)
141
133
  );
142
134
 
143
- #{$placeholder} {
144
- @include clay-label-variant($value);
145
- }
135
+ @if (starts-with($color, '%') or map-get($value, extend)) {
136
+ #{$selector} {
137
+ @include clay-label-variant($value);
138
+ }
139
+ } @else {
140
+ $placeholder: if(
141
+ starts-with($color, '.') or starts-with($color, '#'),
142
+ '%#{str-slice($color, 2)}',
143
+ '%label-#{$color}'
144
+ );
145
+
146
+ #{$placeholder} {
147
+ @include clay-label-variant($value);
148
+ }
146
149
 
147
- #{$selector} {
148
- @extend #{$placeholder} !optional;
150
+ #{$selector} {
151
+ @extend #{$placeholder} !optional;
152
+ }
149
153
  }
150
154
  }
151
155
  }
@@ -410,20 +410,22 @@
410
410
  // List Group Item Variants
411
411
 
412
412
  @each $color, $value in $list-group-item-theme-colors {
413
- .list-group-item-#{$color} {
414
- @include clay-css($value);
413
+ @if not clay-is-map-unset($value) {
414
+ .list-group-item-#{$color} {
415
+ @include clay-css($value);
415
416
 
416
- &.list-group-item-action {
417
- &:hover {
418
- @include clay-css(map-get($value, hover));
419
- }
417
+ &.list-group-item-action {
418
+ &:hover {
419
+ @include clay-css(map-get($value, hover));
420
+ }
420
421
 
421
- &:focus {
422
- @include clay-css(map-get($value, focus));
423
- }
422
+ &:focus {
423
+ @include clay-css(map-get($value, focus));
424
+ }
424
425
 
425
- &.active {
426
- @include clay-css(map-get($value, active));
426
+ &.active {
427
+ @include clay-css(map-get($value, active));
428
+ }
427
429
  }
428
430
  }
429
431
  }
@@ -79,31 +79,35 @@
79
79
  // Loading Animation Sizes
80
80
 
81
81
  @each $selector, $value in $loading-animation-sizes {
82
- $_selector: if(
83
- starts-with($selector, '.') or
84
- starts-with($selector, '#') or
85
- starts-with($selector, '%'),
86
- $selector,
87
- str-insert($selector, '.', 1)
88
- );
82
+ @if not clay-is-map-unset($value) {
83
+ $_selector: if(
84
+ starts-with($selector, '.') or
85
+ starts-with($selector, '#') or
86
+ starts-with($selector, '%'),
87
+ $selector,
88
+ str-insert($selector, '.', 1)
89
+ );
89
90
 
90
- #{$_selector} {
91
- @include clay-spinner-variant($value);
91
+ #{$_selector} {
92
+ @include clay-spinner-variant($value);
93
+ }
92
94
  }
93
95
  }
94
96
 
95
97
  // Loading Animation Variants
96
98
 
97
99
  @each $selector, $value in $loading-animation-palette {
98
- $_selector: if(
99
- starts-with($selector, '.') or
100
- starts-with($selector, '#') or
101
- starts-with($selector, '%'),
102
- $selector,
103
- str-insert($selector, '.', 1)
104
- );
100
+ @if not clay-is-map-unset($value) {
101
+ $_selector: if(
102
+ starts-with($selector, '.') or
103
+ starts-with($selector, '#') or
104
+ starts-with($selector, '%'),
105
+ $selector,
106
+ str-insert($selector, '.', 1)
107
+ );
105
108
 
106
- #{$_selector} {
107
- @include clay-spinner-variant($value);
109
+ #{$_selector} {
110
+ @include clay-spinner-variant($value);
111
+ }
108
112
  }
109
113
  }
@@ -490,8 +490,10 @@
490
490
  // Modal Variants
491
491
 
492
492
  @each $color, $value in $modal-palette {
493
- .modal-#{$color} {
494
- @include clay-modal-variant($value);
493
+ @if not clay-is-map-unset($value) {
494
+ .modal-#{$color} {
495
+ @include clay-modal-variant($value);
496
+ }
495
497
  }
496
498
  }
497
499
 
@@ -275,7 +275,9 @@
275
275
  padding-left: $multi-step-icon-padding-left;
276
276
  padding-right: $multi-step-icon-padding-right;
277
277
  padding-top: $multi-step-icon-padding-top;
278
- transition: $multi-step-icon-transition;
278
+
279
+ @include transition($multi-step-icon-transition);
280
+
279
281
  width: $multi-step-icon-size;
280
282
 
281
283
  &:hover {
@@ -189,13 +189,15 @@
189
189
  // Nav Variants
190
190
 
191
191
  @each $key, $value in $nav-palette {
192
- $selector: if(
193
- starts-with($key, '.') or starts-with($key, '#'),
194
- $key,
195
- str-insert($key, '.', 1)
196
- );
197
-
198
- #{$selector} {
199
- @include clay-nav-variant($value);
192
+ @if not clay-is-map-unset($value) {
193
+ $selector: if(
194
+ starts-with($key, '.') or starts-with($key, '#'),
195
+ $key,
196
+ str-insert($key, '.', 1)
197
+ );
198
+
199
+ #{$selector} {
200
+ @include clay-nav-variant($value);
201
+ }
200
202
  }
201
203
  }
@@ -1,16 +1,18 @@
1
1
  // Popovers
2
2
 
3
3
  @each $selector, $value in $popovers {
4
- $selector: if(
5
- starts-with($selector, '.') or
6
- starts-with($selector, '#') or
7
- starts-with($selector, '%'),
8
- $selector,
9
- str-insert($selector, '.', 1)
10
- );
4
+ @if not clay-is-map-unset($value) {
5
+ $selector: if(
6
+ starts-with($selector, '.') or
7
+ starts-with($selector, '#') or
8
+ starts-with($selector, '%'),
9
+ $selector,
10
+ str-insert($selector, '.', 1)
11
+ );
11
12
 
12
- #{$selector} {
13
- @include clay-popover-variant($value);
13
+ #{$selector} {
14
+ @include clay-popover-variant($value);
15
+ }
14
16
  }
15
17
  }
16
18
 
@@ -150,32 +152,36 @@
150
152
  // Popover Headers
151
153
 
152
154
  @each $selector, $value in $popover-headers {
153
- $selector: if(
154
- starts-with($selector, '.') or
155
- starts-with($selector, '#') or
156
- starts-with($selector, '%'),
157
- $selector,
158
- str-insert($selector, '.', 1)
159
- );
155
+ @if not clay-is-map-unset($value) {
156
+ $selector: if(
157
+ starts-with($selector, '.') or
158
+ starts-with($selector, '#') or
159
+ starts-with($selector, '%'),
160
+ $selector,
161
+ str-insert($selector, '.', 1)
162
+ );
160
163
 
161
- #{$selector} {
162
- @include clay-popover-header-variant($value);
164
+ #{$selector} {
165
+ @include clay-popover-header-variant($value);
166
+ }
163
167
  }
164
168
  }
165
169
 
166
170
  // Popover Bodies
167
171
 
168
172
  @each $selector, $value in $popover-bodies {
169
- $selector: if(
170
- starts-with($selector, '.') or
171
- starts-with($selector, '#') or
172
- starts-with($selector, '%'),
173
- $selector,
174
- str-insert($selector, '.', 1)
175
- );
173
+ @if not clay-is-map-unset($value) {
174
+ $selector: if(
175
+ starts-with($selector, '.') or
176
+ starts-with($selector, '#') or
177
+ starts-with($selector, '%'),
178
+ $selector,
179
+ str-insert($selector, '.', 1)
180
+ );
176
181
 
177
- #{$selector} {
178
- @include clay-popover-header-variant($value);
182
+ #{$selector} {
183
+ @include clay-popover-header-variant($value);
184
+ }
179
185
  }
180
186
  }
181
187