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
69 background-color: @modal-backdrop-bg;
71 &.fade { .opacity(0); }
72 &.in { .opacity(@modal-backdrop-opacity); }
76 // Top section of the modal w/ title and dismiss
78 padding: @modal-title-padding;
79 border-bottom: 1px solid @modal-header-border-color;
80 min-height: (@modal-title-padding + @modal-title-line-height);
83 .modal-header .close {
87 // Title text within header
90 line-height: @modal-title-line-height;
94 // Where all modal content resides (sibling of .modal-header and .modal-footer)
97 padding: @modal-inner-padding;
100 // Footer (for actions)
102 padding: @modal-inner-padding;
103 text-align: right; // right align buttons
104 border-top: 1px solid @modal-footer-border-color;
105 &:extend(.clearfix all); // clear it in case folks use .pull-* classes on buttons
107 // Properly space out buttons
110 margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
112 // but override that for button groups
113 .btn-group .btn + .btn {
116 // and override it for block buttons as well
117 .btn-block + .btn-block {
122 // Measure scrollbar width for padding body during modal show/hide
123 .modal-scrollbar-measure {
131 // Scale up the modal
132 @media (min-width: @screen-sm-min) {
133 // Automatically set modal's width for larger viewports
139 .box-shadow(0 5px 15px rgba(0,0,0,.5));
143 .modal-sm { width: @modal-sm; }
146 @media (min-width: @screen-md-min) {
147 .modal-lg { width: @modal-lg; }