mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
90 lines
1.6 KiB
SCSS
90 lines
1.6 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;
|
|
|
|
|
|
.tabs {
|
|
|
|
.tab-bar {
|
|
border-top: 1px solid $toolbar-ios-border-color;
|
|
}
|
|
|
|
&[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;
|
|
}
|
|
|
|
}
|