source: trip-planner-front/node_modules/@angular/material/core/option/_optgroup-theme.scss@ e29cc2e

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

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1@use 'sass:map';
2@use '../theming/theming';
3@use '../typography/typography';
4@use '../typography/typography-utils';
5
6@mixin color($config-or-theme) {
7 $config: theming.get-color-config($config-or-theme);
8 $foreground: map.get($config, foreground);
9
10 .mat-optgroup-label {
11 color: theming.get-color-from-palette($foreground, secondary-text);
12 }
13
14 .mat-optgroup-disabled .mat-optgroup-label {
15 color: theming.get-color-from-palette($foreground, hint-text);
16 }
17}
18
19@mixin typography($config-or-theme) {
20 $config: typography.private-typography-to-2014-config(
21 theming.get-typography-config($config-or-theme));
22 .mat-optgroup-label {
23 @include typography-utils.typography-level($config, body-2);
24 }
25}
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-optgroup') {
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.