Skip to content

Commit

Permalink
fix(modal): align sizes with breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed May 28, 2020
1 parent d9c6fc0 commit 9170a2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 2 additions & 11 deletions scss/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
}

// Scale up the modal
@include media-breakpoint-up(sm) {
@include media-breakpoint-up(md) {
// Automatically set modal's width for larger viewports
.modal-dialog {
max-width: $modal-md;
Expand Down Expand Up @@ -237,13 +237,4 @@
.modal-sm { max-width: $modal-sm; }
}

@include media-breakpoint-up(lg) {
.modal-lg,
.modal-xl {
max-width: $modal-lg;
}
}

@include media-breakpoint-up(xl) {
.modal-xl { max-width: $modal-xl; }
}
// Boosted mod: only one size above sm
2 changes: 0 additions & 2 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,6 @@ $modal-header-padding-y: .125rem !default; // Boosted mod
$modal-header-padding-x: .25rem !default; // Boosted mod
$modal-header-padding: null !default; // Keep this for backwards compatibility

$modal-xl: 700px !default;
$modal-lg: 700px !default;
$modal-md: 700px !default;
$modal-sm: 300px !default;

Expand Down

0 comments on commit 9170a2e

Please sign in to comment.