1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

styling fixes

This commit is contained in:
David Wheatley
2022-01-01 17:21:27 +01:00
parent d8841bba61
commit 8b3ddd856e

View File

@@ -6,8 +6,24 @@
overflow: hidden; overflow: hidden;
} }
// Modal background .Modal {
.ModalManager dialog { border-width: 0;
padding: 0;
overflow: visible;
border-radius: @border-radius;
transform: scale(0.9);
transition: transform 0.2s ease-out, opacity 0.2s ease-out;
// only in polyfilled browsers
&[role] {
top: 0 !important;
}
&.in {
transform: scale(1);
}
//! These MUST be defined separately //! These MUST be defined separately
// //
// When browsers do not understand a pseudoselector, the entire block is ignored, // When browsers do not understand a pseudoselector, the entire block is ignored,
@@ -22,24 +38,11 @@
+ .backdrop { + .backdrop {
background: var(--overlay-bg); background: var(--overlay-bg);
} position: fixed;
} top: 0;
left: 0;
// Container that the modal scrolls within right: 0;
.ModalManager { bottom: 0;
// When fading in the modal, animate it to slide down
dialog {
border-width: 0;
padding: 0;
overflow: visible;
border-radius: @border-radius;
transform: scale(0.9);
transition: transform 0.2s ease-out, opacity 0.2s ease-out;
&.in {
transform: scale(1);
}
} }
} }
@@ -159,12 +162,11 @@
} }
@media @tablet-up { @media @tablet-up {
.ModalManager dialog { .Modal {
border-radius: var(--border-radius); border-radius: var(--border-radius);
box-shadow: 0 7px 15px var(--shadow-color); box-shadow: 0 7px 15px var(--shadow-color);
width: 100%; width: 100%;
} max-width: 600px;
.Modal {
margin: 120px auto; margin: 120px auto;
} }
.Modal-close { .Modal-close {