@media print {
  @page {
    html body {
      margin: 2cm;
    }
  }
  html body *,
  html body *:before,
  html body *:after {
    color: #222;
    background: transparent !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
    text-shadow: none !important;
  }
  html body .wrapper {
    width: 100%;
  }
  html body img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  html body a,
  html body a:visited {
    text-decoration: underline;
  }
  html body pre,
  html body blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  html body thead {
    display: table-header-group;
  }
  html body tr,
  html body img {
    page-break-inside: avoid;
  }
  html body p,
  html body h2,
  html body h3 {
    orphans: 3;
    widows: 3;
  }
  html body h2,
  html body h3 {
    page-break-after: avoid;
  }
  .topbar .trigger,
  .topnav,
  .mainfooter,
  .smnavfix,
  .post_meta_infos,
  .other_posts,
  .other_news {
    display: none;
  }
}