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 {
33 @include translate(0, -25%);
34 @include transition-transform(0.3s ease-out);
37 @include translate(0, 0)
46 // Shell div to position the modal with bottom padding
56 background-color: $modal-content-bg;
57 border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
58 border: 1px solid $modal-content-border-color;
59 border-radius: $border-radius-large;
60 @include box-shadow(0 3px 9px rgba(0, 0, 0, .5));
61 background-clip: padding-box;
62 // Remove focus outline from opened modal
73 z-index: $zindex-modal-background;
74 background-color: $modal-backdrop-bg;
80 @include opacity($modal-backdrop-opacity);
85 // Top section of the modal w/ title and dismiss
87 padding: $modal-title-padding;
88 border-bottom: 1px solid $modal-header-border-color;
89 min-height: ($modal-title-padding + $modal-title-line-height);
93 .modal-header .close {
97 // Title text within header
100 line-height: $modal-title-line-height;
104 // Where all modal content resides (sibling of .modal-header and .modal-footer)
107 padding: $modal-inner-padding;
110 // Footer (for actions)
112 padding: $modal-inner-padding;
113 text-align: right; // right align buttons
114 border-top: 1px solid $modal-footer-border-color;
115 @include clearfix; // clear it in case folks use .pull-* classes on buttons
117 // Properly space out buttons
120 margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
122 // but override that for button groups
123 .btn-group .btn + .btn {
126 // and override it for block buttons as well
127 .btn-block + .btn-block {
132 // Measure scrollbar width for padding body during modal show/hide
133 .modal-scrollbar-measure {
141 // Scale up the modal
142 @media (min-width: $screen-sm-min) {
143 // Automatically set modal's width for larger viewports
149 @include box-shadow(0 5px 15px rgba(0, 0, 0, .5));
158 @media (min-width: $screen-md-min) {