Merge "mediawiki.api.category: Avoid exceptions"
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / commonPrint.css
index 67fc77d..df5aa0f 100644 (file)
@@ -69,16 +69,16 @@ a.stub {
 }
 
 /* Expand URLs for printing */
-.mw-body-content a.external.text:after,
-.mw-body-content a.external.autonumber:after {
+.mw-parser-output a.external.text:after,
+.mw-parser-output a.external.autonumber:after {
        content: ' (' attr( href ) ')';
        word-break: break-all;
        word-wrap: break-word;
 }
 
 /* Expand protocol-relative URLs for printing */
-.mw-body-content a.external.text[href^='//']:after,
-.mw-body-content a.external.autonumber[href^='//']:after {
+.mw-parser-output a.external.text[ href^='//' ]:after,
+.mw-parser-output a.external.autonumber[ href^='//' ]:after {
        content: ' (https:' attr( href ) ')';
 }
 
@@ -126,9 +126,14 @@ pre,
        border: 1pt dashed #000;
        padding: 1em 0;
        font-size: 8pt;
-       white-space: pre;
+       white-space: pre-wrap;
        word-wrap: break-word;
-       overflow: auto;
+}
+
+/* Prevent citations and subscripts from interfering with the line-height */
+sup,
+sub {
+       line-height: 1;
 }
 
 ul {
@@ -197,28 +202,49 @@ ul {
  * Floating divs (and thumbnails)
  */
 /* @noflip */
+table.floatright,
 div.floatright,
 div.tright {
        float: right;
        clear: right;
        position: relative;
-       margin: 0.5em 0 0.8em 1.4em;
-}
-
-div.floatright p {
-       font-style: italic;
 }
 
 /* @noflip */
+table.floatleft,
 div.floatleft,
 div.tleft {
        float: left;
        clear: left;
        position: relative;
-       margin: 0.5em 1.4em 0.8em 0;
 }
 
-div.floatleft p {
+/* @noflip */
+div.tleft {
+       margin: 0.5em 1.4em 1.3em 0;
+}
+
+/* @noflip */
+div.tright {
+       margin: 0.5em 0 1.3em 1.4em;
+}
+
+/* @noflip */
+table.floatright,
+div.floatright {
+       margin: 0 0 0.5em 0.5em;
+       border: 0;
+}
+
+/* @noflip */
+table.floatleft,
+div.floatleft {
+       margin: 0 0.5em 0.5em 0;
+       border: 0;
+}
+
+div.floatleft p,
+div.floatright p {
        font-style: italic;
 }
 
@@ -231,33 +257,31 @@ div.floatleft p {
  */
 div.thumb {
        background-color: transparent;
-       border: 0;
        width: auto;
-       margin-top: 0.5em;
-       margin-bottom: 0.8em;
+}
+
+div.thumb a {
+       border-bottom: 0;
 }
 
 div.thumbinner {
        background-color: #fff;
-       border: 1pt solid #ccc;
-       padding: 3px;
-       font-size: 94%;
+       border: 0;
+       border-radius: 2px;
+       padding: 5px;
+       font-size: 10pt;
+       color: #666;
        text-align: center;
        /* new block formatting context,
         * to clear background from floating content  */
        overflow: hidden;
-}
-
-html .thumbimage {
-       border: 1pt solid #ccc;
+       min-width: 100px;
 }
 
 html .thumbcaption {
-       border: 0;
        text-align: left;
        line-height: 1.4;
        padding: 3px;
-       font-size: 94%;
 }
 
 img.thumbborder {