modal: add relative geometry property
This commit is contained in:
parent
0cd3db8583
commit
c893241313
4 changed files with 20 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ $padding: 8rem;
|
|||
bottom:0;
|
||||
background: black;
|
||||
opacity: .3;
|
||||
pointer-events: none;
|
||||
// pointer-events: none;
|
||||
// animation: popup-backdrop-fade-in .25s forwards;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -515,6 +515,21 @@
|
|||
|
||||
}
|
||||
|
||||
&.relative {
|
||||
> .popup {
|
||||
left: auto;
|
||||
right: auto;
|
||||
top: auto;
|
||||
bottom: auto;
|
||||
position: absolute;
|
||||
width: var(--width, 100%);
|
||||
height: var(--height, 100%);
|
||||
margin-top: calc(-1 * var(--widget-spacing));
|
||||
margin-left: calc(-1 * var(--widget-spacing));
|
||||
padding: var(--widget-spacing);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.modal-breakout {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue