From: Kevin Ball Date: Thu, 1 Jun 2017 17:38:06 +0000 (-0700) Subject: Fixes issue #9821 X-Git-Tag: v6.4.0-rc1~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10101%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fixes issue #9821 --- diff --git a/scss/components/_reveal.scss b/scss/components/_reveal.scss index 8fb550ffe..b77de1427 100644 --- a/scss/components/_reveal.scss +++ b/scss/components/_reveal.scss @@ -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;