mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(page): set page css on tabs, nav, page individually
This commit is contained in:
@ -2,6 +2,19 @@
|
||||
// --------------------------------------------------
|
||||
@import "../../themes/util";
|
||||
|
||||
|
||||
ion-nav {
|
||||
@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;
|
||||
}
|
@ -2,7 +2,20 @@
|
||||
// --------------------------------------------------
|
||||
@import "../../themes/util";
|
||||
|
||||
|
||||
ion-page {
|
||||
@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;
|
||||
}
|
||||
|
||||
|
@ -8,9 +8,23 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
ion-tabs {
|
||||
position: absolute;
|
||||
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
|
||||
z-index: $z-index-page-container;
|
||||
|
||||
display: flex;
|
||||
|
||||
flex-direction: column;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
contain: layout size style;
|
||||
}
|
||||
|
||||
.tabs-inner {
|
||||
@ -65,6 +79,7 @@ ion-tabbar.placement-top {
|
||||
}
|
||||
|
||||
ion-tab-button {
|
||||
box-sizing: border-box;
|
||||
@include margin(0);
|
||||
@include text-align(center);
|
||||
@include border-radius(0);
|
||||
@ -219,12 +234,3 @@ ion-tabbar.scrollable .scroll-inner {
|
||||
ion-tabbar.scrollable ion-button.inactive {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
ion-tabs {
|
||||
@extend .ion-page
|
||||
}
|
||||
|
||||
ion-tab-button {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
@ -47,19 +47,3 @@ $z-index-item-options: 1; // scss-lint:disable DefaultRule
|
||||
$z-index-item-divider: 100; // scss-lint:disable DefaultRule
|
||||
|
||||
$z-index-reorder-selected: 100; // scss-lint:disable DefaultRule
|
||||
|
||||
.ion-page {
|
||||
position: absolute;
|
||||
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
|
||||
z-index: $z-index-page-container;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
contain: layout size style;
|
||||
}
|
Reference in New Issue
Block a user