Lines Matching refs:modal

1 // .modal-open      - body class for killing the scroll
2 // .modal - container to scroll within
3 // .modal-dialog - positioning shell for the actual modal
4 // .modal-content - actual modal w/ bg and corners and stuff
7 .modal-open {
11 .modal {
17 // Container that the modal scrolls within
18 .modal {
22 z-index: $zindex-modal;
35 // Shell div to position the modal with bottom padding
36 .modal-dialog {
39 margin: $modal-dialog-margin;
40 // allow clicks to pass through for custom click handling to close modal
43 // When fading in the modal, animate it to slide down
44 .modal.fade & {
45 @include transition($modal-transition);
46 transform: $modal-fade-transform;
48 .modal.show & {
49 transform: $modal-show-transform;
53 .modal.modal-static & {
54 transform: $modal-scale-transform;
58 .modal-dialog-scrollable {
61 max-height: subtract(100%, $modal-dialog-margin * 2);
63 .modal-content {
64 max-height: subtract(100vh, $modal-dialog-margin * 2); // IE10/11
68 .modal-header,
69 .modal-footer {
74 .modal-body {
79 .modal-dialog-centered {
84 min-height: subtract(100%, $modal-dialog-margin * 2);
86 // Ensure `modal-dialog-centered` extends the full height of the view (IE10/11)
89 height: subtract(100vh, $modal-dialog-margin * 2);
98 // Ensure `.modal-body` shows scrollbar (IE10/11)
99 &.modal-dialog-scrollable {
106 .modal-content {
116 // Actual modal
117 .modal-content {
123 width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
124 // counteract the pointer-events: none; in the .modal-dialog
125 color: $modal-content-color;
127 background-color: $modal-content-bg;
129 border: $modal-content-border-width solid $modal-content-border-color;
130 @include border-radius($modal-content-border-radius);
131 @include box-shadow($modal-content-box-shadow-xs);
132 // Remove focus outline from opened modal
137 .modal-backdrop {
141 z-index: $zindex-modal-backdrop;
144 background-color: $modal-backdrop-bg;
148 &.show { opacity: $modal-backdrop-opacity; }
152 // Top section of the modal w/ title and dismiss
153 .modal-header {
158 justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
159 …-webkit-justify-content: space-between; // Put modal header elements (title and dismiss) on opposi…
160 padding: $modal-header-padding;
161 border-bottom: $modal-header-border-width solid $modal-header-border-color;
162 @include border-top-radius($modal-content-inner-border-radius);
165 padding: $modal-header-padding;
166 // auto on the left force icon to the right even when there is no .modal-title
167 margin: (-$modal-header-padding-y) (-$modal-header-padding-x) (-$modal-header-padding-y) auto;
172 .modal-title {
174 line-height: $modal-title-line-height;
178 // Where all modal content resides (sibling of .modal-header and .modal-footer)
179 .modal-body {
182 // when there should be a fixed height on `.modal-dialog`.
185 padding: $modal-inner-padding;
189 .modal-footer {
198 padding: $modal-inner-padding - $modal-footer-margin-between / 2;
199 border-top: $modal-footer-border-width solid $modal-footer-border-color;
200 @include border-bottom-radius($modal-content-inner-border-radius);
206 margin: $modal-footer-margin-between / 2;
210 // Measure scrollbar width for padding body during modal show/hide
211 .modal-scrollbar-measure {
219 // Scale up the modal
221 // Automatically set modal's width for larger viewports
222 .modal-dialog {
223 max-width: $modal-md;
224 margin: $modal-dialog-margin-y-sm-up auto;
227 .modal-dialog-scrollable {
228 max-height: subtract(100%, $modal-dialog-margin-y-sm-up * 2);
230 .modal-content {
231 max-height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2);
235 .modal-dialog-centered {
236 min-height: subtract(100%, $modal-dialog-margin-y-sm-up * 2);
239 height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2);
248 .modal-content {
249 @include box-shadow($modal-content-box-shadow-sm-up);
252 .modal-sm { max-width: $modal-sm; }
256 .modal-lg,
257 .modal-xl {
258 max-width: $modal-lg;
263 .modal-xl { max-width: $modal-xl; }