Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1023 bytes
|
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 | $foreground: map.get($config, foreground);
|
---|
7 |
|
---|
8 | .mat-divider {
|
---|
9 | border-top-color: theming.get-color-from-palette($foreground, divider);
|
---|
10 | }
|
---|
11 |
|
---|
12 | .mat-divider-vertical {
|
---|
13 | border-right-color: theming.get-color-from-palette($foreground, divider);
|
---|
14 | }
|
---|
15 | }
|
---|
16 |
|
---|
17 | @mixin typography($config-or-theme) {}
|
---|
18 |
|
---|
19 | @mixin _density($config-or-theme) {}
|
---|
20 |
|
---|
21 | @mixin theme($theme-or-color-config) {
|
---|
22 | $theme: theming.private-legacy-get-theme($theme-or-color-config);
|
---|
23 | @include theming.private-check-duplicate-theme-styles($theme, 'mat-divider') {
|
---|
24 | $color: theming.get-color-config($theme);
|
---|
25 | $density: theming.get-density-config($theme);
|
---|
26 | $typography: theming.get-typography-config($theme);
|
---|
27 |
|
---|
28 | @if $color != null {
|
---|
29 | @include color($color);
|
---|
30 | }
|
---|
31 | @if $density != null {
|
---|
32 | @include _density($density);
|
---|
33 | }
|
---|
34 | @if $typography != null {
|
---|
35 | @include typography($typography);
|
---|
36 | }
|
---|
37 | }
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.