fix(toolbar): move header/footer css to component level

This commit is contained in:
Adam Bradley
2017-12-31 18:57:13 -06:00
parent ce01077b9f
commit cd88424c34
9 changed files with 58 additions and 21 deletions

View File

@ -147,11 +147,23 @@ sub {
bottom: -.25em; bottom: -.25em;
} }
ion-app { ion-app {
@extend .ion-page position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: $z-index-page-container;
width: 100%;
height: 100%;
contain: layout size style;
} }
// Page Container Structure // Page Container Structure
// -------------------------------------------------- // --------------------------------------------------
@ -167,24 +179,6 @@ ion-app {
opacity: 0; opacity: 0;
} }
// Toolbar Container Structure
// --------------------------------------------------
ion-header,
ion-footer {
position: relative;
z-index: $z-index-toolbar;
display: block;
order: 1;
width: 100%;
}
ion-header {
order: -1;
}
// Misc // Misc
// -------------------------------------------------- // --------------------------------------------------

View File

@ -1,3 +1,4 @@
@import "./footer";
@import "./footer.ios.vars"; @import "./footer.ios.vars";
// iOS Footer // iOS Footer

View File

@ -0,0 +1,4 @@
@import "./footer";
// Material Design Footer
// --------------------------------------------------

View File

@ -0,0 +1,14 @@
@import "../../themes/ionic.globals";
// Footer
// --------------------------------------------------
ion-footer {
position: relative;
z-index: $z-index-toolbar;
display: block;
order: 1;
width: 100%;
}

View File

@ -4,6 +4,10 @@ import { createThemedClasses } from '../../utils/theme';
@Component({ @Component({
tag: 'ion-footer', tag: 'ion-footer',
styleUrls: {
ios: 'footer.ios.scss',
md: 'footer.md.scss'
},
host: { host: {
theme: 'footer' theme: 'footer'
} }

View File

@ -1,3 +1,4 @@
@import "./header";
@import "./header.ios.vars"; @import "./header.ios.vars";
// iOS Header // iOS Header

View File

@ -0,0 +1,4 @@
@import "./header";
// Material Design Header
// --------------------------------------------------

View File

@ -0,0 +1,14 @@
@import "../../themes/ionic.globals";
// Header
// --------------------------------------------------
ion-header {
position: relative;
z-index: $z-index-toolbar;
display: block;
order: -1;
width: 100%;
}

View File

@ -5,7 +5,8 @@ import { createThemedClasses } from '../../utils/theme';
@Component({ @Component({
tag: 'ion-header', tag: 'ion-header',
styleUrls: { styleUrls: {
ios: 'header.ios.scss' ios: 'header.ios.scss',
md: 'header.md.scss'
}, },
host: { host: {
theme: 'header' theme: 'header'