2015-01-30 09:51:18 +08:00
|
|
|
// ------------------------------------
|
|
|
|
// Modals
|
|
|
|
|
|
|
|
.modal-backdrop {
|
2015-05-21 11:40:25 +08:00
|
|
|
background-color: @fl-secondary-color;
|
2015-05-02 07:00:35 +08:00
|
|
|
|
2015-02-10 15:35:40 +08:00
|
|
|
&.in {
|
|
|
|
opacity: 0.9;
|
|
|
|
}
|
2015-01-30 09:51:18 +08:00
|
|
|
}
|
2015-05-04 09:14:03 +08:00
|
|
|
.modal-alert {
|
|
|
|
text-align: center;
|
2015-05-26 14:55:25 +08:00
|
|
|
|
|
|
|
& .alert {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2015-05-27 14:52:02 +08:00
|
|
|
& .alert-controls {
|
|
|
|
margin: 0;
|
|
|
|
display: block;
|
|
|
|
}
|
2015-05-04 09:14:03 +08:00
|
|
|
}
|
2015-01-30 09:51:18 +08:00
|
|
|
.modal-body {
|
2015-02-16 11:42:48 +08:00
|
|
|
background-color: @fl-body-secondary-color;
|
2015-05-26 14:55:25 +08:00
|
|
|
padding: 25px 30px;
|
|
|
|
color: @fl-body-muted-color;
|
2015-01-30 09:51:18 +08:00
|
|
|
|
2015-02-10 15:35:40 +08:00
|
|
|
& .form-control {
|
|
|
|
background-color: #fff;
|
2015-05-26 14:55:25 +08:00
|
|
|
color: @fl-body-color;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border: 2px solid @fl-body-primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& .help-text {
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.5em;
|
|
|
|
margin-bottom: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
& :last-child {
|
|
|
|
margin-bottom: 0;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-01-30 09:51:18 +08:00
|
|
|
}
|
|
|
|
.modal-footer {
|
2015-02-10 15:35:40 +08:00
|
|
|
border: 0;
|
|
|
|
padding: 20px;
|
|
|
|
text-align: center;
|
|
|
|
color: @fl-body-muted-color;
|
2015-01-30 09:51:18 +08:00
|
|
|
}
|
|
|
|
.modal-loading {
|
2015-02-10 15:35:40 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background: rgba(255, 255, 255, 0.9);
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
.transition(opacity 0.2s);
|
2015-01-30 09:51:18 +08:00
|
|
|
|
2015-02-10 15:35:40 +08:00
|
|
|
&.active {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
2015-01-30 09:51:18 +08:00
|
|
|
}
|
|
|
|
.form-centered {
|
2015-02-10 15:35:40 +08:00
|
|
|
text-align: center;
|
2015-01-30 09:51:18 +08:00
|
|
|
|
2015-02-10 15:35:40 +08:00
|
|
|
& .form-control, & .btn {
|
|
|
|
margin: 0 auto;
|
|
|
|
text-align: center;
|
2015-05-26 14:55:25 +08:00
|
|
|
height: 50px;
|
|
|
|
padding: 15px 20px;
|
|
|
|
font-size: 15px;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
|
|
|
|
|
|
|
|
@media @phone {
|
|
|
|
.modal.fade {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2015-06-24 10:14:53 +08:00
|
|
|
.modal {
|
2015-03-03 18:00:52 +08:00
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
top: 0;
|
2015-06-24 10:14:53 +08:00
|
|
|
overflow: auto;
|
2015-03-03 18:00:52 +08:00
|
|
|
|
2015-06-24 10:14:53 +08:00
|
|
|
&.fade {
|
|
|
|
.transition-transform(0.3s);
|
|
|
|
.translate3d(0, 100vh, 0);
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
2015-06-24 10:14:53 +08:00
|
|
|
&.in {
|
|
|
|
-webkit-transform: none !important;
|
|
|
|
transform: none !important;
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
content: " ";
|
|
|
|
.toolbar();
|
|
|
|
}
|
|
|
|
}
|
2015-06-24 10:14:53 +08:00
|
|
|
.modal-dialog {
|
|
|
|
margin: 0;
|
|
|
|
-webkit-transform: none !important;
|
|
|
|
transform: none !important;
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.modal-content {
|
|
|
|
border-radius: 0;
|
|
|
|
border: 0;
|
|
|
|
min-height: 100vh;
|
2015-03-04 07:18:56 +08:00
|
|
|
padding-top: @mobile-header-height;
|
2015-03-03 18:00:52 +08:00
|
|
|
.box-shadow(none);
|
|
|
|
}
|
|
|
|
.modal-header {
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @tablet, @desktop, @desktop-hd {
|
|
|
|
.modal-dialog {
|
|
|
|
margin: 120px auto;
|
|
|
|
|
|
|
|
& .close {
|
|
|
|
position: absolute;
|
2015-05-26 14:55:25 +08:00
|
|
|
right: 10px;
|
|
|
|
top: 10px;
|
2015-05-02 07:00:35 +08:00
|
|
|
z-index: 1;
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.modal-content {
|
|
|
|
border: 0;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
.box-shadow(0 7px 15px @fl-shadow-color);
|
2015-05-26 14:55:25 +08:00
|
|
|
overflow: hidden;
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
.modal-sm {
|
|
|
|
width: 375px;
|
|
|
|
}
|
|
|
|
.modal-header {
|
|
|
|
text-align: center;
|
|
|
|
border: 0;
|
|
|
|
padding: 25px;
|
|
|
|
|
|
|
|
& h3 {
|
2015-05-26 14:55:25 +08:00
|
|
|
font-size: 20px;
|
2015-03-03 18:00:52 +08:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|