modal: add popupLeft and popupTop properties (#265)
This commit is contained in:
parent
ea4a21cf2d
commit
bec71b5c1b
5 changed files with 48 additions and 10 deletions
|
|
@ -496,7 +496,8 @@ body {
|
|||
right:0;
|
||||
bottom:0;
|
||||
padding:10%;
|
||||
align-items: center;
|
||||
align-items:center;
|
||||
justify-content: center;
|
||||
z-index:1000000;
|
||||
transform: translate3d(0,0,0);
|
||||
display: none;
|
||||
|
|
@ -506,10 +507,10 @@ body {
|
|||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top:-40rem;
|
||||
left:-40rem;
|
||||
right:-40rem;
|
||||
bottom:-40rem;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background:var(--color-bg);
|
||||
opacity: .5;
|
||||
}
|
||||
|
|
@ -544,7 +545,6 @@ body {
|
|||
align-items: stretch;
|
||||
width:auto;
|
||||
max-width:600rem;
|
||||
margin:0 auto;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
box-shadow: 1rem 0 0 0 var(--color-bg),
|
||||
|
|
|
|||
|
|
@ -201,6 +201,7 @@
|
|||
}
|
||||
> .popup {
|
||||
padding:0;
|
||||
|
||||
> .popup-wrapper {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
|
|
@ -224,6 +225,20 @@
|
|||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&.x-positionned {
|
||||
justify-content: flex-start;
|
||||
> .popup-wrapper {
|
||||
margin-left: var(--left);
|
||||
}
|
||||
}
|
||||
&.y-positionned {
|
||||
align-items:flex-start;
|
||||
> .popup-wrapper {
|
||||
margin-top: var(--top);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
&.editing .popup-wrapper:after {
|
||||
content:"";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue