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

140 lines
2.1 KiB
SCSS
Raw Normal View History

2013-09-06 03:37:07 +08:00
// base styles for every modal popup used in Discourse
.modal-open #main {
overflow: hidden;
}
2014-03-13 11:17:18 +08:00
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%;
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%;
}
.modal.fade {
transition: opacity 0.3s linear, top 0.3s ease-out;
2013-09-06 03:37:07 +08:00
top: -25%;
}
.modal.fade.in {
top: 50%;
}
.modal-body {
padding: 10px;
2013-09-06 03:37:07 +08:00
}
2017-03-11 00:57:18 +08:00
// we need a little extra room on mobile for the
// stuff inside the footer to fit
.modal-footer {
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 {
padding: 10px;
2013-09-06 03:37:07 +08:00
h3 {
2018-01-13 06:27:38 +08:00
font-size: $font-up-2;
2013-09-06 03:37:07 +08:00
}
}
2014-06-19 02:04:10 +08:00
.close {
2018-01-13 06:27:38 +08:00
font-size: $font-up-4;
2014-09-23 14:23:29 +08:00
padding: 10px 15px 5px 5px;
2014-06-19 02:04:10 +08:00
color: $primary;
}
2013-09-06 03:37:07 +08:00
#move-selected {
p {
margin-top: 0;
}
input[type="radio"] {
2013-09-06 03:37:07 +08:00
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
}
}
}
@media only screen and (max-device-width: 568px) {
.modal .flag-modal .flag-message {
2018-02-24 10:41:40 +08:00
height: 3em;
}
}
2013-09-06 03:37:07 +08:00
.edit-category-modal {
.modal-body {
box-sizing: border-box;
2013-09-06 03:37:07 +08:00
position: relative;
height: 350px;
}
&.small .modal-body {
height: 310px;
}
2017-03-11 00:57:18 +08:00
.disable_info_wrap .cannot_delete_reason {
top: -114px;
right: 8px;
min-width: 200px;
}
2013-09-06 03:37:07 +08:00
}
/* fixes for the new account confirm dialog on mobile */
.modal-inner-container {
margin-bottom: 20px;
}
.alert {
padding: 5px;
&.alert-success {
2017-10-11 04:07:46 +08:00
background-color: $success-low;
color: $success;
}
}
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;
}
.change-timestamp-footer .btn-primary {
float: right;
margin-right: 5px;
}