@clayui/css 3.46.0 → 3.47.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 (35) hide show
  1. package/lib/css/atlas.css +143 -74
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +107 -56
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/bootstrap.css.map +1 -1
  6. package/lib/css/cadmin.css +123 -64
  7. package/lib/css/cadmin.css.map +1 -1
  8. package/lib/images/icons/icons.svg +1 -1
  9. package/package.json +2 -2
  10. package/src/scss/atlas/variables/_cards.scss +12 -0
  11. package/src/scss/atlas/variables/_list-group.scss +28 -12
  12. package/src/scss/cadmin/components/_cards.scss +10 -120
  13. package/src/scss/cadmin/components/_empty-state.scss +36 -0
  14. package/src/scss/cadmin/components/_links.scss +0 -8
  15. package/src/scss/cadmin/components/_treeview.scss +58 -1
  16. package/src/scss/cadmin/variables/_cards.scss +164 -1
  17. package/src/scss/cadmin/variables/_empty-state.scss +23 -0
  18. package/src/scss/cadmin/variables/_links.scss +14 -0
  19. package/src/scss/cadmin/variables/_list-group.scss +32 -16
  20. package/src/scss/cadmin/variables/_sidebar.scss +1 -1
  21. package/src/scss/cadmin/variables/_treeview.scss +17 -1
  22. package/src/scss/components/_cards.scss +28 -122
  23. package/src/scss/components/_empty-state.scss +30 -0
  24. package/src/scss/components/_links.scss +1 -9
  25. package/src/scss/components/_tables.scss +0 -8
  26. package/src/scss/components/_treeview.scss +58 -1
  27. package/src/scss/mixins/_cards.scss +59 -25
  28. package/src/scss/mixins/_links.scss +22 -2
  29. package/src/scss/variables/_cards.scss +158 -4
  30. package/src/scss/variables/_empty-state.scss +23 -0
  31. package/src/scss/variables/_links.scss +21 -3
  32. package/src/scss/variables/_list-group.scss +22 -12
  33. package/src/scss/variables/_sidebar.scss +3 -3
  34. package/src/scss/variables/_tables.scss +14 -0
  35. package/src/scss/variables/_treeview.scss +21 -1
@@ -19,11 +19,34 @@ $cadmin-card-spacer-y: 12px !default;
19
19
  $cadmin-card-cap-bg: rgba($cadmin-black, 0.03) !default;
20
20
  $cadmin-card-cap-color: null !default;
21
21
 
22
+ // .card-body
23
+
22
24
  $cadmin-card-body-padding-bottom: 16px !default;
23
25
  $cadmin-card-body-padding-left: 16px !default;
24
26
  $cadmin-card-body-padding-right: 16px !default;
25
27
  $cadmin-card-body-padding-top: 16px !default;
26
28
 
29
+ // `flex` enable `flex-grow: 1` for decks and groups so that card blocks take up
30
+ // as much space as possible, ensuring footers are aligned to the bottom.
31
+ // `min-height` workaround for the image size bug in IE
32
+ // See: https://github.com/twbs/bootstrap/pull/28855
33
+
34
+ $cadmin-card-body: () !default;
35
+ $cadmin-card-body: map-deep-merge(
36
+ (
37
+ color: $cadmin-card-color,
38
+ flex: 1 1 auto,
39
+ min-height: 1px,
40
+ padding-bottom: $cadmin-card-body-padding-bottom,
41
+ padding-left: $cadmin-card-body-padding-left,
42
+ padding-right: $cadmin-card-body-padding-right,
43
+ padding-top: $cadmin-card-body-padding-top,
44
+ ),
45
+ $cadmin-card-body
46
+ );
47
+
48
+ // .card-section-header
49
+
27
50
  $cadmin-card-section-header-color: $cadmin-gray-600 !default;
28
51
  $cadmin-card-section-header-font-size: 12px !default;
29
52
  $cadmin-card-section-header-font-weight: $cadmin-font-weight-semi-bold !default;
@@ -32,6 +55,22 @@ $cadmin-card-section-header-margin-bottom: 24px !default;
32
55
  $cadmin-card-section-header-padding: 0 ($cadmin-grid-gutter-width * 0.5) !default;
