Skip to content

Commit

Permalink
Better selectors for image styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Lance Willett committed Jun 27, 2012
1 parent 7995ef4 commit 8478e06
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/assets/stylesheets/_patterns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 8478e06

Please sign in to comment.