From 6d238a734de9691690efc6c0400c1526507b8bb6 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Tue, 21 Apr 2020 11:25:53 +0800 Subject: [PATCH] feat: search rtl (#23424) --- components/input/style/rtl.less | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/components/input/style/rtl.less b/components/input/style/rtl.less index dd3c4c6d51..e7ffafdd63 100644 --- a/components/input/style/rtl.less +++ b/components/input/style/rtl.less @@ -134,6 +134,35 @@ direction: rtl; } + &-icon { + .@{search-rtl-cls} & { + margin-right: 0.5em; + margin-left: 0; + } + + &::before { + .@{search-rtl-cls} & { + border-left: none; + } + } + + &::after { + .@{search-rtl-cls} & { + right: auto; + left: 0; + border-right: @border-width-base @border-style-base @input-border-color; + transition: all 0.3s; + } + } + } + + &:not(&-enter-button) { + .@{search-rtl-cls}& { + padding-right: @input-padding-horizontal-base; + padding-left: 0; + } + } + &-enter-button { input { .@{search-rtl-cls}& {