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