From 8c8b2c7f22f68522b77974cea0b87a5b30b05b04 Mon Sep 17 00:00:00 2001 From: George Connor Date: Wed, 11 May 2016 11:30:06 +1200 Subject: [PATCH] Added and optional parameter to the reveal-overlay() mixing, allowing it to be called with an explicit background color as per documentation. --- scss/components/_reveal.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2