Twenty Eleven: set images without WordPress-generated class to 100% maximum width, and fix spacing of images within caption containers. Props obenland, fixes #22366.

git-svn-id: http://core.svn.wordpress.org/trunk@23654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-03-08 18:58:27 +00:00
parent 17a24f8400
commit 3ac13b6e6a

View File

@ -867,7 +867,7 @@ dl.gallery-item {
.entry-content img,
.comment-content img,
.widget img {
max-width: 97.5%; /* Fluid images for posts, comments, and widgets */
max-width: 100%; /* Fluid images for posts, comments, and widgets */
}
img[class*="align"],
img[class*="wp-image-"],
@ -903,7 +903,7 @@ p img,
}
.wp-caption img {
display: block;
margin: 0 auto;
margin: -2px 0 0 -2px;
max-width: 98%;
}
.wp-caption .wp-caption-text,
@ -953,6 +953,7 @@ img[class*="wp-image-"],
#content .gallery .gallery-icon img {/* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
border: 1px solid #ddd;
padding: 6px;
max-width: 97.5%;
}
.wp-caption img {
border-color: #eee;