mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
refactor: move event select popup to a modal
This commit is contained in:
committed by
Rainer Killinger
parent
8a04a43903
commit
4a3f79ca20
@@ -17,14 +17,15 @@
|
||||
$parallax-background: var(--ion-color-primary),
|
||||
$background: var(--ion-color-light),
|
||||
$parallax-strength: 2,
|
||||
$overscroll-padding: 50vh,
|
||||
$content-size: 0px,
|
||||
$overscroll-padding: 720px,
|
||||
$content-size: 230px,
|
||||
) {
|
||||
&::part(background) {
|
||||
background: $background;
|
||||
}
|
||||
&::part(scroll) {
|
||||
perspective: 2px;
|
||||
perspective-origin: center top;
|
||||
}
|
||||
> div {
|
||||
transform-style: preserve-3d;
|
||||
@@ -35,13 +36,21 @@
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: calc(#{$content-size} + #{$parallax-strength} * #{$overscroll-padding});
|
||||
width: 200%;
|
||||
left: 0;
|
||||
|
||||
$height: calc($content-size + $overscroll-padding);
|
||||
$translateY: calc($overscroll-padding * $parallax-strength);
|
||||
$translateZ: calc(-1px * $parallax-strength);
|
||||
$transform-origin: calc($parallax-strength * $parallax-strength * $overscroll-padding);
|
||||
|
||||
height: $height;
|
||||
width: 150%;
|
||||
transform-origin: 50% $transform-origin;
|
||||
transform:
|
||||
translateY(calc(-#{$overscroll-padding} * #{$parallax-strength}))
|
||||
translateZ(calc(-1px * #{$parallax-strength}))
|
||||
scale(1.5);
|
||||
translate3d(0px, $translateY, $translateZ)
|
||||
scale($parallax-strength);
|
||||
z-index: -1;
|
||||
|
||||
background: $parallax-background;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user