_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
--------------------------------------------------------------*/
.wp-caption {
border: 1px solid #ccc;
margin-bottom: 1.5em;
max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
display: block;
margin: 1.2% auto 0;
max-width: 98%;
margin: 0 auto;
}
.wp-caption-text {
text-align: center;