// Use Flexbox for our header and footer bars .bar { position: fixed; right: 0; left: 0; z-index: 10; width: 100%; display: -webkit-box; display: box; -webkit-box-orient: horizontal; box-orient: horizontal; box-sizing: border-box; height: $barHeight; padding: $barPaddingPortrait; // Title inside of a bar is centered .title { /* position: absolute; top: 0; left: 0; display: block; width: 100%; */ line-height: $barTitleLineHeightComputed; margin: 0; //padding: $barPaddingVertical 0px; text-align: center; white-space: nowrap; font-size: $barTitleFontSize; -webkit-box-flex: 3; -moz-box-flex: 3; box-flex: 3; } .title a { color: inherit; } .button { -webkit-box-flex: 0; -moz-box-flex: 0; box-flex: 0; } // Place the last button in a bar on the right of the bar /* .title + .button:last-child, .button + .button:last-child, .button.pull-right { position: absolute; top: 5px; right: 5px; } */ } // Header at top .bar-header { top: 0; } // Footer at bottom .bar-footer { bottom: 0; } /* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab. Note: For these to work, content must come after both bars in the markup */ .has-header { top: $barHeight; } .has-footer { bottom: $barHeight; }