2 -------------------------------------------------- */
11 box-sizing: border-box;
14 /* Modifier class to dock any bar below .bar-title */
15 .bar-header-secondary {
19 /* Modifier class to dock any bar to bottom of viewport */
24 /* Generic bar for wrapping buttons, segmented controllers, etc. */
26 background-color: #f2f2f2;
27 background-image: -webkit-linear-gradient(top, #f2f2f2 0, #e5e5e5 100%);
28 background-image: linear-gradient(to bottom, #f2f2f2 0, #e5e5e5 100%);
29 border-bottom: 1px solid #aaa;
30 box-shadow: inset 0 1px 1px -1px #fff;
33 /* Flip border position to top for footer bars */
34 .bar-footer.bar-standard,
35 .bar-footer-secondary.bar-standard {
36 border-top: 1px solid #aaa;
37 border-bottom-width: 0;
41 -------------------------------------------------- */
43 /* Bar docked to top of viewport for showing page title and actions */
48 background-color: #1eb0e9;
49 background-image: -webkit-linear-gradient(top, #1eb0e9 0, #109adc 100%);
50 background-image: linear-gradient(to bottom, #1eb0e9 0, #109adc 100%);
51 border-bottom: 1px solid #0e5895;
52 box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .8);
53 -webkit-box-orient: horizontal;
54 box-orient: horizontal;
57 /* Centered text in the .bar-title */
69 text-shadow: 0 -1px rgba(0, 0, 0, .5);
73 .bar-title > a:not([class*="button"]) {
79 /* Retain specified title color */
85 -------------------------------------------------- */
87 /* Bar docked to bottom used for primary app navigation */
92 background-color: #393939;
93 background-image: -webkit-linear-gradient(top, #393939 0, #2b2b2b 100%);
94 background-image: linear-gradient(to bottom, #393939 0, #2b2b2b 100%);
95 border-top: 1px solid #000;
96 border-bottom-width: 0;
97 box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .6);
100 /* Wrapper for individual tab */
102 display: -webkit-box;
106 -webkit-box-orient: horizontal;
107 box-orient: horizontal;
110 /* Navigational tab */
115 box-sizing: border-box;
120 /* Active state for tab */
122 box-shadow: inset 0 0 20px rgba(0, 0, 0, .5);
138 text-shadow: 0 1px rgba(0, 0, 0, .3);
141 /* Buttons in title bars
142 -------------------------------------------------- */
144 /* Generic style for all buttons in .bar-title */
145 .bar-title [class*="button"] {
147 z-index: 10; /* Places buttons over full width title */
151 text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
152 background-color: #1eb0e9;
153 background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%);
154 background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%);
155 border: 1px solid #0e5895;
156 box-shadow: 0 1px rgba(255, 255, 255, .25);
162 /* Hacky way to right align buttons outside of flex-box system
163 Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */
164 .bar-title .title + [class*="button"]:last-child,
165 .bar-title .button + [class*="button"]:last-child,
166 .bar-title [class*="button"].pull-right {
172 /* Override standard button active states */
173 .bar-title .button:active {
175 background-color: #0876b1;
178 /* Directional buttons in title bars (thanks to @GregorAdams for solution - http://cssnerd.com/2011/11/30/the-best-pure-css3-ios-style-arrow-back-button/)
179 -------------------------------------------------- */
181 /* Add relative positioning so :before content is positioned properly */
182 .bar-title .button-prev,
183 .bar-title .button-next {
187 /* Prev/next button base styles */
188 .bar-title .button-prev {
189 margin-left: 7px; /* Push over to make room for :before content */
191 border-bottom-left-radius: 10px 15px;
192 border-top-left-radius: 10px 15px;
194 .bar-title .button-next {
195 margin-right: 7px; /* Push over to make room for :before content */
197 border-top-right-radius: 10px 15px;
198 border-bottom-right-radius: 10px 15px;
201 /* Pointed part of directional button */
202 .bar-title .button-prev:before,
203 .bar-title .button-next:before {
208 border-radius: 30px 100px 2px 40px / 2px 40px 30px 100px;
210 box-shadow: inset 1px 0 #0e5895, inset 0 1px #0e5895;
211 -webkit-mask-image: -webkit-gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent));
212 mask-image: gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent));
214 .bar-title .button-prev:before {
216 background-image: -webkit-gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9));
217 background-image: gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9));
218 border-left: 1.5px solid rgba(255, 255, 255, .25);
219 -webkit-transform: rotate(-45deg) skew(-10deg, -10deg);
220 transform: rotate(-45deg) skew(-10deg, -10deg);
222 .bar-title .button-next:before {
224 background-image: -webkit-gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6));
225 background-image: gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6));
226 border-top: 1.5px solid rgba(255, 255, 255, .25);
227 -webkit-transform: rotate(135deg) skew(-10deg, -10deg);
228 transform: rotate(135deg) skew(-10deg, -10deg);
231 /* Active states for the directional buttons */
232 .bar-title .button-prev:active,
233 .bar-title .button-next:active,
234 .bar-title .button-prev:active:before,
235 .bar-title .button-next:active:before {
237 background-color: #0876b1;
238 background-image: none;
240 .bar-title .button-prev:active:before,
241 .bar-title .button-next:active:before {
244 .bar-title .button-prev:active:before {
245 box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2);
247 .bar-title .button-next:active:before {
248 box-shadow: inset 0 -3px 3px rgba(0, 0, 0, .2);
251 /* Block buttons in any bar
252 -------------------------------------------------- */
254 /* Add proper padding and replace buttons normal dropshadow with a shine from bar */
255 [class*="bar"] .button-block {
258 box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px rgba(255, 255, 255, .8);
261 /* Override standard padding changes for .button-blocks */
262 [class*="bar"] .button-block:active {
266 /* Segmented controller in any bar
267 -------------------------------------------------- */
269 /* Remove standard segmented bottom margin */
270 [class*="bar-"] .segmented-controller {
274 /* Add margins between segmented controllers and buttons */
275 [class*="bar-"] .segmented-controller + [class*="button"],
276 [class*="bar-"] [class*="button"] + .segmented-controller {
280 /* Segmented controller in a title bar
281 -------------------------------------------------- */
283 .bar-title .segmented-controller {
285 text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
286 background-color: #1eb0e9;
287 background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%);
288 background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%);
289 border: 1px solid #0e5895;
291 box-shadow: 0 1px rgba(255, 255, 255, .25);
296 /* Set color for tab border and highlight */
297 .bar-title .segmented-controller li {
298 border-left: 1px solid #0e5895;
299 box-shadow: inset 1px 0 rgba(255, 255, 255, .25);
302 /* Remove inset shadow from first tab or one to the right of the active tab */
303 .bar-title .segmented-controller .active + li,
304 .bar-title .segmented-controller li:first-child {
308 /* Remove left-hand border from first tab */
309 .bar-title .segmented-controller li:first-child {
310 border-left-width: 0;
313 /* Depressed state (active) */
314 .bar-title .segmented-controller li.active {
315 background-color: #0082c4;
316 box-shadow: inset 0 1px 6px rgba(0, 0, 0, .3);
319 /* Set color of links to white */
320 .bar-title .segmented-controller li > a {
325 /* Search forms in standard bar
326 -------------------------------------------------- */
328 /* Position/size search bar within the bar */
329 .bar-standard input[type=search] {