create single scss pack and script

remove unnecessary file from pack
fix problem dev change style
fix theme picker
This commit is contained in:
Eugenio Romano
2017-11-18 11:49:23 +00:00
parent 4b76e6b4a9
commit bbe423759c
26 changed files with 567 additions and 211 deletions

View File

@@ -101,7 +101,7 @@ export class ThemePickerComponent {
} else {
this.currentTheme = this._getCurrentThemeFromHref(theme.href);
this.styleManager.setStyle('theme', `prebuilt-themes/${theme.href}`);
this.styleManager.setStyle('theme', `assets/prebuilt-themes/${theme.href}`);
if (this.currentTheme) {
this._themeStorage.storeTheme(this.currentTheme);

View File

@@ -0,0 +1,23 @@
@import './app/components/app-layout/app-layout.component.scss';
@import 'content-services/styles/index';
@import 'process-services/styles/index';
@import 'insights/styles/index';
@import 'core/styles/index';
@import '~@angular/material/theming';
@include mat-core($alfresco-typography);
$primary: mat-palette($alfresco-accent-orange);
$accent: mat-palette($alfresco-accent-purple);
$warn: mat-palette($alfresco-warn);
$theme: mat-light-theme($primary, $accent, $warn);
@include angular-material-theme($theme);
@include adf-app-layout-theme($theme);
@include adf-content-services-theme($theme);
@include adf-process-services-theme($theme);
@include adf-insights-theme($theme);
@include adf-core-theme($theme);

View File

@@ -1,9 +1,9 @@
@import './app/components/app-layout/app-layout.component.scss';
@import '~@alfresco/adf-content-services/styles/index';
@import '~@alfresco/adf-process-services/styles/index';
@import '~@alfresco/adf-insights/styles/index';
@import '~@alfresco/adf-core/styles/index';
@import '~@alfresco/adf-content-services';
@import '~@alfresco/adf-process-services';
@import '~@alfresco/adf-insights';
@import '~@alfresco/adf-core';
@import '~@angular/material/theming';
@@ -15,7 +15,6 @@ $warn: mat-palette($alfresco-warn);
$theme: mat-light-theme($primary, $accent, $warn);
@include angular-material-theme($theme);
@include adf-app-layout-theme($theme);
@include adf-content-services-theme($theme);

View File

@@ -1,5 +1,5 @@
@import '~@angular/material/theming';
@import './custom-style.scss';
@import '~@alfresco/adf-core/theming';
body, html {
margin: 0;