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.

237 lines
4.2 KiB

//
// Bars
// --------------------------------------------------
12 years ago
.bar {
12 years ago
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 {
top: $bar-base-height;
}
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 {
11 years ago
position: absolute;
12 years ago
display: block;
width: 100%;
padding: 0;
11 years ago
margin-top: 0;
margin-bottom: 0;
margin-left: -$bar-side-spacing;
margin-right: -$bar-side-spacing;
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;
}
11 years ago
> a:not(.btn) {
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 {
display: table;
12 years ago
bottom: 0;
height: $bar-tab-height;
12 years ago
padding: 0;
border-top: $border-default;
11 years ago
// Navigational tab
.tab-item {
display: table-cell;
height: 100%;
width: 1%;
11 years ago
vertical-align: bottom;
text-align: center;
12 years ago
.tab-label,
.icon {
color: #929292;
}
// Label for tab
.tab-label {
margin-top: -2px;
font-size: 11px;
font-weight: 400;
}
11 years ago
// Tab icon
.icon {
width: 24px;
height: 24px;
11 years ago
margin-top: 0;
}
// Active states for the tab bar
&.active,
&:active {
.tab-label,
.icon {
color: $primary-color;
}
}
}
}
// Nav bar in popovers
// --------------------------------------------------
.popover .bar-nav {
border-bottom: $border-default;
border-radius: 12px 12px 0 0;
11 years ago
@include box-shadow(none);
}
11 years ago
// Nav bars with buttons
// --------------------------------------------------
.bar-nav .btn {
position: relative;
z-index: 20; // Position the buttons on top of .title
11 years ago
padding: 6px 12px;
margin-top: 8px;
font-weight: $font-weight-light;
&.pull-right {
margin-left: $bar-side-spacing;
}
&.pull-left {
margin-right: $bar-side-spacing;
}
}
// Nav bars with link buttons (Line the text up with content)
.bar-nav .btn-link {
padding: 0;
margin-top: 0;
font-size: 16px;
color: $primary-color;
line-height: $bar-base-height;
border: none;
background-color: transparent;
&:active,
&.active {
color: darken($primary-color, 10%);
}
&.pull-left {
margin-left: 5px;
.icon {
margin-right: -3px;
margin-left: -8px;
}
}
&.pull-right {
margin-right: 5px;
.icon {
margin-right: -8px;
margin-left: -3px;
}
}
}
// Bars with block buttons
// --------------------------------------------------
// Add proper padding
.bar .btn-block {
padding: 7px 0 6px;
margin-top: 5px;
margin-bottom: 0;
font-size: 16px; // Scale down font size to fit in bar.
}
// Search forms in standard bar
// --------------------------------------------------
// Position/size search bar within the bar
.bar input[type="search"] {
height: 29px;
margin: 6px 0;
}
// Segmented controller in all bars
// --------------------------------------------------
// Remove standard segmented bottom margin
.bar .segmented-control {
top: 8px;
margin: 0 auto;
}
// Nav bars with Ratchicons
// --------------------------------------------------
.bar > .icon {
position: relative;
z-index: 20; // Position the buttons on top of .title
11 years ago
font-size: 24px;
margin-top: 11px;
&.pull-left {
margin-left: -3px;
}
&.pull-right {
margin-right: -3px;
}
}