diff options
| author | Mark Otto <[email protected]> | 2012-02-12 15:43:04 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-02-12 15:43:04 -0800 |
| commit | 163c98ea7e321ce3a1b38128cfb2bec6cd76e6de (patch) | |
| tree | d3a98f6811a7087f85db173869621380274b2e3f /less | |
| parent | a57dbada0f17bc3dfd4a77de436a5e590fb0d1e3 (diff) | |
| download | bootstrap-163c98ea7e321ce3a1b38128cfb2bec6cd76e6de.tar.xz bootstrap-163c98ea7e321ce3a1b38128cfb2bec6cd76e6de.zip | |
clean up modals.less comments, add new class for optional use on modal forms to remove bottom margin
Diffstat (limited to 'less')
| -rw-r--r-- | less/modals.less | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/less/modals.less b/less/modals.less index aa14675ed..d1e06dc26 100644 --- a/less/modals.less +++ b/less/modals.less @@ -1,6 +1,7 @@ // MODALS // ------ +// Recalculate z-index where appropriate .modal-open { .dropdown-menu { z-index: @zindexDropdown + @zindexModal; } .dropdown.open { *z-index: @zindexDropdown + @zindexModal; } @@ -8,6 +9,7 @@ .tooltip { z-index: @zindexTooltip + @zindexModal; } } +// Background .modal-backdrop { position: fixed; top: 0; @@ -25,6 +27,7 @@ .opacity(80); } +// Base modal .modal { position: fixed; top: 50%; @@ -53,9 +56,17 @@ // Close icon .close { margin-top: 2px; } } + +// Body (where all modal content resises) .modal-body { padding: 15px; } +// Remove bottom margin if need be +.modal-body .modal-form { + margin-bottom: 0; +} + +// Footer (for actions) .modal-footer { padding: 14px 15px 15px; margin-bottom: 0; |
