2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

update modal footers to use text-align instead of float on buttons for alignment

This commit is contained in:
Mark Otto
2012-02-22 22:38:54 -08:00
parent 8609a77bd2
commit 0e8427e7b1
5 changed files with 13 additions and 11 deletions
+5 -3
View File
@@ -71,13 +71,15 @@
.modal-footer {
padding: 14px 15px 15px;
margin-bottom: 0;
text-align: right; // right align buttons
background-color: #f5f5f5;
border-top: 1px solid #ddd;
.border-radius(0 0 6px 6px);
.box-shadow(inset 0 1px 0 @white);
.clearfix();
.btn {
float: right;
.clearfix(); // clear it in case folks use .pull-* classes on buttons
// Properly space out buttons
.btn + .btn {
margin-left: 5px;
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
}