diff options
Diffstat (limited to 'assets/stylesheets/bootstrap/_modal.scss')
-rw-r--r-- | assets/stylesheets/bootstrap/_modal.scss | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/assets/stylesheets/bootstrap/_modal.scss b/assets/stylesheets/bootstrap/_modal.scss index c43d55b..83a1335 100644 --- a/assets/stylesheets/bootstrap/_modal.scss +++ b/assets/stylesheets/bootstrap/_modal.scss @@ -40,7 +40,7 @@ .modal-dialog { position: relative; width: auto; - margin: 10px; + margin: $modal-dialog-margin; } // Actual modal @@ -48,7 +48,7 @@ position: relative; background-color: $modal-content-bg; background-clip: padding-box; - border: 1px solid $modal-content-border-color; + border: $modal-content-border-width solid $modal-content-border-color; @include border-radius($border-radius-lg); @include box-shadow($modal-content-xs-box-shadow); // Remove focus outline from opened modal @@ -74,7 +74,7 @@ // Top section of the modal w/ title and dismiss .modal-header { padding: $modal-title-padding; - border-bottom: 1px solid $modal-header-border-color; + border-bottom: $modal-header-border-width solid $modal-header-border-color; @include clearfix; } // Close icon @@ -99,22 +99,8 @@ .modal-footer { padding: $modal-inner-padding; text-align: right; // right align buttons - border-top: 1px solid $modal-footer-border-color; + border-top: $modal-footer-border-width solid $modal-footer-border-color; @include clearfix(); // clear it in case folks use .pull-* classes on buttons - - // Properly space out buttons - .btn + .btn { - margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs - margin-left: 5px; - } - // but override that for button groups - .btn-group .btn + .btn { - margin-left: -1px; - } - // and override it for block buttons as well - .btn-block + .btn-block { - margin-left: 0; - } } // Measure scrollbar width for padding body during modal show/hide @@ -130,17 +116,17 @@ @include media-breakpoint-up(sm) { // Automatically set modal's width for larger viewports .modal-dialog { - width: $modal-md; - margin: 30px auto; + max-width: $modal-md; + margin: $modal-dialog-sm-up-margin-y auto; } + .modal-content { @include box-shadow($modal-content-sm-up-box-shadow); } - // Modal sizes - .modal-sm { width: $modal-sm; } + .modal-sm { max-width: $modal-sm; } } -@include media-breakpoint-up(md) { - .modal-lg { width: $modal-lg; } +@include media-breakpoint-up(lg) { + .modal-lg { max-width: $modal-lg; } } |