mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Clean style creations ADF (#7385)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
require('dotenv').config();
|
||||
|
||||
var PROXY_HOST_ADF = process.env.PROXY_HOST_ADF;
|
||||
|
||||
console.log('PROXY_HOST_ADF' + PROXY_HOST_ADF);
|
||||
module.exports = {
|
||||
"/alfresco": {
|
||||
"target": (PROXY_HOST_ADF || "http://localhost:8080"),
|
||||
|
@@ -122,7 +122,7 @@ export class ThemePickerComponent {
|
||||
} else {
|
||||
this.currentTheme = this._getCurrentThemeFromHref(theme.href);
|
||||
|
||||
this.styleManager.setStyle('theme', `assets/prebuilt-themes/${theme.href}`);
|
||||
this.styleManager.setStyle('theme', theme.href);
|
||||
|
||||
if (this.currentTheme) {
|
||||
this._themeStorage.storeTheme(this.currentTheme);
|
||||
|
@@ -1,5 +1,4 @@
|
||||
@import '~@angular/material/theming';
|
||||
|
||||
@import '../../lib/core/styles/index';
|
||||
|
||||
@include mat-core($alfresco-typography);
|
||||
@@ -7,10 +6,15 @@
|
||||
$primary: mat-palette($alfresco-accent-orange);
|
||||
$accent: mat-palette($alfresco-accent-purple);
|
||||
$warn: mat-palette($alfresco-warn);
|
||||
$theme: mat-light-theme($primary, $accent, $warn);
|
||||
$theme: mat-light-theme((
|
||||
color: (
|
||||
primary: $primary,
|
||||
accent: $accent,
|
||||
)
|
||||
));
|
||||
|
||||
@include angular-material-theme($theme);
|
||||
@include adf-core-theme($theme);
|
||||
@include alfresco-material-theme($theme);
|
||||
|
||||
body, html {
|
||||
margin: 0;
|
||||
|
@@ -1,5 +1,4 @@
|
||||
@import '~@angular/material/theming';
|
||||
|
||||
@import '~@alfresco/adf-core/theming';
|
||||
|
||||
@include mat-core($alfresco-typography);
|
||||
@@ -7,10 +6,15 @@
|
||||
$primary: mat-palette($alfresco-accent-orange);
|
||||
$accent: mat-palette($alfresco-accent-purple);
|
||||
$warn: mat-palette($alfresco-warn);
|
||||
$theme: mat-light-theme($primary, $accent, $warn);
|
||||
$theme: mat-light-theme((
|
||||
color: (
|
||||
primary: $primary,
|
||||
accent: $accent,
|
||||
)
|
||||
));
|
||||
|
||||
@include angular-material-theme($theme);
|
||||
@include adf-core-theme($theme);
|
||||
@include alfresco-material-theme($theme);
|
||||
|
||||
body, html {
|
||||
margin: 0;
|
||||
|
Reference in New Issue
Block a user