33
56
  $cadmin-card-section-header-text-transform: uppercase !default;
34
57
 
58
+ $cadmin-card-section-header: () !default;
59
+ $cadmin-card-section-header: map-deep-merge(
60
+ (
61
+ color: $cadmin-card-section-header-color,
62
+ font-size: $cadmin-card-section-header-font-size,
63
+ font-weight: $cadmin-card-section-header-font-weight,
64
+ line-height: $cadmin-card-section-header-line-height,
65
+ margin-bottom: $cadmin-card-section-header-margin-bottom,
66
+ padding: $cadmin-card-section-header-padding,
67
+ text-transform: $cadmin-card-section-header-text-transform,
68
+ ),
69
+ $cadmin-card-section-header
70
+ );
71
+
72
+ // .card-img-overlay
73
+
35
74
  $cadmin-card-img-overlay-padding: 20px !default;
36
75
 
37
76
  // Card Aspect Ratio
@@ -108,6 +147,47 @@ $cadmin-card-aspect-ratio-item-bottom-left: map-deep-merge(
108
147
  $cadmin-card-aspect-ratio-item-bottom-left
109
148
  );
110
149
 
150
+ // .card
151
+
152
+ // `min-width`, see https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
153
+
154
+ $card: () !default;
155
+ $card: map-deep-merge(
156
+ (
157
+ background-color: $cadmin-card-bg,
158
+ border-color: $cadmin-card-border-color,
159
+ border-radius: clay-enable-rounded($cadmin-card-border-radius),
160
+ border-style: $cadmin-card-border-style,
161
+ border-width: $cadmin-card-border-width,
162
+ box-shadow: clay-enable-shadows($cadmin-card-box-shadow),
163
+ display: block,
164
+ height: $cadmin-card-height,
165
+ margin-bottom: $cadmin-card-margin-bottom,
166
+ min-width: 0,
167
+ position: relative,
168
+ word-wrap: break-word,
169
+ aspect-ratio: (
170
+ label: $cadmin-card-aspect-ratio-label,
171
+ ),
172
+ aspect-ratio-item-top-left: $cadmin-card-aspect-ratio-item-top-left,
173
+ aspect-ratio-item-top-center: $cadmin-card-aspect-ratio-item-top-center,
174
+ aspect-ratio-item-top-right: $cadmin-card-aspect-ratio-item-top-right,
175
+ aspect-ratio-item-right-middle:
176
+ $cadmin-card-aspect-ratio-item-right-middle,
177
+ aspect-ratio-item-bottom-right:
178
+ $cadmin-card-aspect-ratio-item-bottom-right,
179
+ aspect-ratio-item-bottom-center:
180
+ $cadmin-card-aspect-ratio-item-bottom-center,
181
+ aspect-ratio-item-bottom-left:
182
+ $cadmin-card-aspect-ratio-item-bottom-left,
183
+ hr: (
184
+ margin-left: 0,
185
+ margin-right: 0,
186
+ ),
187
+ ),
188
+ $card
189
+ );
190
+
111
191
  // Card Title
112
192
 
113
193
  $cadmin-card-title: () !default;
@@ -133,6 +213,13 @@ $cadmin-card-title-link: map-deep-merge(
133
213
  $cadmin-card-title-link
134
214
  );
135
215
 
216
+ $cadmin-card-title: map-deep-merge(
217
+ $cadmin-card-title,
218
+ (
219
+ href: $cadmin-card-title-link,
220
+ )
221
+ );
222
+
136
223
  // Card Subtitle
137
224
 
138
225
  $cadmin-card-subtitle: () !default;
@@ -158,6 +245,13 @@ $cadmin-card-subtitle-link: map-deep-merge(
158
245
  $cadmin-card-subtitle-link
159
246
  );
160
247
 
248
+ $cadmin-card-subtitle: map-deep-merge(
249
+ $cadmin-card-subtitle,
250
+ (
251
+ href: $cadmin-card-subtitle-link,
252
+ )
253
+ );
254
+
161
255
  // Card Link
162
256
 
163
257
  $cadmin-card-link: () !default;
@@ -173,13 +267,82 @@ $cadmin-card-link: map-deep-merge(
173
267
  $cadmin-card-link
174
268
  );
175
269
 
