fixes #3222: simpler positioning of modals

This commit is contained in:
Mark Otto 2012-10-31 21:43:32 -07:00
parent 46347fff01
commit d350f577e9
2 changed files with 6 additions and 9 deletions

View File

@ -1977,9 +1977,6 @@ table {
.table-bordered thead:last-child tr:last-child th:first-child,
.table-bordered tbody:last-child tr:last-child td:first-child,
.table-bordered tfoot:last-child tr:last-child td:first-child {
-webkit-border-radius: 0 0 0 4px;
-moz-border-radius: 0 0 0 4px;
border-radius: 0 0 0 4px;
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
@ -4976,11 +4973,11 @@ input[type="submit"].btn.btn-mini {
.modal {
position: fixed;
top: 50%;
top: 10%;
left: 50%;
z-index: 1050;
width: 560px;
margin: -250px 0 0 -280px;
margin-left: -280px;
background-color: #ffffff;
border: 1px solid #999;
border: 1px solid rgba(0, 0, 0, 0.3);
@ -5006,7 +5003,7 @@ input[type="submit"].btn.btn-mini {
}
.modal.fade.in {
top: 50%;
top: 10%;
}
.modal-header {

View File

@ -23,11 +23,11 @@
// Base modal
.modal {
position: fixed;
top: 50%;
top: 10%;
left: 50%;
z-index: @zindexModal;
width: 560px;
margin: -250px 0 0 -280px;
margin-left: -280px;
background-color: @white;
border: 1px solid #999;
border: 1px solid rgba(0,0,0,.3);
@ -42,7 +42,7 @@
.transition(e('opacity .3s linear, top .3s ease-out'));
top: -25%;
}
&.fade.in { top: 50%; }
&.fade.in { top: 10%; }
}
.modal-header {
padding: 9px 15px;