mirror of https://github.com/twbs/ratchet.git
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.
269 lines
5.8 KiB
269 lines
5.8 KiB
12 years ago
|
/* General bar styles
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
[class*="bar-"] {
|
||
|
position: fixed;
|
||
|
right: 0;
|
||
|
left: 0;
|
||
|
z-index: 10;
|
||
|
height: 44px;
|
||
|
padding: 5px;
|
||
11 years ago
|
background-color: rgba(247,247,247,.98);
|
||
11 years ago
|
box-shadow: 0 0px 1px rgba(0,0,0,.85);
|
||
|
/*border-bottom: 1px solid rgba(0,0,0,.3);*/
|
||
12 years ago
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
/* Modifier class to dock any bar below .bar-title */
|
||
|
.bar-header-secondary {
|
||
11 years ago
|
top: 44px;
|
||
12 years ago
|
}
|
||
|
|
||
|
/* Modifier class to dock any bar to bottom of viewport */
|
||
|
.bar-footer {
|
||
|
bottom: 0;
|
||
|
}
|
||
|
|
||
|
/* Flip border position to top for footer bars */
|
||
|
.bar-footer.bar-standard,
|
||
|
.bar-footer-secondary.bar-standard {
|
||
11 years ago
|
/*border-top: 1px solid #aaa;
|
||
|
border-bottom-width: 0;*/
|
||
|
box-shadow: 0 0px 1px rgba(0,0,0,.85);
|
||
12 years ago
|
}
|
||
|
|
||
|
/* Title bar
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
/* Bar docked to top of viewport for showing page title and actions */
|
||
|
.bar-title {
|
||
|
top: 0;
|
||
|
display: -webkit-box;
|
||
|
display: box;
|
||
|
-webkit-box-orient: horizontal;
|
||
|
box-orient: horizontal;
|
||
|
}
|
||
|
|
||
|
/* Centered text in the .bar-title */
|
||
|
.bar-title .title {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
display: block;
|
||
|
width: 100%;
|
||
11 years ago
|
font-size: 18px;
|
||
|
font-weight: 500;
|
||
12 years ago
|
line-height: 44px;
|
||
11 years ago
|
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 */
|
||
|
.bar-title .title a {
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
/* Tab bar
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
/* Bar docked to bottom used for primary app navigation */
|
||
|
.bar-tab {
|
||
|
bottom: 0;
|
||
|
height: 50px;
|
||
|
padding: 0;
|
||
11 years ago
|
/*border-top: 1px solid rgba(0,0,0,.3);
|
||
|
border-bottom-width: 0;*/
|
||
|
box-shadow: 0 0px 1px rgba(0,0,0,.85);
|
||
12 years ago
|
}
|
||
|
|
||
|
/* Wrapper for individual tab */
|
||
|
.tab-inner {
|
||
|
display: -webkit-box;
|
||
|
display: box;
|
||
|
height: 100%;
|
||
|
list-style: none;
|
||
|
-webkit-box-orient: horizontal;
|
||
|
box-orient: horizontal;
|
||
|
}
|
||
|
|
||
|
/* Navigational tab */
|
||
|
.tab-item {
|
||
|
height: 100%;
|
||
|
padding-top: 9px;
|
||
|
text-align: center;
|
||
|
box-sizing: border-box;
|
||
|
-webkit-box-flex: 1;
|
||
|
box-flex: 1;
|
||
|
}
|
||
|
|
||
|
/* Icon for tab */
|
||
|
.tab-icon {
|
||
|
display: block;
|
||
|
height: 18px;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
/* Label for tab */
|
||
|
.tab-label {
|
||
|
margin-top: 1px;
|
||
11 years ago
|
font-size: 11px;
|
||
|
font-weight: 400;
|
||
|
color: #929292;
|
||
|
}
|
||
|
.tab-item.active .tab-label {
|
||
|
color: #007aff;
|
||
12 years ago
|
}
|
||
|
|
||
|
/* Buttons in title bars
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
/* Generic style for all buttons in .bar-title */
|
||
|
.bar-title [class*="button"] {
|
||
|
position: relative;
|
||
|
z-index: 10; /* Places buttons over full width title */
|
||
11 years ago
|
padding-left: 5px;
|
||
|
padding-right: 5px;
|
||
11 years ago
|
font-size: 16px;
|
||
|
font-weight: 400;
|
||
|
line-height: 29px;
|
||
|
color: #007aff;
|
||
|
border: 0;
|
||
11 years ago
|
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 */
|
||
|
.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 {
|
||
11 years ago
|
color: #007aff;
|
||
|
background-color: transparent;
|
||
|
opacity: .3;
|
||
|
}
|
||
|
|
||
|
/* Directional buttons in title 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: #007aff;
|
||
|
content: '';
|
||
|
}
|
||
|
|
||
|
/* Prev/next button base styles */
|
||
|
.bar-title .button-prev {
|
||
11 years ago
|
padding-left: 22px; /* Push over to make room for chevrons */
|
||
11 years ago
|
}
|
||
|
.bar-title .button-next {
|
||
11 years ago
|
padding-right: 22px; /* Push over to make room for chevrons */
|
||
11 years ago
|
}
|
||
|
|
||
|
/* 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 any bar
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
/* Add proper padding and replace buttons normal dropshadow with a shine from bar */
|
||
|
[class*="bar"] .button-block {
|
||
|
padding: 7px 0;
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
|
||
|
/* Override standard padding changes for .button-blocks */
|
||
|
[class*="bar"] .button-block:active {
|
||
|
padding: 7px 0;
|
||
|
}
|
||
|
|
||
|
/* Segmented controller in any bar
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
/* Remove standard segmented bottom margin */
|
||
|
[class*="bar-"] .segmented-controller {
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
|
||
|
/* Add margins between segmented controllers and buttons */
|
||
|
[class*="bar-"] .segmented-controller + [class*="button"],
|
||
|
[class*="bar-"] [class*="button"] + .segmented-controller {
|
||
|
margin-left: 5px;
|
||
|
}
|
||
|
|
||
|
/* Segmented controller in a title bar
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
.bar-title .segmented-controller {
|
||
|
line-height: 18px;
|
||
|
-webkit-box-flex: 1;
|
||
|
box-flex: 1;
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Search forms in standard bar
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
/* Position/size search bar within the bar */
|
||
|
.bar-standard input[type=search] {
|
||
|
height: 32px;
|
||
|
margin: 0;
|
||
|
}
|