176
- // Card Divider
270
+ // .card-text
271
+
272
+ $cadmin-card-text: () !default;
273
+ $cadmin-card-text: map-deep-merge(
274
+ (
275
+ last-child: (
276
+ margin-bottom: 0,
277
+ ),
278
+ ),
279
+ $cadmin-card-text
280
+ );
281
+
282
+ // .card-divider
177
283
 
178
284
  $cadmin-card-divider-bg: $cadmin-card-border-color !default;
179
285
  $cadmin-card-divider-height: 1px !default;
180
286
  $cadmin-card-divider-spacer-x: null !default;
181
287
  $cadmin-card-divider-spacer-y: 10px !default;
182
288
 
289
+ $cadmin-card-divider: () !default;
290
+ $cadmin-card-divider: map-deep-merge(
291
+ (
292
+ background-color: $cadmin-card-divider-bg,
293
+ height: $cadmin-card-divider-height,
294
+ margin-bottom: $cadmin-card-divider-spacer-y,
295
+ margin-left: $cadmin-card-divider-spacer-x,
296
+ margin-right: $cadmin-card-divider-spacer-x,
297
+ margin-top: $cadmin-card-divider-spacer-y,
298
+ ),
299
+ $cadmin-card-divider
300
+ );
301
+
302
+ // .card-header
303
+
304
+ // `margin-bottom` removes the default margin-bottom of <hN> (h1 - h6)
305
+
306
+ $cadmin-card-header: () !default;
307
+ $cadmin-card-header: map-deep-merge(
308
+ (
309
+ background-color: $cadmin-card-cap-bg,
310
+ border-bottom: $cadmin-card-border-width solid $cadmin-card-border-color,
311
+ color: $cadmin-card-cap-color,
312
+ margin-bottom: 0,
313
+ padding: $cadmin-card-spacer-y $cadmin-card-spacer-x,
314
+ first-child: (
315
+ border-radius:
316
+ clay-enable-rounded(
317
+ $cadmin-card-inner-border-radius
318
+ $cadmin-card-inner-border-radius 0 0
319
+ ),
320
+ ),
321
+ ),
322
+ $cadmin-card-header
323
+ );
324
+
325
+ // .card-footer
326
+
327
+ $cadmin-card-footer: () !default;
328
+ $cadmin-card-footer: map-deep-merge(
329
+ (
330
+ background-color: $cadmin-card-cap-bg,
331
+ border-top: $cadmin-card-border-width solid $cadmin-card-border-color,
332
+ padding: $cadmin-card-spacer-y $cadmin-card-spacer-x,
333
+ last-child: (
334
+ border-radius:
335
+ clay-enable-rounded(
336
+ 0 0 $cadmin-card-inner-border-radius
337
+ $cadmin-card-inner-border-radius
338
+ ),
339
+ ),
340
+ ),
341
+ $cadmin-card-footer
342
+ );
343
+
344
+ // .rounded-*
345
+
183
346
  $cadmin-card-rounded-inner-border-radius: calc(
184
347
  #{$cadmin-rounded-border-radius} - #{$cadmin-card-border-width}
185
348
  ) !default;
@@ -73,3 +73,26 @@ $cadmin-c-empty-state-footer: map-deep-merge(
73
73
  ),
74
74
  $cadmin-c-empty-state-footer
75
75
  );
76
+
77
+ // .c-empty-state-sm
78
+
79
+ $cadmin-c-empty-state-sm: () !default;
80
+ $cadmin-c-empty-state-sm: map-deep-merge(
81
+ (
82
+ c-empty-state-animation: (
83
+ margin: 2.5rem auto 2rem,
84
+ max-width: 268px,
85
+ ),
86
+ c-empty-state-image: (
87
+ max-width: 120px,
88
+ ),
89
+ c-empty-state-title: (
90
+ font-size: 1rem,
91
+ line-height: 1.5,
92
+ ),
93
+ c-empty-state-text: (
94
+ font-size: 0.875rem,
95
+ ),
96
+ ),
97
+ $cadmin-c-empty-state-sm
98
+ );
@@ -252,6 +252,13 @@ $cadmin-component-title-link: map-deep-merge(
252
252
  $cadmin-component-title-link
253
253
  );
254
254
 
