@clayui/css 3.62.1 → 3.65.1

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 (66) hide show
  1. package/lib/css/atlas.css +34 -45
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +35 -45
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/bootstrap.css.map +1 -1
  6. package/lib/css/cadmin.css +76 -25
  7. package/lib/css/cadmin.css.map +1 -1
  8. package/lib/images/icons/hierarchy.svg +10 -0
  9. package/lib/images/icons/icons.svg +1 -1
  10. package/lib/images/icons/no-bot.svg +10 -0
  11. package/package.json +3 -2
  12. package/src/images/icons/hierarchy.svg +10 -0
  13. package/src/images/icons/no-bot.svg +10 -0
  14. package/src/scss/_license-text.scss +1 -1
  15. package/src/scss/atlas/variables/_alerts.scss +1 -0
  16. package/src/scss/atlas/variables/_forms.scss +22 -0
  17. package/src/scss/atlas/variables/_globals.scss +1 -1
  18. package/src/scss/cadmin/components/_alerts.scss +26 -6
  19. package/src/scss/cadmin/components/_aspect-ratio.scss +29 -14
  20. package/src/scss/cadmin/components/_badges.scss +26 -6
  21. package/src/scss/cadmin/components/_buttons.scss +129 -63
  22. package/src/scss/cadmin/components/_grid.scss +13 -16
  23. package/src/scss/cadmin/components/_labels.scss +52 -12
  24. package/src/scss/cadmin/components/_loaders.scss +7 -13
  25. package/src/scss/cadmin/components/_popovers.scss +12 -4
  26. package/src/scss/cadmin/components/_print.scss +3 -3
  27. package/src/scss/cadmin/components/_reboot.scss +3 -3
  28. package/src/scss/cadmin/components/_stickers.scss +52 -12
  29. package/src/scss/cadmin/components/_treeview.scss +20 -0
  30. package/src/scss/cadmin/components/_utilities-functional-important.scss +49 -62
  31. package/src/scss/cadmin/components/_utilities.scss +7 -6
  32. package/src/scss/cadmin/variables/_alerts.scss +2 -0
  33. package/src/scss/cadmin/variables/_buttons.scss +23 -0
  34. package/src/scss/cadmin/variables/_forms.scss +13 -10
  35. package/src/scss/cadmin/variables/_globals.scss +25 -1
  36. package/src/scss/cadmin/variables/_treeview.scss +12 -0
  37. package/src/scss/cadmin/variables/_utilities.scss +309 -0
  38. package/src/scss/components/_alerts.scss +25 -5
  39. package/src/scss/components/_aspect-ratio.scss +29 -14
  40. package/src/scss/components/_badges.scss +25 -5
  41. package/src/scss/components/_buttons.scss +98 -70
  42. package/src/scss/components/_grid.scss +9 -11
  43. package/src/scss/components/_labels.scss +50 -10
  44. package/src/scss/components/_loaders.scss +7 -13
  45. package/src/scss/components/_popovers.scss +12 -4
  46. package/src/scss/components/_print.scss +3 -3
  47. package/src/scss/components/_reboot.scss +3 -3
  48. package/src/scss/components/_sidebar.scss +3 -1
  49. package/src/scss/components/_stickers.scss +50 -10
  50. package/src/scss/components/_treeview.scss +12 -0
  51. package/src/scss/components/_utilities-functional-important.scss +40 -18
  52. package/src/scss/components/_utilities.scss +7 -6
  53. package/src/scss/functions/_global-functions.scss +9 -9
  54. package/src/scss/functions/_lx-icons-generated.scss +4 -0
  55. package/src/scss/functions/_type-conversion-functions.scss +6 -6
  56. package/src/scss/mixins/_globals.scss +2 -0
  57. package/src/scss/mixins/_utilities.scss +6 -6
  58. package/src/scss/variables/_alerts.scss +3 -0
  59. package/src/scss/variables/_forms.scss +3 -0
  60. package/src/scss/variables/_globals.scss +25 -1
  61. package/src/scss/variables/_treeview.scss +12 -0
  62. package/src/scss/variables/_utilities.scss +22 -0
  63. package/CHANGELOG.md +0 -2004
  64. package/LICENSES/BSD-3-Clause.txt +0 -30
  65. package/LICENSES/LicenseRef-MIT-Bootstrap.txt +0 -22
  66. package/LICENSES/MIT.txt +0 -19
