mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
update modal footers to use text-align instead of float on buttons for alignment
This commit is contained in:
parent
8609a77bd2
commit
0e8427e7b1
5 changed files with 13 additions and 11 deletions
Binary file not shown.
4
docs/assets/css/bootstrap.css
vendored
4
docs/assets/css/bootstrap.css
vendored
|
@ -3064,6 +3064,7 @@ button.btn.btn-small, input[type="submit"].btn.btn-small {
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
padding: 14px 15px 15px;
|
padding: 14px 15px 15px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
text-align: right;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
-webkit-border-radius: 0 0 6px 6px;
|
-webkit-border-radius: 0 0 6px 6px;
|
||||||
|
@ -3081,8 +3082,7 @@ button.btn.btn-small, input[type="submit"].btn.btn-small {
|
||||||
.modal-footer:after {
|
.modal-footer:after {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.modal-footer .btn {
|
.modal-footer .btn + .btn {
|
||||||
float: right;
|
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,8 +214,8 @@
|
||||||
<p>One fine body…</p>
|
<p>One fine body…</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">Save changes</a>
|
|
||||||
<a href="#" class="btn">Close</a>
|
<a href="#" class="btn">Close</a>
|
||||||
|
<a href="#" class="btn btn-primary">Save changes</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- /well -->
|
</div> <!-- /well -->
|
||||||
|
@ -250,8 +250,8 @@
|
||||||
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">Save changes</a>
|
|
||||||
<a href="#" class="btn" data-dismiss="modal" >Close</a>
|
<a href="#" class="btn" data-dismiss="modal" >Close</a>
|
||||||
|
<a href="#" class="btn btn-primary">Save changes</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">Launch demo modal</a>
|
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">Launch demo modal</a>
|
||||||
|
@ -309,8 +309,8 @@
|
||||||
<p>One fine body…</p>
|
<p>One fine body…</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">Save changes</a>
|
|
||||||
<a href="#" class="btn">Close</a>
|
<a href="#" class="btn">Close</a>
|
||||||
|
<a href="#" class="btn btn-primary">Save changes</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
6
docs/templates/pages/javascript.mustache
vendored
6
docs/templates/pages/javascript.mustache
vendored
|
@ -138,8 +138,8 @@
|
||||||
<p>{{_i}}One fine body…{{/i}}</p>
|
<p>{{_i}}One fine body…{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
|
||||||
<a href="#" class="btn">{{_i}}Close{{/i}}</a>
|
<a href="#" class="btn">{{_i}}Close{{/i}}</a>
|
||||||
|
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- /well -->
|
</div> <!-- /well -->
|
||||||
|
@ -174,8 +174,8 @@
|
||||||
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
|
||||||
<a href="#" class="btn" data-dismiss="modal" >{{_i}}Close{{/i}}</a>
|
<a href="#" class="btn" data-dismiss="modal" >{{_i}}Close{{/i}}</a>
|
||||||
|
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">{{_i}}Launch demo modal{{/i}}</a>
|
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">{{_i}}Launch demo modal{{/i}}</a>
|
||||||
|
@ -233,8 +233,8 @@
|
||||||
<p>{{_i}}One fine body…{{/i}}</p>
|
<p>{{_i}}One fine body…{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
|
||||||
<a href="#" class="btn">{{_i}}Close{{/i}}</a>
|
<a href="#" class="btn">{{_i}}Close{{/i}}</a>
|
||||||
|
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
|
@ -71,13 +71,15 @@
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
padding: 14px 15px 15px;
|
padding: 14px 15px 15px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
text-align: right; // right align buttons
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
.border-radius(0 0 6px 6px);
|
.border-radius(0 0 6px 6px);
|
||||||
.box-shadow(inset 0 1px 0 @white);
|
.box-shadow(inset 0 1px 0 @white);
|
||||||
.clearfix();
|
.clearfix(); // clear it in case folks use .pull-* classes on buttons
|
||||||
.btn {
|
|
||||||
float: right;
|
// Properly space out buttons
|
||||||
|
.btn + .btn {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue