source: trip-planner-front/node_modules/@angular/material/dialog/_dialog-theme.scss@ 84d0fbb

Last change on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1@use 'sass:map';
2@use '../core/style/private';
3@use '../core/theming/theming';
4@use '../core/typography/typography';
5@use '../core/typography/typography-utils';
6
7
8@mixin color($config-or-theme) {
9 $config: theming.get-color-config($config-or-theme);
10 $background: map.get($config, background);
11 $foreground: map.get($config, foreground);
12
13 .mat-dialog-container {
14 @include private.private-theme-elevation(24, $config);
15 background: theming.get-color-from-palette($background, dialog);
16 color: theming.get-color-from-palette($foreground, text);
17 }
18}
19
20@mixin typography($config-or-theme) {
21 $config: typography.private-typography-to-2014-config(
22 theming.get-typography-config($config-or-theme));
23 .mat-dialog-title {
24 @include typography-utils.typography-level($config, title);
25 }
26}
27
28@mixin _density($config-or-theme) {}
29
30@mixin theme($theme-or-color-config) {
31 $theme: theming.private-legacy-get-theme($theme-or-color-config);
32 @include theming.private-check-duplicate-theme-styles($theme, 'mat-dialog') {
33 $color: theming.get-color-config($theme);
34 $density: theming.get-density-config($theme);
35 $typography: theming.get-typography-config($theme);
36
37 @if $color != null {
38 @include color($color);
39 }
40 @if $density != null {
41 @include _density($density);
42 }
43 @if $typography != null {
44 @include typography($typography);
45 }
46 }
47}
Note: See TracBrowser for help on using the repository browser.