255
+ $cadmin-component-title: map-deep-merge(
256
+ $cadmin-component-title,
257
+ (
258
+ href: $cadmin-component-title-link,
259
+ )
260
+ );
261
+
255
262
  // Component Subtitle
256
263
 
257
264
  $cadmin-component-subtitle: () !default;
@@ -283,6 +290,13 @@ $cadmin-component-subtitle-link: map-deep-merge(
283
290
  $cadmin-component-subtitle-link
284
291
  );
285
292
 
293
+ $cadmin-component-subtitle: map-deep-merge(
294
+ $cadmin-component-subtitle,
295
+ (
296
+ href: $cadmin-component-subtitle-link,
297
+ )
298
+ );
299
+
286
300
  // Component Action
287
301
 
288
302
  $cadmin-component-action: () !default;
@@ -73,9 +73,13 @@ $cadmin-list-group-title-link: map-deep-merge(
73
73
  display: inline-block,
74
74
  transition: box-shadow 0.15s ease-in-out,
75
75
  max-width: 100%,
76
- hover-color: $cadmin-gray-900,
77
- focus-box-shadow: $cadmin-component-focus-box-shadow,
78
- focus-outline: 0,
76
+ hover: (
77
+ color: $cadmin-gray-900,
78
+ ),
79
+ focus: (
80
+ box-shadow: $cadmin-component-focus-box-shadow,
81
+ outline: 0,
82
+ ),
79
83
  ),
80
84
  $cadmin-list-group-title-link
81
85
  );
@@ -89,7 +93,7 @@ $cadmin-list-group-title: map-deep-merge(
89
93
  line-height: 1.45,
90
94
  margin-bottom: 0,
91
95
  margin-top: $cadmin-list-group-item-flex-list-group-title-offset-top,
92
- clay-link: $cadmin-list-group-title-link,
96
+ href: $cadmin-list-group-title-link,
93
97
  ),
94
98
  $cadmin-list-group-title
95
99
  );
@@ -106,9 +110,13 @@ $cadmin-list-group-subtitle-link: map-deep-merge(
106
110
  display: inline-block,
107
111
  max-width: 100%,
108
112
  transition: box-shadow 0.15s ease-in-out,
109
- hover-color: $cadmin-gray-900,
110
- focus-box-shadow: $cadmin-component-focus-box-shadow,
111
- focus-outline: 0,
113
+ hover: (
114
+ color: $cadmin-gray-900,
115
+ ),
116
+ focus: (
117
+ box-shadow: $cadmin-component-focus-box-shadow,
118
+ outline: 0,
119
+ ),
112
120
  ),
113
121
  $cadmin-list-group-subtitle-link
114
122
  );
@@ -118,7 +126,7 @@ $cadmin-list-group-subtitle: map-deep-merge(
118
126
  (
119
127
  color: $cadmin-gray-600,
120
128
  margin-bottom: 0,
121
- clay-link: $cadmin-list-group-subtitle-link,
129
+ href: $cadmin-list-group-subtitle-link,
122
130
  ),
123
131
  $cadmin-list-group-subtitle
124
132
  );
@@ -133,9 +141,13 @@ $cadmin-list-group-text-link: map-deep-merge(
133
141
  display: inline-block,
134
142
  max-width: 100%,
135
143
  transition: box-shadow 0.15s ease-in-out,
136
- hover-color: $cadmin-gray-900,
137
- focus-box-shadow: $cadmin-component-focus-box-shadow,
138
- focus-outline: 0,
144
+ hover: (
145
+ color: $cadmin-gray-900,
146
+ ),
147
+ focus: (
148
+ box-shadow: $cadmin-component-focus-box-shadow,
149
+ outline: 0,
150
+ ),
139
151
  ),
140
152
  $cadmin-list-group-text-link
141
153
  );
@@ -146,7 +158,7 @@ $cadmin-list-group-text: map-deep-merge(
146
158
  color: $cadmin-gray-900,
147
159
  line-height: 1.45,
148
160
  margin-bottom: 0,
149
- clay-link: $cadmin-list-group-text-link,
161
+ href: $cadmin-list-group-text-link,
150
162
  ),
151
163
  $cadmin-list-group-text
152
164
  );
