مدیاویکی:Print.css: تفاوت میان نسخهها
بدون خلاصۀ ویرایش |
جز (به روز رسانی) |
||
خط ۱۳: | خط ۱۳: | ||
.toc, .editlink, .editsection, .subpages, | .toc, .editlink, .editsection, .subpages, | ||
#filetoc, #footer-places, | #filetoc, #footer-places, | ||
.metadata, .noprint { display: none; } | .metadata, .noprint { | ||
display: none; | |||
} | |||
/* Show elements meant to be displayed when printed, use fallbacks when needed. */ | /* Show elements meant to be displayed when printed, use fallbacks when needed. */ | ||
خط ۳۵: | خط ۳۷: | ||
.skin-monobook div#column-one, | .skin-monobook div#column-one, | ||
.skin-monobook div#f-poweredbyico, | .skin-monobook div#f-poweredbyico, | ||
.skin-monobook div#f-copyrightico | .skin-monobook div#f-copyrightico { | ||
{ | display: none; | ||
} | } | ||
خط ۷۶: | خط ۷۷: | ||
#mw-revision-nav { | #mw-revision-nav { | ||
display: none !important; | display: none !important; | ||
} | |||
/* This is code import from https://fa.wikipedia.org/wiki/Mediawiki:Print.css */ | |||
/* تغییرات مخصوص فارسی */ | |||
body, | |||
div#content h1, div#content h2, | |||
div#content #firstHeading, | |||
div#content #toc h2, div#content .toc h2 { | |||
font-family: Nazli, 'XB Zar', IRNazanin, 'B Nazanin', 'Iranian Sans', Tahoma, 'DejaVu Sans'; | |||
} | |||
body { text-align: justify; } | |||
#firstHeading i { padding-right: 0.3em; } /* فاصله دادن از راست عنوان اول برای خروجی چاپی */ | |||
ol:lang(fa) li { list-style-type: persian; } | |||
/* پایان تغییرات مخصوص فارسی */ | |||
/* سایر تغییرات از https://en.wikipedia.org/wiki/MediaWiki:Print.css */ | |||
/* Do not print: | |||
1: When in mainspace: Article message boxes, | |||
navboxes, sister project boxes, disambig links, | |||
and items marked as metadata. | |||
2: section edit links. | |||
3: navbar links. | |||
4: Show/hide toggles for collapsible items. | |||
*/ | |||
.ns-0 .ambox, | |||
.ns-0 .navbox, | |||
.ns-0 .vertical-navbox, | |||
.ns-0 .infobox.sisterproject, | |||
.ns-0 .hatnote, | |||
.ns-0 .dablink, | |||
.ns-0 .metadata, | |||
.editlink, | |||
.navbar, | |||
a.NavToggle, span.collapseButton, span.mw-collapsible-toggle, | |||
th .sortkey, td .sortkey { | |||
display: none !important; | |||
} | |||
/* 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 (see the common printing style sheet at | |||
http://en.wikipedia.org/w/skins/common/commonPrint.css) using the | |||
":after" pseudo-element of CSS. | |||
*/ | |||
.nourlexpansion a.external.text:after, | |||
.nourlexpansion a.external.autonumber:after { | |||
display: none !important; | |||
} | |||
/* Uncollapse collapsible tables/divs. | |||
The proper way to do this for tables is to use display:table-row, | |||
but this is not supported by all browsers, so use display:block as fallback. | |||
*/ | |||
table.collapsible tr, div.NavPic, div.NavContent { | |||
display: block !important; | |||
} | |||
table.collapsible tr { | |||
display: table-row !important; | |||
} | |||
.mw-parser-output .mw-collapsed .mw-collapsible-content { | |||
display: block !important; | |||
} | |||
/* 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 */ | |||
#content a.external.text:after, | |||
#content a.external.autonumber:after { | |||
word-wrap: break-word; | |||
} | } |
نسخهٔ ۲۹ ژانویهٔ ۲۰۲۰، ساعت ۱۹:۴۳
/* Rest should be identical to https://en.wikibooks.org/wiki/MediaWiki:Print.css */
/* <source lang="css"> */
/* Do not print:
1: Message boxes, project boxes, navigation boxes, categories, and disambig links.
2: Privacy, about, disclaimer, redirect and section edit links.
3: Show/hide toggles for collapsible elements.
4: metadata and noprint elements.
Note: People may want not to see these element for pages printed in any namespaces.
*/
.ambox, .tmbox, .dablink, .catlinks, .collapsible span.action,
.toc, .editlink, .editsection, .subpages,
#filetoc, #footer-places,
.metadata, .noprint {
display: none;
}
/* Show elements meant to be displayed when printed, use fallbacks when needed. */
div.expand-print, div.printonly { display: block !important; }
span.expand-print, span.printonly { display: inline !important; }
table.collapsible tr, div.collapsible > div.body { display: block !important; }
table.collapsible tr { display: table-row !important; }
/* Don't expand external links (see http://en.wikibooks.org/skins-1.5/common/commonPrint.css) */
cite a.external.text:after,
.citation a.external.text:after,
.nourlexpansion a.external.text:after,
.nourlexpansion a.external.autonumber:after {
display: none !important;
}
/* Hiding some items when printing with Simple and Monobook skins */
.skin-simple div#column-one,
.skin-simple div#f-poweredbyico,
.skin-simple div#f-copyrightico,
.skin-monobook div#column-one,
.skin-monobook div#f-poweredbyico,
.skin-monobook div#f-copyrightico {
display: none;
}
/* wikitable class for skinning normal tables */
table.wikitable { margin: 1em 1em 1em 0em; border: 1px #aaaaaa solid; border-collapse: collapse; }
table.wikitable th, .wikitable td { border:1px #aaaaaa solid; padding: 0.2em; }
table.wikitable th { text-align: center; background: #F2F2F2; font-weight: bold; }
table.wikitable caption { font-weight: bold; }
/* </source> */
/* Do not print:
1: When in mainspace: Article message boxes,
navboxes, sister project boxes, disambig links,
and items marked as metadata.
2: section edit links.
3: navbar links.
4: Show/hide toggles for collapsible items.
*/
.ns--1 .ambox,
.ns-0 .ambox,
.ns--1 .navbox,
.ns-0 .navbox,
.ns--1 .vertical-navbox,
.ns-0 .vertical-navbox,
.ns--1 .infobox.sisterproject,
.ns-0 .infobox.sisterproject,
.ns--1 .hatnote,
.ns-0 .hatnote,
.ns--1 .dablink,
.ns-0 .dablink,
.ns--1 .metadata,
.ns-0 .metadata,
.sistersitebox,
.editlink,
.navbar,
a.NavToggle, span.collapseButton, span.mw-collapsible-toggle,
th .sortkey, td .sortkey,
#mw-revision-nav {
display: none !important;
}
/* This is code import from https://fa.wikipedia.org/wiki/Mediawiki:Print.css */
/* تغییرات مخصوص فارسی */
body,
div#content h1, div#content h2,
div#content #firstHeading,
div#content #toc h2, div#content .toc h2 {
font-family: Nazli, 'XB Zar', IRNazanin, 'B Nazanin', 'Iranian Sans', Tahoma, 'DejaVu Sans';
}
body { text-align: justify; }
#firstHeading i { padding-right: 0.3em; } /* فاصله دادن از راست عنوان اول برای خروجی چاپی */
ol:lang(fa) li { list-style-type: persian; }
/* پایان تغییرات مخصوص فارسی */
/* سایر تغییرات از https://en.wikipedia.org/wiki/MediaWiki:Print.css */
/* Do not print:
1: When in mainspace: Article message boxes,
navboxes, sister project boxes, disambig links,
and items marked as metadata.
2: section edit links.
3: navbar links.
4: Show/hide toggles for collapsible items.
*/
.ns-0 .ambox,
.ns-0 .navbox,
.ns-0 .vertical-navbox,
.ns-0 .infobox.sisterproject,
.ns-0 .hatnote,
.ns-0 .dablink,
.ns-0 .metadata,
.editlink,
.navbar,
a.NavToggle, span.collapseButton, span.mw-collapsible-toggle,
th .sortkey, td .sortkey {
display: none !important;
}
/* 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 (see the common printing style sheet at
http://en.wikipedia.org/w/skins/common/commonPrint.css) using the
":after" pseudo-element of CSS.
*/
.nourlexpansion a.external.text:after,
.nourlexpansion a.external.autonumber:after {
display: none !important;
}
/* Uncollapse collapsible tables/divs.
The proper way to do this for tables is to use display:table-row,
but this is not supported by all browsers, so use display:block as fallback.
*/
table.collapsible tr, div.NavPic, div.NavContent {
display: block !important;
}
table.collapsible tr {
display: table-row !important;
}
.mw-parser-output .mw-collapsed .mw-collapsible-content {
display: block !important;
}
/* 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 */
#content a.external.text:after,
#content a.external.autonumber:after {
word-wrap: break-word;
}