forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_skeleton-styles.scss
49 lines (38 loc) · 967 Bytes
/
_skeleton-styles.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Copyright IBM Corp. 2016, 2023
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//
@use '../../config' as *;
@use '../../utilities/skeleton' as *;
@use '../../utilities/convert';
@use '../../spacing' as *;
/// Skeleton styles
/// @access public
/// @group skeleton
@mixin skeleton-styles {
//skeleton icon
.#{$prefix}--icon--skeleton {
@include skeleton;
display: inline-block;
block-size: convert.to-rem(16px);
inline-size: convert.to-rem(16px);
}
//skeleton placeholder
.#{$prefix}--skeleton__placeholder {
@include skeleton;
block-size: convert.to-rem(100px);
inline-size: convert.to-rem(100px);
}
//skeleton text
.#{$prefix}--skeleton__text {
@include skeleton;
block-size: 1rem;
inline-size: 100%;
margin-block-end: $spacing-03;
}
.#{$prefix}--skeleton__heading {
block-size: 1.5rem;
}
}