Permalink
Browse files

Better selectors for image styles

  • Loading branch information...
1 parent 7995ef4 commit 8478e06974e850690c096cf8e44ca64f0dd04f83 @lancewillett lancewillett committed Jun 27, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 source/assets/stylesheets/_patterns.scss
@@ -68,7 +68,8 @@ img[class*="attachment-"] {
}
img.size-full,
img.size-large,
-img.header-image {
+img.header-image,
+img.wp-post-image {
max-width: 100%;
width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
@@ -97,10 +98,11 @@ video {
margin-left: auto;
margin-right: auto;
}
-img[class*="align"],
-img[class*="wp-image-"],
-#content .gallery .gallery-icon img,
-img.header-image { /* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
+.entry-content img,
+.comment-content img,
+.widget img,
+img.header-image,
+img.wp-post-image { /* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
@include border-radius();
@include box-shadow();
}

0 comments on commit 8478e06

Please sign in to comment.