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;
26 -webkit-overflow-scrolling: touch;
28 // Prevent Chrome on Windows from adding a focus outline. For details, see
29 // https://github.com/twbs/bootstrap/pull/10951.
32 // When fading in the modal, animate it to slide down
33 &.fade .modal-dialog {
35 .transition-transform(~"0.3s ease-out");
37 &.in .modal-dialog { .translate(0, 0)}
40 // Shell div to position the modal with bottom padding
50 background-color: @modal-content-bg;
51 border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
52 border: 1px solid @modal-content-border-color;
53 border-radius: @border-radius-large;
54 .box-shadow(0 3px 9px rgba(0,0,0,.5));
55 background-clip: padding-box;
56 // Remove focus outline from opened modal
67 z-index: @zindex-modal-background;
68 background-color: @modal-backdrop-bg;
70 &.fade { .opacity(0); }
71 &.in { .opacity(@modal-backdrop-opacity); }
75 // Top section of the modal w/ title and dismiss
77 padding: @modal-title-padding;
78 border-bottom: 1px solid @modal-header-border-color;
79 min-height: (@modal-title-padding + @modal-title-line-height);
82 .modal-header .close {
86 // Title text within header
89 line-height: @modal-title-line-height;
93 // Where all modal content resides (sibling of .modal-header and .modal-footer)
96 padding: @modal-inner-padding;
99 // Footer (for actions)
102 padding: (@modal-inner-padding - 1) @modal-inner-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 // Scale up the modal
123 @media (min-width: @screen-sm-min) {
125 // Automatically set modal's width for larger viewports
131 .box-shadow(0 5px 15px rgba(0,0,0,.5));
135 .modal-sm { width: @modal-sm; }
136 .modal-lg { width: @modal-lg; }