-
Notifications
You must be signed in to change notification settings - Fork 6.7k
/
_table-theme.scss
47 lines (38 loc) · 1.11 KB
/
_table-theme.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@import '../core/theming/palette';
@import '../core/theming/theming';
@import '../core/typography/typography-utils';
@mixin mat-table-theme($theme) {
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
.mat-table {
background: mat-color($background, 'card');
}
.mat-table thead, .mat-table tbody, .mat-table tfoot,
mat-header-row, mat-row, mat-footer-row,
[mat-header-row], [mat-row], [mat-footer-row],
.mat-table-sticky {
background: inherit;
}
mat-row, mat-header-row, mat-footer-row,
th.mat-header-cell, td.mat-cell, td.mat-footer-cell {
border-bottom-color: mat-color($foreground, divider);
}
.mat-header-cell {
color: mat-color($foreground, secondary-text);
}
.mat-cell, .mat-footer-cell {
color: mat-color($foreground, text);
}
}
@mixin mat-table-typography($config) {
.mat-table {
font-family: mat-font-family($config);
}
.mat-header-cell {
font-size: mat-font-size($config, caption);
font-weight: mat-font-weight($config, body-2);
}
.mat-cell, .mat-footer-cell {
font-size: mat-font-size($config, body-1);
}
}