mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
70 lines
1.0 KiB
SCSS
70 lines
1.0 KiB
SCSS
/**
|
|
* Tabs
|
|
*
|
|
* A navigation bar with any number of tab items supported.
|
|
*/
|
|
|
|
.tabs {
|
|
font-size: 16px;
|
|
}
|
|
.tab-item {
|
|
a {
|
|
font-weight: 200;
|
|
font-family: $light-sans-font-family;
|
|
|
|
.active, &:active {
|
|
//box-shadow: inset 0 0 10px rgba(0, 0, 0, .12);
|
|
}
|
|
}
|
|
i {
|
|
font-size: 25px;
|
|
}
|
|
}
|
|
|
|
.tabs-inner {
|
|
@include box-orient(horizontal);
|
|
display: -webkit-box;
|
|
display: box;
|
|
height: 100%;
|
|
list-style: none;
|
|
}
|
|
|
|
/* Navigational tab */
|
|
.tab-item {
|
|
|
|
@include box-flex(1);
|
|
box-sizing: border-box;
|
|
|
|
// Required to force box elements to be the same size;
|
|
width: 0;
|
|
height: 100%;
|
|
text-align: center;
|
|
|
|
a {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
/* Active state for tab */
|
|
.tab-item.active, .tab-item:active {
|
|
//box-shadow: inset 0 0 1px rgba(0, 0, 0, .12);
|
|
background-color: rgba(0,0,0,0.2);
|
|
}
|
|
|
|
/* Icon for tab */
|
|
.tab-item i {
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Label for tab */
|
|
.tab-label {
|
|
margin-top: 1px;
|
|
color: #fff;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
}
|