1
+ // Standard/Desktop Heights
1
2
$toolbar-tools-height : 64px !default ;
2
3
$toolbar-height : 64px !default ;
3
4
$toolbar-medium-tall-height : 88px !default ;
4
5
$toolbar-tall-height : 128px !default ;
6
+
7
+ // Mobile portrait heights
8
+ $toolbar-tools-height-mobile-portrait : 56px !default ;
9
+ $toolbar-height-mobile-portrait : 56px !default ;
10
+
11
+ // Mobile landscape heights
12
+ $toolbar-tools-height-mobile-landscape : 48px !default ;
13
+ $toolbar-height-mobile-landscape : 48px !default ;
14
+
15
+
5
16
$toolbar-indent-margin : 64px !default ;
6
17
$toolbar-padding : 16px !default ;
7
18
@@ -18,6 +29,7 @@ md-toolbar {
18
29
font-size : rem (2.0 );
19
30
min-height : $baseline-grid * 8 ;
20
31
width : 100% ;
32
+
21
33
& .md-whiteframe-z1-add , & .md-whiteframe-z1-remove {
22
34
transition : box-shadow $swift-ease-in-out-duration linear ;
23
35
}
@@ -113,3 +125,31 @@ md-toolbar {
113
125
border-bottom : 1px solid #fff ;
114
126
}
115
127
}
128
+
129
+ // Handle mobile portrait
130
+ @media only screen and (min-width : 0 ) and (max-width : $layout-breakpoint-sm ) and
131
+ (orientation : portrait ) {
132
+ md-toolbar {
133
+ background : green ;
134
+ min-height : $toolbar-height-mobile-portrait ;
135
+ }
136
+
137
+ .md-toolbar-tools {
138
+ height : $toolbar-height-mobile-portrait ;
139
+ max-height : $toolbar-height-mobile-portrait ;
140
+ }
141
+ }
142
+
143
+ // Handle mobile landscape
144
+ @media only screen and (min-width : 0 ) and (max-width : $layout-breakpoint-sm ) and
145
+ (orientation : landscape ) {
146
+ md-toolbar {
147
+ min-height : $toolbar-height-mobile-landscape ;
148
+ }
149
+
150
+ .md-toolbar-tools {
151
+ height : $toolbar-height-mobile-landscape ;
152
+ max-height : $toolbar-height-mobile-landscape ;
153
+ }
154
+ }
155
+
0 commit comments