Last change
on this file 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 '../core/theming/theming';
|
---|
2 | @use '../core/typography/typography';
|
---|
3 | @use '../core/typography/typography-utils';
|
---|
4 | @use '../core/style/list-common';
|
---|
5 |
|
---|
6 |
|
---|
7 | // Include this empty mixin for consistency with the other components.
|
---|
8 | @mixin color($config-or-theme) {}
|
---|
9 |
|
---|
10 | @mixin typography($config-or-theme) {
|
---|
11 | $config: typography.private-typography-to-2014-config(
|
---|
12 | theming.get-typography-config($config-or-theme));
|
---|
13 | .mat-grid-tile-header,
|
---|
14 | .mat-grid-tile-footer {
|
---|
15 | @include list-common.base(typography-utils.font-size($config, caption));
|
---|
16 | font-size: typography-utils.font-size($config, body-1);
|
---|
17 | }
|
---|
18 | }
|
---|
19 |
|
---|
20 | @mixin _density($config-or-theme) {}
|
---|
21 |
|
---|
22 | @mixin theme($theme-or-color-config) {
|
---|
23 | $theme: theming.private-legacy-get-theme($theme-or-color-config);
|
---|
24 | @include theming.private-check-duplicate-theme-styles($theme, 'mat-grid-list') {
|
---|
25 | $color: theming.get-color-config($theme);
|
---|
26 | $density: theming.get-density-config($theme);
|
---|
27 | $typography: theming.get-typography-config($theme);
|
---|
28 |
|
---|
29 | @if $color != null {
|
---|
30 | @include color($color);
|
---|
31 | }
|
---|
32 | @if $density != null {
|
---|
33 | @include _density($density);
|
---|
34 | }
|
---|
35 | @if $typography != null {
|
---|
36 | @include typography($typography);
|
---|
37 | }
|
---|
38 | }
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.