Skip to content

Commit

Permalink
fix(module:page-header): fix break change on the style (#4303)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz authored and vthinkxie committed Oct 23, 2019
1 parent 5b6086b commit 4c10e5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/page-header/nz-page-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { NzPageHeaderFooterDirective } from './nz-page-header-cells';
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
host: {
class: 'ant-page-header',
class: 'ant-page-header ant-page-header-ghost',
'[class.ant-page-header-has-footer]': 'nzPageHeaderFooter'
},
styles: [
Expand Down
17 changes: 11 additions & 6 deletions components/page-header/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,26 @@
.reset-component;

position: relative;
padding: @page-header-padding;
padding: @page-header-padding-vertical @page-header-padding;
background-color: @component-background;

&-ghost {
background-color: inherit;
}

&.has-breadcrumb {
padding-top: @page-header-padding-breadcrumb;
}

&.has-footer {
padding-bottom: @page-header-padding-vertical;
padding-bottom: 0;
}

&-back {
float: left;
margin: 6px 0;
margin: 8px 0;
margin-right: 16px;
font-size: 20px;
font-size: 16px;
line-height: 1;
&-button {
.operation-unit();
Expand Down Expand Up @@ -50,7 +55,7 @@
padding-right: 12px;
color: @heading-color;
font-weight: 600;
font-size: @heading-3-size;
font-size: @heading-4-size;
line-height: 32px;
}

Expand Down Expand Up @@ -85,7 +90,7 @@
}

&-content {
padding-top: 16px;
padding-top: 12px;
overflow: hidden;
}

Expand Down

0 comments on commit 4c10e5b

Please sign in to comment.