Skip to content

Commit

Permalink
style: optimized Alert close icon show in rtl (ant-design#32286)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg authored Sep 24, 2021
1 parent 4c1f4f9 commit 094f9d6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions components/alert/style/rtl.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
direction: rtl;
}

&&-no-icon {
.@{alert-prefix-cls}-rtl& {
padding: @alert-no-icon-padding-vertical 15px;
}
}

&-icon {
.@{alert-prefix-cls}-rtl & {
margin-right: auto;
Expand All @@ -30,10 +24,17 @@
}
}

&-with-description &-icon {
&-with-description {
.@{alert-prefix-cls}-rtl& {
margin-right: auto;
margin-left: @alert-with-description-padding-vertical;
padding-right: @alert-with-description-icon-size;
padding-left: @alert-with-description-padding-vertical;
}

.@{alert-prefix-cls}-icon {
.@{alert-prefix-cls}-rtl& {
margin-right: auto;
margin-left: @alert-with-description-padding-vertical;
}
}
}
}

0 comments on commit 094f9d6

Please sign in to comment.