Skip to content

Instantly share code, notes, and snippets.

@barbwiredmedia
Created April 22, 2016 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barbwiredmedia/9c6d9c91291b16f4520a4634bd1d5e8c to your computer and use it in GitHub Desktop.
Save barbwiredmedia/9c6d9c91291b16f4520a4634bd1d5e8c to your computer and use it in GitHub Desktop.
WP responsive image within WYSIWYG content
.main {
img[class*="wp-image"] {
@include img-responsive;
}
@include bp-md-max {
@include center-block;
float:none;
}
}
@jongc
Copy link

jongc commented Sep 20, 2016

@include bp-md-max {} needs to be nested in img[class*="wp-image"]; it applies to img rather than .main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment