From ee80a2f7100a358c8154d5b80b0362f46ba4e3ea Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Thu, 7 May 2020 10:18:51 +0800 Subject: [PATCH] style: optimize layout rtl (#23921) --- components/layout/style/index.less | 1 + components/layout/style/rtl.less | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 components/layout/style/rtl.less diff --git a/components/layout/style/index.less b/components/layout/style/index.less index f186662ae8..11acd3a4d5 100644 --- a/components/layout/style/index.less +++ b/components/layout/style/index.less @@ -123,3 +123,4 @@ } @import './light'; +@import './rtl'; diff --git a/components/layout/style/rtl.less b/components/layout/style/rtl.less new file mode 100644 index 0000000000..da7aca0dd5 --- /dev/null +++ b/components/layout/style/rtl.less @@ -0,0 +1,10 @@ +@import '../../style/themes/index'; +@import '../../style/mixins/index'; + +@layout-prefix-cls: ~'@{ant-prefix}-layout'; + +.@{layout-prefix-cls} { + &-rtl { + direction: rtl; + } +}