@@ -18,20 +18,32 @@ fieldset:disabled a.btn {
18
18
 
19
19
  // Button Sizes
20
20
 
21
- %clay-btn-lg {
22
- @include clay-button-variant($cadmin-btn-lg);
23
- }
24
-
25
- .btn-lg {
26
- @extend %clay-btn-lg !optional;
27
- }
28
-
29
- %clay-btn-sm {
30
- @include clay-button-variant($cadmin-btn-sm);
31
- }
32
-
33
- .btn-sm {
34
- @extend %clay-btn-sm !optional;
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(
34
+ starts-with($size, 'btn-'),
35
+ '%clay-#{$size}',
36
+ '%#{str-slice($size, 2)}'
37
+ );
38
+
39
+ #{$placeholder} {
40
+ @include clay-button-variant($value);
41
+ }
42
+
43
+ #{$selector} {
44
+ @extend #{$placeholder} !optional;
45
+ }
46
+ }
35
47
  }
36
48
 
37
49
  // Button Block
@@ -67,65 +79,119 @@ input[type='button'] {
67
79
 
68
80
  // Button Monospaced
69
81
 
70
- .btn-monospaced {
71
- @include clay-button-variant($cadmin-btn-monospaced);
72
-
73
- &.btn .lexicon-icon {
74
- margin-top: 0;
82
+ @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)}'
102
+ );
103
+
104
+ #{$placeholder} {
105
+ @include clay-button-variant($value);
106
+ }
107
+
108
+ #{$selector} {
109
+ @extend #{$placeholder} !optional;
110
+ }
75
111
  }
76
112
  }
77
113
 
78
- %clay-btn-monospaced-lg {
79
- @include clay-button-variant($cadmin-btn-monospaced-lg);
80
- }
81
-
82
- .btn-monospaced.btn-lg {
83
- @extend %clay-btn-monospaced-lg !optional;
84
- }
85
-
86
- %clay-btn-monospaced-sm {
87
- @include clay-button-variant($cadmin-btn-monospaced-sm);
88
- }
89
-
90
- .btn-monospaced.btn-sm {
91
- @extend %clay-btn-monospaced-sm !optional;
92
- }
93
-
94
114
  // Button Variants
95
115
 
96
- @each $cadmin-color, $cadmin-value in $cadmin-btn-palette {
97
- %btn-#{$cadmin-color} {
98
- @include clay-button-variant($cadmin-value);
99
- }
100
-
101
- .btn-#{$cadmin-color} {
102
- @extend %btn-#{$cadmin-color} !optional;
103
- }
104
-
105
- %btn-#{$cadmin-color}-focus {
106
- background-color: map-get($cadmin-value, focus-bg);
107
- border-color: map-get($cadmin-value, focus-border-color);
108
- box-shadow: map-get($cadmin-value, focus-box-shadow);
109
- color: map-get($cadmin-value, focus-color);
116
+ @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
+ str-insert($color, '.btn-', 1)
123
+ );
124
+
125
+ @if (starts-with($color, '%') or map-get($value, extend)) {
126
+ #{$selector} {
127
+ @include clay-button-variant($value);
128
+ }
129
+ } @else {
130
+ $placeholder: if(
131
+ starts-with($color, '.') or starts-with($color, '#'),
132
+ '%#{str-slice($color, 2)}',
133
+ '%btn-#{$color}'
134
+ );
135
+
136
+ $placeholder-focus: if(
137
+ starts-with($color, '.') or starts-with($color, '#'),
138
+ '%#{str-slice($color, 2)}-focus',
139
+ '%btn-#{$color}-focus'
140
+ );
141
+
142
+ #{$placeholder} {
143
+ @include clay-button-variant($value);
144
+ }
145
+
146
+ #{$selector} {
147
+ @extend #{$placeholder} !optional;
148
+ }
149
+
150
+ #{$placeholder-focus} {
151
+ @include clay-button-variant(map-get($value, focus));
152
+ }
110
153
  }
111
154
  }
112
155
 
113
156
  // Button Outline Variants
114
157
 
