1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-12-21 13:33:48 +03:00

Refactor SCSS imports to use the new @use syntax and update map functions for better compatibility

This commit is contained in:
Adolfo Gómez García 2024-11-19 23:08:16 +01:00
parent 3a9b8b93ad
commit 507e3bd9d9
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
3 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
@import "../../../globals.scss";
@use "../../../globals.scss" as *;
.uds-nav {
position: fixed;

View File

@ -1,4 +1,5 @@
@use '@angular/material' as mat;
@use "sass:map";
@include mat.elevation-classes();
@include mat.app-background();
@ -32,11 +33,11 @@ $angular-dark-theme: mat.m2-define-dark-theme(
)
);
$bg-default: map-get(map-get($angular-default-theme, background), background);
$fg-default: map-get(map-get($angular-default-theme, foreground), base);
$bg-default: map.get(map.get($angular-default-theme, background), background);
$fg-default: map.get(map.get($angular-default-theme, foreground), base);
$bg-dark: map-get(map-get($angular-dark-theme, background), background);
$fg-dark: map-get(map-get($angular-dark-theme, foreground), base);
$bg-dark: map.get(map.get($angular-dark-theme, background), background);
$fg-dark: map.get(map.get($angular-dark-theme, foreground), base);
// Set variables for several backgrounds
$bg-title: linear-gradient(60deg, rgb(75, 82, 102), rgb(70, 93, 156));

View File

@ -1,6 +1,6 @@
@use '@angular/material' as mat;
@import 'globals.scss';
@use 'globals.scss' as *;
/* Default, light theme */
@include mat.all-component-themes($angular-default-theme);