From 3a13ef26e1e955e602ca4545687c5a873fcd6268 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 11 May 2021 22:48:31 +0800 Subject: [PATCH] refactor: empty --- components/empty/style/index.less | 12 +++++------- components/empty/style/rtl.less | 10 ++++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 components/empty/style/rtl.less diff --git a/components/empty/style/index.less b/components/empty/style/index.less index dcf0cf882..7259b9aad 100644 --- a/components/empty/style/index.less +++ b/components/empty/style/index.less @@ -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'; diff --git a/components/empty/style/rtl.less b/components/empty/style/rtl.less new file mode 100644 index 000000000..bf3f6c46e --- /dev/null +++ b/components/empty/style/rtl.less @@ -0,0 +1,10 @@ +@import '../../style/themes/index'; +@import '../../style/mixins/index'; + +@empty-prefix-cls: ~'@{ant-prefix}-empty'; + +.@{empty-prefix-cls} { + &-rtl { + direction: rtl; + } +}