Skip to content

Commit

Permalink
fix(ionTabs): make icons and titles stay in the same position closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington committed Jun 18, 2015
1 parent 1911b07 commit d9b3b80
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion scss/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,30 @@ ion-tabs {
transition: color .2s ease;
}
}
&:not(.tabs-icon-left):not(.tabs-icon-top){
.tab-item{
&.tab-item-active,
&.active,
&.activated {
> .tab-title, > i{
display:block;
margin-top: -$tabs-striped-border-width + 1px;
}
}
}
}
&.tabs-icon-left{
.tab-item{
margin-top: 1px;
&.tab-item-active,
&.active,
&.activated {
> .tab-title, > i {
margin-top: -0.1em;
}
}
}
}
}
}

Expand Down Expand Up @@ -398,7 +422,7 @@ ion-tabs {
.tabs-icon-right > .tabs .tab-item {
font-size: $tabs-text-font-size-side-icon;

.icon {
.icon, .tab-title {
display: inline-block;
vertical-align: top;
margin-top: -.1em;
Expand Down Expand Up @@ -494,3 +518,4 @@ ion-tabs {
cursor: default;
pointer-events: none;
}

0 comments on commit d9b3b80

Please sign in to comment.