mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
iOS tab icon updates
This commit is contained in:
@ -25,6 +25,10 @@ $tab-bar-ios-height: 50px !default;
|
||||
min-height: $tab-bar-ios-item-font-size + 1;
|
||||
}
|
||||
|
||||
.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;
|
||||
|
@ -14,11 +14,6 @@ $tab-bar-md-item-font-size: 1.4rem !default;
|
||||
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.tab-button-text {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -85,6 +85,11 @@ button.tab-button {
|
||||
.tab-button-icon {
|
||||
order: 10;
|
||||
}
|
||||
|
||||
.tab-button-icon {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
[tab-bar-icons="left"] > .tab-bar-container button.tab-button {
|
||||
@ -92,7 +97,7 @@ button.tab-button {
|
||||
|
||||
.tab-button-icon {
|
||||
text-align: right;
|
||||
padding-right: 5px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -102,7 +107,7 @@ button.tab-button {
|
||||
.tab-button-icon {
|
||||
order: 10;
|
||||
text-align: left;
|
||||
padding-left: 5px;
|
||||
padding-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -125,6 +130,11 @@ button.tab-button {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.has-title-only,
|
||||
.has-title-only .tab-button-text {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
button.tab-button[aria-selected="true"] {
|
||||
// Default color is primary
|
||||
color: get-color(primary, base);
|
||||
|
Reference in New Issue
Block a user