mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
142 lines
1.8 KiB
SCSS
142 lines
1.8 KiB
SCSS
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
position: relative;
|
|
overflow: hidden;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
ion-app {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
|
height: 100%;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
ion-tabs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
|
height: 100%;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
ion-tab {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
|
|
display: none;
|
|
&.show-tab {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
ion-nav {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.navbar-container {
|
|
position: relative;
|
|
min-height: 4.4rem;
|
|
}
|
|
|
|
.content-container {
|
|
position: relative;
|
|
flex: 1;
|
|
}
|
|
|
|
ion-navbar {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 4.4rem;
|
|
order: $flex-order-toolbar-top;
|
|
|
|
display: none;
|
|
&.show-navbar {
|
|
display: flex;
|
|
}
|
|
|
|
}
|
|
|
|
ion-toolbar {
|
|
display: flex;
|
|
min-height: 4.4rem;
|
|
background: white;
|
|
}
|
|
|
|
ion-content {
|
|
position: relative;
|
|
display: block;
|
|
flex: 1;
|
|
order: $flex-order-view-content;
|
|
}
|
|
|
|
.scroll-content {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
overflow-y: scroll;
|
|
-webkit-overflow-scrolling: touch;
|
|
will-change: scroll-position;
|
|
}
|
|
|
|
$swipe-handle-width: 20px !default;
|
|
|
|
swipe-handle {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
width: $swipe-handle-width;
|
|
height: 100%;
|
|
z-index: $z-index-swipe-handle;
|
|
}
|
|
|
|
|
|
// Hardware Acceleration
|
|
.transitioning {
|
|
|
|
ion-view,
|
|
.ion-view,
|
|
ion-navbar,
|
|
.back-button,
|
|
ion-title {
|
|
will-change: transform, opacity;
|
|
}
|
|
|
|
}
|