fix blurry modal dialog on chrome/safari

Fixes #71
pull/101/head
Nolan Lawson 2018-04-13 08:52:52 -07:00
rodzic 1d67a2ad0c
commit 152c5d8c58
1 zmienionych plików z 14 dodań i 7 usunięć

Wyświetl plik

@ -28,9 +28,21 @@
:global(.modal-dialog[aria-hidden='true']) {
display: none;
}
.modal-dialog-backdrop {
:global(.modal-dialog) {
position: fixed;
z-index: 10000;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
}
.modal-dialog-backdrop {
position: fixed;
z-index: 10010;
left: 0;
right: 0;
bottom: 0;
@ -41,12 +53,7 @@
transition: opacity 0.2s linear;
}
.modal-dialog-contents {
z-index: 10010;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-font-smoothing: antialiased; /* fix for transform:translate causing blurry text in Chrome/Safari */
z-index: 10020;
padding: 0;
border: 1px solid var(--main-border);
border-radius: 2px;