Commit 87aa6100 authored by Mark Otto's avatar Mark Otto

fixes #4118: responsive modal gets width auto and improved positioning for narrower widths

parent c37aa99e
...@@ -835,6 +835,17 @@ ...@@ -835,6 +835,17 @@
display: inline-block; display: inline-block;
width: auto; width: auto;
} }
.modal {
position: fixed;
top: 20px;
right: 20px;
left: 20px;
width: auto;
margin: 0;
}
.modal.fade.in {
top: auto;
}
} }
@media (max-width: 480px) { @media (max-width: 480px) {
...@@ -866,15 +877,9 @@ ...@@ -866,15 +877,9 @@
padding-left: 10px; padding-left: 10px;
} }
.modal { .modal {
position: fixed;
top: 10px; top: 10px;
right: 10px; right: 10px;
left: 10px; left: 10px;
width: auto;
margin: 0;
}
.modal.fade.in {
top: auto;
} }
.modal-header .close { .modal-header .close {
padding: 10px; padding: 10px;
......
...@@ -84,6 +84,17 @@ ...@@ -84,6 +84,17 @@
width: auto; width: auto;
} }
// Modals
.modal {
position: fixed;
top: 20px;
left: 20px;
right: 20px;
width: auto;
margin: 0;
&.fade.in { top: auto; }
}
} }
...@@ -133,13 +144,9 @@ ...@@ -133,13 +144,9 @@
// Modals // Modals
.modal { .modal {
position: fixed;
top: 10px; top: 10px;
left: 10px; left: 10px;
right: 10px; right: 10px;
width: auto;
margin: 0;
&.fade.in { top: auto; }
} }
.modal-header .close { .modal-header .close {
padding: 10px; padding: 10px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment