Twenty Twelve: add max-width rule to help captions not overflow their container at small window sizes. Props chriswallace and obenland, fixes #21383.

git-svn-id: https://develop.svn.wordpress.org/trunk@21407 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2012-08-02 20:53:38 +00:00
parent 66315ec8a3
commit 46910c79e4
1 changed files with 1 additions and 0 deletions

View File

@ -317,6 +317,7 @@ img.wp-post-image {
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.wp-caption {
max-width: 100%; /* Keep wide captions from overflowing their container. */
padding: 4px;
}
.wp-caption .wp-caption-text,