discourse/app/assets/stylesheets/mobile/modal.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

127 lines
2.0 KiB
SCSS
Raw Normal View History

2013-09-05 15:37:07 -04:00
// base styles for every modal popup used in Discourse
.modal-open #main {
overflow: hidden;
}
2014-03-12 23:17:18 -04:00
2013-09-05 15:37:07 -04:00
.modal-middle-container {
2014-03-06 23:55:57 -05:00
max-width: 100%;
margin-bottom: 30px; // For iOS Safari issues
2013-09-05 15:37:07 -04:00
}
// Hardcode to be the same as before for now. I would recommend not using bootbox, or finding a way so the html structure can be the same
.bootbox.modal {
top: 10%;
width: 100%;
}
2020-02-21 15:44:34 -05:00
.modal {
&.fade {
transition: opacity 0.3s linear, top 0.3s ease-out;
top: -25%;
}
&.fade.in {
top: 50%;
}
.modal-body {
padding: 0.667em;
2020-02-21 15:44:34 -05:00
> * {
// adding box-sizing: border-box; to .modal-body causes iOS dropdown issues
box-sizing: border-box;
}
}
2013-09-05 15:37:07 -04:00
}
2017-03-10 11:57:18 -05:00
// we need a little extra room on mobile for the
// stuff inside the footer to fit
.modal-footer {
padding: 10px;
2013-09-05 15:37:07 -04:00
}
2014-11-12 03:39:32 -05:00
2013-09-05 15:37:07 -04:00
.modal-header {
padding: 10px;
2013-09-05 15:37:07 -04:00
h3 {
2018-01-12 17:27:38 -05:00
font-size: $font-up-2;
2013-09-05 15:37:07 -04:00
}
}
2014-06-18 14:04:10 -04:00
.close {
2018-01-12 17:27:38 -05:00
font-size: $font-up-4;
2014-06-18 14:04:10 -04:00
}
2013-09-05 15:37:07 -04:00
#choosing-topic {
2013-09-05 15:37:07 -04:00
p {
margin-top: 0;
padding-bottom: 0;
2013-09-05 15:37:07 -04:00
}
input[type="radio"] {
2013-09-05 15:37:07 -04:00
margin-right: 10px;
}
.category-chooser {
margin-bottom: 9px;
}
2013-09-05 15:37:07 -04:00
button {
margin-top: 10px;
display: block;
width: 300px;
}
form {
margin-top: 20px;
input:not(.filter-input)[type="text"] {
2015-09-15 04:39:52 -04:00
box-sizing: border-box;
width: 100%;
2013-09-05 15:37:07 -04:00
}
}
}
@media only screen and (max-device-width: 568px) {
.modal .flag-modal-body .flag-message {
2018-02-23 21:41:40 -05:00
height: 3em;
}
}
/* fixes for the new account confirm dialog on mobile */
.modal-inner-container {
margin-bottom: 20px;
}
/* fix for tall modals */
.fixed-modal {
.modal-middle-container {
margin-bottom: 0;
}
.modal-inner-container {
max-height: 90vh;
overflow: auto;
}
&.insert-hyperlink-modal .modal-inner-container {
overflow: visible;
}
}
2020-02-21 15:44:34 -05:00
.modal .modal-body.reorder-categories {
max-height: calc(100vh - 220px);
}
.discard-draft-modal {
.modal-inner-container {
width: 250px;
}
.modal-footer {
justify-content: center;
flex-flow: column nowrap;
2021-04-19 09:28:07 -04:00
align-items: stretch;
.btn {
margin-right: 0;
}
}
}