From 19c413d9148ec6d4d9cf583723ffed39d9fc422e Mon Sep 17 00:00:00 2001 From: ste101 Date: Tue, 29 Jul 2014 15:53:36 +0200 Subject: [PATCH] [FEATURE] Add max-width and border-radius --- scss/foundation/components/_reveal.scss | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scss/foundation/components/_reveal.scss b/scss/foundation/components/_reveal.scss index 7143299dc..e5f50a238 100755 --- a/scss/foundation/components/_reveal.scss +++ b/scss/foundation/components/_reveal.scss @@ -19,6 +19,7 @@ $reveal-overlay-bg-old: #000 !default; $reveal-modal-bg: #fff !default; $reveal-position-top: rem-calc(100) !default; $reveal-default-width: 80% !default; +$reveal-max-width: $row-width !default; $reveal-modal-padding: rem-calc(20) !default; $reveal-box-shadow: 0 0 10px rgba(#000,.4) !default; @@ -65,7 +66,9 @@ $close-reveal-modal-class: "close-reveal-modal" !default; // @mixin reveal-modal-base( $base-style:true, - $width:$reveal-default-width) { + $width:$reveal-default-width, + $max-width:$reveal-max-width, + $border-radius: $reveal-radius) { @if $base-style { visibility: hidden; display: none; @@ -73,13 +76,11 @@ $close-reveal-modal-class: "close-reveal-modal" !default; z-index: 100; width: 100vw; top:0; + border-radius: $border-radius; #{$default-float}: 0; @media #{$small-only} { min-height:100vh; } - @media #{$medium-up} { - #{$default-float}: 50%; - } // Make sure rows don't have a min-width on them .column, @@ -92,8 +93,11 @@ $close-reveal-modal-class: "close-reveal-modal" !default; @if $width { @media #{$medium-up} { - margin-#{$default-float}: -($width / 2); width: $width; + max-width: $max-width; + left: 0; + right: 0; + margin: 0 auto; } } } -- 2.47.2