@@ -163,9 +175,13 @@ $cadmin-list-group-subtext-link: map-deep-merge(
163
175
  display: inline-block,
164
176
  max-width: 100%,
165
177
  transition: box-shadow 0.15s ease-in-out,
166
- hover-color: $cadmin-gray-900,
167
- focus-box-shadow: $cadmin-component-focus-box-shadow,
168
- focus-outline: 0,
178
+ hover: (
179
+ color: $cadmin-gray-900,
180
+ ),
181
+ focus: (
182
+ box-shadow: $cadmin-component-focus-box-shadow,
183
+ outline: 0,
184
+ ),
169
185
  ),
170
186
  $cadmin-list-group-subtext-link
171
187
  );
@@ -176,7 +192,7 @@ $cadmin-list-group-subtext: map-deep-merge(
176
192
  color: $cadmin-gray-600,
177
193
  line-height: 1.45,
178
194
  margin-bottom: 0,
179
- clay-link: $cadmin-list-group-subtext-link,
195
+ href: $cadmin-list-group-subtext-link,
180
196
  ),
181
197
  $cadmin-list-group-subtext
182
198
  );
@@ -10,7 +10,7 @@ $cadmin-sidebar-header-component-title: map-deep-merge(
10
10
  (
11
11
  font-size: 20px,
12
12
  font-weight: $cadmin-font-weight-semi-bold,
13
- clay-link: (
13
+ href: (
14
14
  color: $cadmin-gray-900,
15
15
  ),
16
16
  ),
@@ -52,6 +52,7 @@ $cadmin-treeview: map-merge(
52
52
  ),
53
53
  ),
54
54
  treeview-link: (
55
+ background-color: transparent,
55
56
  cursor: pointer,
56
57
  display: block,
57
58
  border-color: transparent,
@@ -62,6 +63,7 @@ $cadmin-treeview: map-merge(
62
63
  min-width: 100%,
63
64
  padding: 0,
64
65
  position: relative,
66
+ text-align: left,
65
67
  user-select: none,
66
68
  treeview-dropping-bottom: (
67
69
  box-shadow: 0 2px 0 0 $cadmin-primary-l1,
@@ -80,6 +82,9 @@ $cadmin-treeview: map-merge(
80
82
  box-shadow: $cadmin-component-focus-inset-box-shadow,
81
83
  outline: 0,
82
84
  ),
85
+ disabled: (
86
+ cursor: $cadmin-disabled-cursor,
87
+ ),
83
88
  ),
84
89
  component-action: (
85
90
  display: none,
@@ -160,6 +165,10 @@ $cadmin-treeview-light: map-deep-merge(
160
165
  hover: (
161
166
  color: $cadmin-primary,
162
167
  ),
168
+ disabled: (
169
+ color: $cadmin-secondary,
170
+ opacity: 0.5,
171
+ ),
163
172
  btn-secondary: (
164
173
  background-color: $cadmin-white,
165
174
  ),
@@ -178,6 +187,10 @@ $cadmin-treeview-light: map-deep-merge(
178
187
  background-color: $cadmin-gray-200,
179
188
  color: $cadmin-gray-900,
180
189
  ),
190
+ disabled: (
191
+ background-color: transparent,
192
+ color: rgba($cadmin-gray-600, 0.5),
193
+ ),
181
194
  show: (
182
195
  background-color: null,
183
196
  color: null,
@@ -207,7 +220,7 @@ $cadmin-treeview-dark: map-deep-merge(
207
220
  ),
208
221
  disabled: (
209
222
  background-color: transparent,
210
- color: rgba($cadmin-secondary-l1, 0.04),
223
+ color: rgba($cadmin-secondary-l1, 0.5),
211
224
  ),
212
225
  show: (
213
226
  background-color: null,
@@ -216,6 +229,9 @@ $cadmin-treeview-dark: map-deep-merge(
216
229
  ),
217
230
  component-action: (
218
231
  color: $cadmin-secondary-l1,
232
+ disabled: (
233
+ color: $cadmin-secondary-l1,
234
+ ),
219
235
  ),
220
236
  ),
221
237
  $cadmin-treeview-dark
@@ -1,112 +1,50 @@
1
1
  .card,
2
2
  .card-horizontal {
3
- background-color: $card-bg;
4
- border-color: $card-border-color;
5
- border-style: $card-border-style;
6
- border-width: $card-border-width;
7
-
8
- @include border-radius($card-border-radius);
9
- @include box-shadow($card-box-shadow);
10
-
11
- display: block;
12
- height: $card-height;
13
- margin-bottom: $card-margin-bottom;
14
-
15
- // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
16
-
17
- min-width: 0;
18
- position: relative;
19
- word-wrap: break-word;
3
+ @include clay-card-variant($card);
20
4
 
21
5
  .autofit-col {
22
6
  &:first-child {
23
- @include border-left-radius($card-inner-border-radius);
7
+ border-bottom-left-radius: clay-enable-rounded(
8
+ $card-inner-border-radius
9
+ );
10
+ border-top-left-radius: clay-enable-rounded(
11
+ $card-inner-border-radius
12
+ );
24
13
  }
25
14
 
26
15
  &:last-child {
27
- @include border-right-radius($card-inner-border-radius);
16
+ border-bottom-right-radius: clay-enable-rounded(
17
+ $card-inner-border-radius
18
+ );
19
+ border-top-right-radius: clay-enable-rounded(
20
+ $card-inner-border-radius
21
+ );
28
22
  }
29
23
  }
30
24
 
31
- .aspect-ratio {
32
- .label {
33
- @include clay-css($card-aspect-ratio-label);
34
- }
35
- }
36
-
37
- .aspect-ratio-item-top-left {
38
- @include clay-css($card-aspect-ratio-item-top-left);
39
- }
40
-
41
- .aspect-ratio-item-top-center {
42
- @include clay-css($card-aspect-ratio-item-top-center);
43
- }
44
-
45
- .aspect-ratio-item-top-right {
46
- @include clay-css($card-aspect-ratio-item-top-right);
47
- }
48
-
49
- .aspect-ratio-item-right-middle {
50
- @include clay-css($card-aspect-ratio-item-right-middle);
51
- }
52
-
53
- .aspect-ratio-item-bottom-right {
54
- @include clay-css($card-aspect-ratio-item-bottom-right);
55
- }
56
-
57
- .aspect-ratio-item-bottom-center {
58
- @include clay-css($card-aspect-ratio-item-bottom-center);
59
- }
60
-
61
- .aspect-ratio-item-bottom-left {
62
- @include clay-css($card-aspect-ratio-item-bottom-left);
63
- }
64
-
65
- > hr {
66
- margin-left: 0;
67
- margin-right: 0;
68
- }
69
-
70
25
  > .list-group:first-child {
71
26
  .list-group-item:first-child {
72
- @include border-top-radius($card-border-radius);
27
+ border-top-left-radius: clay-enable-rounded($card-border-radius);
28
+ border-top-right-radius: clay-enable-rounded($card-border-radius);
73
29
  }
74
30
  }
75
31
 
76
32
  > .list-group:last-child {
77
33
  .list-group-item:last-child {
78
- @include border-bottom-radius($card-border-radius);
34
+ border-bottom-left-radius: clay-enable-rounded($card-border-radius);
35
+ border-bottom-right-radius: clay-enable-rounded(
36
+ $card-border-radius
37
+ );
79
38
  }
80
39
  }
81
40
  }
82
41
 
83
42
  .card-body {
84
- color: $card-color;
85
-
86
- // Enable `flex-grow: 1` for decks and groups so that card blocks take up
87
- // as much space as possible, ensuring footers are aligned to the bottom.
88
-
89
- flex: 1 1 auto;
90
-
91
- // Workaround for the image size bug in IE
92
- // See: https://github.com/twbs/bootstrap/pull/28855
93
-
94
- min-height: 1px;
95
-
96
- padding-bottom: $card-body-padding-bottom;
97
- padding-left: $card-body-padding-left;
98
- padding-right: $card-body-padding-right;
99
- padding-top: $card-body-padding-top;
43
+ @include clay-css($card-body);
100
44
  }
101
45
 
102
46
  .card-section-header {
103
- color: $card-section-header-color;
104
- font-size: $card-section-header-font-size;
105
- font-weight: $card-section-header-font-weight;
106
- line-height: $card-section-header-line-height;
107
- margin-bottom: $card-section-header-margin-bottom;
108
- padding: $card-section-header-padding;
109
- text-transform: $card-section-header-text-transform;
47
+ @include clay-css($card-section-header);
110
48
  }
111
49
 
112
50
  // Card Title
@@ -115,24 +53,16 @@
115
53
  @include clay-text-typography($card-title);
116
54
  }
117
55
 
118
- .card-title a {
119
- @include clay-link($card-title-link);
120
- }
121
-
122
56
  // Card Subtitle
123
57
 
124
58
  .card-subtitle {
125
59
  @include clay-text-typography($card-subtitle);
126
60
  }
127
61
 
128
- .card-subtitle a {
129
- @include clay-link($card-subtitle-link);
130
- }
131
-
132
62
  // Card Text
133
63
 
134
- .card-text:last-child {
135
- margin-bottom: 0;
64
+ .card-text {
65
+ @include clay-text-typography($card-text);
136
66
  }
137
67
 
138
68
  // Card Link
@@ -149,32 +79,16 @@
149
79
  }
150
80
  }
151
81
 
82
+ // Card Divider
83
+
152
84
  .card-divider {
153
- background-color: $card-divider-bg;
154
- height: $card-divider-height;
155
- margin-bottom: $card-divider-spacer-y;
156
- margin-left: $card-divider-spacer-x;
157
- margin-right: $card-divider-spacer-x;
158
- margin-top: $card-divider-spacer-y;
85
+ @include clay-css($card-divider);
159
86
  }
160
87
 
161
88
  // Card Header
162
89
 
163
90
  .card-header {
164
- background-color: $card-cap-bg;
165
- border-bottom: $card-border-width solid $card-border-color;
166
- color: $card-cap-color;
167
-
168
- // Removes the default margin-bottom of <hN> (h1 - h6)
169
-
170
- margin-bottom: 0;
171
- padding: $card-spacer-y $card-spacer-x;
172
-
173
- &:first-child {
174
- @include border-radius(
175
- $card-inner-border-radius $card-inner-border-radius 0 0
176
- );
177
- }
91
+ @include clay-card-section-variant($card-header);
178
92
 
179
93
  + .list-group {
180
94
  .list-group-item:first-child {
@@ -200,15 +114,7 @@
200
114
  // Card Footer
201
115
 
202
116
  .card-footer {
203
- background-color: $card-cap-bg;
204
- border-top: $card-border-width solid $card-border-color;
205
- padding: $card-spacer-y $card-spacer-x;
206
-
207
- &:last-child {
208
- @include border-radius(
209
- 0 0 $card-inner-border-radius $card-inner-border-radius
210
- );
211
- }
117
+ @include clay-card-section-variant($card-footer);
212
118
  }
213
119
 
214
120
  @if ($enable-bs4-deprecated) {
@@ -2,6 +2,10 @@
2
2
  @include clay-css($c-empty-state);
3
3
  }
4
4
 
5
+ .c-empty-state-sm {
6
+ @include clay-css($c-empty-state-sm);
7
+ }
8
+
5
9
  .c-empty-state-animation {
6
10
  @include clay-css($c-empty-state-animation);
7
11
  }
@@ -33,3 +37,29 @@
33
37
  .c-empty-state-footer {
34
38
  @include clay-css($c-empty-state-footer);
35
39
  }
40
+
41
+ // C Empty State Small
42
+
43
+ .c-empty-state-sm {
44
+ @include clay-css($c-empty-state-sm);
45
+
46
+ &.c-empty-state-animation {
47
+ @include clay-css(map-get($c-empty-state-sm, c-empty-state-animation));
48
+ }
49
+
50
+ .c-empty-state-image {
51
+ @include clay-css(map-get($c-empty-state-sm, c-empty-state-image));
52
+ }
53
+
54
+ .c-empty-state-title {
55
+ @include clay-css(map-get($c-empty-state-sm, c-empty-state-title));
56
+ }
57
+
58
+ .c-empty-state-text {
59
+ @include clay-css(map-get($c-empty-state-sm, c-empty-state-text));
60
+ }
61
+
62
+ .c-empty-state-footer {
63
+ @include clay-css(map-get($c-empty-state-sm, c-empty-state-footer));
64
+ }
65
+ }