mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 14:58:36 +08:00
feat(ion-content): iOS only scroll bounce
This commit is contained in:

committed by
Adam Bradley

parent
d458b1ec90
commit
5c804450c4
@ -45,3 +45,27 @@ ion-page.show-page ~ .nav-decor {
|
||||
// --------------------------------------------------
|
||||
|
||||
@include content-margin($content-ios-margin);
|
||||
|
||||
|
||||
// iOS Content Scroll
|
||||
// --------------------------------------------------
|
||||
|
||||
ion-content:not([no-bounce]) > scroll-content {
|
||||
&::before,
|
||||
&::after {
|
||||
position: absolute;
|
||||
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
|
||||
content: "";
|
||||
}
|
||||
|
||||
&::before {
|
||||
bottom: -1px;
|
||||
}
|
||||
|
||||
&::after {
|
||||
top: -1px;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user