2023-11-15 18:14:47 +08:00
|
|
|
.d-modal {
|
|
|
|
--modal-max-width: 600px;
|
|
|
|
--modal-width: 30em; // set in ems to scale with user font-size
|
|
|
|
--modal-min-width: 400px;
|
|
|
|
&__container {
|
|
|
|
max-width: var(--modal-max-width);
|
|
|
|
min-width: var(--modal-min-width);
|
|
|
|
.d-modal.-large & {
|
|
|
|
max-width: 800px;
|
|
|
|
}
|
|
|
|
.d-modal.-max & {
|
|
|
|
max-width: 90vw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//legacy
|
2013-07-17 02:32:35 +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 {
|
2013-07-17 01:38:01 +08:00
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
width: 610px;
|
|
|
|
margin: -250px 0 0 -305px;
|
2018-01-17 06:49:04 +08:00
|
|
|
.cancel {
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2013-07-17 02:32:35 +08:00
|
|
|
|
2014-03-21 04:33:03 +08:00
|
|
|
.modal.in {
|
2018-06-08 17:49:31 +08:00
|
|
|
animation: fade 0.25s;
|
2023-09-15 05:31:43 +08:00
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
animation-duration: 0s;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2014-03-21 04:33:03 +08:00
|
|
|
|
2019-01-11 10:50:00 +08:00
|
|
|
.close {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-3);
|
2014-06-19 02:04:10 +08:00
|
|
|
text-decoration: none;
|
2019-01-11 10:50:00 +08:00
|
|
|
&:visited {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2019-01-11 10:50:00 +08:00
|
|
|
}
|
2014-06-19 02:04:10 +08:00
|
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal {
|
2017-10-20 03:51:08 +08:00
|
|
|
.category-chooser {
|
|
|
|
width: 50%;
|
2017-08-30 23:04:17 +08:00
|
|
|
}
|
2019-10-09 04:19:07 +08:00
|
|
|
|
|
|
|
.modal-body.insert-link {
|
|
|
|
input {
|
|
|
|
min-width: 450px;
|
|
|
|
}
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2020-01-16 05:20:12 +08:00
|
|
|
.choose-topic-modal {
|
2013-10-30 03:30:06 +08:00
|
|
|
.modal-body {
|
|
|
|
position: relative;
|
2023-05-26 02:38:34 +08:00
|
|
|
min-height: 350px;
|
2013-10-30 03:30:06 +08:00
|
|
|
}
|
|
|
|
|
2020-01-16 05:20:12 +08:00
|
|
|
#choosing-topic {
|
2019-05-16 01:26:25 +08:00
|
|
|
// prevents content from moving when user selects different move options 525px
|
2019-01-23 16:18:38 +08:00
|
|
|
// is the same width we set on category edit modal
|
|
|
|
width: 525px;
|
2018-12-31 19:47:22 +08:00
|
|
|
|
2013-10-30 03:30:06 +08:00
|
|
|
p {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2018-12-31 19:47:22 +08:00
|
|
|
.radios {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
.radio-label {
|
|
|
|
display: inline-block;
|
|
|
|
padding-right: 15px;
|
|
|
|
}
|
2013-10-30 03:30:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
margin-top: 10px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
form {
|
2018-09-21 04:12:08 +08:00
|
|
|
width: 95%;
|
2013-10-30 03:30:06 +08:00
|
|
|
margin-top: 20px;
|
2018-12-31 19:47:22 +08:00
|
|
|
|
|
|
|
.participant-selector {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.ac-wrap {
|
2018-09-21 04:12:08 +08:00
|
|
|
width: 100%;
|
2018-12-31 19:47:22 +08:00
|
|
|
margin-bottom: 9px;
|
2013-10-30 03:30:06 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-11 20:49:53 +08:00
|
|
|
|
|
|
|
.change-post-notice-modal {
|
|
|
|
.modal-body {
|
|
|
|
min-width: 450px;
|
|
|
|
}
|
|
|
|
}
|
2021-03-01 22:15:17 +08:00
|
|
|
|
2021-03-03 17:45:29 +08:00
|
|
|
.create-invite-modal,
|
2021-04-24 00:18:23 +08:00
|
|
|
.create-invite-bulk-modal,
|
|
|
|
.share-topic-modal {
|
2022-04-27 21:36:08 +08:00
|
|
|
.title {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.subtitle {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-19 02:19:02 +08:00
|
|
|
&.modal .modal-body {
|
|
|
|
margin: 1em;
|
|
|
|
padding: unset;
|
|
|
|
}
|
|
|
|
|
2021-03-03 17:45:29 +08:00
|
|
|
.modal-inner-container {
|
2021-11-10 03:56:05 +08:00
|
|
|
width: 40em; // scale with user font-size
|
2022-09-15 22:54:08 +08:00
|
|
|
max-width: 100vw; // prevent overflow if user font-size is enormous
|
2021-03-03 17:45:29 +08:00
|
|
|
}
|
|
|
|
}
|