3 // --------------------------------------------------
5 // .modal-open - body class for killing the scroll
6 // .modal - container to scroll within
7 // .modal-dialog - positioning shell for the actual modal
8 // .modal-content - actual modal w/ bg and corners and shit
10 // Kill the scroll on the body
15 // Container that the modal scrolls within
25 z-index: @zindex-modal-background;
27 // When fading in the modal, animate it to slide down
28 &.fade .modal-dialog {
30 .transition-transform(~"0.3s ease-out");
32 &.fade.in .modal-dialog { .translate(0, 0)}
35 // Shell div to position the modal with bottom padding
43 z-index: (@zindex-modal-background + 10);
49 background-color: @modal-content-bg;
50 border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
51 border: 1px solid @modal-content-border-color;
52 border-radius: @border-radius-large;
53 .box-shadow(0 3px 9px rgba(0,0,0,.5));
54 .background-clip(padding-box);
55 // Remove focus outline from opened modal
66 z-index: (@zindex-modal-background - 10);
67 background-color: @modal-backdrop-bg;
69 &.fade { .opacity(0); }
70 &.fade.in { .opacity(.5); }
74 // Top section of the modal w/ title and dismiss
76 padding: @modal-title-padding;
77 border-bottom: 1px solid @modal-header-border-color;
78 min-height: (@modal-title-padding + @modal-title-line-height);
81 .modal-header .close {
85 // Title text within header
88 line-height: @modal-title-line-height;
92 // Where all modal content resides (sibling of .modal-header and .modal-footer)
95 padding: @modal-inner-padding;
98 // Footer (for actions)
101 padding: (@modal-inner-padding - 1) @modal-inner-padding @modal-inner-padding;
102 text-align: right; // right align buttons
103 border-top: 1px solid @modal-footer-border-color;
104 .clearfix(); // clear it in case folks use .pull-* classes on buttons
106 // Properly space out buttons
109 margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
111 // but override that for button groups
112 .btn-group .btn + .btn {
115 // and override it for block buttons as well
116 .btn-block + .btn-block {
121 // Scale up the modal
122 @media screen and (min-width: @screen-tablet) {
130 padding-bottom: 30px;
133 .box-shadow(0 5px 15px rgba(0,0,0,.5));