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-dialog-scrollable {
55 max-height: calc(100% - #{$modal-dialog-margin * 2});
57 .modal-content {
58 max-height: calc(100vh - #{$modal-dialog-margin * 2}); // IE10/11
62 .modal-header,
63 .modal-footer {
67 .modal-body {
72 .modal-dialog-centered {
75 min-height: calc(100% - #{$modal-dialog-margin * 2});
77 // Ensure `modal-dialog-centered` extends the full height of the view (IE10/11)
80 height: calc(100vh - #{$modal-dialog-margin * 2});
84 // Ensure `.modal-body` shows scrollbar (IE10/11)
85 &.modal-dialog-scrollable {
90 .modal-content {
100 // Actual modal
101 .modal-content {
105 width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
106 // counteract the pointer-events: none; in the .modal-dialog
107 color: $modal-content-color;
109 background-color: $modal-content-bg;
111 border: $modal-content-border-width solid $modal-content-border-color;
112 @include border-radius($modal-content-border-radius);
113 @include box-shadow($modal-content-box-shadow-xs);
114 // Remove focus outline from opened modal
119 .modal-backdrop {
123 z-index: $zindex-modal-backdrop;
126 background-color: $modal-backdrop-bg;
130 &.show { opacity: $modal-backdrop-opacity; }
134 // Top section of the modal w/ title and dismiss
135 .modal-header {
138 justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
139 padding: $modal-header-padding;
140 border-bottom: $modal-header-border-width solid $modal-header-border-color;
141 @include border-top-radius($modal-content-border-radius);
144 padding: $modal-header-padding;
145 // auto on the left force icon to the right even when there is no .modal-title
146 margin: (-$modal-header-padding-y) (-$modal-header-padding-x) (-$modal-header-padding-y) auto;
151 .modal-title {
153 line-height: $modal-title-line-height;
157 // Where all modal content resides (sibling of .modal-header and .modal-footer)
158 .modal-body {
161 // when should there be a fixed height on `.modal-dialog`.
163 padding: $modal-inner-padding;
167 .modal-footer {
171 padding: $modal-inner-padding;
172 border-top: $modal-footer-border-width solid $modal-footer-border-color;
173 @include border-bottom-radius($modal-content-border-radius);
180 // Measure scrollbar width for padding body during modal show/hide
181 .modal-scrollbar-measure {
189 // Scale up the modal
191 // Automatically set modal's width for larger viewports
192 .modal-dialog {
193 max-width: $modal-md;
194 margin: $modal-dialog-margin-y-sm-up auto;
197 .modal-dialog-scrollable {
198 max-height: calc(100% - #{$modal-dialog-margin-y-sm-up * 2});
200 .modal-content {
201 max-height: calc(100vh - #{$modal-dialog-margin-y-sm-up * 2});
205 .modal-dialog-centered {
206 min-height: calc(100% - #{$modal-dialog-margin-y-sm-up * 2});
209 height: calc(100vh - #{$modal-dialog-margin-y-sm-up * 2});
213 .modal-content {
214 @include box-shadow($modal-content-box-shadow-sm-up);
217 .modal-sm { max-width: $modal-sm; }
221 .modal-lg,
222 .modal-xl {
223 max-width: $modal-lg;
228 .modal-xl { max-width: $modal-xl; }