static/less/print.less
author stetrabby <info@trabucchi.de>
Fri, 20 Dec 2013 22:30:44 +0100
changeset 53 3416f82943ea
permissions -rwxr-xr-x
less initial added
info@53
     1
//
info@53
     2
// Basic print styles
info@53
     3
// --------------------------------------------------
info@53
     4
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
info@53
     5
info@53
     6
@media print {
info@53
     7
info@53
     8
  * {
info@53
     9
    text-shadow: none !important;
info@53
    10
    color: #000 !important; // Black prints faster: h5bp.com/s
info@53
    11
    background: transparent !important;
info@53
    12
    box-shadow: none !important;
info@53
    13
  }
info@53
    14
info@53
    15
  a,
info@53
    16
  a:visited {
info@53
    17
    text-decoration: underline;
info@53
    18
  }
info@53
    19
info@53
    20
  a[href]:after {
info@53
    21
    content: " (" attr(href) ")";
info@53
    22
  }
info@53
    23
info@53
    24
  abbr[title]:after {
info@53
    25
    content: " (" attr(title) ")";
info@53
    26
  }
info@53
    27
info@53
    28
  // Don't show links for images, or javascript/internal links
info@53
    29
  a[href^="javascript:"]:after,
info@53
    30
  a[href^="#"]:after {
info@53
    31
    content: "";
info@53
    32
  }
info@53
    33
info@53
    34
  pre,
info@53
    35
  blockquote {
info@53
    36
    border: 1px solid #999;
info@53
    37
    page-break-inside: avoid;
info@53
    38
  }
info@53
    39
info@53
    40
  thead {
info@53
    41
    display: table-header-group; // h5bp.com/t
info@53
    42
  }
info@53
    43
info@53
    44
  tr,
info@53
    45
  img {
info@53
    46
    page-break-inside: avoid;
info@53
    47
  }
info@53
    48
info@53
    49
  img {
info@53
    50
    max-width: 100% !important;
info@53
    51
  }
info@53
    52
info@53
    53
  @page {
info@53
    54
    margin: 2cm .5cm;
info@53
    55
  }
info@53
    56
info@53
    57
  p,
info@53
    58
  h2,
info@53
    59
  h3 {
info@53
    60
    orphans: 3;
info@53
    61
    widows: 3;
info@53
    62
  }
info@53
    63
info@53
    64
  h2,
info@53
    65
  h3 {
info@53
    66
    page-break-after: avoid;
info@53
    67
  }
info@53
    68
info@53
    69
  // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
info@53
    70
  // Once fixed, we can just straight up remove this.
info@53
    71
  select {
info@53
    72
    background: #fff !important;
info@53
    73
  }
info@53
    74
info@53
    75
  // Bootstrap components
info@53
    76
  .navbar {
info@53
    77
    display: none;
info@53
    78
  }
info@53
    79
  .table {
info@53
    80
    td,
info@53
    81
    th {
info@53
    82
      background-color: #fff !important;
info@53
    83
    }
info@53
    84
  }
info@53
    85
  .btn,
info@53
    86
  .dropup > .btn {
info@53
    87
    > .caret {
info@53
    88
      border-top-color: #000 !important;
info@53
    89
    }
info@53
    90
  }
info@53
    91
  .label {
info@53
    92
    border: 1px solid #000;
info@53
    93
  }
info@53
    94
info@53
    95
  .table {
info@53
    96
    border-collapse: collapse !important;
info@53
    97
  }
info@53
    98
  .table-bordered {
info@53
    99
    th,
info@53
   100
    td {
info@53
   101
      border: 1px solid #ddd !important;
info@53
   102
    }
info@53
   103
  }
info@53
   104
info@53
   105
}
Impressum Datenschutzerklärung