Skip to content

Commit

Permalink
Revert "fix: prevent side-effect from .stack-for in media-object"
Browse files Browse the repository at this point in the history
This reverts commit 606f164.

> Prevent a parent component with `.stack-for-*` to have side effects on `.media-object-section`.
Actually, no others component uses `.stack-for-*`.

Also, this would prevent to create a custom component from `@media media-object-section`.
  • Loading branch information
ncoden committed Jan 8, 2018
1 parent 9fcea0f commit ee3399b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scss/components/_media-object.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit ee3399b

Please sign in to comment.