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.
60 lines
1.2 KiB
60 lines
1.2 KiB
12 years ago
|
/* Segmented controllers
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
.segmented-controller {
|
||
|
display: -webkit-box;
|
||
|
display: box;
|
||
|
margin-bottom: 10px;
|
||
|
overflow: hidden;
|
||
|
font-size: 12px;
|
||
|
font-weight: bold;
|
||
|
list-style: none;
|
||
11 years ago
|
background-color: transparent;
|
||
|
border: 1px solid #007aff;
|
||
|
border-radius: 4px;
|
||
12 years ago
|
-webkit-box-orient: horizontal;
|
||
|
box-orient: horizontal;
|
||
|
}
|
||
|
|
||
|
/* Section within controller */
|
||
|
.segmented-controller li {
|
||
|
overflow: hidden;
|
||
|
text-align: center;
|
||
|
white-space: nowrap;
|
||
11 years ago
|
border-left: 1px solid #007aff;
|
||
12 years ago
|
-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;
|
||
11 years ago
|
color: #007aff;
|
||
12 years ago
|
text-overflow: ellipsis;
|
||
|
}
|
||
|
|
||
|
/* Remove border-left and shadow from first section */
|
||
|
.segmented-controller li:first-child {
|
||
|
border-left-width: 0;
|
||
|
}
|
||
|
|
||
|
/* Active segment of controller */
|
||
|
.segmented-controller li.active {
|
||
11 years ago
|
background-color: #007aff;
|
||
11 years ago
|
transition: background-color .2s linear;
|
||
11 years ago
|
}
|
||
|
/* Set color of links to white */
|
||
|
.segmented-controller li.active > a {
|
||
|
color: #fff;
|
||
12 years ago
|
}
|
||
|
|
||
|
.segmented-controller-item {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.segmented-controller-item.active {
|
||
|
display: block;
|
||
|
}
|