@clayui/css 3.127.0 → 3.130.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 (49) hide show
  1. package/lib/css/atlas.css +254 -72
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +205 -94
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/cadmin.css +238 -74
  6. package/lib/css/cadmin.css.map +1 -1
  7. package/lib/images/icons/icons.svg +1 -1
  8. package/lib/images/icons/send.svg +9 -0
  9. package/lib/images/icons/speed.svg +10 -0
  10. package/lib/images/icons/voice.svg +9 -0
  11. package/package.json +2 -2
  12. package/src/images/icons/send.svg +9 -0
  13. package/src/images/icons/speed.svg +10 -0
  14. package/src/images/icons/voice.svg +9 -0
  15. package/src/scss/_license-text.scss +1 -1
  16. package/src/scss/atlas/variables/_forms.scss +1 -0
  17. package/src/scss/atlas/variables/_globals.scss +2 -0
  18. package/src/scss/cadmin/components/_dropdowns.scss +10 -0
  19. package/src/scss/cadmin/components/_forms.scss +16 -14
  20. package/src/scss/cadmin/components/_grid.scss +3 -1
  21. package/src/scss/cadmin/components/_input-groups.scss +12 -1
  22. package/src/scss/cadmin/components/_type.scss +5 -1
  23. package/src/scss/cadmin/components/_utilities-functional-important.scss +11 -0
  24. package/src/scss/cadmin/variables/_custom-forms.scss +1 -1
  25. package/src/scss/cadmin/variables/_dropdowns.scss +3 -0
  26. package/src/scss/cadmin/variables/_forms.scss +15 -0
  27. package/src/scss/cadmin/variables/_globals.scss +2 -0
  28. package/src/scss/cadmin/variables/_utilities.scss +16 -0
  29. package/src/scss/components/_dropdowns.scss +10 -0
  30. package/src/scss/components/_forms.scss +16 -14
  31. package/src/scss/components/_grid.scss +3 -1
  32. package/src/scss/components/_input-groups.scss +12 -1
  33. package/src/scss/components/_type.scss +5 -1
  34. package/src/scss/components/_utilities-functional-important.scss +8 -0
  35. package/src/scss/functions/_lx-icons-generated.scss +6 -0
  36. package/src/scss/mixins/_alerts.scss +104 -48
  37. package/src/scss/mixins/_badges.scss +75 -33
  38. package/src/scss/mixins/_buttons.scss +503 -225
  39. package/src/scss/mixins/_cards.scss +619 -277
  40. package/src/scss/mixins/_close.scss +42 -24
  41. package/src/scss/mixins/_custom-forms.scss +864 -581
  42. package/src/scss/mixins/_dropdown-menu.scss +466 -223
  43. package/src/scss/mixins/_forms.scss +0 -13
  44. package/src/scss/mixins/_links.scss +564 -282
  45. package/src/scss/variables/_custom-forms.scss +1 -1
  46. package/src/scss/variables/_dropdowns.scss +3 -0
  47. package/src/scss/variables/_forms.scss +10 -0
  48. package/src/scss/variables/_globals.scss +2 -0
  49. package/src/scss/variables/_utilities.scss +16 -0
@@ -245,7 +245,8 @@
245
245
  }
246
246
  }
247
247
 
248
- .btn-monospaced {
248
+ .btn-monospaced,
249
+ .input-group-inset-icon {
249
250
  @include clay-button-variant(
250
251
  $input-group-inset-item-btn-monospaced
251
252
  );
@@ -260,6 +261,16 @@
260
261
  }
261
262
  }
262
263
 
