mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-26 03:27:30 +00:00
In Angular2Spa template, use per-component scoped styles. Fixes common config issues like #234.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user