Document thumbinner's block formatting context
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / commonPrint.css
index 975ec2a..d387a2d 100644 (file)
@@ -84,6 +84,7 @@ pre,
 }
 
 img,
+figure,
 .wikitable,
 .thumb {
        /* Pagination */
@@ -172,6 +173,7 @@ a {
 .mw-body a.external.text:after,
 .mw-body a.external.autonumber:after {
        content: " (" attr( href ) ")";
+       word-break: break-all;
        word-wrap: break-word;
 }
 
@@ -247,6 +249,9 @@ div.thumbinner {
        padding: 3px !important;
        font-size: 94%;
        text-align: center;
+       /* new block formatting context,
+        * to clear background from floating content  */
+       overflow: hidden;
 }
 
 html .thumbimage {
@@ -259,8 +264,6 @@ html .thumbcaption {
        line-height: 1.4em;
        padding: 3px !important;
        font-size: 94%;
-       overflow: hidden;
-       word-wrap: break-word;
 }
 
 /* @noflip */