In Angular2Spa template, use per-component scoped styles. Fixes common config issues like #234.

This commit is contained in:
SteveSandersonMS
2016-09-20 10:06:23 +01:00
parent cd18489f00
commit 19684f2b7d
8 changed files with 25 additions and 31 deletions

View File

@@ -0,0 +1,6 @@
@media (max-width: 767px) {
/* On small screens, the nav menu spans the full width of the screen. Leave a space for it. */
.body-content {
padding-top: 50px;
}
}

View File

@@ -2,7 +2,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app',
template: require('./app.component.html')
template: require('./app.component.html'),
styles: [require('./app.component.css')]
})
export class AppComponent {
}