refactor: empty

pull/4062/head^2
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} { .@{empty-prefix-cls} {
margin: 0 8px; margin: 0 8px;
font-size: @empty-font-size; font-size: @empty-font-size;
line-height: 22px; line-height: @line-height-base;
text-align: center; text-align: center;
&-image { &-image {
@ -24,10 +24,6 @@
} }
} }
&-description {
margin: 0;
}
&-footer { &-footer {
margin-top: 16px; margin-top: 16px;
} }
@ -56,8 +52,8 @@
// not support the definition because the less variables have no meaning // not support the definition because the less variables have no meaning
& when (@theme = dark) { & when (@theme = dark) {
&-ellipse { &-ellipse {
fill-opacity: 0.08;
fill: @white; fill: @white;
fill-opacity: 0.08;
} }
&-path { &-path {
&-1 { &-1 {
@ -82,8 +78,8 @@
} }
& when not (@theme = dark) { & when not (@theme = dark) {
&-ellipse { &-ellipse {
fill-opacity: 0.8;
fill: #f5f5f5; fill: #f5f5f5;
fill-opacity: 0.8;
} }
&-path { &-path {
&-1 { &-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;
}
}