.ios and .md body class css structure

This commit is contained in:
Adam Bradley
2015-09-04 23:53:59 -05:00
parent 7b09e70284
commit cdf631dcaf
42 changed files with 140 additions and 195 deletions

View File

@@ -167,7 +167,7 @@ export class IonicApp {
}
});
bodyEle.setAttribute('mode', config.setting('mode'));
bodyEle.classList.add(config.setting('mode'));
/**
* Hairline Shim

View File

@@ -1,4 +1,4 @@
/*! Ionic fork of normalize.css v3.0.2 | MIT License | github.com/necolas/normalize.css */
/*! normalize.css v3.0.2 | MIT License | github.com/necolas/normalize.css */
// HTML5 display definitions

View File

@@ -5,7 +5,7 @@
.navbar-container {
background-color: #ff6600 !important;
}
.nav[mode=ios] ion-title {
.md .nav ion-title {
color: #fff !important;
}
</style>

View File

@@ -1,10 +1,10 @@
<ion-nav [root]="root"></ion-nav>
<style>
.nav[mode=ios] .navbar-container {
.md .nav .navbar-container {
background-color: #2FD9BB !important;
}
.nav[mode=ios] .navbar-title {
.md .nav .navbar-title {
color: #FDFEFE;
}
#tabs .tab-bar:before {

View File

@@ -101,7 +101,3 @@ sup {
sub {
bottom: -0.25em;
}
body[mode=md] {
font-family: "Roboto", "Helvetica Neue", sans-serif;
}