xrkffgg
5 years ago
committed by
GitHub
4 changed files with 74 additions and 39 deletions
@ -0,0 +1,47 @@ |
|||
@import '../../style/themes/index'; |
|||
@import '../../style/mixins/index'; |
|||
|
|||
@skeleton-prefix-cls: ~'@{ant-prefix}-skeleton'; |
|||
@skeleton-avatar-prefix-cls: ~'@{skeleton-prefix-cls}-avatar'; |
|||
@skeleton-title-prefix-cls: ~'@{skeleton-prefix-cls}-title'; |
|||
@skeleton-paragraph-prefix-cls: ~'@{skeleton-prefix-cls}-paragraph'; |
|||
|
|||
.@{skeleton-prefix-cls} { |
|||
&-rtl { |
|||
direction: rtl; |
|||
} |
|||
|
|||
&-header { |
|||
.@{skeleton-prefix-cls}-rtl & { |
|||
padding-right: 0; |
|||
padding-left: 16px; |
|||
} |
|||
} |
|||
|
|||
// With active animation |
|||
&.@{skeleton-prefix-cls}-active { |
|||
& .@{skeleton-prefix-cls}-content { |
|||
.@{skeleton-title-prefix-cls}, |
|||
.@{skeleton-paragraph-prefix-cls} > li { |
|||
.@{skeleton-prefix-cls}-rtl& { |
|||
animation-name: ~'@{skeleton-prefix-cls}-loading-rtl'; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.@{skeleton-avatar-prefix-cls} { |
|||
.@{skeleton-prefix-cls}-rtl& { |
|||
animation-name: ~'@{skeleton-prefix-cls}-loading-rtl'; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
@keyframes ~"@{skeleton-prefix-cls}-loading-rtl" { |
|||
0% { |
|||
background-position: 0% 50%; |
|||
} |
|||
100% { |
|||
background-position: 100% 50%; |
|||
} |
|||
} |
@ -0,0 +1,25 @@ |
|||
@import '../../style/themes/index'; |
|||
@import '../../style/mixins/index'; |
|||
|
|||
@spin-prefix-cls: ~'@{ant-prefix}-spin'; |
|||
|
|||
.@{spin-prefix-cls} { |
|||
&-rtl { |
|||
direction: rtl; |
|||
} |
|||
|
|||
&-dot { |
|||
&-spin { |
|||
.@{spin-prefix-cls}-rtl & { |
|||
transform: rotate(-45deg); |
|||
animation-name: antRotateRtl; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
@keyframes antRotateRtl { |
|||
to { |
|||
transform: rotate(-405deg); |
|||
} |
|||
} |
Loading…
Reference in new issue