Files
Adam Bradley c41801c55f css cleanup
2015-09-05 21:02:45 -05:00

86 lines
1.5 KiB
SCSS

// iOS Tabs
// --------------------------------------------------
$tab-bar-ios-item-padding: 0px 10px !default;
$tab-bar-ios-item-font-size: 10px !default;
$tab-bar-ios-item-icon-size: 32px !default;
$tab-bar-ios-height: 49px !default;
.tab-bar {
border-top: 1px solid $toolbar-ios-border-color;
}
.tabs[tab-bar-placement="top"] .tab-bar {
border-top: none;
border-bottom: 1px solid $toolbar-ios-border-color;
}
.tab-button {
padding: $tab-bar-ios-item-padding;
min-height: $tab-bar-ios-height;
}
.tab-button-text {
margin-bottom: 0;
min-height: $tab-bar-ios-item-font-size + 1;
font-size: $tab-bar-ios-item-font-size;
}
.has-title-only .tab-button-text {
font-size: $tab-bar-ios-item-font-size + 2;
}
.tab-button-icon {
font-size: $tab-bar-ios-item-icon-size;
height: $tab-bar-ios-item-icon-size;
min-width: $tab-bar-ios-item-icon-size + 5;
&:before {
vertical-align: top;
}
}
[tab-bar-icons=right] .tab-button,
[tab-bar-icons=left] .tab-button {
.tab-button-text {
font-size: 1.4rem;
line-height: 1.1;
margin-top: 0;
margin-bottom: 0;
}
icon {
min-width: 24px;
height: 26px;
font-size: 24px;
}
}
.tab-button.has-title-only {
min-height: $tab-bar-ios-height - 8;
.tab-button-text {
font-size: 1.4rem;
line-height: 1.1;
}
}
.tab-button.icon-only {
min-height: $tab-bar-ios-height - 8;
}
&.hairlines .tabs {
.tab-bar {
border-top-width: 0.5px;
}
&[tab-bar-placement="top"] .tab-bar {
border-bottom-width: 0.55px;
}
}