2013-09-05 15:37:07 -04:00
|
|
|
// base styles for every modal popup used in Discourse
|
|
|
|
|
2014-03-12 23:17:18 -04:00
|
|
|
.modal-open #main {overflow:hidden;}
|
|
|
|
|
2013-09-05 15:37:07 -04:00
|
|
|
.modal-middle-container {
|
2013-09-12 14:49:49 -04:00
|
|
|
margin-top: 10%;
|
2014-03-06 23:55:57 -05:00
|
|
|
max-width: 100%;
|
2014-03-25 14:48:23 -04:00
|
|
|
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 {
|
|
|
|
position: fixed;
|
|
|
|
top: 10%;
|
|
|
|
z-index: 1050;
|
|
|
|
overflow: auto;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
2014-05-06 01:50:51 -04:00
|
|
|
background-color: $secondary;
|
|
|
|
border: 1px solid scale-color($secondary, $lightness: 90%);
|
2013-09-05 15:37:07 -04:00
|
|
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
|
|
@include border-radius-all (6px);
|
2014-05-06 01:50:51 -04:00
|
|
|
box-shadow: 0 3px 7px rgba($primary, 0.3);
|
2013-09-05 15:37:07 -04:00
|
|
|
background-clip: padding-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal.fade {
|
|
|
|
-webkit-transition: opacity .3s linear, top .3s ease-out;
|
|
|
|
transition: opacity .3s linear, top .3s ease-out;
|
|
|
|
top: -25%;
|
|
|
|
}
|
|
|
|
.modal.fade.in {
|
|
|
|
top: 50%;
|
|
|
|
}
|
|
|
|
.modal-body {
|
|
|
|
overflow-y: auto;
|
|
|
|
max-height: 400px;
|
|
|
|
padding: 10px 15px 10px 15px;
|
|
|
|
}
|
2014-04-20 15:16:06 -04:00
|
|
|
|
2013-09-12 15:09:24 -04:00
|
|
|
// an ember metamorph is inserted between btn's sometimes, breaking this rule, but only on mobile for some reason:
|
|
|
|
// .modal-footer .btn + .btn {
|
|
|
|
.modal-footer .btn {
|
|
|
|
margin-right: 5px;
|
2014-03-25 14:48:23 -04:00
|
|
|
margin-bottom: 5px;
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
|
|
|
.modal-footer .btn-group .btn + .btn {
|
|
|
|
margin-left: -1px;
|
|
|
|
}
|
|
|
|
.modal-header {
|
|
|
|
h3 {
|
2014-05-13 14:50:42 -04:00
|
|
|
color: $quaternary;
|
2013-09-05 15:37:07 -04:00
|
|
|
font-size: 15px;
|
|
|
|
padding: 0 0 0 20px;
|
|
|
|
}
|
|
|
|
}
|
2014-06-18 14:04:10 -04:00
|
|
|
.close {
|
|
|
|
float: right;
|
|
|
|
font-size: 24px;
|
|
|
|
padding: 15px; // more pixels to touch
|
|
|
|
margin: -15px 0 0 0;
|
|
|
|
text-decoration: none;
|
|
|
|
color: $primary;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2013-09-05 15:37:07 -04: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] {
|
|
|
|
width: 500px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.flag-modal {
|
|
|
|
max-height: 450px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.custom-message-length {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 06:19:09 -04: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;
|
|
|
|
}
|
|
|
|
}
|