mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Better fluid/responsive image styles in Twenty Eleven. props iandstewart, lancewillett, fixes #18940.
git-svn-id: https://develop.svn.wordpress.org/trunk@19292 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2ad89eb3ce
commit
74d1d7012f
@ -853,12 +853,15 @@ dl.gallery-item {
|
||||
max-width: 97.5%; /* Fluid images for posts, comments, and widgets */
|
||||
}
|
||||
img[class*="align"],
|
||||
img[class*="wp-image-"] {
|
||||
img[class*="wp-image-"],
|
||||
img[class*="attachment-"] {
|
||||
height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
|
||||
}
|
||||
img.size-full {
|
||||
img.size-full,
|
||||
img.size-large {
|
||||
max-width: 97.5%;
|
||||
width: auto; /* Prevent stretching of full-size images with height and width attributes in IE8 */
|
||||
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 */
|
||||
}
|
||||
.entry-content img.wp-smiley {
|
||||
border: none;
|
||||
|
Loading…
x
Reference in New Issue
Block a user