I’m styling my app. Familiar with the basic theming components, SASS etc... But one thing that stands out and it not making sense is why when I preview the source in a running app how lots of extra CSS classes are added. I’m my case I am simply trying to change the menu header background. In my app.html file I have;
<ion-header>
<ion-toolbar>
<ion-title>Menu</ion-title>
</ion-toolbar>
</ion-header>
Which translates to;
<ion-header class="header header-md">
<ion-toolbar class="toolbar toolbar-md">
<div class="toolbar-background toolbar-background-md" ng-reflect-klass="toolbar-background" ng-reflect-ng-class="toolbar-background-md"></div><div class="toolbar-content toolbar-content-md" ng-reflect-klass="toolbar-content" ng-reflect-ng-class="toolbar-content-md">
<ion-title class="title title-md"><div class="toolbar-title toolbar-title-md" ng-reflect-klass="toolbar-title" ng-reflect-ng-class="toolbar-title-md">Menu</div></ion-title>
</div></ion-toolbar>
</ion-header>
I see that there seems to be a pattern of 'ion-element' translating to 'element element-md'. But it gets a little strange for elements such as 'ion-toolbar' as this adds a div
<div class="toolbar-background toolbar-background-md" ng-reflect-klass="toolbar-background" ng-reflect-ng-class="toolbar-background-md">
I’d like to understand how this translation process works for me I'd like to create some tidy CSS as its looking a bit unwieldy to me!