File tree Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 1
- < md-sidenav-layout >
1
+ < md-sidenav-layout class =" demo-root " >
2
2
< md-sidenav #start >
3
3
< md-nav-list >
4
4
< a md-list-item [routerLink] ="['ButtonDemo'] "> Button</ a >
17
17
< a md-list-item [routerLink] ="['SidenavDemo'] "> Sidenav</ a >
18
18
< a md-list-item [routerLink] ="['ToolbarDemo'] "> Toolbar</ a >
19
19
</ md-nav-list >
20
- < button md-raised- button (click) ="start.close() "> CLOSE</ button >
20
+ < button md-button (click) ="start.close() "> CLOSE</ button >
21
21
</ md-sidenav >
22
- < div class =" demo-root " >
22
+ < div >
23
23
24
24
< md-toolbar color ="primary ">
25
25
< i class ="material-icons " (click) ="start.open() "> menu</ i >
Original file line number Diff line number Diff line change 1
1
.demo-root {
2
2
font-family : Roboto, ' Helvetica Neue' , sans-serif ;
3
- padding : 20px ;
4
- min-height : 1000px ;
3
+ position : absolute ;
4
+ top : 0 ;
5
+ bottom : 0 ;
6
+ left : 0 ;
7
+ right : 0 ;
5
8
6
9
// Helps fonts on OSX looks more consistent with other systems
7
10
// Isn't currently in button styles due to performance concerns
10
13
-moz-osx-font-smoothing : grayscale ;
11
14
}
12
15
16
+ md-sidenav {
17
+ width : 15% ;
18
+
19
+ [md-button ] {
20
+ width : 100% ;
21
+ position : absolute ;
22
+ bottom : 0 ;
23
+ margin-bottom : 24px ;
24
+ }
25
+ }
26
+
27
+ .demo-content {
28
+ padding : 32px ;
29
+ }
30
+
13
31
md-toolbar {
14
32
i {
15
33
padding : 20px ;
30
48
h1 {
31
49
font-size : 20px ;
32
50
}
33
-
34
51
}
35
52
36
- .demo-content {
37
- padding : 15px ;
38
- }
You can’t perform that action at this time.
0 commit comments