blob: cb8d98a8b406a432db4596892eece771e6d7cb37 [file] [log] [blame]
@import '../core/theming/palette';
@import '../core/theming/theming';
@import '../core/typography/typography-utils';
@import '../core/style/list-common';
// Include this empty mixin for consistency with the other components.
@mixin mat-grid-list-color($config-or-theme) {}
@mixin mat-grid-list-typography($config-or-theme) {
$config: mat-get-typography-config($config-or-theme);
.mat-grid-tile-header,
.mat-grid-tile-footer {
@include mat-line-base(mat-font-size($config, caption));
font-size: mat-font-size($config, body-1);
}
}
@mixin _mat-grid-list-density($config-or-theme) {}
@mixin mat-grid-list-theme($theme-or-color-config) {
$theme: mat-private-legacy-get-theme($theme-or-color-config);
@include mat-private-check-duplicate-theme-styles($theme, 'mat-grid-list') {
$color: mat-get-color-config($theme);
$density: mat-get-density-config($theme);
$typography: mat-get-typography-config($theme);
@if $color != null {
@include mat-grid-list-color($color);
}
@if $density != null {
@include _mat-grid-list-density($density);
}
@if $typography != null {
@include mat-grid-list-typography($typography);
}
}
}