Twenty Ten: Restore `max-width` on `.wp-caption`.
[42837] fixed the compatibility issue caused by [41724], returning the caption shortcode to the pre-4.9.0 behavior. Reverts [42386]. Fixes #42604. git-svn-id: https://develop.svn.wordpress.org/trunk@42886 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f4f630e889
commit
7e64beacf7
|
@ -803,8 +803,6 @@ img.size-full,
|
||||||
img.size-large,
|
img.size-large,
|
||||||
img.size-medium,
|
img.size-medium,
|
||||||
.attachment img,
|
.attachment img,
|
||||||
.entry-content img,
|
|
||||||
.wp-caption img,
|
|
||||||
.widget-container img {
|
.widget-container img {
|
||||||
max-width: 100%; /* When images are too wide for containing element, force them to fit. */
|
max-width: 100%; /* When images are too wide for containing element, force them to fit. */
|
||||||
height: auto; /* Override height to match resized width for correct aspect ratio. */
|
height: auto; /* Override height to match resized width for correct aspect ratio. */
|
||||||
|
@ -839,6 +837,7 @@ img.aligncenter {
|
||||||
background: #f1f1f1;
|
background: #f1f1f1;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
max-width: 632px !important; /* prevent too-wide images from breaking layout */
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue