|
|
|
//
|
|
|
|
// Bars
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.bar {
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 10;
|
|
|
|
height: $bar-base-height;
|
|
|
|
padding-right: $bar-side-spacing;
|
|
|
|
padding-left: $bar-side-spacing;
|
|
|
|
border-bottom: $border-default;
|
|
|
|
background-color: $chrome-color;
|
|
|
|
|
|
|
|
|
|
|
|
// Modifier class to dock any bar below .bar-nav
|
|
|
|
&.bar-header-secondary {
|
|
|
|
top: $bar-base-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Modifier class to dock any bar to bottom of viewport
|
|
|
|
&.bar-footer {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Modifier class to dock any bar above a standard bar
|
|
|
|
&.bar-footer-secondary {
|
|
|
|
bottom: $bar-base-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Modifier class to dock any bar above a .bar-tab
|
|
|
|
&.bar-footer-secondary-tab {
|
|
|
|
bottom: $bar-tab-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Nav bar
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Bar docked to top of viewport for showing page title and actions
|
|
|
|
.bar-nav {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Centered text in the .bar-nav
|
|
|
|
.title {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
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;
|
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
> a:not(.btn) {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
//Retain specified title color
|
|
|
|
.title a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Tab bar
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Bar docked to bottom used for primary app navigation
|
|
|
|
.bar-tab {
|
|
|
|
display: table;
|
|
|
|
bottom: 0;
|
|
|
|
height: $bar-tab-height;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
border-top: $border-default;
|
|
|
|
table-layout: fixed;
|
|
|
|
|
|
|
|
// Navigational tab
|
|
|
|
.tab-item {
|
|
|
|
display: table-cell;
|
|
|
|
height: 100%;
|
|
|
|
width: 1%;
|
|
|
|
vertical-align: middle;
|
|
|
|
color: #929292;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
// Active states for the tab bar
|
|
|
|
&.active,
|
|
|
|
&:active {
|
|
|
|
color: $primary-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tab icon
|
|
|
|
.icon {
|
|
|
|
top: 2px;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
// Make the label smaller if it's used with an icon
|
|
|
|
~ .tab-label {
|
|
|
|
display: block;
|
|
|
|
margin-top: -2px;
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Bars with buttons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.bar .btn {
|
|
|
|
position: relative;
|
|
|
|
z-index: 20; // Position the buttons on top of .title
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Bars with link buttons (Line the text up with content)
|
|
|
|
.bar .btn-link {
|
|
|
|
margin-top: 0;
|
|
|
|
padding: 0;
|
|
|
|
font-size: 16px;
|
|
|
|
color: $primary-color;
|
|
|
|
line-height: $bar-base-height;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&.active {
|
|
|
|
color: darken($primary-color, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
}
|
|
|
|
|
|
|
|
// Nav buttons (Only applicable within bars)
|
|
|
|
//
|
|
|
|
// Buttons inside bar that sit closer against the viewport.
|
|
|
|
.bar .btn-nav {
|
|
|
|
&.pull-left {
|
|
|
|
margin-left: -5px;
|
|
|
|
|
|
|
|
.icon-left-nav {
|
|
|
|
margin-right: -3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.pull-right {
|
|
|
|
margin-right: -5px;
|
|
|
|
|
|
|
|
.icon-right-nav {
|
|
|
|
margin-left: -3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Bars with Ratchicons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.bar {
|
|
|
|
.icon {
|
|
|
|
position: relative;
|
|
|
|
padding: 10px 0;
|
|
|
|
z-index: 20; // Position the buttons on top of .title
|
|
|
|
font-size: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Handle the larger icons in btns.
|
|
|
|
.btn .icon {
|
|
|
|
top: 2px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Handle carets in the titles
|
|
|
|
.title .icon {
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
&.icon-caret {
|
|
|
|
top: 4px;
|
|
|
|
margin-left: -5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Bars for search forms
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Position/size search bar within the bar
|
|
|
|
.bar input[type="search"] {
|
|
|
|
height: 29px;
|
|
|
|
margin: 6px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Bars with segmented controls
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Remove standard segmented bottom margin
|
|
|
|
.bar .segmented-control {
|
|
|
|
top: 8px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|