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