مدیاویکی:Print.css: تفاوت میان نسخهها
پرش به ناوبری
پرش به جستجو
صفحهای تازه حاوی «←تغییرات مخصوص فارسی: body, div#content h1, div#content h2, div#content #firstHeading, div#content #toc h2, div#conten...» ایجاد کرد |
بدون خلاصۀ ویرایش |
||
خط ۴: | خط ۴: | ||
div#content #firstHeading, | div#content #firstHeading, | ||
div#content #toc h2, div#content .toc h2 { | div#content #toc h2, div#content .toc h2 { | ||
font-family: | font-family: 'B Nazanin', 'Iranian Sans', Nazli, 'XB Zar', IRNazanin,Tahoma, 'DejaVu Sans'; | ||
} | } | ||
body { text-align: justify; } | body { text-align: justify; } |
نسخهٔ ۲۴ دی ۱۳۹۷، ساعت ۱۲:۱۹
/* تغییرات مخصوص فارسی */
body,
div#content h1, div#content h2,
div#content #firstHeading,
div#content #toc h2, div#content .toc h2 {
font-family: 'B Nazanin', 'Iranian Sans', Nazli, 'XB Zar', IRNazanin,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;
}