(js) Globally load custom stylesheets

This is required to generate the static theme (theme-default.css)
This commit is contained in:
Francis Lachapelle
2018-10-23 14:25:58 -04:00
parent 35ea86557c
commit ee001243b2
4 changed files with 22 additions and 20 deletions

1
NEWS
View File

@@ -3,6 +3,7 @@
Bug fixes
- [web] fixed time conflict validation when not the owner
- [web] fixed freebusy display with default theme
4.0.3 (2018-10-17)
------------------

File diff suppressed because one or more lines are too long

View File

@@ -243,6 +243,19 @@
'}',
].join(''));
// Register custom stylesheet for Calendar module
$mdThemingProvider.registerStyles([
'[ui-view=calendars] .hours {',
' color: \'{{primary-700}}\';',
'}',
'.attendees .busy {',
' background-color: \'{{background-1000}}\';',
'}',
'.attendees .event {',
' background-color: \'{{primary-300}}\';',
'}'
].join(''));
if (!window.DebugEnabled) {
// Disable debugging information
$logProvider.debugEnabled(false);

View File

@@ -13,18 +13,6 @@
*/
configure.$inject = ['$stateProvider', '$urlServiceProvider', '$mdThemingProvider'];
function configure($stateProvider, $urlServiceProvider, $mdThemingProvider) {
// Register custom stylesheet
$mdThemingProvider.registerStyles([
'[ui-view=calendars] .hours {',
' color: \'{{primary-700}}\';',
'}',
'.attendees .busy {',
' background-color: \'{{background-1000}}\';',
'}',
'.attendees .event {',
' background-color: \'{{primary-300}}\';',
'}'
].join(''));
$stateProvider
.state('calendars', {
url: '/calendar',