All though quite nice to have the menu always at hand, it takes up way
too much space on small devices such as smartphones.
For example an iPhone 4 in landscape has a height of 320px, having a
sticky page header with 50px reduces the effective height by ~16%.
}
@include screen-md-down {
- .pageHeaderContainer {
- // touch browser allow to scroll past the page top before they bounce back,
- // but in that case the original background color is visible
- background-color: transparent;
- }
-
.pageHeader > div > div {
padding-bottom: 10px;
padding-top: 10px;
}
}
-// force sticky header on handheld devices, there is no difference when scrolled
+@include screen-xs {
+ .pageHeaderContainer {
+ height: 50px;
+ z-index: 300;
+ }
+}
+
+// force sticky header on tabkets, there is no difference when scrolled
// all the way up and it might flicker when scrolling due to the inconsistent
// scroll event being fired
-@include screen-md-down {
+@include screen-sm-md {
.pageHeaderContainer {
height: 50px;
z-index: 300;
+
+ // touch browser allow to scroll past the page top before they bounce back,
+ // but in that case the original background color is visible
+ background-color: transparent;
}
.pageHeader {