X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.legacy%2FcommonPrint.css;h=b4418e58c0b9ea9686a3daa1fd77cae66bb9ebf5;hb=89cc9afb772490e67c188adbed09697571a758dc;hp=ed21303f1e65b66b8961729e6daf246d30b5582a;hpb=05f6ab86ca532ad61a3070d408853045e0eb9eb2;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.legacy/commonPrint.css b/resources/src/mediawiki.legacy/commonPrint.css index ed21303f1e..b4418e58c0 100644 --- a/resources/src/mediawiki.legacy/commonPrint.css +++ b/resources/src/mediawiki.legacy/commonPrint.css @@ -99,29 +99,30 @@ img { * MediaWiki-specific elements */ #globalWrapper { - width: 100% !important; - min-width: 0 !important; + width: 100% !important; /* stylelint-disable-line declaration-no-important */ + min-width: 0 !important; /* stylelint-disable-line declaration-no-important */ } .mw-body { background: #fff; color: #000; - border: 0 !important; - padding: 0 !important; - margin: 0 !important; + border: 0 !important; /* stylelint-disable-line declaration-no-important */ + padding: 0 !important; /* stylelint-disable-line declaration-no-important */ + margin: 0 !important; /* stylelint-disable-line declaration-no-important */ direction: ltr; } #column-content { - margin: 0 !important; + margin: 0 !important; /* stylelint-disable-line declaration-no-important */ } #column-content .mw-body { padding: 1em; - margin: 0 !important; + margin: 0 !important; /* stylelint-disable-line declaration-no-important */ } -#toc { +#toc, +.toc { background-color: #f9f9f9; border: 1pt solid #aaa; padding: 5px; @@ -164,40 +165,34 @@ img { * Links */ a { - background: none !important; - padding: 0 !important; + background: none !important; /* stylelint-disable-line declaration-no-important */ + padding: 0 !important; /* stylelint-disable-line declaration-no-important */ } /* Expand URLs for printing */ -.mw-body a.external.text:after, -.mw-body a.external.autonumber:after { - content: " (" attr( href ) ")"; +.mw-body-content a.external.text:after, +.mw-body-content a.external.autonumber:after { + content: ' (' attr( href ) ')'; word-break: break-all; word-wrap: break-word; } /* Expand protocol-relative URLs for printing */ -.mw-body a.external.text[href^='//']:after, -.mw-body a.external.autonumber[href^='//']:after { - content: " (https:" attr( href ) ")"; +.mw-body-content a.external.text[href^='//']:after, +.mw-body-content a.external.autonumber[href^='//']:after { + content: ' (https:' attr( href ) ')'; } -/* MSIE/Win doesn't understand 'inherit' */ a, a.external, a.new, a.stub { - color: #000 !important; - text-decoration: none !important; -} - -/* Continue ... */ -a, -a.external, -a.new, -a.stub { - color: inherit !important; - text-decoration: inherit !important; + /* IE 6 & 7 don't understand `inherit` */ + color: #000 !important; /* stylelint-disable-line declaration-no-important */ + text-decoration: none !important; /* stylelint-disable-line declaration-no-important */ + /* Modern browser will apply this, IE 6 & 7 ignore the unknown */ + color: inherit !important; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */ + text-decoration: inherit !important; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */ } /**