From c5d78f828a48ba88b8a89a0564bcb8352e84b396 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 24 Sep 2015 10:17:58 -0400 Subject: Converting preview image modal to use react-bootstrap. Fixes issue where modal would appear behind background on iOS --- web/sass-files/sass/partials/_modal.scss | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'web/sass-files/sass') diff --git a/web/sass-files/sass/partials/_modal.scss b/web/sass-files/sass/partials/_modal.scss index 62067c3b8..b0d5a0f7d 100644 --- a/web/sass-files/sass/partials/_modal.scss +++ b/web/sass-files/sass/partials/_modal.scss @@ -190,16 +190,13 @@ position: relative; max-width: 90%; min-height: 100px; - min-width: 320px; + min-width: 240px; @include border-radius(3px); display: table; margin: 0 auto; &:hover { @include border-radius(3px 3px 0 0); } - &:hover .modal-close { - @include opacity(1); - } &.default { width: 100%; height: 80%; @@ -213,8 +210,15 @@ right: -13px; top: -13px; @include opacity(0); + -webkit-transition: opacity 0.6s; + -moz-transition: opacity 0.6s; + -o-transition: opacity 0.6s; + transition: opacity 0.6s; cursor: pointer; z-index: 9999; + &.modal-close--show { + @include opacity(1); + } } > a { background: #FFF; @@ -226,7 +230,7 @@ max-height: 100%; } } - .image-content { + .modal-content{ box-shadow: none; background: rgba(0, 0, 0, 0); width: 100%; @@ -310,6 +314,7 @@ } } + // Invite New Member .invite { margin-right: 40px; @@ -324,4 +329,4 @@ padding-left: 0; } } -} \ No newline at end of file +} -- cgit v1.2.3-1-g7c22