2013-09-06 03:37:07 +08:00
|
|
|
// base styles for every modal popup used in Discourse
|
|
|
|
|
2014-03-13 11:17:18 +08:00
|
|
|
.modal-open #main {overflow:hidden;}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.modal-middle-container {
|
2013-09-13 02:49:49 +08:00
|
|
|
margin-top: 10%;
|
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 {
|
|
|
|
position: fixed;
|
|
|
|
top: 10%;
|
|
|
|
z-index: 1050;
|
|
|
|
overflow: auto;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: $secondary;
|
2013-09-06 03:37:07 +08:00
|
|
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
|
|
@include border-radius-all (6px);
|
2014-08-06 21:31:13 +08:00
|
|
|
box-shadow: 0 3px 7px rgba(0,0,0, 0.3);
|
2013-09-06 03:37:07 +08:00
|
|
|
background-clip: padding-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal.fade {
|
|
|
|
transition: opacity .3s linear, top .3s ease-out;
|
|
|
|
top: -25%;
|
|
|
|
}
|
|
|
|
.modal.fade.in {
|
|
|
|
top: 50%;
|
|
|
|
}
|
|
|
|
.modal-body {
|
|
|
|
overflow-y: auto;
|
|
|
|
max-height: 400px;
|
2014-10-28 05:06:43 +08:00
|
|
|
padding: 10px 0 10px 10px;
|
2014-09-23 14:23:29 +08:00
|
|
|
width: 95%;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-04-21 03:16:06 +08:00
|
|
|
|
2016-12-03 07:29:17 +08:00
|
|
|
// we need a little extra room on mobile for the
|
|
|
|
// stuff inside the footer to fit
|
|
|
|
.modal-footer {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-footer .btn + .btn {
|
2013-09-13 03:09:24 +08:00
|
|
|
margin-right: 5px;
|
2014-03-26 02:48:23 +08:00
|
|
|
margin-bottom: 5px;
|
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 {
|
2014-09-23 13:20:44 +08:00
|
|
|
// we need tighter spacing on mobile for header
|
|
|
|
// this clearfix under the modal title h3 pushes it way down
|
|
|
|
.clearfix {
|
|
|
|
display:none;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
h3 {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1.286em;
|
2014-09-23 14:13:30 +08:00
|
|
|
padding-left: 15px;
|
2014-09-23 13:20:44 +08:00
|
|
|
margin-bottom: 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2014-06-19 02:04:10 +08:00
|
|
|
.close {
|
|
|
|
float: right;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1.714em;
|
2014-09-23 14:23:29 +08:00
|
|
|
padding: 10px 15px 5px 5px;
|
2014-06-19 02:04:10 +08:00
|
|
|
margin: -15px 0 0 0;
|
|
|
|
color: $primary;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
|
|
|
#move-selected {
|
|
|
|
p {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=radio] {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
margin-top: 10px;
|
|
|
|
display: block;
|
|
|
|
width: 300px;
|
|
|
|
}
|
|
|
|
|
|
|
|
form {
|
|
|
|
margin-top: 20px;
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2015-09-15 16:49:47 +08:00
|
|
|
|
|
|
|
.category-combobox {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.flag-modal {
|
|
|
|
max-height: 450px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.custom-message-length {
|
2014-11-12 17:23:49 +08:00
|
|
|
margin: -10px 0 10px 20px;
|
2015-08-20 17:42:12 +08:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));
|
2014-11-12 17:23:49 +08:00
|
|
|
font-size: 85%;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.flag-message {
|
|
|
|
margin-left: 20px;
|
|
|
|
width: 95% !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-category-modal {
|
|
|
|
.modal-body {
|
|
|
|
position: relative;
|
|
|
|
height: 350px;
|
|
|
|
}
|
|
|
|
&.small .modal-body {
|
|
|
|
height: 310px;
|
|
|
|
}
|
|
|
|
.secure-category-options {
|
|
|
|
margin: 10px 0 0 16px;
|
|
|
|
.badge-list {
|
|
|
|
margin: 10px 0;
|
|
|
|
li {
|
|
|
|
margin: 0 4px 8px 0;
|
|
|
|
a {
|
|
|
|
color: #888;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabbed-modal {
|
|
|
|
.modal-body {
|
|
|
|
position: relative;
|
|
|
|
height: 350px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.modal-tab {
|
|
|
|
position: absolute;
|
|
|
|
}
|
2014-06-29 18:19:09 +08:00
|
|
|
|
|
|
|
/* fixes for the new account confirm dialog on mobile */
|
|
|
|
|
|
|
|
.modal-inner-container {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert {
|
|
|
|
padding: 5px;
|
|
|
|
&.alert-success {
|
|
|
|
background-color: scale-color($success, $lightness: 90%);
|
|
|
|
color: $success;
|
|
|
|
}
|
2014-08-08 18:07:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.delete-flag-modal, .agree-flag-modal {
|
|
|
|
.modal-inner-container {
|
|
|
|
width: 300px;
|
|
|
|
}
|
|
|
|
.btn {
|
|
|
|
float: none !important;
|
|
|
|
}
|
|
|
|
}
|
2014-11-01 03:07:09 +08:00
|
|
|
|
|
|
|
#search-help {
|
2015-09-16 05:22:28 +08:00
|
|
|
max-width: 98%;
|
2014-11-01 03:07:09 +08:00
|
|
|
}
|
|
|
|
|
2015-09-16 05:22:28 +08:00
|
|
|
// this makes the table behave like a flat list
|
|
|
|
#search-help td {
|
|
|
|
display: block;
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-help h3 {
|
|
|
|
display: none;
|
2014-11-01 03:07:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#search-help p {
|
2015-09-16 05:22:28 +08:00
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-help .btn-primary {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#google-search form {
|
|
|
|
padding-left: 10px;
|
2015-08-19 13:02:01 +08:00
|
|
|
}
|