libreoffice-online/browser/css/iframedialog.css
Szymon Kłos 9187ae99d7 Center IFrameDialog using CSS
instead of using hardcoded pixel distance...

affects eg. feedback dialog which was impossible to
access in very small windows due to position outside window

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2a85defcd2aabf1bdb8ec88d70b6e6a873dec75f
2023-07-11 10:19:40 +02:00

22 lines
582 B
CSS

.iframe-dialog-wrap {
position: absolute;
z-index: 1106;
left: 50%;
top: 50%;
}
.iframe-dialog-content {
margin-left: -50%;
margin-top: -50%;
}
.iframe-dialog-modal {
height: 424px;
width: 448px;
border: 1px solid var(--color-border);
box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.15), 0 2px 2px 0 rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.15), 0 2px 2px 0 rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.15), 0 2px 2px 0 rgba(0, 0, 0, 0.1);
border-radius: var(--border-radius);
background: var(--color-background-lighter);
}