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.

265 lines
5.5 KiB

//
// Bars
// --------------------------------------------------
12 years ago
[class*="bar-"] {
position: fixed;
right: 0;
left: 0;
z-index: 10;
height: 44px;
padding: 5px;
background-color: $chrome-color;
box-shadow: 0 0px 1px rgba(0,0,0,.85);
12 years ago
box-sizing: border-box;
}
// Modifier class to dock any bar below .bar-title
12 years ago
.bar-header-secondary {
top: 44px;
12 years ago
}
// Modifier class to dock any bar to bottom of viewport
12 years ago
.bar-footer {
bottom: 0;
}
// Flip border position to top for footer bars
12 years ago
.bar-footer.bar-standard,
.bar-footer-secondary.bar-standard {
box-shadow: 0 0px 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
12 years ago
.bar-title .title {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
font-size: 18px;
font-weight: 500;
12 years ago
line-height: 44px;
color: #000;
12 years ago
text-align: center;
white-space: nowrap;
}
.bar-title > a:not([class*="button"]) {
display: block;
width: 100%;
height: 100%;
}
//Retain specified title color
12 years ago
.bar-title .title a {
color: inherit;
}
// Tab bar
// --------------------------------------------------
12 years ago
// Bar docked to bottom used for primary app navigation
12 years ago
.bar-tab {
bottom: 0;
height: 50px;
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%;
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;
box-sizing: border-box;
-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: #929292;
}
.tab-item.active .tab-label {
color: $app-color;
12 years ago
}
// Buttons in nav bars
// --------------------------------------------------
12 years ago
// Generic style for all buttons in .bar-title
12 years ago
.bar-title [class*="button"] {
position: relative;
z-index: 10; // Places buttons over full width title
padding-left: 5px;
padding-right: 5px;
font-size: 16px;
font-weight: 400;
line-height: 29px;
color: $app-color;
border: 0;
transition: opacity .2s linear;
12 years ago
-webkit-box-flex: 0;
box-flex: 0;
}
// Hacky way to right align buttons outside of flex-box system
// Note: is only absolutely positioned button, would be better if flex-box had an "align right" option
12 years ago
.bar-title .title + [class*="button"]:last-child,
.bar-title .button + [class*="button"]:last-child,
.bar-title [class*="button"].pull-right {
position: absolute;
top: 5px;
right: 5px;
}
// Override standard button active states
11 years ago
.bar-title .button:active,
.bar-title .button-prev:active,
.bar-title .button-next:active {
color: $app-color;
background-color: transparent;
opacity: .3;
}
// Directional buttons in nav bars
// --------------------------------------------------
.bar-title .button-prev:before,
.bar-title .button-prev:after,
.bar-title .button-next:before,
.bar-title .button-next:after {
position: absolute;
display: block;
width: 15px;
height: 3px;
background-color: $app-color;
content: '';
}
// Prev/next button base styles
.bar-title .button-prev {
padding-left: 22px; // Push over to make room for chevrons
}
.bar-title .button-next {
padding-right: 22px; // Push over to make room for chevrons
}
// Position the chevrons horizontally
.bar-title .button-prev:before,
.bar-title .button-prev:after {
left: 0;
}
.bar-title .button-next:before,
.bar-title .button-next:after {
right: 0;
}
// Position the chevrons vertically
.bar-title .button-prev:before,
.bar-title .button-next:before {
top: 12px;
}
.bar-title .button-prev:after,
.bar-title .button-next:after {
top: 21px;
}
// Rotate the chevrons
.bar-title .button-prev:before {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.bar-title .button-prev:after {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.bar-title .button-next:before {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.bar-title .button-next:after {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
12 years ago
}
// Block buttons in all bars
// --------------------------------------------------
12 years ago
// Add proper padding and replace buttons normal dropshadow with a shine from bar
12 years ago
[class*="bar"] .button-block {
padding: 7px 0;
margin-bottom: 0;
}
// Override standard padding changes for .button-blocks
12 years ago
[class*="bar"] .button-block:active {
padding: 7px 0;
}
// Segmented controller in all bars
// --------------------------------------------------
12 years ago
// Remove standard segmented bottom margin
12 years ago
[class*="bar-"] .segmented-controller {
margin-bottom: 0;
}
// Add margins between segmented controllers and buttons
12 years ago
[class*="bar-"] .segmented-controller + [class*="button"],
[class*="bar-"] [class*="button"] + .segmented-controller {
margin-left: 5px;
}
// Segmented controller in a nav bars
// --------------------------------------------------
12 years ago
.bar-title .segmented-controller {
line-height: 18px;
-webkit-box-flex: 1;
box-flex: 1;
}
// Search forms in standard bar
// --------------------------------------------------
12 years ago
// Position/size search bar within the bar
12 years ago
.bar-standard input[type=search] {
height: 32px;
margin: 0;
}