File tree 2 files changed +28
-3
lines changed
2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ $md-body-font-size-base: rem(1.4) !default;
6
6
$md-font-family : Roboto, ' Helvetica Neue' , sans-serif !default ;
7
7
8
8
// Media queries
9
+ // TODO: Find a way to respect media query ranges.
10
+ // TODO: For example the xs-breakpoint should not interfere with the sm-breakpoint.
9
11
$md-xsmall : ' max-width: 600px' ;
12
+ $md-small : ' max-width: 960px' ;
10
13
11
14
// TODO: Revisit all z-indices before beta
12
15
// z-index master list
Original file line number Diff line number Diff line change 1
1
@import ' ../core/style/variables' ;
2
2
3
+ $md-toolbar-height-desktop : 64px !default ;
4
+ $md-toolbar-height-mobile-portrait : 56px !default ;
5
+ $md-toolbar-height-mobile-landscape : 48px !default ;
3
6
4
- $md-toolbar-min-height : 64px !default ;
5
7
$md-toolbar-font-size : 20px !default ;
6
8
$md-toolbar-padding : 16px !default ;
7
9
8
10
11
+ @mixin md-toolbar-height ($height ) {
12
+ md-toolbar {
13
+ min-height : $height ;
14
+ }
15
+ md-toolbar-row {
16
+ height : $height ;
17
+ }
18
+ }
19
+
9
20
md-toolbar {
10
21
display : flex ;
11
22
box-sizing : border-box ;
12
23
13
24
width : 100% ;
14
- min-height : $md-toolbar-min-height ;
15
25
16
26
// Font Styling
17
27
font-size : $md-toolbar-font-size ;
@@ -27,10 +37,22 @@ md-toolbar {
27
37
box-sizing : border-box ;
28
38
29
39
width : 100% ;
30
- height : $md-toolbar-min-height ;
31
40
32
41
// Flexbox Vertical Alignment
33
42
flex-direction : row ;
34
43
align-items : center ;
35
44
}
36
45
}
46
+
47
+ // Set the default height for the toolbar.
48
+ @include md-toolbar-height ($md-toolbar-height-desktop );
49
+
50
+ // Specific height for mobile devices in portrait mode.
51
+ @media ($md-xsmall ) and (orientation : portrait ) {
52
+ @include md-toolbar-height ($md-toolbar-height-mobile-portrait );
53
+ }
54
+
55
+ // Specific height for mobile devices in landscape mode.
56
+ @media ($md-small ) and (orientation : landscape ) {
57
+ @include md-toolbar-height ($md-toolbar-height-mobile-landscape );
58
+ }
You can’t perform that action at this time.
0 commit comments