[6a3a178] | 1 | @use 'sass:map';
|
---|
| 2 | @use '../core/style/private';
|
---|
| 3 | @use '../core/typography/typography';
|
---|
| 4 | @use '../core/typography/typography-utils';
|
---|
| 5 | @use '../core/theming/theming';
|
---|
| 6 |
|
---|
| 7 | @mixin color($config-or-theme) {
|
---|
| 8 | $config: theming.get-color-config($config-or-theme);
|
---|
| 9 | $background: map.get($config, background);
|
---|
| 10 | $foreground: map.get($config, foreground);
|
---|
| 11 |
|
---|
| 12 | .mat-bottom-sheet-container {
|
---|
| 13 | @include private.private-theme-elevation(16, $config);
|
---|
| 14 | background: theming.get-color-from-palette($background, dialog);
|
---|
| 15 | color: theming.get-color-from-palette($foreground, 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-bottom-sheet-container {
|
---|
| 23 | @include typography-utils.typography-level($config, body-1);
|
---|
| 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-bottom-sheet') {
|
---|
| 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 | }
|
---|