Build mobile apps with simple HTML, CSS, and JS components. http://goratchet.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
2.1 KiB

//
// Bars
// --------------------------------------------------
12 years ago
[class*="bar-"] {
position: fixed;
right: 0;
left: 0;
z-index: 10;
height: $bar-base-height;
11 years ago
padding: 5px $bar-side-spacing;
background-color: $chrome-color;
box-shadow: 0 0 1px rgba(0,0,0,.85);
12 years ago
// Modifier class to dock any bar below .bar-title
&.bar-header-secondary {
top: $bar-base-height;
}
12 years ago
// Modifier class to dock any bar to bottom of viewport
&.bar-footer {
bottom: 0;
}
12 years ago
// Flip border position to top for footer bars
&.bar-footer.bar-standard,
&.bar-footer-secondary.bar-standard {
box-shadow: 0 0 1px rgba(0,0,0,.85);
}
12 years ago
}
// Nav bar
// --------------------------------------------------
12 years ago
// Bar docked to top of viewport for showing page title and actions
12 years ago
.bar-title {
top: 0;
display: -webkit-box;
display: box;
-webkit-box-orient: horizontal;
box-orient: horizontal;
}
// Centered text in the .bar-title
.title {
12 years ago
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
padding: 0;
margin: 0;
font-size: 18px;
font-weight: $font-weight;
line-height: $bar-base-height;
color: #000;
12 years ago
text-align: center;
white-space: nowrap;
}
> a:not([class*="button"]) {
12 years ago
display: block;
width: 100%;
height: 100%;
}
//Retain specified title color
.title a {
12 years ago
color: inherit;
}
// Tab bar
// --------------------------------------------------
12 years ago
// Bar docked to bottom used for primary app navigation
12 years ago
.bar-tab {
bottom: 0;
height: $bar-tab-height;
12 years ago
padding: 0;
box-shadow: 0 0px 1px rgba(0,0,0,.85);
12 years ago
}
// Wrapper for individual tab
12 years ago
.tab-inner {
display: -webkit-box;
display: box;
height: 100%;
padding: 0;
margin: 0;
12 years ago
list-style: none;
-webkit-box-orient: horizontal;
box-orient: horizontal;
}
// Navigational tab
12 years ago
.tab-item {
height: 100%;
padding-top: 9px;
text-align: center;
-webkit-box-flex: 1;
box-flex: 1;
}
// Icon for tab
12 years ago
.tab-icon {
display: block;
height: 18px;
margin: 0 auto;
}
// Label for tab
12 years ago
.tab-label {
margin-top: 1px;
font-size: 11px;
font-weight: 400;
color: $default-color;
}
.tab-item.active .tab-label {
color: $primary-color;
12 years ago
}