Browse Source

style: optimize pageheader rtl style (#23401)

pull/23403/head
xrkffgg 5 years ago
committed by GitHub
parent
commit
f748c4ef17
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/page-header/demo/content.md
  2. 10
      components/page-header/style/rtl.less

4
components/page-header/demo/content.md

@ -158,6 +158,10 @@ ReactDOM.render(
align-items: center;
}
#components-page-header-demo-content .ant-page-header-rtl .image {
margin: 0 60px 0 0;
}
#components-page-header-demo-content .example-link {
margin-right: 16px;
}

10
components/page-header/style/rtl.less

@ -19,17 +19,15 @@
&-heading {
&-title {
.@{pageheader-prefix-cls}-rtl & {
float: right;
padding-right: 0;
padding-left: 12px;
margin-right: 0;
margin-left: @margin-sm;
}
}
.@{ant-prefix}-avatar {
.@{pageheader-prefix-cls}-rtl & {
float: right;
margin-right: 0;
margin-left: 12px;
margin-left: @margin-sm;
}
}
@ -54,7 +52,7 @@
> * {
.@{pageheader-prefix-cls}-rtl & {
margin-right: 8px;
margin-right: @margin-sm;
margin-left: 0;
}
}

Loading…
Cancel
Save