mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-23 09:18:15 -06:00
If an element is being morphed, then it can't contain direct modal dialog, because "show-modal" moves the dialog into body, then a duplicate dialog will be morphed into the element. So, we need to use template-based modal dialog when morphing. --------- Co-authored-by: silverwind <me@silverwind.io>
19 lines
362 B
CSS
19 lines
362 B
CSS
.modal-backdrop {
|
|
position: fixed;
|
|
display: none;
|
|
inset: 0;
|
|
background: var(--color-overlay-backdrop);
|
|
z-index: var(--z-index-modal);
|
|
overflow-y: auto;
|
|
justify-content: center;
|
|
padding: 8px 0;
|
|
animation-name: fadein;
|
|
animation-duration: .2s;
|
|
overscroll-behavior: contain;
|
|
user-select: none;
|
|
}
|
|
|
|
.modal-backdrop.active {
|
|
display: flex;
|
|
}
|