refactor: empty

This commit is contained in:
tangjinzhou 2021-05-11 22:48:31 +08:00
parent b96fc440e9
commit 3a13ef26e1
2 changed files with 15 additions and 7 deletions

View File

@ -7,7 +7,7 @@
.@{empty-prefix-cls} {
margin: 0 8px;
font-size: @empty-font-size;
line-height: 22px;
line-height: @line-height-base;
text-align: center;
&-image {
@ -24,10 +24,6 @@
}
}
&-description {
margin: 0;
}
&-footer {
margin-top: 16px;
}
@ -56,8 +52,8 @@
// not support the definition because the less variables have no meaning
& when (@theme = dark) {
&-ellipse {
fill-opacity: 0.08;
fill: @white;
fill-opacity: 0.08;
}
&-path {
&-1 {
@ -82,8 +78,8 @@
}
& when not (@theme = dark) {
&-ellipse {
fill-opacity: 0.8;
fill: #f5f5f5;
fill-opacity: 0.8;
}
&-path {
&-1 {
@ -135,3 +131,5 @@
}
}
}
@import './rtl';

View File

@ -0,0 +1,10 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@empty-prefix-cls: ~'@{ant-prefix}-empty';
.@{empty-prefix-cls} {
&-rtl {
direction: rtl;
}
}