mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
@ -59,8 +59,12 @@
|
||||
--background: #{$background-color-step-50};
|
||||
}
|
||||
|
||||
#scroll-content {
|
||||
min-height: 100%;
|
||||
#background-content {
|
||||
@include position(calc(var(--offset-top) * -1), 0px,calc(var(--offset-bottom) * -1), 0px);
|
||||
|
||||
position: absolute;
|
||||
|
||||
background: var(--background);
|
||||
}
|
||||
|
||||
.inner-scroll {
|
||||
@ -69,7 +73,6 @@
|
||||
|
||||
position: absolute;
|
||||
|
||||
background: var(--background);
|
||||
color: var(--color);
|
||||
|
||||
box-sizing: border-box;
|
||||
@ -124,7 +127,7 @@
|
||||
}
|
||||
|
||||
.transition-effect {
|
||||
|
||||
|
||||
display: none;
|
||||
position: absolute;
|
||||
|
||||
|
@ -320,6 +320,7 @@ export class Content implements ComponentInterface {
|
||||
'--offset-bottom': `${this.cBottom}px`,
|
||||
}}
|
||||
>
|
||||
<div id="background-content"></div>
|
||||
<main
|
||||
class={{
|
||||
'inner-scroll': true,
|
||||
@ -330,9 +331,7 @@ export class Content implements ComponentInterface {
|
||||
ref={el => this.scrollEl = el!}
|
||||
onScroll={ev => this.onScroll(ev)}
|
||||
>
|
||||
<div id="scroll-content">
|
||||
<slot></slot>
|
||||
</div>
|
||||
<slot></slot>
|
||||
</main>
|
||||
|
||||
{transitionShadow ? (
|
||||
|
Reference in New Issue
Block a user