_s: Simplify caption styles to work in HTML5 mode.

Since HTML5 captions removed the additional 10px that HTML4 versions
come with, the `max-width: 98%;` rule made images blurry. This slightly
simplifies caption styles while still providing support for both HTML4
and HTML5 versions.

See #443.
This commit is contained in:
Konstantin Obenland 2014-04-25 11:25:48 -05:00
parent 16a0d47af6
commit aeaf200a58
1 changed files with 1 additions and 3 deletions

View File

@ -621,14 +621,12 @@ object {
12.1 Captions 12.1 Captions
--------------------------------------------------------------*/ --------------------------------------------------------------*/
.wp-caption { .wp-caption {
border: 1px solid #ccc;
margin-bottom: 1.5em; margin-bottom: 1.5em;
max-width: 100%; max-width: 100%;
} }
.wp-caption img[class*="wp-image-"] { .wp-caption img[class*="wp-image-"] {
display: block; display: block;
margin: 1.2% auto 0; margin: 0 auto;
max-width: 98%;
} }
.wp-caption-text { .wp-caption-text {
text-align: center; text-align: center;