@clayui/css 3.94.0 → 3.95.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 (48) hide show
  1. package/lib/css/atlas.css +190 -188
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +178 -181
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/cadmin.css +377 -178
  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/_buttons.scss +3 -0
  11. package/src/scss/atlas/variables/_pagination.scss +23 -2
  12. package/src/scss/cadmin/components/_alerts.scss +24 -22
  13. package/src/scss/cadmin/components/_aspect-ratio.scss +39 -34
  14. package/src/scss/cadmin/components/_badges.scss +41 -27
  15. package/src/scss/cadmin/components/_buttons.scss +121 -105
  16. package/src/scss/cadmin/components/_forms.scss +19 -15
  17. package/src/scss/cadmin/components/_labels.scss +60 -47
  18. package/src/scss/cadmin/components/_list-group.scss +19 -17
  19. package/src/scss/cadmin/components/_loaders.scss +22 -18
  20. package/src/scss/cadmin/components/_modals.scss +42 -101
  21. package/src/scss/cadmin/components/_navs.scss +10 -8
  22. package/src/scss/cadmin/components/_pagination.scss +1 -1
  23. package/src/scss/cadmin/components/_popovers.scss +48 -40
  24. package/src/scss/cadmin/components/_progress-bars.scss +8 -6
  25. package/src/scss/cadmin/components/_sidebar.scss +9 -7
  26. package/src/scss/cadmin/components/_stickers.scss +54 -47
  27. package/src/scss/cadmin/components/_utilities-functional-important.scss +70 -58
  28. package/src/scss/cadmin/variables/_buttons.scss +1 -1
  29. package/src/scss/cadmin/variables/_menubar.scss +54 -18
  30. package/src/scss/cadmin/variables/_modals.scss +112 -1
  31. package/src/scss/cadmin/variables/_pagination.scss +48 -8
  32. package/src/scss/components/_alerts.scss +6 -6
  33. package/src/scss/components/_aspect-ratio.scss +15 -12
  34. package/src/scss/components/_badges.scss +22 -10
  35. package/src/scss/components/_buttons.scss +22 -14
  36. package/src/scss/components/_forms.scss +10 -8
  37. package/src/scss/components/_labels.scss +28 -19
  38. package/src/scss/components/_modals.scss +38 -90
  39. package/src/scss/components/_navs.scss +5 -1
  40. package/src/scss/components/_pagination.scss +1 -1
  41. package/src/scss/components/_stickers.scss +22 -19
  42. package/src/scss/mixins/_globals.scss +14 -27
  43. package/src/scss/mixins/_links.scss +80 -45
  44. package/src/scss/mixins/_modals.scss +26 -4
  45. package/src/scss/mixins/_nav-nested.scss +10 -3
  46. package/src/scss/variables/_modals.scss +111 -1
  47. package/src/scss/variables/_navs.scss +6 -1
  48. package/src/scss/variables/_pagination.scss +1 -1
@@ -19,29 +19,31 @@ fieldset:disabled a.btn {
19
19
  // Button Sizes
20
20
 
21
21
  @each $size, $value in $cadmin-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 if (starts-with($size, 'btn-')) {
34
+ $placeholder: '%clay-#{$size}';
35
+
36
+ #{$placeholder} {
37
+ @include clay-button-variant($value);
38
+ }
39
+
40
+ #{$selector} {
41
+ @extend #{$placeholder} !optional;
42
+ }
43
+ } @else {
44
+ #{$selector} {
45
+ @include clay-button-variant($value);
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 $cadmin-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 if (starts-with($size, 'btn-monospaced')) {
101
+ $placeholder: '%clay-#{$size}';
102
+
103
+ #{$placeholder} {
104
+ @include clay-button-variant($value);
105
+ }
106
+
107
+ #{$selector} {
108
+ @extend #{$placeholder} !optional;
109
+ }
110
+ } @else {
111
+ #{$selector} {
112
+ @include clay-button-variant($value);
113
+ }
110
114
  }
111
115
  }
112
116
  }
@@ -114,37 +118,43 @@ input[type='button'] {
114
118
  // Button Variants
115
119
 
116
120
  @each $color, $value in $cadmin-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
- );
128
-
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)}';
135
-
136
- $placeholder-focus: '%#{str-slice($selector, 2)}-focus';
137
-
138
- #{$placeholder} {
139
- @include clay-button-variant($value);
140
- }
141
-
142
- #{$selector} {
143
- @extend #{$placeholder} !optional;
144
- }
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
+ );
145
133
 
