mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 02:57:31 +00:00
In Angular 2 template, always load CSS via ExtractTextPlugin (otherwise you get a bad FOUC when loading server-prerendered page)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'bootstrap/dist/css/bootstrap.css';
|
||||
import './styles/site.css';
|
||||
|
||||
import { bootstrap } from 'angular2/platform/browser';
|
||||
import { FormBuilder } from 'angular2/common';
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
@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;
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,6 @@ import { Counter } from '../counter/counter';
|
||||
])
|
||||
@ng.View({
|
||||
template: require('./app.html'),
|
||||
styles: [require('./app.css')],
|
||||
directives: [NavMenu, router.ROUTER_DIRECTIVES]
|
||||
})
|
||||
export class App {
|
||||
|
||||
@@ -6,8 +6,7 @@ import * as router from 'angular2/router';
|
||||
})
|
||||
@ng.View({
|
||||
template: require('./nav-menu.html'),
|
||||
directives: [router.ROUTER_DIRECTIVES],
|
||||
styles: [require('./nav-menu.css')]
|
||||
directives: [router.ROUTER_DIRECTIVES]
|
||||
})
|
||||
export class NavMenu {
|
||||
}
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
@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;
|
||||
}
|
||||
}
|
||||
|
||||
.main-nav li .glyphicon {
|
||||
margin-right: 10px;
|
||||
}
|
||||
@@ -10,7 +17,6 @@
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
/* Keep the nav menu independent of scrolling and on top of other items */
|
||||
.main-nav {
|
||||
position: fixed;
|
||||
Reference in New Issue
Block a user