مدیاویکی:Print.css

از ویکی‌واژه

نکته: پس از انتشار ممکن است برای دیدن تغییرات نیاز باشد که حافظهٔ نهانی مرورگر خود را پاک کنید.

  • فایرفاکس / سافاری: کلید Shift را نگه دارید و روی دکمهٔ Reload کلیک کنید، یا کلید‌های Ctrl-F5 یا Ctrl-R را با هم فشار دهید (در رایانه‌های اپل مکینتاش کلید‌های ⌘-R)
  • گوگل کروم: کلیدهای Ctrl+Shift+R را با هم فشار دهید (در رایانه‌های اپل مکینتاش کلید‌های ⌘-Shift-R)
  • اینترنت اکسپلورر/ Edge: کلید Ctrl را نگه‌دارید و روی دکمهٔ Refresh کلیک کنید، یا کلید‌های Ctrl-F5 را با هم فشار دهید
  • اپرا: Ctrl-F5 را بفشارید.
/* <source lang="css"> */
body {
  font-family: Nazli, Tahoma, 'DejaVu Sans';
}

/* Do not print:
   1: When in mainspace: Article message boxes,
      navboxes, sister project boxes, disambig links,
      and items marked as metadata.
   2: Privacy, about, disclaimer, redirect and section edit links.
   3: Show/hide toggles for collapsible items.
   4: Items marked as noprint.
*/
.ns-0 .ambox, 
.ns-0 .navbox, 
.ns-0 .infobox.sisterproject, 
.ns-0 .dablink, 
.ns-0 .metadata, 
#footer-places,
.editlink,
span.collapseButton, a.NavToggle,
.noprint {
    display: none;
}

/* 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;
}

/* Hiding some items when printing with Simple skin */
.skin-simple div#column-one,
.skin-simple div#f-poweredbyico,
.skin-simple div#f-copyrightico,
.skin-simple .editsection { 
    display: none; 
}
/* On websites with siteSub visible, the margin on the firstHeading is not needed. */
#firstHeading {
    margin: 0px;
}
 
/* Remove once r76522 is live */
.wikitable, .thumb, img {
	page-break-inside: avoid;
}
h2, h3, h4, h5, h6, h7 {
	page-break-after: avoid;
}
p {
	widows: 3;
	orphans: 3;
}

div.floatright, table.floatright {
  clear: right;
  float: right;
  margin: 0 0 .5em .5em;
}
div.floatleft, table.floatleft {
  float: left;
  clear: left;
  margin: 0 .5em .5em 0;
}
div.tleft {
  clear: left;
  float: left;
  margin: 0.5em 1.4em 0.8em 0;
}
div.tright {
  float: right;
  clear: right;
  margin: 0.5em 0 0.8em 1.4em;
}
/* </source> */