mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[AAE-10283] Fix deployment of content-ee and content-ee-apa with dynamic themes (#2606)
This commit is contained in:
parent
9cd616ff8c
commit
c60a3b51cf
@ -1,4 +1,4 @@
|
|||||||
@function get-custom-backgrond-color($background-color, $theme) {
|
@function get-custom-background-color($background-color, $theme) {
|
||||||
$background: map-get($theme, background);
|
$background: map-get($theme, background);
|
||||||
|
|
||||||
$card: map-get($background, card);
|
$card: map-get($background, card);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@import '~sass-math-pow/sass/index';
|
@use "sass:math";
|
||||||
|
|
||||||
@function multiply($fore, $back) {
|
@function multiply($fore, $back) {
|
||||||
$red: red($back) * red($fore) / 255;
|
$red: red($back) * red($fore) / 255;
|
||||||
@ -23,7 +23,7 @@
|
|||||||
$value: $value / 12.92;
|
$value: $value / 12.92;
|
||||||
} @else {
|
} @else {
|
||||||
$value: ($value + .055) / 1.055;
|
$value: ($value + .055) / 1.055;
|
||||||
$value: poly-pow($value, 2.4);
|
$value: math.pow($value, 2.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
$colors: map-merge($colors, ($name: $value));
|
$colors: map-merge($colors, ($name: $value));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@import '~@angular/material/theming';
|
@import '@angular/material/theming';
|
||||||
@import './overrides/adf-style-fixes.theme';
|
@import './overrides/adf-style-fixes.theme';
|
||||||
@import "./dynamic-theme/theme-configuration";
|
@import "./dynamic-theme/theme-configuration";
|
||||||
@import "./dynamic-theme/typography";
|
@import "./dynamic-theme/typography";
|
||||||
@ -29,7 +29,7 @@ $custom-theme: mat-light-theme(
|
|||||||
);
|
);
|
||||||
|
|
||||||
@if $background-color {
|
@if $background-color {
|
||||||
$custom-background: get-custom-backgrond-color($background-color, $custom-theme);
|
$custom-background: get-custom-background-color($background-color, $custom-theme);
|
||||||
$custom-theme: map_merge($custom-theme, (background: $custom-background));
|
$custom-theme: map_merge($custom-theme, (background: $custom-background));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user