115
- @each $cadmin-color, $cadmin-value in $cadmin-btn-outline-palette {
116
- %btn-outline-#{$cadmin-color} {
117
- @include clay-button-variant($cadmin-value);
118
- }
119
-
120
- .btn-outline-#{$cadmin-color} {
121
- @extend %btn-outline-#{$cadmin-color} !optional;
122
- }
123
-
124
- %btn-outline-#{$cadmin-color}-focus {
125
- background-color: map-get($cadmin-value, focus-bg);
126
- border-color: map-get($cadmin-value, focus-border-color);
127
- box-shadow: map-get($cadmin-value, focus-box-shadow);
128
- color: map-get($cadmin-value, focus-color);
158
+ @each $color, $value in $cadmin-btn-outline-palette {
159
+ $selector: if(
160
+ starts-with($color, '.') or
161
+ starts-with($color, '#') or
162
+ starts-with($color, '%'),
163
+ $color,
164
+ str-insert($color, '.btn-outline-', 1)
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: if(
173
+ starts-with($color, '.') or starts-with($color, '#'),
174
+ '%#{str-slice($color, 2)}',
175
+ '%btn-outline-#{$color}'
176
+ );
177
+
178
+ $placeholder-focus: if(
179
+ starts-with($color, '.') or starts-with($color, '#'),
180
+ '%#{str-slice($color, 2)}-focus',
181
+ '%btn-outline-#{$color}-focus'
182
+ );
183
+
184
+ #{$placeholder} {
185
+ @include clay-button-variant($value);
186
+ }
187
+
188
+ #{$selector} {
189
+ @extend #{$placeholder} !optional;
190
+ }
191
+
192
+ #{$placeholder-focus} {
193
+ @include clay-button-variant(map-get($value, focus));
194
+ }
129
195
  }
130
196
  }
131
197
 
@@ -2,11 +2,7 @@
2
2
  // Single container class with breakpoint max-widths
3
3
 
4
4
  .container {
5
- margin-left: auto;
6
- margin-right: auto;
7
- padding-left: $cadmin-grid-gutter-width * 0.5;
8
- padding-right: $cadmin-grid-gutter-width * 0.5;
9
- width: 100%;
5
+ @include clay-css($cadmin-clay-container);
10
6
 
11
7
  @each $cadmin-breakpoint,
12
8
  $cadmin-container-max-width in $cadmin-container-max-widths
@@ -23,11 +19,7 @@
23
19
  // 100% wide container at all breakpoints
24
20
 
25
21
  %container-fluid {
26
- margin-left: auto;
27
- margin-right: auto;
28
- padding-left: $cadmin-grid-gutter-width * 0.5;
29
- padding-right: $cadmin-grid-gutter-width * 0.5;
30
- width: 100%;
22
+ @include clay-css($cadmin-clay-container-fluid);
31
23
  }
32
24
 
33
25
  .container-fluid {
@@ -52,12 +44,17 @@
52
44
  }
53
45
 
54
46
  @each $cadmin-name, $cadmin-width in $cadmin-grid-breakpoints {
55
- @if (
56
- $cadmin-container-max-width >
57
- $cadmin-width or
58
- $cadmin-breakpoint ==
59
- $cadmin-name
60
- ) {
47
+ $container-max-width-pos: index(
48
+ $cadmin-grid-breakpoints,
49
+ $cadmin-breakpoint
50
+ map-get($cadmin-grid-breakpoints, $cadmin-breakpoint)
51
+ );
52
+ $grid-breakpoint-pos: index(
53
+ $cadmin-grid-breakpoints,
54
+ $cadmin-name $cadmin-width
55
+ );
56
+
57
+ @if ($container-max-width-pos >= $grid-breakpoint-pos) {
61
58
  .container#{breakpoint-infix($cadmin-name, $cadmin-grid-breakpoints)} {
62
59
  @extend %responsive-container-#{$cadmin-breakpoint}
63
60
  !optional;
@@ -56,24 +56,64 @@
56
56
 
57
57
  // Label Sizes
58
58
 
59
- @each $cadmin-selector, $cadmin-value in $cadmin-label-sizes {
60
- %#{$cadmin-selector} {
61
- @include clay-label-variant($cadmin-value);
62
- }
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}'
77
+ );
78
+
79
+ #{$placeholder} {
80
+ @include clay-label-variant($value);
81
+ }
63
82
 
64
- .#{$cadmin-selector} {
65
- @extend %#{$cadmin-selector} !optional;
83
+ #{$selector} {
84
+ @extend #{$placeholder} !optional;
85
+ }
66
86
  }
67
87
  }
68
88
 
69
89
  // Label Variants
70
90
 