146
- #{$placeholder-focus} {
147
- @include clay-button-variant(map-get($value, focus));
134
+ @if (starts-with($color, '%') or map-get($value, extend)) {
135
+ #{$selector} {
136
+ @include clay-button-variant($value);
137
+ }
138
+ } @else if (starts-with($color, 'btn-')) {
139
+ $placeholder: '%#{str-slice($selector, 2)}';
140
+
141
+ $placeholder-focus: '%#{str-slice($selector, 2)}-focus';
142
+
143
+ #{$placeholder} {
144
+ @include clay-button-variant($value);
145
+ }
146
+
147
+ #{$selector} {
148
+ @extend #{$placeholder} !optional;
149
+ }
150
+
151
+ #{$placeholder-focus} {
152
+ @include clay-button-variant(map-get($value, focus));
153
+ }
154
+ } @else {
155
+ #{$selector} {
156
+ @include clay-button-variant($value);
157
+ }
148
158
  }
149
159
  }
150
160
  }
@@ -152,37 +162,43 @@ input[type='button'] {
152
162
  // Button Outline Variants
153
163
 
154
164
  @each $color, $value in $cadmin-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
- );
166
-
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)}';
173
-
174
- $placeholder-focus: '%#{str-slice($selector, 2)}-focus';
175
-
176
- #{$placeholder} {
177
- @include clay-button-variant($value);
178
- }
179
-
180
- #{$selector} {
181
- @extend #{$placeholder} !optional;
182
- }
165
+ @if not clay-is-map-unset($value) {
166
+ $selector: if(
167
+ starts-with($color, '.') or
168
+ starts-with($color, '#') or
169
+ starts-with($color, '%'),
170
+ $color,
171
+ if(
172
+ starts-with($color, 'btn'),
173
+ str-insert($color, '.', 1),
174
+ str-insert($color, '.btn-outline-', 1)
175
+ )
176
+ );
183
177
 
184
- #{$placeholder-focus} {
185
- @include clay-button-variant(map-get($value, focus));
178
+ @if (starts-with($color, '%') or map-get($value, extend)) {
179
+ #{$selector} {
180
+ @include clay-button-variant($value);
181
+ }
182
+ } @else if (starts-with($color, 'btn-outline')) {
183
+ $placeholder: '%#{str-slice($selector, 2)}';
184
+
185
+ $placeholder-focus: '%#{str-slice($selector, 2)}-focus';
186
+
187
+ #{$placeholder} {
188
+ @include clay-button-variant($value);
189
+ }
190
+
191
+ #{$selector} {
192
+ @extend #{$placeholder} !optional;
193
+ }
194
+
195
+ #{$placeholder-focus} {
196
+ @include clay-button-variant(map-get($value, focus));
197
+ }
198
+ } @else {
199
+ #{$selector} {
200
+ @include clay-button-variant($value);
201
+ }
186
202
  }
187
203
  }
188
204
  }
@@ -181,14 +181,16 @@ fieldset[disabled] .form-control {
181
181
  }
182
182
 
183
183
  @each $key, $value in $cadmin-input-palette {
184
- $selector: if(
185
- starts-with($key, '.') or starts-with($key, '#'),
186
- $key,
187
- str-insert($key, '.', 1)
188
- );
184
+ @if not clay-is-map-unset($value) {
185
+ $selector: if(
186
+ starts-with($key, '.') or starts-with($key, '#'),
187
+ $key,
188
+ str-insert($key, '.', 1)
189
+ );
189
190
 
190
- #{$selector} {
191
- @include clay-form-control-variant($value);
191
+ #{$selector} {
192
+ @include clay-form-control-variant($value);
193
+ }
192
194
  }
193
195
  }
194
196
 
@@ -324,14 +326,16 @@ select.form-control[multiple] {
324
326
  // Form Control Select Variants
325
327
 
326
328
  @each $key, $value in $cadmin-form-control-select-palette {
327
- $selector: if(
328
- starts-with($key, '.') or starts-with($key, '#'),
329
- $key,
330
- str-insert($key, '.', 1)
331
- );
332
-
333
- #{$selector} {
334
- @include clay-select-variant($value);
329
+ @if not clay-is-map-unset($value) {
330
+ $selector: if(
331
+ starts-with($key, '.') or starts-with($key, '#'),
332
+ $key,
333
+ str-insert($key, '.', 1)
334
+ );
335
+
336
+ #{$selector} {
337
+ @include clay-select-variant($value);
338
+ }
335
339
  }
336
340
  }
337
341
 
@@ -56,32 +56,34 @@
56
56
 
57
57
  // Label Sizes
58
58
 
