File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 1
- .example-header {
2
- display : flex;
3
- align-items : center;
4
- padding : 0.5em ;
5
- }
6
-
7
- .example-header-label {
8
- flex : 1 ;
9
- height : 1em ;
10
- font-weight : bold;
11
- text-align : center;
12
- }
13
-
14
- .example-double-arrow .mat-icon {
15
- margin : -22% ;
16
- }
1
+ /** No CSS for this example */
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import {takeUntil} from 'rxjs/operators';
15
15
@Component ( {
16
16
selector : 'datepicker-custom-header-example' ,
17
17
templateUrl : 'datepicker-custom-header-example.html' ,
18
- styleUrls : [ 'datepicker-custom-header-example.css' ] ,
19
18
changeDetection : ChangeDetectionStrategy . OnPush ,
20
19
} )
21
20
export class DatepickerCustomHeaderExample {
@@ -25,6 +24,24 @@ export class DatepickerCustomHeaderExample {
25
24
/** Custom header component for datepicker. */
26
25
@Component ( {
27
26
selector : 'example-header' ,
27
+ styles : [ `
28
+ .example-header {
29
+ display: flex;
30
+ align-items: center;
31
+ padding: 0.5em;
32
+ }
33
+
34
+ .example-header-label {
35
+ flex: 1;
36
+ height: 1em;
37
+ font-weight: 500;
38
+ text-align: center;
39
+ }
40
+
41
+ .example-double-arrow .mat-icon {
42
+ margin: -22%;
43
+ }
44
+ ` ] ,
28
45
template : `
29
46
<div class="example-header">
30
47
<button mat-icon-button class="example-double-arrow" (click)="previousClicked('year')">
You can’t perform that action at this time.
0 commit comments