Created
May 23, 2015 12:07
-
-
Save erineland/a4052cb6546d67912f21 to your computer and use it in GitHub Desktop.
How to add custom styles to multiple tab bars in ionic, publishing because it took me a while to figure out how to do it!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To apply different styles nested tabs, you have to use the respective DOM positions | |
ion-nav-view { | |
ion-tabs { | |
/*Styling bottom nav bar */ | |
.tab-nav.tabs { | |
background-color: $ygi-green !important; | |
.tab-item-active { | |
background-color: white !important; | |
color: black !important; | |
} | |
} | |
/*Styling nested tabs */ | |
ion-nav-view{ | |
ion-view { | |
ion-tabs{ | |
.tab-nav.tabs{ | |
background-color: lightgray !important; | |
.tab-item-active { | |
background-color: grey !important; | |
//color: black; //I didn't need this, others might | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment