forked from mirror/_s
_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:
parent
16a0d47af6
commit
aeaf200a58
|
@ -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;
|
||||
|
|
Reference in New Issue