59
- @each $selector, $value in $cadmin-label-sizes {
60
- $selector: if(
61
- starts-with($selector, '.') or
62
- starts-with($selector, '#') or
63
- starts-with($selector, '%'),
64
- $selector,
65
- str-insert($selector, '.', 1)
66
- );
67
-
68
- @if (starts-with($selector, '%') or map-get($value, extend)) {
69
- #{$selector} {
70
- @include clay-label-variant($value);
71
- }
72
- } @else {
73
- $placeholder: if(
74
- starts-with($selector, '.') or starts-with($selector, '#'),
75
- '%#{str-slice($selector, 2)}',
76
- '%#{$selector}'
59
+ @each $size, $value in $cadmin-label-sizes {
60
+ @if not clay-is-map-unset($value) {
61
+ $selector: if(
62
+ starts-with($size, '.') or
63
+ starts-with($size, '#') or
64
+ starts-with($size, '%'),
65
+ $size,
66
+ str-insert($size, '.', 1)
77
67
  );
78
68
 
79
- #{$placeholder} {
80
- @include clay-label-variant($value);
81
- }
82
-
83
- #{$selector} {
84
- @extend #{$placeholder} !optional;
69
+ @if (starts-with($size, '%') or map-get($value, extend)) {
70
+ #{$selector} {
71
+ @include clay-label-variant($value);
72
+ }
73
+ } @else if (starts-with($size, 'label-')) {
74
+ $placeholder: '%#{size}';
75
+
76
+ #{$placeholder} {
77
+ @include clay-label-variant($value);
78
+ }
79
+
80
+ #{$selector} {
81
+ @extend #{$placeholder} !optional;
82
+ }
83
+ } @else {
84
+ #{$selector} {
85
+ @include clay-label-variant($value);
86
+ }
85
87
  }
86
88
  }
87
89
  }
@@ -89,31 +91,42 @@
89
91
  // Label Variants
90
92
 
91
93
  @each $color, $value in $cadmin-label-palette {
92
- $selector: if(
93
- starts-with($color, '.') or
94
- starts-with($color, '#') or
95
- starts-with($color, '%'),
96
- $color,
97
- str-insert($color, '.label-', 1)
98
- );
99
-
100
- @if (starts-with($color, '%') or map-get($value, extend)) {
101
- #{$selector} {
102
- @include clay-label-variant($value);
103
- }
104
- } @else {
105
- $placeholder: if(
106
- starts-with($color, '.') or starts-with($color, '#'),
107
- '%#{str-slice($color, 2)}',
108
- '%label-#{$color}'
94
+ @if not clay-is-map-unset($value) {
95
+ $deprecated-keys: 'primary', 'secondary', 'success', 'info', 'warning',
96
+ 'danger', 'dark', 'light';
97
+
98
+ $selector: if(
99
+ starts-with($color, '.') or
100
+ starts-with($color, '#') or
101
+ starts-with($color, '%'),
102
+ $color,
103
+ str-insert($color, '.label-', 1)
109
104
  );
110
105
 
111
- #{$placeholder} {
112
- @include clay-label-variant($value);
113
- }
114
-
115
- #{$selector} {
116
- @extend #{$placeholder} !optional;
106
+ @if (starts-with($color, '%') or map-get($value, extend)) {
107
+ #{$selector} {
108
+ @include clay-label-variant($value);
109
+ }
110
+ } @else if
111
+ (
112
+ starts-with($color, 'inverse-') or
113
+ index($deprecated-keys, '#{$color}') !=
114
+ null
115
+ )
116
+ {
117
+ $placeholder: '%label-#{$color}';
118
+
119
+ #{$placeholder} {
120
+ @include clay-label-variant($value);
121
+ }
122
+
123
+ #{$selector} {
124
+ @extend #{$placeholder} !optional;
125
+ }
126
+ } @else {
127
+ #{$selector} {
128
+ @include clay-label-variant($value);
129
+ }
117
130
  }
118
131
  }
119
132
  }
@@ -376,23 +376,25 @@
376
376
  // List Group Item Variants
377
377
 
378
378
  @each $cadmin-color, $cadmin-value in $cadmin-theme-colors {
379
- .list-group-item-#{$cadmin-color} {
380
- background-color: theme-color-level($cadmin-color, -9);
381
- color: theme-color-level($cadmin-color, 6);
382
-
383
- &.list-group-item-action {
384
- @include hover-focus() {
385
- background-color: clay-darken(
386
- theme-color-level($cadmin-color, -9),
387
- 5%
388
- );
389
- color: theme-color-level($cadmin-color, 6);
390
- }
391
-
392
- &.active {
393
- background-color: theme-color-level($cadmin-color, 6);
394
- border-color: theme-color-level($cadmin-color, 6);
395
- color: $cadmin-white;
379
+ @if not clay-is-map-unset($cadmin-value) {
380
+ .list-group-item-#{$cadmin-color} {
381
+ background-color: theme-color-level($cadmin-color, -9);
382
+ color: theme-color-level($cadmin-color, 6);
383
+
384
+ &.list-group-item-action {
385
+ @include hover-focus() {
386
+ background-color: clay-darken(
387
+ theme-color-level($cadmin-color, -9),
388
+ 5%
389
+ );
390
+ color: theme-color-level($cadmin-color, 6);
391
+ }
392
+
393
+ &.active {
394
+ background-color: theme-color-level($cadmin-color, 6);
395
+ border-color: theme-color-level($cadmin-color, 6);
396
+ color: $cadmin-white;
397
+ }
396
398
  }
397
399
  }
398
400
  }
@@ -79,31 +79,35 @@
79
79
  // Loading Animation Sizes
80
80
 
81
81
  @each $selector, $value in $cadmin-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 $cadmin-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
  }