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.

75 lines
1.5 KiB

//
// Segmented controllers
// --------------------------------------------------
.segmented-controller {
display: table;
padding: 0;
overflow: hidden;
font-size: 12px;
font-weight: $font-weight-light;
list-style: none;
background-color: $chrome-color;
border: 1px solid $primary-color;
border-radius: 4px;
// Section within controller
li {
display: table-cell;
overflow: hidden;
width: 1%;
text-align: center;
white-space: nowrap;
border-left: 1px solid $primary-color;
// Link that fills each section
> a {
display: block;
padding-top: 6px;
padding-bottom: 7px;
overflow: hidden;
line-height: 1;
color: $primary-color;
text-overflow: ellipsis;
}
// Remove border-left and shadow from first section
&:first-child {
border-left-width: 0;
}
// Active state of segmented controller
&:active {
background-color: rgba(213,233,255,1);
}
// Selected segment of controller
&.selected {
background-color: $primary-color;
// Set color of links to white
> a {
color: #fff;
}
}
}
}
.segmented-controller-item {
display: none;
&.selected {
display: block;
}
}
// Segmented controller in all bars
// --------------------------------------------------
// Remove standard segmented bottom margin
[class*="bar-"] .segmented-controller {
margin-top: 3px;
margin-right: auto;
margin-left: auto;
}