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
24 z-index: @zindex-modal;
25 -webkit-overflow-scrolling: touch;
27 // Prevent Chrome on Windows from adding a focus outline. For details, see
28 // https://github.com/twbs/bootstrap/pull/10951.
31 // When fading in the modal, animate it to slide down
32 &.fade .modal-dialog {
34 .transition-transform(~"0.3s ease-out");
36 &.in .modal-dialog { .translate(0, 0) }
43 // Shell div to position the modal with bottom padding
53 background-color: @modal-content-bg;
54 border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
55 border: 1px solid @modal-content-border-color;
56 border-radius: @border-radius-large;
57 .box-shadow(0 3px 9px rgba(0,0,0,.5));
58 background-clip: padding-box;
59 // Remove focus outline from opened modal
70 z-index: @zindex-modal-background;
71 background-color: @modal-backdrop-bg;
73 &.fade { .opacity(0); }
74 &.in { .opacity(@modal-backdrop-opacity); }
78 // Top section of the modal w/ title and dismiss
80 padding: @modal-title-padding;
81 border-bottom: 1px solid @modal-header-border-color;
82 &:extend(.clearfix all);
85 .modal-header .close {
89 // Title text within header
92 line-height: @modal-title-line-height;
96 // Where all modal content resides (sibling of .modal-header and .modal-footer)
99 padding: @modal-inner-padding;
102 .modal-body .col-xs-12 {
107 // Footer (for actions)
109 padding: @modal-inner-padding;
110 text-align: right; // right align buttons
111 border-top: 1px solid @modal-footer-border-color;
112 &:extend(.clearfix all); // clear it in case folks use .pull-* classes on buttons
114 // Properly space out buttons
117 margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
119 // but override that for button groups
120 .btn-group .btn + .btn {
123 // and override it for block buttons as well
124 .btn-block + .btn-block {
129 // Measure scrollbar width for padding body during modal show/hide
130 .modal-scrollbar-measure {
138 // Scale up the modal
139 @media (min-width: @screen-sm-min) {
140 // Automatically set modal's width for larger viewports
146 .box-shadow(0 5px 15px rgba(0,0,0,.5));
150 .modal-sm { width: @modal-sm; }
153 @media (min-width: @screen-md-min) {
154 .modal-lg { width: @modal-lg; }