mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(toolbar): move header/footer css to component level
This commit is contained in:
@ -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
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
@import "./footer";
|
||||||
@import "./footer.ios.vars";
|
@import "./footer.ios.vars";
|
||||||
|
|
||||||
// iOS Footer
|
// iOS Footer
|
||||||
|
4
packages/core/src/components/footer/footer.md.scss
Normal file
4
packages/core/src/components/footer/footer.md.scss
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
@import "./footer";
|
||||||
|
|
||||||
|
// Material Design Footer
|
||||||
|
// --------------------------------------------------
|
14
packages/core/src/components/footer/footer.scss
Normal file
14
packages/core/src/components/footer/footer.scss
Normal 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%;
|
||||||
|
}
|
@ -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'
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
@import "./header";
|
||||||
@import "./header.ios.vars";
|
@import "./header.ios.vars";
|
||||||
|
|
||||||
// iOS Header
|
// iOS Header
|
||||||
|
4
packages/core/src/components/header/header.md.scss
Normal file
4
packages/core/src/components/header/header.md.scss
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
@import "./header";
|
||||||
|
|
||||||
|
// Material Design Header
|
||||||
|
// --------------------------------------------------
|
14
packages/core/src/components/header/header.scss
Normal file
14
packages/core/src/components/header/header.scss
Normal 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%;
|
||||||
|
}
|
@ -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'
|
||||||
|
Reference in New Issue
Block a user