Sha256: 3e7b32f2f2253ecc321dcef7ef188f034de5cc976d7a660da3a24cb670c42980

Contents?: true

Size: 1.87 KB

Versions: 6

Compression:

Stored size: 1.87 KB

Contents

/* This fixes the zero print margin issue without adding extra */
@page {
  size: auto;
  margin: 0;
}

@media print and (color) {
  * {
    /* Prevent browsers from discarding the majority of color info */
    -webkit-print-color-adjust: exact;
    -moz-print-color-adjust: exact;
    print-color-adjust: exact;
  }


  body, html, main, #main {
    background-image: none; /* Safari */
    background-color: white;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  .paper {
    margin: 0;
    max-width: none;
    padding: 0;
    background-color: white;
    border: none;
    box-shadow: none;
    font-size: 12pt;
  }

  /* General tweaks */
  html        { font-size: 80%; margin: 0.25in; min-height: 0; }
  a           { text-decoration: none; }
  .field      { page-break-inside: avoid; }
  hr          { display: none; }
  table th,
  table td    { padding: 3px; }
  thead       { display: table-row-group; }

  /* Stuff to hide */
  nav, footer, .button, .no_print, input[type=submit], #notice, #alert {
    position: absolute;
    visibility: hidden;
    display: none;
  }

  .print_only {
    display: inherit !important;
  }

  /* Hide Tablesorter sorting indicators */
  table.tablesorter thead tr th {
    background-image: none !important;
    padding-left: 3px;
  }

  /* contents of "table_hover" cells should appear in printouts. */
  table tr td.table_hover{
    color: black !important;
  }

  /* The plain panel divs clutter up the page in print. */
  /* Remove their style.  Note we add it back to modifier panels below. */
  .panel {
    border-width: 0;
    padding: 0;
  }

  /* Add back the panel padding when there is a modifier class as well. */
  .panel.okay, .panel.highlight, .panel.warn, .panel.alert, .panel.gray {
    border-width: 1px;
    padding: 20px;
  }
}

/* Add for content which should only show in print */
.print_only {
  display: none;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dfm_web-5.0.4 app/assets/stylesheets/dfm_web/print.css
dfm_web-5.0.3 app/assets/stylesheets/dfm_web/print.css
dfm_web-5.0.2 app/assets/stylesheets/dfm_web/print.css
dfm_web-5.0.1 app/assets/stylesheets/dfm_web/print.css
dfm_web-5.0.0 app/assets/stylesheets/dfm_web/print.css
dfm_web-4.1.3 app/assets/stylesheets/dfm_web/print.css