# HG changeset patch # User Lucas Thompson # Date 1490199650 0 # Node ID 5e8a2eb8bdbfa254803d9e24473dfa426085c039 # Parent a50feba0d7f03a3e63afab8575f22f8e1e1477c9 Bodge in a footer - for no good reason. diff -r a50feba0d7f0 -r 5e8a2eb8bdbf src/app/app.component.css --- a/src/app/app.component.css Wed Mar 22 14:34:43 2017 +0000 +++ b/src/app/app.component.css Wed Mar 22 16:20:50 2017 +0000 @@ -3,17 +3,32 @@ } md-sidenav-container { - height: calc(100vh - 64px); /* height of window minus the toolbar height*/ + height: 100%; + width: 100%; + position: absolute; } md-sidenav { text-align: center; } -md-tab-group { - height: calc(100vh - 64px); /* height of window minus the toolbar height*/ +.app-container { + height: 100%; + display: flex; + flex-direction: column; + background: pink; } -md-tab-group >>> .md-tab-body-wrapper { - align-items: center; +.app-header { + flex: 0 0 auto; } + +.app-content { + flex: 1 1 auto; + overflow-y: auto; + position: relative; +} + +.app-footer { + flex: 0 0 auto; +} diff -r a50feba0d7f0 -r 5e8a2eb8bdbf src/app/app.component.html --- a/src/app/app.component.html Wed Mar 22 14:34:43 2017 +0000 +++ b/src/app/app.component.html Wed Mar 22 16:20:50 2017 +0000 @@ -1,32 +1,66 @@ - - +
+
+ + - + - - + + - - + + - - - - + + + + +
- - - - - - - - +
+ + + + + + + + +
+ + +
diff -r a50feba0d7f0 -r 5e8a2eb8bdbf src/styles.css --- a/src/styles.css Wed Mar 22 14:34:43 2017 +0000 +++ b/src/styles.css Wed Mar 22 16:20:50 2017 +0000 @@ -27,4 +27,10 @@ body { margin: 0; font-family: Roboto, sans-serif; + overflow: hidden; + height: 100%; } + +html { + height: 100%; +}