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.

145 lines
2.4 KiB

//
// Bars
// --------------------------------------------------
12 years ago
[class*="bar-"] {
position: fixed;
right: 0;
left: 0;
z-index: 10;
height: $bar-base-height;
11 years ago
padding-right: $bar-side-spacing;
padding-left: $bar-side-spacing;
border-bottom: $border-default;
background-color: $chrome-color;
12 years ago
// Modifier class to dock any bar below .bar-nav
&.bar-header-secondary {
11 years ago
top: $bar-base-height + 1;
}
12 years ago
// Modifier class to dock any bar to bottom of viewport
&.bar-footer {
bottom: 0;
}
12 years ago
// Modifier class to dock any bar above a standard bar
&.bar-footer-secondary {
11 years ago
bottom: $bar-base-height;
}
// Modifier class to dock any bar above a .bar-tab
&.bar-footer-secondary-tab {
11 years ago
bottom: $bar-tab-height;
}
12 years ago
}
// Nav bar
// --------------------------------------------------
12 years ago
// Bar docked to top of viewport for showing page title and actions
.bar-nav {
12 years ago
top: 0;
}
// Centered text in the .bar-nav
.title {
12 years ago
display: block;
width: 100%;
padding: 0;
margin: 0;
font-size: $font-size-default;
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;
border-top: $border-default;
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;
11 years ago
@include box-orient(horizontal);
12 years ago
}
// Navigational tab
12 years ago
.tab-item {
height: 100%;
padding-top: 9px;
text-align: center;
11 years ago
@include box-flex(1);
11 years ago
.tab-label,
.icon {
color: #929292;
}
// Label for tab
.tab-label {
margin-top: -2px;
font-size: 11px;
font-weight: 400;
}
11 years ago
.icon {
width: 24px;
height: 24px;
margin-top: -2px;
}
12 years ago
// Active states for the tab bar
&.active,
&:active {
.tab-label,
.icon {
color: $primary-color;
}
}
}
// Nav bar in popovers
// --------------------------------------------------
.popover .bar-nav {
padding-right: 15px;
padding-left: 15px;
border-bottom: $border-default;
border-radius: 12px 12px 0 0;
11 years ago
@include box-shadow(none);
.title + [class*="button"]:last-child {
right: 15px;
}
}