-
Notifications
You must be signed in to change notification settings - Fork 139
Expand file tree
/
Copy pathskeleton.less
More file actions
115 lines (111 loc) · 2.78 KB
/
skeleton.less
File metadata and controls
115 lines (111 loc) · 2.78 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
@skeleton-prefix-cls: ~"@{css-prefix}skeleton";
@skeleton-item-prefix-cls: ~"@{css-prefix}skeleton-item";
.@{skeleton-item-prefix-cls} {
background: @skeleton-base-color;
border-radius: @border-radius-small;
&-inline {
display: inline-block;
}
&-circle {
border-radius: 50%;
}
&-circle, &-square {
&-small {
width: @skeleton-height-small;
height: @skeleton-height-small;
}
&-large {
width: @skeleton-height-large;
height: @skeleton-height-large;
}
&-default {
width: @skeleton-height-base;
height: @skeleton-height-base;
}
}
&-rect {
&-small {
width: @skeleton-rect-width-small;
height: @skeleton-height-small;
}
&-large {
width: @skeleton-rect-width-large;
height: @skeleton-height-large;
}
&-default {
width: @skeleton-rect-width-base;
height: @skeleton-height-base;
}
}
&-image {
position: relative;
&-small {
width: @skeleton-image-width-small;
height: @skeleton-image-width-small;
}
&-large {
width: @skeleton-image-width-large;
height: @skeleton-image-width-large;
}
&-default {
width: @skeleton-image-width-base;
height: @skeleton-image-width-base;
}
&-icon {
position: absolute;
z-index: 1;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #ccc;
}
}
&-title {
margin-bottom: 28px;
}
&-avatar {
margin-right: @skeleton-item-margin;
}
&-round {
border-radius: @skeleton-border-radius-round;
}
&-inner {
height: 16px;
}
&-animated {
position: relative;
overflow: hidden;
&:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
@skeleton-base-color 25%,
@skeleton-to-color 37%,
@skeleton-base-color 63%
);
background-size: 400% 100%;
animation: ivuSkeletonMove 1.4s ease infinite;
}
}
@keyframes ivuSkeletonMove {
0% {
background-position: 100% 50%;
}
100% {
background-position: 0 50%;
}
}
}
.@{skeleton-prefix-cls} {
.@{skeleton-item-prefix-cls} {
margin-top: @skeleton-item-margin;
}
.@{skeleton-item-prefix-cls}:first-child {
margin-top: 0;
}
}