1 | @import '../common/styles/theme-functions';
|
2 | @import '../common/styles/typography-functions';
|
3 |
|
4 | @mixin td-message-typography($config) {
|
5 | .td-message-label {
|
6 | font: {
|
7 | family: td-font-family($config);
|
8 | size: td-font-size($config, body-2);
|
9 | weight: 600;
|
10 | }
|
11 |
|
12 | line-height: td-line-height($config, body-2);
|
13 | }
|
14 |
|
15 | .td-message-sublabel {
|
16 | font: {
|
17 | family: td-font-family($config);
|
18 | size: td-font-size($config, body-1);
|
19 | }
|
20 | }
|
21 | }
|
22 |
|
23 | @mixin td-message-theme($theme) {
|
24 | $primary: map-get($theme, primary);
|
25 | $accent: map-get($theme, accent);
|
26 | $warn: map-get($theme, warn);
|
27 |
|
28 | .td-message {
|
29 | &.mat-primary {
|
30 | color: mat-color($primary);
|
31 | background-color: mat-color($primary, 0.15);
|
32 | }
|
33 |
|
34 | &.mat-accent {
|
35 | color: mat-color($accent);
|
36 | background-color: mat-color($accent, 0.15);
|
37 | }
|
38 |
|
39 | &.mat-warn {
|
40 | color: mat-color($warn);
|
41 | background-color: mat-color($warn, 0.15);
|
42 | }
|
43 | }
|
44 | }
|