From: George Connor Date: Tue, 10 May 2016 23:30:06 +0000 (+1200) Subject: Added and optional parameter to the reveal-overlay() mixing, allowing it to be called... X-Git-Tag: v6.2.4-rc1~65^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8767%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Added and optional parameter to the reveal-overlay() mixing, allowing it to be called with an explicit background color as per documentation. --- diff --git a/scss/components/_reveal.scss b/scss/components/_reveal.scss index 1c0efec6a..883c53a4a 100644 --- a/scss/components/_reveal.scss +++ b/scss/components/_reveal.scss @@ -40,7 +40,7 @@ $reveal-overlay-background: rgba($black, 0.45) !default; /// Adds styles for a modal overlay. /// @param {Color} $background [$reveal-overlay-background] - Background color of the overlay. -@mixin reveal-overlay { +@mixin reveal-overlay($background: $reveal-overlay-background) { display: none; position: fixed; top: 0; @@ -48,7 +48,7 @@ $reveal-overlay-background: rgba($black, 0.45) !default; left: 0; right: 0; z-index: $reveal-zindex; - background-color: $reveal-overlay-background; + background-color: $background; overflow-y: scroll; }