]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fixes issue #9821 10101/head
authorKevin Ball <kmball11@gmail.com>
Thu, 1 Jun 2017 17:38:06 +0000 (10:38 -0700)
committerKevin Ball <kmball11@gmail.com>
Thu, 1 Jun 2017 17:38:06 +0000 (10:38 -0700)
scss/components/_reveal.scss

index 8fb550ffea4a267782bd1dc156707f666e0a4e8e..b77de14273eb7a59ef8d459443e36440c306811f 100644 (file)
@@ -38,6 +38,18 @@ $reveal-zindex: 1005 !default;
 /// @type Color
 $reveal-overlay-background: rgba($black, 0.45) !default;
 
+
+// Placeholder selector for medium-and-up modals
+// Prevents duplicate CSS when defining multiple Reveal sizes
+@include breakpoint(medium) {
+  %reveal-centered {
+    right: auto;
+    left: auto;
+    margin: 0 auto;
+  }
+}
+
+
 /// Adds styles for a modal overlay.
 /// @param {Color} $background [$reveal-overlay-background] - Background color of the overlay.
 @mixin reveal-overlay($background: $reveal-overlay-background) {
@@ -142,16 +154,6 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
     margin-left: auto;
     overflow-y: auto;
 
-    // Placeholder selector for medium-and-up modals
-    // Prevents duplicate CSS when defining multiple Reveal sizes
-    @include breakpoint(medium) {
-      %reveal-centered {
-        right: auto;
-        left: auto;
-        margin: 0 auto;
-      }
-    }
-
     // Remove padding
     &.collapse {
       padding: 0;