Skip to content

Commit 9366c3e

Browse files
committed
chore(demos): fix sidenav styles
1 parent a9e1fa5 commit 9366c3e

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

src/demo-app/demo-app.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<md-sidenav-layout>
1+
<md-sidenav-layout class="demo-root">
22
<md-sidenav #start>
33
<md-nav-list>
44
<a md-list-item [routerLink]="['ButtonDemo']">Button</a>
@@ -17,9 +17,9 @@
1717
<a md-list-item [routerLink]="['SidenavDemo']">Sidenav</a>
1818
<a md-list-item [routerLink]="['ToolbarDemo']">Toolbar</a>
1919
</md-nav-list>
20-
<button md-raised-button (click)="start.close()">CLOSE</button>
20+
<button md-button (click)="start.close()">CLOSE</button>
2121
</md-sidenav>
22-
<div class="demo-root">
22+
<div>
2323

2424
<md-toolbar color="primary">
2525
<i class="material-icons" (click)="start.open()">menu</i>

src/demo-app/demo-app.scss

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
.demo-root {
22
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;
58

69
// Helps fonts on OSX looks more consistent with other systems
710
// Isn't currently in button styles due to performance concerns
@@ -10,6 +13,21 @@
1013
-moz-osx-font-smoothing: grayscale;
1114
}
1215

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+
1331
md-toolbar {
1432
i {
1533
padding: 20px;
@@ -30,9 +48,5 @@
3048
h1 {
3149
font-size: 20px;
3250
}
33-
3451
}
3552

36-
.demo-content {
37-
padding: 15px;
38-
}

0 commit comments

Comments
 (0)