source: trip-planner-front/node_modules/@angular/material/progress-spinner/_progress-spinner-theme.scss@ 8d391a1

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

initial commit

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