71
- @each $cadmin-color, $cadmin-value in $cadmin-label-palette {
72
- %label-#{$cadmin-color} {
73
- @include clay-label-variant($cadmin-value);
74
- }
91
+ @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}'
109
+ );
110
+
111
+ #{$placeholder} {
112
+ @include clay-label-variant($value);
113
+ }
75
114
 
76
- .label-#{$cadmin-color} {
77
- @extend %label-#{$cadmin-color} !optional;
115
+ #{$selector} {
116
+ @extend #{$placeholder} !optional;
117
+ }
78
118
  }
79
119
  }
@@ -80,7 +80,9 @@
80
80
 
81
81
  @each $selector, $value in $cadmin-loading-animation-sizes {
82
82
  $_selector: if(
83
- starts-with($selector, '.') or starts-with($selector, '#'),
83
+ starts-with($selector, '.') or
84
+ starts-with($selector, '#') or
85
+ starts-with($selector, '%'),
84
86
  $selector,
85
87
  str-insert($selector, '.', 1)
86
88
  );
@@ -93,23 +95,15 @@
93
95
  // Loading Animation Variants
94
96
 
95
97
  @each $selector, $value in $cadmin-loading-animation-palette {
96
- $placeholder: if(
97
- starts-with($selector, '.') or starts-with($selector, '#'),
98
- '%#{str-slice($selector, 2)}',
99
- '%#{$selector}'
100
- );
101
-
102
98
  $_selector: if(
103
- starts-with($selector, '.') or starts-with($selector, '#'),
99
+ starts-with($selector, '.') or
100
+ starts-with($selector, '#') or
101
+ starts-with($selector, '%'),
104
102
  $selector,
105
103
  str-insert($selector, '.', 1)
106
104
  );
107
105
 
108
- #{$placeholder} {
109
- @include clay-spinner-variant($value);
110
- }
111
-
112
106
  #{$_selector} {
113
- @extend #{$placeholder} !optional;
107
+ @include clay-spinner-variant($value);
114
108
  }
115
109
  }
@@ -2,7 +2,9 @@
2
2
 
3
3
  @each $selector, $value in $cadmin-popovers {
4
4
  $selector: if(
5
- starts-with($selector, '.') or starts-with($selector, '#'),
5
+ starts-with($selector, '.') or
6
+ starts-with($selector, '#') or
7
+ starts-with($selector, '%'),
6
8
  $selector,
7
9
  str-insert($selector, '.', 1)
8
10
  );
@@ -154,7 +156,9 @@
154
156
 
155
157
  @each $selector, $value in $cadmin-popover-headers {
156
158
  $selector: if(
157
- starts-with($selector, '.') or starts-with($selector, '#'),
159
+ starts-with($selector, '.') or
160
+ starts-with($selector, '#') or
161
+ starts-with($selector, '%'),
158
162
  $selector,
159
163
  str-insert($selector, '.', 1)
160
164
  );
@@ -168,7 +172,9 @@
168
172
 
169
173
  @each $selector, $value in $cadmin-popover-bodies {
170
174
  $selector: if(
171
- starts-with($selector, '.') or starts-with($selector, '#'),
175
+ starts-with($selector, '.') or
176
+ starts-with($selector, '#') or
177
+ starts-with($selector, '%'),
172
178
  $selector,
173
179
  str-insert($selector, '.', 1)
174
180
  );
@@ -182,7 +188,9 @@
182
188
 
183
189
  @each $selector, $value in $cadmin-popover-widths {
184
190
  $selector: if(
185
- starts-with($selector, '.') or starts-with($selector, '#'),
191
+ starts-with($selector, '.') or
192
+ starts-with($selector, '#') or
193
+ starts-with($selector, '%'),
186
194
  $selector,
187
195
  str-insert($selector, '.', 1)
188
196
  );
@@ -1,6 +1,6 @@
1
- /* REUSE-Snippet-Begin
1
+ /* SPDX-SnippetBegin
2
2
  * SPDX-License-Identifier: MIT
3
- * SPDX-FileCopyrightText: © 2018 HTML5 Boilerplate <https://github.com/h5bp/main.css>
3
+ * SPDX-SnippetCopyrightText: © 2018 HTML5 Boilerplate <https://github.com/h5bp/main.css>
4
4
  */
5
5
 
6
6
  @if $cadmin-enable-print-styles {
@@ -120,4 +120,4 @@
120
120
  }
121
121
  }
122
122
 
123
- /* REUSE-Snippet-End */
123
+ /* SPDX-SnippetEnd */
@@ -1,6 +1,6 @@
1
- /* REUSE-Snippet-Begin
1
+ /* SPDX-SnippetBegin
2
2
  * SPDX-License-Identifier: MIT
3
- * SPDX-FileCopyrightText: © 2016 Nicolas Gallagher and Jonathan Neal <https://github.com/necolas/normalize.css>
3
+ * SPDX-SnippetCopyrightText: © 2016 Nicolas Gallagher and Jonathan Neal <https://github.com/necolas/normalize.css>
4
4
  */
5
5
 
6
6
  html#{$cadmin-selector} {
@@ -393,4 +393,4 @@ html#{$cadmin-selector} {
393
393
  }
394
394
  }
395
395
 
396
- /* REUSE-Snippet-End */
396
+ /* SPDX-SnippetEnd */
@@ -68,25 +68,65 @@
68
68
 
69
69
  // Sticker Sizes
70
70
 
71
- @each $cadmin-selector, $cadmin-value in $cadmin-sticker-sizes {
72
- %#{$cadmin-selector} {
73
- @include clay-sticker-variant($cadmin-value);
74
- }
71
+ @each $selector, $value in $cadmin-sticker-sizes {
72
+ $selector: if(
73
+ starts-with($selector, '.') or
74
+ starts-with($selector, '#') or
75
+ starts-with($selector, '%'),
76
+ $selector,
77
+ str-insert($selector, '.', 1)
78
+ );
79
+
80
+ @if (starts-with($selector, '%') or map-get($value, extend)) {
81
+ #{$selector} {
82
+ @include clay-sticker-variant($value);
83
+ }
84
+ } @else {
85
+ $placeholder: if(
86
+ starts-with($selector, '.') or starts-with($selector, '#'),
87
+ '%#{str-slice($selector, 2)}',
88
+ '%#{$selector}'
89
+ );
90
+
91
+ #{$placeholder} {
92
+ @include clay-sticker-variant($value);
93
+ }
75
94
 
76
- .#{$cadmin-selector} {
77
- @extend %#{$cadmin-selector} !optional;
95
+ #{$selector} {
96
+ @extend #{$placeholder} !optional;
97
+ }
78
98
  }
