Skip to content

Commit 163c98e

Browse files
committed
clean up modals.less comments, add new class for optional use on modal forms to remove bottom margin
1 parent a57dbad commit 163c98e

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

docs/assets/bootstrap.zip

15 Bytes
Binary file not shown.

docs/assets/css/bootstrap.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2888,6 +2888,9 @@ button.btn.small, input[type="submit"].btn.small {
28882888
.modal-body {
28892889
padding: 15px;
28902890
}
2891+
.modal-body .modal-form {
2892+
margin-bottom: 0;
2893+
}
28912894
.modal-footer {
28922895
padding: 14px 15px 15px;
28932896
margin-bottom: 0;

less/modals.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// MODALS
22
// ------
33

4+
// Recalculate z-index where appropriate
45
.modal-open {
56
.dropdown-menu { z-index: @zindexDropdown + @zindexModal; }
67
.dropdown.open { *z-index: @zindexDropdown + @zindexModal; }
78
.popover { z-index: @zindexPopover + @zindexModal; }
89
.tooltip { z-index: @zindexTooltip + @zindexModal; }
910
}
1011

12+
// Background
1113
.modal-backdrop {
1214
position: fixed;
1315
top: 0;
@@ -25,6 +27,7 @@
2527
.opacity(80);
2628
}
2729

30+
// Base modal
2831
.modal {
2932
position: fixed;
3033
top: 50%;
@@ -53,9 +56,17 @@
5356
// Close icon
5457
.close { margin-top: 2px; }
5558
}
59+
60+
// Body (where all modal content resises)
5661
.modal-body {
5762
padding: 15px;
5863
}
64+
// Remove bottom margin if need be
65+
.modal-body .modal-form {
66+
margin-bottom: 0;
67+
}
68+
69+
// Footer (for actions)
5970
.modal-footer {
6071
padding: 14px 15px 15px;
6172
margin-bottom: 0;

0 commit comments

Comments
 (0)