h1,h2,h3,h4,h5 { margin: 0; padding: 0; } body { font: 14px/1.25 "Helvetica Neue", sans-serif; color: #222; background-color: #fff; } .bar-header { top: 0; display: -webkit-box; display: box; background-color: #de5646; border-bottom: 1px solid #bc4434; -webkit-box-orient: horizontal; box-orient: horizontal; } /* Centered text in the .bar-header */ .bar-header .title { position: absolute; top: 0; left: 0; display: block; width: 100%; font-size: 20px; font-weight: bold; line-height: 44px; color: #fff; text-align: center; white-space: nowrap; } .bar-header > a:not([class*="button"]) { display: block; width: 100%; height: 100%; } /* Retain specified title color */ .bar-header .title a { color: inherit; } [class*="bar-"] { position: fixed; right: 0; left: 0; z-index: 10; height: 44px; padding: 5px; box-sizing: border-box; } .bar-footer { bottom: 0; } /* Generic style for all buttons in .bar-title */ .bar-title [class*="button"] { position: relative; z-index: 10; /* Places buttons over full width title */ font-size: 12px; line-height: 23px; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); background-color: #1eb0e9; background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%); background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%); border: 1px solid #0e5895; box-shadow: 0 1px rgba(255, 255, 255, .25); -webkit-box-flex: 0; box-flex: 0; } /* Hacky way to right align buttons outside of flex-box system Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */ .bar-title .title + [class*="button"]:last-child, .bar-title .button + [class*="button"]:last-child, .bar-title [class*="button"].pull-right { position: absolute; top: 5px; right: 5px; } /* Override standard button active states */ .bar-title .button:active { color: #fff; background-color: #0876b1; } /* Add relative positioning so :before content is positioned properly */ .bar-header .button-prev, .bar-header .button-next { position: relative; } /* Prev/next button base styles */ .bar-header .button-prev { margin-left: 7px; /* Push over to make room for :before content */ border-left: 0; border-bottom-left-radius: 10px 15px; border-top-left-radius: 10px 15px; } .bar-header .button-next { margin-right: 7px; /* Push over to make room for :before content */ border-right: 0; border-top-right-radius: 10px 15px; border-bottom-right-radius: 10px 15px; } /* Pointed part of directional button */ .bar-header .button-prev:before, .bar-header .button-next:before { position: absolute; top: 2px; width: 27px; height: 27px; border-radius: 30px 100px 2px 40px / 2px 40px 30px 100px; content: ''; box-shadow: inset 1px 0 #0e5895, inset 0 1px #0e5895; -webkit-mask-image: -webkit-gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent)); mask-image: gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent)); } .bar-header .button-prev:before { left: -5px; background-image: -webkit-gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9)); background-image: gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9)); border-left: 1.5px solid rgba(255, 255, 255, .25); -webkit-transform: rotate(-45deg) skew(-10deg, -10deg); transform: rotate(-45deg) skew(-10deg, -10deg); } .bar-header .button-next:before { right: -5px; background-image: -webkit-gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6)); background-image: gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6)); border-top: 1.5px solid rgba(255, 255, 255, .25); -webkit-transform: rotate(135deg) skew(-10deg, -10deg); transform: rotate(135deg) skew(-10deg, -10deg); } /* Active states for the directional buttons */ .bar-header .button-prev:active, .bar-header .button-next:active, .bar-header .button-prev:active:before, .bar-header .button-next:active:before { color: #fff; background-color: #0876b1; background-image: none; } .bar-header .button-prev:active:before, .bar-header .button-next:active:before { content: ''; } .bar-header .button-prev:active:before { box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2); } .bar-header .button-next:active:before { box-shadow: inset 0 -3px 3px rgba(0, 0, 0, .2); }