Skip to content

Commit 407589b

Browse files
committed
Center twitter embeds differently. again.
This time, just target the iframe. display: table was weird in webkit.
1 parent 084f24e commit 407589b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/_css/react.scss

+3-4
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,7 @@ p code {
745745
}
746746
}
747747

748-
// Twitter embeds
749-
div[data-twttr-id] {
750-
margin: auto;
751-
display: table;
748+
// Twitter embeds. Need to !important because they inline margin on the iframe.
749+
div[data-twttr-id] iframe {
750+
margin: 10px auto !important;
752751
}

0 commit comments

Comments
 (0)