mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[AAE-12876] Custom UI cannot be fetched and returns error 404 (#3020)
This commit is contained in:
@@ -15,10 +15,9 @@ $text-color: map-get($theme-config, 'textColor');
|
||||
$base-font-size: map-get($theme-config, 'baseFontSize');
|
||||
$font-family: map-get($theme-config, 'fontFamily');
|
||||
|
||||
$alfresco-typography: get-mat-typography(
|
||||
$app-typography: get-mat-typography(
|
||||
$base-font-size,
|
||||
$font-family,
|
||||
$alfresco-typography
|
||||
$font-family
|
||||
);
|
||||
|
||||
@include mat-core();
|
||||
@@ -31,7 +30,7 @@ $custom-theme: mat-light-theme(
|
||||
accent: map-get($palettes, accent),
|
||||
warn: map-get($palettes, warning)
|
||||
),
|
||||
typography: $alfresco-typography
|
||||
typography: $app-typography
|
||||
)
|
||||
);
|
||||
|
||||
|
@@ -3,10 +3,25 @@
|
||||
|
||||
@function get-mat-typography(
|
||||
$base-font-size,
|
||||
$font-family,
|
||||
$default-typography
|
||||
$font-family
|
||||
) {
|
||||
$custom-typography: $default-typography;
|
||||
$custom-typography: mat.define-typography-config(
|
||||
$font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif',
|
||||
$display-4: mat.define-typography-level(112px, 112px, 300),
|
||||
$display-3: mat.define-typography-level(56px, 56px, 400),
|
||||
$display-2: mat.define-typography-level(45px, 48px, 400),
|
||||
$display-1: mat.define-typography-level(34px, 40px, 400),
|
||||
$headline: mat.define-typography-level(24px, 32px, 400),
|
||||
$title: mat.define-typography-level(20px, 32px, 500),
|
||||
$subheading-2: mat.define-typography-level(16px, 28px, 400),
|
||||
$subheading-1: mat.define-typography-level(15px, 24px, 400),
|
||||
$body-2: mat.define-typography-level(14px, 24px, 500),
|
||||
$body-1: mat.define-typography-level(14px, 20px, 400),
|
||||
$caption: mat.define-typography-level(12px, 20px, 400),
|
||||
$button: mat.define-typography-level(14px, 14px, 500),
|
||||
// Line-height must be unit-less fraction of the font-size.
|
||||
$input: mat.define-typography-level(16px, 1.25, 400)
|
||||
);
|
||||
|
||||
@if $base-font-size {
|
||||
$custom-typography: mat.define-typography-config(
|
||||
|
Reference in New Issue
Block a user