mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-14 01:38:51 +00:00
(js) Globally load custom stylesheets
This is required to generate the static theme (theme-default.css)
This commit is contained in:
1
NEWS
1
NEWS
@@ -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
@@ -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);
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user