-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
responsive.ts
76 lines (71 loc) · 2.43 KB
/
responsive.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { Component } from '@angular/core';
@Component({
selector: 'nz-demo-page-header-responsive',
template: `
<nz-page-header class="site-page-header" nzBackIcon>
<nz-page-header-title>Title</nz-page-header-title>
<nz-page-header-subtitle>This is a subtitle</nz-page-header-subtitle>
<nz-page-header-extra>
<nz-space>
<button *nzSpaceItem nz-button>Operation</button>
<button *nzSpaceItem nz-button>Operation</button>
<button *nzSpaceItem nz-button nzType="primary">Primary</button>
</nz-space>
</nz-page-header-extra>
<nz-page-header-content>
<div class="content">
<div class="main">
<nz-descriptions nzSize="small" [nzColumn]="2">
<nz-descriptions-item nzTitle="Created" [nzSpan]="1">Lili Qu</nz-descriptions-item>
<nz-descriptions-item nzTitle="Association" [nzSpan]="1"><a>421421</a></nz-descriptions-item>
<nz-descriptions-item nzTitle="Creation Time" [nzSpan]="1">2017-01-10</nz-descriptions-item>
<nz-descriptions-item nzTitle="Effective Time" [nzSpan]="1">2017-10-10</nz-descriptions-item>
<nz-descriptions-item nzTitle="Remarks" [nzSpan]="2">
Gonghu Road, Xihu District, Hangzhou, Zhejiang, China
</nz-descriptions-item>
</nz-descriptions>
</div>
<div class="extra">
<div>
<nz-statistic nzTitle="Status" nzValue="Pending"></nz-statistic>
<nz-statistic nzTitle="Price" [nzValue]="568.08" nzPrefix="$" style="margin: 0 32px"></nz-statistic>
</div>
</div>
</div>
</nz-page-header-content>
<nz-page-header-footer>
<nz-tabset [nzSelectedIndex]="1">
<nz-tab nzTitle="Details"></nz-tab>
<nz-tab nzTitle="Rule"></nz-tab>
</nz-tabset>
</nz-page-header-footer>
</nz-page-header>
`,
styles: [
`
.content {
display: flex;
}
.extra > div {
display: flex;
width: max-content;
justify-content: flex-end;
}
@media (max-width: 576px) {
.content {
display: block;
}
.main {
width: 100%;
margin-bottom: 12px;
}
.extra {
width: 100%;
margin-left: 0;
text-align: left;
}
}
`
]
})
export class NzDemoPageHeaderResponsiveComponent {}