2013-09-06 03:37:07 +08:00
|
|
|
// base styles for every modal popup used in Discourse
|
|
|
|
|
2023-11-15 18:14:47 +08:00
|
|
|
.d-modal {
|
|
|
|
&__container {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2023-11-21 00:56:06 +08:00
|
|
|
|
|
|
|
// fixes modal placement on Android when keyboard is visible
|
|
|
|
html.keyboard-visible:not(.ios-device) & {
|
|
|
|
height: calc(100% - env(keyboard-inset-height));
|
|
|
|
|
|
|
|
.d-modal__container {
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
}
|
2023-11-15 18:14:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//legacy
|
2018-06-08 17:49:31 +08:00
|
|
|
.modal-open #main {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2014-03-13 11:17:18 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.modal-middle-container {
|
2014-03-07 12:55:57 +08:00
|
|
|
max-width: 100%;
|
2014-03-26 02:48:23 +08:00
|
|
|
margin-bottom: 30px; // For iOS Safari issues
|
2013-09-06 03:37:07 +08: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-22 04:44:34 +08:00
|
|
|
.modal {
|
|
|
|
&.fade {
|
|
|
|
transition: opacity 0.3s linear, top 0.3s ease-out;
|
|
|
|
top: -25%;
|
|
|
|
}
|
|
|
|
&.fade.in {
|
|
|
|
top: 50%;
|
|
|
|
}
|
|
|
|
.modal-body {
|
2020-02-20 00:08:15 +08:00
|
|
|
padding: 0.667em;
|
2021-08-23 16:44:19 +08:00
|
|
|
overflow-y: scroll;
|
|
|
|
|
2020-02-22 04:44:34 +08:00
|
|
|
> * {
|
|
|
|
// adding box-sizing: border-box; to .modal-body causes iOS dropdown issues
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2020-02-20 00:08:15 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-04-21 03:16:06 +08:00
|
|
|
|
2017-03-11 00:57:18 +08:00
|
|
|
// we need a little extra room on mobile for the
|
2016-12-03 07:29:17 +08:00
|
|
|
// stuff inside the footer to fit
|
|
|
|
.modal-footer {
|
2018-06-08 17:49:31 +08:00
|
|
|
padding: 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-11-12 16:39:32 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.modal-header {
|
2018-06-08 17:49:31 +08:00
|
|
|
padding: 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
h3 {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-2);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2018-02-24 02:14:32 +08:00
|
|
|
|
2014-06-19 02:04:10 +08:00
|
|
|
.close {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-4);
|
2014-06-19 02:04:10 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
2020-01-16 05:20:12 +08:00
|
|
|
#choosing-topic {
|
2013-09-06 03:37:07 +08:00
|
|
|
p {
|
|
|
|
margin-top: 0;
|
2020-02-20 00:08:15 +08:00
|
|
|
padding-bottom: 0;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="radio"] {
|
2013-09-06 03:37:07 +08:00
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
2018-07-07 00:21:32 +08:00
|
|
|
.category-chooser {
|
|
|
|
margin-bottom: 9px;
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
button {
|
|
|
|
margin-top: 10px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
form {
|
|
|
|
margin-top: 20px;
|
2019-03-06 18:29:45 +08:00
|
|
|
input:not(.filter-input)[type="text"] {
|
2015-09-15 16:39:52 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-15 03:18:55 +08:00
|
|
|
@media only screen and (max-device-width: 568px) {
|
2020-03-12 20:17:52 +08:00
|
|
|
.modal .flag-modal-body .flag-message {
|
2018-02-24 10:41:40 +08:00
|
|
|
height: 3em;
|
2017-09-15 03:18:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-29 18:19:09 +08:00
|
|
|
/* fixes for the new account confirm dialog on mobile */
|
|
|
|
|
|
|
|
.modal-inner-container {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
2019-06-25 00:23:51 +08:00
|
|
|
|
|
|
|
/* fix for tall modals */
|
|
|
|
|
|
|
|
.fixed-modal {
|
|
|
|
.modal-middle-container {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
.modal-inner-container {
|
|
|
|
max-height: 90vh;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
2020-06-18 02:46:01 +08:00
|
|
|
|
|
|
|
&.insert-hyperlink-modal .modal-inner-container {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2023-01-20 19:23:19 +08:00
|
|
|
|
|
|
|
html.keyboard-visible:not(.ios-device) & {
|
|
|
|
height: calc(100% - env(keyboard-inset-height));
|
|
|
|
|
|
|
|
.modal-inner-container {
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
}
|
2019-06-25 00:23:51 +08:00
|
|
|
}
|
2020-02-22 04:44:34 +08:00
|
|
|
|
|
|
|
.modal .modal-body.reorder-categories {
|
|
|
|
max-height: calc(100vh - 220px);
|
|
|
|
}
|
2021-04-19 21:23:41 +08:00
|
|
|
|
|
|
|
.discard-draft-modal {
|
|
|
|
.modal-inner-container {
|
|
|
|
width: 250px;
|
|
|
|
}
|
|
|
|
.modal-footer {
|
|
|
|
justify-content: center;
|
|
|
|
flex-flow: column nowrap;
|
2021-04-19 21:28:07 +08:00
|
|
|
align-items: stretch;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
margin-right: 0;
|
2021-04-19 21:23:41 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|