79
99
  }
80
100
 
81
101
  // Sticker Variants
82
102
 
83
- @each $cadmin-color, $cadmin-value in $cadmin-sticker-palette {
84
- %sticker-#{$cadmin-color} {
85
- @include clay-sticker-variant($cadmin-value);
86
- }
103
+ @each $color, $value in $cadmin-sticker-palette {
104
+ $selector: if(
105
+ starts-with($color, '.') or
106
+ starts-with($color, '#') or
107
+ starts-with($color, '%'),
108
+ $color,
109
+ str-insert($color, '.sticker-', 1)
110
+ );
111
+
112
+ @if (starts-with($color, '%') or map-get($value, extend)) {
113
+ #{$selector} {
114
+ @include clay-sticker-variant($value);
115
+ }
116
+ } @else {
117
+ $placeholder: if(
118
+ starts-with($color, '.') or starts-with($color, '#'),
119
+ '%#{str-slice($color, 2)}',
120
+ '%sticker-#{$color}'
121
+ );
122
+
123
+ #{$placeholder} {
124
+ @include clay-sticker-variant($value);
125
+ }
87
126
 
88
- .sticker-#{$cadmin-color} {
89
- @extend %sticker-#{$cadmin-color} !optional;
127
+ #{$selector} {
128
+ @extend #{$placeholder} !optional;
129
+ }
90
130
  }
91
131
  }
92
132
 
@@ -346,6 +346,16 @@
346
346
  );
347
347
  }
348
348
  }
349
+
350
+ &.treeview-no-hover {
351
+ @include clay-link(
352
+ map-deep-get(
353
+ $cadmin-treeview-light,
354
+ treeview-link,
355
+ treeview-no-hover
356
+ )
357
+ );
358
+ }
349
359
  }
350
360
 
351
361
  .component-action {
@@ -437,6 +447,16 @@
437
447
  );
438
448
  }
439
449
  }
450
+
451
+ &.treeview-no-hover {
452
+ @include clay-link(
453
+ map-deep-get(
454
+ $cadmin-treeview-dark,
455
+ treeview-link,
456
+ treeview-no-hover
457
+ )
458
+ );
459
+ }
440
460
  }
441
461
 
442
462
  .component-action {