mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
48 lines
1.0 KiB
SCSS
48 lines
1.0 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: 30px !default;
|
|
$tab-bar-ios-height: 49px !default;
|
|
|
|
|
|
.tabs[mode="ios"] {
|
|
|
|
.tab-bar {
|
|
// iOS's UITabBar is at most 49px high
|
|
max-height: $tab-bar-ios-height;
|
|
height: $tab-bar-ios-height;
|
|
}
|
|
|
|
.tab-button {
|
|
padding: $tab-bar-ios-item-padding;
|
|
}
|
|
|
|
.tab-button-text {
|
|
font-size: $tab-bar-ios-item-font-size;
|
|
}
|
|
|
|
.tab-button-icon {
|
|
font-size: $tab-bar-ios-item-icon-size;
|
|
height: $tab-bar-ios-item-icon-size;
|
|
&:before {
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
|
|
&[tab-bar-placement="bottom"] > .tab-bar-container {
|
|
@include hairline(top, $toolbar-ios-border-color);
|
|
}
|
|
|
|
&[tab-bar-placement="top"] > .tab-bar-container {
|
|
@include hairline(bottom, $toolbar-ios-border-color);
|
|
}
|
|
|
|
&[tab-bar-placement="top"] > .toolbar-container .toolbar {
|
|
@include hairline(bottom, none);
|
|
}
|
|
|
|
}
|