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.

62 lines
1.5 KiB

12 years ago
/* Segmented controllers
-------------------------------------------------- */
.segmented-controller {
display: -webkit-box;
display: box;
margin-bottom: 10px;
overflow: hidden;
font-size: 12px;
font-weight: bold;
text-shadow: 0 1px rgba(255, 255, 255, .5);
list-style: none;
background-color: #f8f8f8;
background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%);
background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%);
border: 1px solid #aaa;
border-radius: 3px;
box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px rgba(255, 255, 255, .8);
-webkit-box-orient: horizontal;
box-orient: horizontal;
}
/* Section within controller */
.segmented-controller li {
overflow: hidden;
text-align: center;
white-space: nowrap;
border-left: 1px solid #aaa;
box-shadow: inset 1px 0 rgba(255, 255, 255, .5);
-webkit-box-flex: 1;
box-flex: 1;
}
/* Link that fills each section */
.segmented-controller li > a {
display: block;
padding: 8px 16px;
overflow: hidden;
line-height: 15px;
color: #333;
text-overflow: ellipsis;
}
/* Remove border-left and shadow from first section */
.segmented-controller li:first-child {
border-left-width: 0;
box-shadow: none;
}
/* Active segment of controller */
.segmented-controller li.active {
background-color: #ccc;
box-shadow: inset 0 1px 5px rgba(0, 0, 0, .3);
}
.segmented-controller-item {
display: none;
}
.segmented-controller-item.active {
display: block;
}