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 // Account for hiding of scrollbar
18 .navbar-fixed-bottom {
23 // Container that the modal scrolls within
33 z-index: @zindex-modal-background;
35 // When fading in the modal, animate it to slide down
36 &.fade .modal-dialog {
38 .transition-transform(~"0.3s ease-out");
40 &.in .modal-dialog { .translate(0, 0)}
43 // Shell div to position the modal with bottom padding
49 z-index: (@zindex-modal-background + 10);
55 background-color: @modal-content-bg;
56 border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
57 border: 1px solid @modal-content-border-color;
58 border-radius: @border-radius-large;
59 .box-shadow(0 3px 9px rgba(0,0,0,.5));
60 background-clip: padding-box;
61 // Remove focus outline from opened modal
72 z-index: (@zindex-modal-background - 10);
73 background-color: @modal-backdrop-bg;
75 &.fade { .opacity(0); }
76 &.in { .opacity(.5); }
80 // Top section of the modal w/ title and dismiss
82 padding: @modal-title-padding;
83 border-bottom: 1px solid @modal-header-border-color;
84 min-height: (@modal-title-padding + @modal-title-line-height);
87 .modal-header .close {
91 // Title text within header
94 line-height: @modal-title-line-height;
98 // Where all modal content resides (sibling of .modal-header and .modal-footer)
101 padding: @modal-inner-padding;
104 // Footer (for actions)
107 padding: (@modal-inner-padding - 1) @modal-inner-padding @modal-inner-padding;
108 text-align: right; // right align buttons
109 border-top: 1px solid @modal-footer-border-color;
110 .clearfix(); // clear it in case folks use .pull-* classes on buttons
112 // Properly space out buttons
115 margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
117 // but override that for button groups
118 .btn-group .btn + .btn {
121 // and override it for block buttons as well
122 .btn-block + .btn-block {
127 // Scale up the modal
128 @media screen and (min-width: @screen-tablet) {
135 padding-bottom: 30px;
138 .box-shadow(0 5px 15px rgba(0,0,0,.5));