mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
27 lines
525 B
SCSS
27 lines
525 B
SCSS
|
|
// Content
|
|
// --------------------------------------------------
|
|
|
|
$content-background-color: $background-color !default;
|
|
|
|
|
|
ion-content {
|
|
position: relative;
|
|
display: block;
|
|
flex: 1;
|
|
background-color: $content-background-color;
|
|
}
|
|
|
|
scroll-content {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
display: block;
|
|
overflow-y: scroll; // has to be scroll for momentum scrolling, not auto
|
|
overflow-x: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
will-change: scroll-position;
|
|
}
|