Skip to content

Commit

Permalink
Add variable for modal breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-sleep authored and jgthms committed Sep 2, 2020
1 parent 5e4bf5e commit 76ede5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sass/components/modal.sass
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ $modal-card-foot-border-top: 1px solid $border !default
$modal-card-body-background-color: $scheme-main !default
$modal-card-body-padding: 20px !default

$modal-breakpoint: $tablet !default

.modal
@extend %overlay
align-items: center
Expand All @@ -53,7 +55,7 @@ $modal-card-body-padding: 20px !default
position: relative
width: 100%
// Responsiveness
+tablet
+from($modal-breakpoint)
margin: 0 auto
max-height: calc(100vh - #{$modal-content-spacing-tablet})
width: $modal-content-width
Expand Down

0 comments on commit 76ede5a

Please sign in to comment.