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
|
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;
|
||||||
|
|
Reference in New Issue