Skip to content

Commit

Permalink
Merge pull request #1557 from Kajabi/SAGE-773/ae-modal-content-max-width
Browse files Browse the repository at this point in the history
[Sage-773] Modal - Content Max Width
  • Loading branch information
Ashley E authored Aug 17, 2022
2 parents df10f46 + 7e6a5fd commit d4263a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/sage-assets/lib/stylesheets/components/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ $-modal-padding-y: sage-spacing(md);
$-modal-margin-lg: 6vh;
$-modal-margin-xl: 8vh;
$-modal-header-image-size: rem(28px);
$-modal-fullscreen-max-width: sage-container(full);
$-modal-fullscreen-top-spacing: rem(104px);
$-modal-inner-size: sage-container(md);

Expand Down Expand Up @@ -238,7 +239,8 @@ $-modal-inner-size: sage-container(md);
margin: $-modal-padding-y $-modal-padding-x;

.sage-modal--fullscreen & {
margin-top: $-modal-fullscreen-top-spacing;
max-width: $-modal-fullscreen-max-width;
margin: $-modal-fullscreen-top-spacing auto 0 auto;
}

.sage-modal--scrollable & {
Expand Down

0 comments on commit d4263a4

Please sign in to comment.