264
+ .input-group-inset-icon {
265
+ align-items: center;
266
+ display: flex;
267
+ justify-content: center;
268
+
269
+ .lexicon-icon {
270
+ margin-top: 0;
271
+ }
272
+ }
273
+
263
274
  .input-group-item .input-group-inset-before.form-control {
264
275
  @include border-left-radius(0);
265
276
  @include border-right-radius($input-border-radius);
@@ -130,11 +130,15 @@ mark.clay-dark,
130
130
 
131
131
  // Lists
132
132
 
133
- .list-unstyled {
133
+ %list-unstyled {
134
134
  list-style: none;
135
135
  padding-left: 0;
136
136
  }
137
137
 
138
+ .list-unstyled {
139
+ @extend %list-unstyled;
140
+ }
141
+
138
142
  // Inline turns list items into inline-block
139
143
 
140
144
  .list-inline {
@@ -855,4 +855,12 @@
855
855
 
856
856
  .c-prefers-reduced-motion {
857
857
  @include clay-css($c-prefers-reduced-motion);
858
+
859
+ .loading-animation-squares {
860
+ @extend %loading-animation !optional;
861
+
862
+ @include clay-map-to-css(
863
+ map-get($c-prefers-reduced-motion, '.loading-animation-squares')
864
+ );
865
+ }
858
866
  }
@@ -780,6 +780,8 @@
780
780
 
781
781
  'select': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline select-border" d="M448 64v384H64V64h384M64 0C28.7 0 0 28.7 0 64v384c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64z" fill="#{$color}"/><path class="lexicon-icon-outline select-caret-up" fill="#{$color}" d="M414.5 224H278.8l67.9-67.9z"/><path class="lexicon-icon-outline select-caret-down" fill="#{$color}" d="M278.8 288h135.7l-67.8 67.9z"/><path class="lexicon-icon-outline select-s" d="M104.8 306.8c14.2 20.2 94.7 49.1 96.9-3.6C205 259 89.5 268.5 91.5 193.3c6-77.3 100-83.3 143.7-35.9-6.2 8.6-20.2 26.4-20.2 26.4-43.2-35.8-84.9-17.7-83.6 7.5C129 237 238 215 242.2 300.1c2.8 92.4-135.7 76.4-160.7 34.9l23.3-28.2z" fill="#{$color}"/></svg>',
782
782
 
783
+ 'send': '<svg class="lexicon-icon" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path class="lexicon-icon-outline" fill-rule="evenodd" clip-rule="evenodd" d="M15.343 9.148c.876-.427.876-1.869 0-2.296L1.488.098C.78-.246 0 .356 0 1.246v3.377c0 .951.736 1.74 1.684 1.806l4.65.326h.638c.592 0 1.073.557 1.073 1.245 0 .688-.48 1.245-1.073 1.245h-.637l-4.65.326A1.81 1.81 0 0 0 0 11.377v3.377c0 .89.781 1.492 1.488 1.148l13.855-6.754Z" fill="#{$color}"/></svg>',
784
+
783
785
  'seo': '<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path class="lexicon-icon-outline" d="M111.994 152.002c0-13.276 10.734-24.001 23.999-24.001 13.265 0 23.999 10.725 23.999 24.001v128.001c0 13.275-10.734 24-23.999 24-13.265 0-23.999-10.725-23.999-24V152.002Zm143.993 96.001c0-13.276 10.734-24.001 23.999-24.001 13.265 0 23.999 10.725 23.999 24.001v32c0 13.275-10.734 24-23.999 24-13.265 0-23.999-10.725-23.999-24v-32Z" fill="#{$color}"/><path class="lexicon-icon-outline" clip-rule="evenodd" d="M499.207 455.48 377.713 333.378C523.706 92.276 229.62-102.426 59.529 59.375-105.563 245.277 101.127 519.98 332.915 378.38l121.494 118.8c35.098 38.6 79.996-6.4 44.798-41.7ZM206.221 63.575c191.891 0 198.091 289.003 0 289.003-192.89 0-187.39-289.003 0-289.003Z" fill="#{$color}"/><path class="lexicon-icon-outline" d="M183.991 200.002c0-13.275 10.734-24 23.999-24 13.265 0 23.999 10.725 23.999 24v80.001c0 13.275-10.734 24-23.999 24-13.265 0-23.999-10.725-23.999-24v-80.001Z" fill="#{$color}"/></svg>',
784
786
 
785
787
  'separator': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline separator-content-2" d="M416 448H96c-17.7 0-32-14.3-32-32v-32c0-17.7 14.3-32 32-32h320c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32z" fill="#{$color}"/><path class="lexicon-icon-outline separator-divider" d="M464 272H48c-21.2 0-20.5-32 0-32h416c20.8 0 21.8 32 0 32z" fill="#{$color}"/><path class="lexicon-icon-outline separator-content-1" d="M416 160H96c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h320c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32z" fill="#{$color}"/></svg>',
@@ -832,6 +834,8 @@
832
834
 
833
835
  'special-character': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline" d="M255.87 32C35.55 43.31 12.72 299.8 151.6 384H96.29c-43.54 0-42.58 64 0 64h127.99v-78.07c0-12.64-7.49-24.01-19.08-29.07C90.01 293.65 105.82 101.28 256.58 96c144.34 3.53 171.57 193.26 50.77 244.86-11.58 5.06-19.08 16.43-19.08 29.07V448h127.99c41.84 0 42.8-64 0-64h-55.31C501.05 301.56 474.7 38.92 255.87 32z" fill="#{$color}"/></svg>',
834
836
 
837
+ 'speed': '<svg class="lexicon-icon" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path class="lexicon-icon-outline lx-speed-outline" d="M12.985 6.67A5.962 5.962 0 0 1 14 10.003c0 .702-.121 1.375-.343 2H2.342a5.973 5.973 0 0 1-.342-2c0-3.308 2.694-6 6-6 .604 0 1.188.09 1.738.257l1.55-1.55A7.951 7.951 0 0 0 8 2.004c-4.41 0-8 3.587-8 8 0 .97.174 1.902.492 2.765.297.803 1.065 1.235 1.815 1.235h11.385c.75 0 1.518-.432 1.815-1.235A7.961 7.961 0 0 0 16 10.004a7.958 7.958 0 0 0-1.58-4.768L12.985 6.67Z" fill="#{$color}"/><path class="lexicon-icon-outline lx-speed-dial" d="M6.92 10.162a1.316 1.316 0 0 1 .076-2.078l5.908-4.243a.206.206 0 0 1 .285.291L8.815 9.944a1.316 1.316 0 0 1-1.896.218Z" fill="#{$color}"/></svg>',
838
+
835
839
  'square-hole-multi': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline lx-square-hole-multi-square-1" d="M460 0H148c-28.6 0-52 23.4-52 52v12h320c17.7 0 32 14.3 32 32v320h12c28.6 0 52-23.4 52-52V52c0-28.6-23.4-52-52-52z" fill="#{$color}"/><path class="lexicon-icon-outline lx-square-hole-multi-square-2" d="M364 96H52c-28.6 0-52 23.4-52 52v312c0 28.6 23.4 52 52 52h312c28.6 0 52-23.4 52-52V148c0-28.6-23.4-52-52-52zm-78 286H130V226h156v156z" fill="#{$color}"/></svg>',
836
840
 
837
841
  'square-hole': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline" d="M448 0H64A64 64 0 0 0 0 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V64a64 64 0 0 0-64-64Zm-96 352H160V160h192Z" fill="#{$color}"/></svg>',
@@ -954,6 +958,8 @@
954
958
 
955
959
  'vocabulary': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline lx-vocabulary-a" d="M145.689 252.622c15.808 7.903 35.029 1.497 42.933-14.31L195.777 224h120.446l7.155 14.311c5.607 11.214 16.908 17.697 28.646 17.696 4.81 0 9.694-1.089 14.287-3.386 15.807-7.903 22.214-27.125 14.311-42.932l-96-192a32 32 0 0 0-57.244 0l-96 192c-7.903 15.808-1.496 35.029 14.311 42.933zM256 103.554 284.223 160h-56.446L256 103.554z" fill="#{$color}"/><path class="lexicon-icon-outline lx-vocabulary-b" d="M160 352v-64c0-17.673-14.327-32-32-32H0v256h160c17.673 0 32-14.327 32-32v-96c0-17.673-14.327-32-32-32zm-64-32v32H64v-32h32zm32 128H64v-32h64v32z" fill="#{$color}"/><path class="lexicon-icon-outline lx-vocabulary-c" d="M478.736 448.025c-16.4.646-18.544.48-20.266.344-2.576-.202-5.14-.369-10.47-.369-35.29 0-64-28.71-64-64s28.71-64 64-64c15.178 0 28.193 1.474 28.295 1.485 17.567 2.04 33.444-10.526 35.49-28.08 2.046-17.554-10.526-33.443-28.08-35.49-.67-.078-16.652-1.915-35.705-1.915-70.58 0-128 57.42-128 128s57.42 128 128 128c3.255 0 4.229.076 5.46.173 2.357.185 4.5.325 8.43.325 3.96 0 9.737-.143 19.374-.523 17.659-.698 31.409-15.58 30.71-33.239-.697-17.66-15.608-31.434-33.238-30.71z" fill="#{$color}"/></svg>',
956
960
 
961
+ 'voice': '<svg class="lexicon-icon" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path class="lexicon-icon-outline" fill-rule="evenodd" clip-rule="evenodd" d="M14.139 1.922a.9.9 0 0 0-1.353 1.187c.765.872 1.21 2.267 1.225 3.753.015 1.486-.403 2.886-1.15 3.768a.9.9 0 0 0 1.374 1.163c1.107-1.307 1.594-3.174 1.576-4.95-.018-1.774-.542-3.633-1.672-4.921Zm-8.537 9.265a8.667 8.667 0 0 0-2.5.354c-1.047.314-1.992.837-2.7 1.571-.506.525-.047 1.279.681 1.279h.476c.253 0 .494-.1.698-.25.013-.01.025-.02.039-.029.808-.577 1.999-.928 3.3-.925 1.301.004 2.497.362 3.31.944l.021.015c.202.147.44.245.69.245h.486c.73 0 1.187-.758.676-1.281-.709-.725-1.65-1.246-2.692-1.56a8.714 8.714 0 0 0-2.485-.363ZM2.352 6.79c0 1.041.447 1.973 1.152 2.596.566.5 1.298.802 2.098.802a3.15 3.15 0 0 0 2.089-.795A3.455 3.455 0 0 0 8.85 6.79c0-1.877-1.454-3.398-3.25-3.398-1.794 0-3.25 1.521-3.25 3.398Zm4.5 0c0 .857-.643 1.398-1.25 1.398s-1.25-.54-1.25-1.398c0-.857.643-1.398 1.25-1.398s1.25.54 1.25 1.398Zm2.947-2.915a.75.75 0 0 1 1.06-.027c.832.79 1.22 1.935 1.234 3.029.013 1.093-.348 2.247-1.164 3.05a.75.75 0 1 1-1.052-1.07c.462-.455.725-1.18.716-1.962-.01-.781-.29-1.507-.766-1.96a.75.75 0 0 1-.028-1.06Z" fill="#{$color}"/></svg>',
962
+
957
963
  'warehouse': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline lx-warehouse-square-1" d="M176 215c0-18.2 14.3-33 32-33h32c17.7 0 32 14.8 32 33v33c0 18.2-14.3 33-32 33h-32c-17.7 0-32-14.8-32-33v-33z" fill="#{$color}"/><path class="lexicon-icon-outline lx-warehouse-square-2" d="M240 347.1c0-18.2-14.3-33-32-33h-32c-17.7 0-32 14.8-32 33v33c0 18.2 14.3 33 32 33h32c17.7 0 32-14.8 32-33v-33z" fill="#{$color}"/><path class="lexicon-icon-outline lx-warehouse-square-3" d="M336 314.1c17.7 0 32 14.8 32 33v33c0 18.2-14.3 33-32 33h-32c-17.7 0-32-14.8-32-33v-33c0-18.2 14.3-33 32-33h32z" fill="#{$color}"/><path class="lexicon-icon-outline lx-warehouse-border" d="M217.6 13.5c22.8-17.6 54-17.6 76.8 0l192 148.6c16.1 12.5 25.6 32.1 25.6 52.9v297.3H0V215c0-20.8 9.5-40.4 25.6-52.9l192-148.6zM448 215 256 66.3 64 215v231.2h384V215z" clip-rule="evenodd" fill-rule="evenodd" fill="#{$color}"/></svg>',
958
964
 
959
965
  'warning-full': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline" d="m506.3 409.3-214-353.7c-16.8-30.6-55.8-32.6-72.6 0L5.7 409.3C-8 436.5 5 480 42 480h428c36 0 52.5-43.5 36.3-70.7zM224 392c0-42.5 64-42 64 0 0 41.5-64 42.5-64 0zm64-104c0 42.5-64 40.5-64 0V184c0-43 64-43.5 64 0v104z" fill="#{$color}"/></svg>',
@@ -152,87 +152,143 @@
152
152
  );
153
153
 
154
154
  @if ($enabled) {
155
- @include clay-css($base);
155
+ @if (length($base) != 0) {
156
+ @include clay-css($base);
157
+ }
158
+
159
+ $_first-child: map-get($map, first-child);
156
160
 
157
- &:first-child {
158
- @include clay-css(map-get($map, first-child));
161
+ @if ($_first-child) {
162
+ &:first-child {
163
+ @include clay-css($_first-child);
164
+ }
159
165
  }
160
166
 
161
- &:last-child {
162
- @include clay-css(map-get($map, last-child));
167
+ $_last-child: map-get($map, last-child);
168
+
169
+ @if ($_last-child) {
170
+ &:last-child {
171
+ @include clay-css($_last-child);
172
+ }
163
173
  }
164
174
 
165
- hr {
166
- @include clay-css(map-get($map, hr));
175
+ $_hr: map-get($map, hr);
176
+
177
+ @if ($_hr) {
178
+ hr {
179
+ @include clay-css($_hr);
180
+ }
167
181
  }
168
182
 
169
- &.alert-dismissible {
170
- @include clay-css(setter(map-get($map, alert-dismissible), ()));
183
+ $_alert-dismissible: map-get($map, alert-dismissible);
171
184
 
172
- .container,
173
- .container-fluid {
174
- @include clay-css(
175
- setter(
176
- map-deep-get(
177
- $map,
178
- alert-dismissible,
179
- container-fluid
180
- ),
181
- ()
182
- )
185
+ @if ($_alert-dismissible) {
186
+ &.alert-dismissible {
187
+ @include clay-css($_alert-dismissible);
188
+
189
+ $_container-fluid: map-get(
190
+ $_alert-dismissible,
191
+ container-fluid
183
192
  );
193
+
194
+ @if ($_container-fluid) {
195
+ }
196
+ .container,
197
+ .container-fluid {
198
+ @include clay-css($_container-fluid);
199
+ }
184
200
  }
185
201
  }
186
202
 
187
- .alert-indicator {
188
- @include clay-css($alert-indicator);
203
+ @if (length($alert-indicator) != 0) {
204
+ .alert-indicator {
205
+ @include clay-css($alert-indicator);
189
206
 
190
- .lexicon-icon {
191
- @include clay-css(map-get($alert-indicator, lexicon-icon));
192
- }
207
+ $_lexicon-icon: map-get($alert-indicator, lexicon-icon);
208
+
209
+ @if ($_lexicon-icon) {
210
+ .lexicon-icon {
211
+ @include clay-css(
212
+ map-get($alert-indicator, lexicon-icon)
213
+ );
214
+ }
215
+ }
216
+
217
+ $_lead: map-get($alert-indicator, lead);
193
218
 
194
- + .lead {
195
- @include clay-css(map-get($alert-indicator, lead));
219
+ @if ($_lead) {
220
+ + .lead {
221
+ @include clay-css(map-get($alert-indicator, lead));
222
+ }
223
+ }
196
224
  }
197
225
  }
198
226
 
199
- .alert-btn {
200
- @include clay-button-variant(map-get($map, alert-btn));
227
+ $_alert-btn: map-get($map, alert-btn);
228
+
229
+ @if ($_alert-btn) {
230
+ .alert-btn {
231
+ @include clay-button-variant($_alert-btn);
232
+ }
201
233
  }
202
234
 
203
- .btn-group {
204
- @include clay-container(map-get($map, btn-group));
235
+ $_btn-group: map-get($map, btn-group);
236
+
237
+ @if ($_btn-group) {
238
+ .btn-group {
239
+ @include clay-container($_btn-group);
240
+ }
205
241
  }
206
242
 
207
- .btn-group-item {
208
- @include clay-container(map-get($map, btn-group-item));
243
+ $_btn-group-item: map-get($map, btn-group-item);
244
+
245
+ @if ($_btn-group-item) {
246
+ .btn-group-item {
247
+ @include clay-container($_btn-group-item);
248
+ }
209
249
  }
210
250
 
211
- .close {
212
- @include clay-close($close);
251
+ @if (length($close) != 0) {
252
+ .close {
253
+ @include clay-close($close);
254
+ }
213
255
  }
214
256
 
215
- .container,
216
- .container-fluid {
217
- @include clay-css(setter(map-get($map, container-fluid), ()));
257
+ $_container-fluid: map-get($map, container-fluid);
258
+
259
+ @if ($_container-fluid) {
260
+ .container,
261
+ .container-fluid {
262
+ @include clay-css($_container-fluid);
263
+ }
218
264
  }
219
265
 
220
- .lead {
221
- @include clay-css($lead);
266
+ @if (length($lead) != 0) {
267
+ .lead {
268
+ @include clay-css($lead);
269
+ }
222
270
  }
223
271
 
224
- .alert-link {
225
- @include clay-link($alert-link);
272
+ @if (length($alert-link) != 0) {
273
+ .alert-link {
274
+ @include clay-link($alert-link);
275
+ }
226
276
  }
227
277
 
228
- .component-title {
229
- @include clay-text-typography(map-get($map, component-title));
278
+ $_compontent-title: map-get($map, compontent-title);
279
+
280
+ @if ($_compontent-title) {
281
+ .component-title {
282
+ @include clay-text-typography($_component-title);
283
+ }
230
284
  }
231
285
 
232
- .component-subtitle {
233
- @include clay-text-typography(
234
- map-get($map, component-subtitle)
235
- );
286
+ $_component-subtitle: map-get($map, component-subtitle);
287
+
288
+ @if ($_component-subtitle) {
289
+ .component-subtitle {
290
+ @include clay-text-typography($_component-subtitle);
291
+ }
236
292
  }
237
293
 
238
294
  @each $key, $properties in map-get($map, custom-selectors) {
@@ -178,64 +178,106 @@
178
178
  $badge-item-expand: setter(map-get($map, badge-item-expand), ());
179
179
 
180
180
  @if ($enabled) {
181
- @include clay-css($base);
181
+ @if (length($base) != 0) {
182
+ @include clay-css($base);
183
+ }
182
184
 
183
185
  // Empty badges collapse automatically
184
186
 
185
- &:empty {
186
- @include clay-css(map-get($map, empty));
187
- }
187
+ $_empty: map-get($map, empty);
188
188
 
189
- &[href],
190
- &[type] {
191
- @include clay-link($href);
189
+ @if ($_empty) {
190
+ &:empty {
191
+ @include clay-css(map-get($map, empty));
192
+ }
192
193
  }
193
194
 
194
- a {
195
- @include clay-link($link);
195
+ @if (length($href) != 0) {
196
+ &[href],
197
+ &[type] {
198
+ @include clay-link($href);
199
+ }
196
200
  }
197
201
 
198
- .badge-item {
199
- @include clay-css($badge-item);
200
-
202
+ @if (length($link) != 0) {
201
203
  a {
202
- @include clay-link(map-get($badge-item, link));
204
+ @include clay-link($link);
203
205
  }
206
+ }
204
207
 
205
- .btn-unstyled {
206
- @include clay-button-variant(
207
- map-get($badge-item, btn-unstyled)
208
- );
209
- }
208
+ @if (length($badge-item) != 0) {
209
+ .badge-item {
210
+ @include clay-css($badge-item);
210
211
 
211
- .close {
212
- @include clay-close(map-get($badge-item, close));
213
- }
212
+ $_link: map-get($badge-item, link);
213
+
214
+ @if ($_link) {
215
+ a {
216
+ @include clay-link($_link);
217
+ }
218
+ }
219
+
220
+ $_btn-unstyled: map-get($badge-item, btn-unstyled);
214
221
 
215
- .lexicon-icon {
216
- @include clay-css(map-get($badge-item, lexicon-icon));
222
+ @if ($_btn-unstyled) {
223
+ .btn-unstyled {
224
+ @include clay-button-variant($_btn-unstyled);
225
+ }
226
+ }
227
+
228
+ $_close: map-get($badge-item, close);
229
+
230
+ @if ($_close) {
231
+ .close {
232
+ @include clay-close($_close);
233
+ }
234
+ }
235
+
236
+ $_lexicon-icon: map-get($badge-item, lexicon-icon);
237
+
238
+ @if ($_lexicon-icon) {
239
+ .lexicon-icon {
240
+ @include clay-css($_lexicon-icon);
241
+ }
242
+ }
217
243
  }
218
244
  }
219
245
 
220
- .badge-item-expand {
221
- @include clay-css($badge-item-expand);
246
+ @if (length($badge-item-expand) != 0) {
247
+ .badge-item-expand {
248
+ @include clay-css($badge-item-expand);
222
249
 
223
- a {
224
- @include clay-link(map-get($badge-item-expand, link));
250
+ $_link: map-get($badge-item-expand, link);
251
+
252
+ @if ($_link) {
253
+ a {
254
+ @include clay-link($_link);
255
+ }
256
+ }
225
257
  }
226
258
  }
227
259
 
228
- .badge-item-before {
229
- @include clay-css(map-get($map, badge-item-before));
260
+ $_badge-item-before: map-get($map, badge-item-before);
261
+
262
+ @if ($_badge-item-before) {
263
+ .badge-item-before {
264
+ @include clay-css($_badge-item-before);
265
+ }
230
266
  }
231
267
 
232
- .badge-item-after {
233
- @include clay-css(map-get($map, badge-item-after));
268
+ $_badge-item-after: map-get($map, badge-item-after);
269
+
270
+ @if ($_badge-item-after) {
271
+ .badge-item-after {
272
+ @include clay-css($_badge-item-after);
273
+ }
234
274
  }
235
275
 
236
276
  @if (map-get($c-inner, enabled)) {
237
- > .c-inner {
238
- @include clay-css($c-inner);
277
+ @if (length($c-inner) != 0) {
278
+ > .c-inner {
279
+ @include clay-css($c-inner);
280
+ }
239
281
  }
240
282
  }
241
283
  }