From 5de1c1266d734d9fd904401d2509853a4a762101 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 31 Dec 2014 12:27:37 -0600 Subject: [PATCH] feat(modal): bg only for inset modals --- scss/_modal.scss | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scss/_modal.scss b/scss/_modal.scss index 0b56bb5e613..c821e3b8781 100644 --- a/scss/_modal.scss +++ b/scss/_modal.scss @@ -6,18 +6,12 @@ */ .modal-backdrop { - @include transition(background-color 300ms ease-in-out); position: fixed; top: 0; left: 0; z-index: $z-index-modal; width: 100%; height: 100%; - background-color: $modal-backdrop-bg-inactive; - - &.active { - background-color: $modal-backdrop-bg-active; - } } .modal { @@ -74,6 +68,15 @@ top: $bar-height + $bar-subheader-height + $tabs-height; } } + + .modal-backdrop { + @include transition(background-color 300ms ease-in-out); + background-color: $modal-backdrop-bg-inactive; + + &.active { + background-color: $modal-backdrop-bg-active; + } + } } // disable clicks on all but the modal