UNPKG

1.09 kBSCSSView Raw
1@import 'variables';
2@import 'mixins';
3@import 'default-theme'; //TODO: remove that soon.
4
5$md-toolbar-min-height: 64px !default;
6$md-toolbar-font-size: 20px !default;
7$md-toolbar-padding: 16px !default;
8
9@mixin toolbar-theme($palette) {
10 background: md-color($palette);
11 color: md-color($palette, default-contrast);
12}
13
14md-toolbar {
15 display: flex;
16 box-sizing: border-box;
17
18 width: 100%;
19 min-height: $md-toolbar-min-height;
20
21 // Font Styling
22 font-size: $md-toolbar-font-size;
23 font-weight: 400;
24 font-family: $md-font-family;
25
26 padding: 0 $md-toolbar-padding;
27
28 flex-direction: column;
29
30 background: md-color($md-background, app-bar);
31 color: md-color($md-foreground, text);
32
33 &.md-primary {
34 @include toolbar-theme($md-primary);
35 }
36
37 &.md-accent {
38 @include toolbar-theme($md-accent);
39 }
40
41 &.md-warn {
42 @include toolbar-theme($md-warn);
43 }
44
45 md-toolbar-row {
46 display: flex;
47 box-sizing: border-box;
48
49 width: 100%;
50 height: $md-toolbar-min-height;
51
52 // Flexbox Vertical Alignment
53 flex-direction: row;
54 align-items: center;
55 }
56
57}