mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(tabs): improves tabs style for iOS
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
$tabbar-ios-background: $toolbar-ios-background !default;
|
||||
$tabbar-ios-item-padding: 0px 10px !default;
|
||||
$tabbar-ios-item-font-size: 10px !default;
|
||||
$tabbar-ios-item-icon-size: 32px !default;
|
||||
$tabbar-ios-item-icon-size: 30px !default;
|
||||
$tabbar-ios-height: 49px !default;
|
||||
|
||||
$tab-button-ios-min-width: 80px !default;
|
||||
@ -43,6 +43,8 @@ ion-tabs[tabbarPlacement=top] tabbar {
|
||||
.tab-button-text {
|
||||
min-height: $tabbar-ios-item-font-size + 1;
|
||||
font-size: $tabbar-ios-item-font-size;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.has-title-only .tab-button-text {
|
||||
@ -65,8 +67,6 @@ ion-tabs[tabbarPlacement=top] tabbar {
|
||||
.tab-button-text {
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.1;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
ion-icon {
|
||||
@ -83,6 +83,8 @@ ion-tabs[tabbarPlacement=top] tabbar {
|
||||
.tab-button-text {
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.1;
|
||||
|
||||
margin: 2px 0px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ tab-highlight {
|
||||
|
||||
.tab-badge {
|
||||
position: absolute;
|
||||
top: 4%;
|
||||
top: 6%;
|
||||
right: 4%;
|
||||
right: calc(50% - 50px);
|
||||
padding: 1px 6px;
|
||||
|
Reference in New Issue
Block a user