MediaWiki:Print.css: Difference between revisions
From LSJ
mNo edit summary |
mNo edit summary |
||
Line 40: | Line 40: | ||
word-wrap: break-word; | word-wrap: break-word; | ||
} | } | ||
#toc, .lsj-quote-container, #mys-overlay, #mys-wrapper, #mys-content { | #toc, .lsj-quote-container, .ipr-container, #mys-overlay, #mys-wrapper, #mys-content { | ||
display: none; | display: none; | ||
} | } | ||
.adsbygoogle.adsbygoogle-noablate,.adsbygoogle,.google-ads,.google-photos-ads,.google-photos-ads2,.google-photo-ad,#google-posts-ads,.google-auto-placed,#gda,.google-anno-sa-qtx,.google-anno-skip,.adsbygoogle_adsbygoogle-noablate,.adsbygoogle-noablate,.google-anno-sa,#google_ads_iframe,[id^="aswift_"],iframe[src*="google"],.ad-container,.google-auto-placed,.ad-slot,.adsense-ad,#page2print,.ft-reg-bubble,#ipr-container,[class*="ad-"],[class*="google-"]{display:none!important} | .adsbygoogle.adsbygoogle-noablate,.adsbygoogle,.google-ads,.google-photos-ads,.google-photos-ads2,.google-photo-ad,#google-posts-ads,.google-auto-placed,#gda,.google-anno-sa-qtx,.google-anno-skip,.adsbygoogle_adsbygoogle-noablate,.adsbygoogle-noablate,.google-anno-sa,#google_ads_iframe,[id^="aswift_"],iframe[src*="google"],.ad-container,.google-auto-placed,.ad-slot,.adsense-ad,#page2print,.ft-reg-bubble,#ipr-container,[class*="ad-"],[class*="google-"]{display:none!important} |
Revision as of 11:45, 16 December 2024
/* CSS placed here will affect the print output */ /* Do not print */ .ns-0 .metadata, /* items in mainspace marked as metadata */ .editlink, /* section edit links */ .mw-collapsible-toggle, /* Show/hide toggles for collapsible items. */ #mw-revision-nav, /* revision navigation on a permalink [[phab:T173057]] */ /* Add formatting to make sure that "external references" from templates like [[Template:Ref]] do not get URL expansion, not even when printed. The anchor itself has class "external autonumber" and the url expansion is inserted when printing using the ":after" pseudo-element of CSS. See mediawiki.skinning/content.tables-print.less */ .nourlexpansion a.external.text::after, .nourlexpansion a.external.autonumber::after { display: none !important; } /* Uncollapse collapsible things * See also [[phab:T152330]] */ .mw-parser-output .mw-collapsed, .mw-parser-output .mw-collapsed .mw-collapsible-content, .mw-parser-output .mw-collapsed > li, .mw-parser-output .mw-collapsed tr { /* fallback for browser versions that don't yet support revert * on the support graph that's only grade C/X, so review this at a later date */ display: initial !important; display: revert !important; /* revert works better for tables */ } /* On websites with siteSub visible, the margin on the firstHeading is not needed. */ #firstHeading { margin: 0; } /* We don't want very long URLs (that are added to the content in print) to widen the canvas */ .mw-parser-output a.external.text::after, .mw-parser-output a.external.autonumber::after { word-wrap: break-word; } #toc, .lsj-quote-container, .ipr-container, #mys-overlay, #mys-wrapper, #mys-content { display: none; } .adsbygoogle.adsbygoogle-noablate,.adsbygoogle,.google-ads,.google-photos-ads,.google-photos-ads2,.google-photo-ad,#google-posts-ads,.google-auto-placed,#gda,.google-anno-sa-qtx,.google-anno-skip,.adsbygoogle_adsbygoogle-noablate,.adsbygoogle-noablate,.google-anno-sa,#google_ads_iframe,[id^="aswift_"],iframe[src*="google"],.ad-container,.google-auto-placed,.ad-slot,.adsense-ad,#page2print,.ft-reg-bubble,#ipr-container,[class*="ad-"],[class*="google-"]{display:none!important}