mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
create single scss pack and script
remove unnecessary file from pack fix problem dev change style fix theme picker
This commit is contained in:
@@ -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);
|
||||
|
23
demo-shell/src/custom-style-dev.scss
Normal file
23
demo-shell/src/custom-style-dev.scss
Normal 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);
|
@@ -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);
|
||||
|
@@ -1,5 +1,5 @@
|
||||
@import '~@angular/material/theming';
|
||||
@import './custom-style.scss';
|
||||
@import '~@alfresco/adf-core/theming';
|
||||
|
||||
body, html {
|
||||
margin: 0;
|
||||
|
Reference in New Issue
Block a user