]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Use pull request #10842 from ncoden/fix/media-object-custom-component for v6.5.0
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 16 Jun 2018 07:10:38 +0000 (09:10 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 16 Jun 2018 07:10:38 +0000 (09:10 +0200)
ee3399bc1 Revert "fix: prevent side-effect from .stack-for in media-object"

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
scss/components/_media-object.scss

index 1f6d44b3da622d5bdad2649f30ab1022b660332f..0ae8c51a62f7f692195d934f6a6ebd7cacbf6d93 100644 (file)
@@ -38,12 +38,6 @@ $mediaobject-image-width-stacked: 100% !default;
       }
     }
   }
-
-  &.stack-for-#{$-zf-zero-breakpoint} .media-object-section {
-    @include breakpoint($-zf-zero-breakpoint only) {
-      @include media-object-stack;
-    }
-  }
 }
 
 /// Adds styles for sections within a media object.
@@ -69,6 +63,12 @@ $mediaobject-image-width-stacked: 100% !default;
     margin-bottom: 0;
   }
 
+  .stack-for-#{$-zf-zero-breakpoint} & {
+    @include breakpoint($-zf-zero-breakpoint only) {
+      @include media-object-stack;
+    }
+  }
+
   @if $global-flexbox {
     &.main-section {
       flex: 1 1 0px; // sass-lint:disable-line zero-unit