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:
parent
17a24f8400
commit
3ac13b6e6a
|
@ -867,7 +867,7 @@ dl.gallery-item {
|
||||||
.entry-content img,
|
.entry-content img,
|
||||||
.comment-content img,
|
.comment-content img,
|
||||||
.widget 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*="align"],
|
||||||
img[class*="wp-image-"],
|
img[class*="wp-image-"],
|
||||||
|
@ -903,7 +903,7 @@ p img,
|
||||||
}
|
}
|
||||||
.wp-caption img {
|
.wp-caption img {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: -2px 0 0 -2px;
|
||||||
max-width: 98%;
|
max-width: 98%;
|
||||||
}
|
}
|
||||||
.wp-caption .wp-caption-text,
|
.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 */
|
#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;
|
border: 1px solid #ddd;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
|
max-width: 97.5%;
|
||||||
}
|
}
|
||||||
.wp-caption img {
|
.wp-caption img {
|
||||||
border-color: #eee;
|
border-color: #eee;
|
||||||
|
|
Loading…
Reference in New Issue