1 | @import '../common/styles/elevation';
|
2 | @import '../common/styles/theme-functions';
|
3 | @import '../common/styles/typography-functions';
|
4 |
|
5 | @mixin td-layout-typography($config) {
|
6 | td-navigation-drawer {
|
7 | .td-navigation-drawer-title {
|
8 | font: {
|
9 | family: td-font-family($config);
|
10 | size: td-font-size($config, subheading-2);
|
11 | }
|
12 | }
|
13 |
|
14 | .td-navigation-drawer-name {
|
15 | font: {
|
16 | family: td-font-family($config);
|
17 | size: td-font-size($config, body-1);
|
18 | weight: 500;
|
19 | }
|
20 |
|
21 | line-height: td-line-height($config, body-1);
|
22 | }
|
23 |
|
24 | .td-navigation-drawer-menu-toggle {
|
25 | font: {
|
26 | family: td-font-family($config);
|
27 | size: td-font-size($config, body-2);
|
28 | weight: 400;
|
29 | }
|
30 |
|
31 | line-height: td-line-height($config, body-2);
|
32 | }
|
33 | }
|
34 | }
|
35 |
|
36 | @mixin td-layout-theme($theme) {
|
37 | $primary: map-get($theme, primary);
|
38 | $accent: map-get($theme, accent);
|
39 | $warn: map-get($theme, warn);
|
40 | $background: map-get($theme, background);
|
41 | $foreground: map-get($theme, foreground);
|
42 |
|
43 | [mat-icon-button].td-layout-menu-button {
|
44 | margin-left: 0;
|
45 |
|
46 | ::ng-deep [dir='rtl'] & {
|
47 | margin-right: 0;
|
48 | margin-left: 6px;
|
49 | }
|
50 | }
|
51 |
|
52 | td-layout-nav,
|
53 | td-layout-nav-list,
|
54 | td-layout-manage-list,
|
55 | td-layout-card-over,
|
56 | td-navigation-drawer,
|
57 | td-layout {
|
58 | --mat-sidenav-container-background-color: var(--mat-sidenav-content-background-color);
|
59 | --mat-expansion-container-background-color: var(--mat-sidenav-content-background-color);
|
60 |
|
61 | mat-toolbar {
|
62 | @include mat-elevation(1);
|
63 |
|
64 | z-index: 1;
|
65 | }
|
66 | }
|
67 |
|
68 | body[dense] td-layout-nav,
|
69 | body[dense] td-layout-nav-list,
|
70 | body[dense] td-layout-card-over,
|
71 | td-layout-nav[dense],
|
72 | td-layout-nav-list[dense],
|
73 | td-layout-card-over[dense] {
|
74 | mat-toolbar.td-layout-toolbar {
|
75 | &.mat-toolbar-row,
|
76 | &.mat-toolbar-single-row {
|
77 | height: 48px;
|
78 | }
|
79 | }
|
80 | }
|
81 |
|
82 | body[dense] td-layout-card-over,
|
83 | td-layout-card-over[dense] {
|
84 | .td-layout-card-over-wrapper {
|
85 | margin: -48px;
|
86 | margin-left: 0;
|
87 | margin-right: 0;
|
88 | }
|
89 | }
|
90 |
|
91 | .mat-drawer-side.td-layout-sidenav {
|
92 | @include mat-elevation(2);
|
93 | }
|
94 |
|
95 | .td-layout-footer {
|
96 | @include mat-elevation(2);
|
97 |
|
98 | &.mat-primary {
|
99 | background: mat-color($primary);
|
100 |
|
101 | &,
|
102 | mat-icon {
|
103 | color: mat-color($primary);
|
104 | }
|
105 | }
|
106 |
|
107 | &.mat-accent {
|
108 | background: mat-color($accent);
|
109 |
|
110 | &,
|
111 | mat-icon {
|
112 | color: mat-color($accent);
|
113 | }
|
114 | }
|
115 |
|
116 | &.mat-warn {
|
117 | background: mat-color($warn);
|
118 |
|
119 | &,
|
120 | mat-icon {
|
121 | color: mat-color($warn);
|
122 | }
|
123 | }
|
124 |
|
125 | .mat-mdc-button {
|
126 | --mdc-text-button-label-text-color: #{mat-color($foreground, text)};
|
127 | }
|
128 | }
|
129 | }
|