]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Added and optional parameter to the reveal-overlay() mixing, allowing it to be called... 8767/head
authorGeorge Connor <grgcnnr@gmail.com>
Tue, 10 May 2016 23:30:06 +0000 (11:30 +1200)
committerGeorge Connor <grgcnnr@gmail.com>
Tue, 10 May 2016 23:30:06 +0000 (11:30 +1200)
scss/components/_reveal.scss

index 1c0efec6a75e6ac59e95ea1f8f2fa32a5ea3572d..883c53a4a1ad4e04a2909b92f0d88d2d74c3e5a3 100644 (file)
@@ -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;
 }