From ebd446397a81e3c398a7b71b6d9d3604161d6f36 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Mon, 6 Mar 2017 15:08:34 +0000 Subject: [PATCH] fix(aio): reimplement the top menu dropping into the side bar I couldn't find the CSS for the `.small` class to make it look nice. --- aio/src/app/app.component.html | 26 +++++++++++ aio/src/app/app.component.scss | 50 +++++++++++++++++++++ aio/src/app/app.component.ts | 80 +--------------------------------- 3 files changed, 78 insertions(+), 78 deletions(-) create mode 100644 aio/src/app/app.component.html create mode 100644 aio/src/app/app.component.scss diff --git a/aio/src/app/app.component.html b/aio/src/app/app.component.html new file mode 100644 index 0000000000..6f2d0cad06 --- /dev/null +++ b/aio/src/app/app.component.html @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + +
+ + +
+ +
\ No newline at end of file diff --git a/aio/src/app/app.component.scss b/aio/src/app/app.component.scss new file mode 100644 index 0000000000..a8cff9ab3d --- /dev/null +++ b/aio/src/app/app.component.scss @@ -0,0 +1,50 @@ +.fill-remaining-space { + flex: 1 1 auto; +} + +md-input-container { + margin-left: 10px; + input { + min-width:200px; + } +} + + +.md-input-element { + font-size: 70%; + font-style: italic; +} + +@media (max-width: 600px) { + aio-menu { + display: none; + } +} + +.sidenav-container { + width: 100%; + height: 100vh; +} + +.sidenav-content { + height: 100%; + width: 100%; + margin: auto; + padding: 1rem; +} + +.sidenav-content button { + min-width: 50px; +} + +.sidenav { + padding: 0; +} + +// md-toolbar { +// display: none; +// padding-left: 10px !important; +// } +// md-toolbar.active { +// display: block; +// } \ No newline at end of file diff --git a/aio/src/app/app.component.ts b/aio/src/app/app.component.ts index b362593540..b5003d5996 100644 --- a/aio/src/app/app.component.ts +++ b/aio/src/app/app.component.ts @@ -6,84 +6,8 @@ import { SearchService, QueryResults } from 'app/search/search.service'; @Component({ selector: 'aio-shell', - template: ` - - - - - - - - - - - - - - - -
- - -
- -
`, - styles: [ - `.fill-remaining-space { - flex: 1 1 auto; - } - - md-input-container { - margin-left: 10px; - input { - min-width:200px; - } - } - - - .md-input-element { - font-size: 70%; - font-style: italic; - } - - @media (max-width: 600px) { - aio-menu { - display: none; - } - } - - .sidenav-container { - width: 100%; - height: 100vh; - } - - .sidenav-content { - height: 100%; - width: 100%; - margin: auto; - padding: 1rem; - } - - .sidenav-content button { - min-width: 50px; - } - - .sidenav { - padding: 0; - } - - // md-toolbar { - // display: none; - // padding-left: 10px !important; - // } - // md-toolbar.active { - // display: block; - // }` - ] + templateUrl: './app.component.html', + styleUrls: ['./app.component.scss'], }) export class AppComponent implements OnInit { readonly sideBySideWidth = 600;