static/less/print.less
changeset 53 3416f82943ea
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/static/less/print.less	Fri Dec 20 22:30:44 2013 +0100
     1.3 @@ -0,0 +1,105 @@
     1.4 +//
     1.5 +// Basic print styles
     1.6 +// --------------------------------------------------
     1.7 +// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
     1.8 +
     1.9 +@media print {
    1.10 +
    1.11 +  * {
    1.12 +    text-shadow: none !important;
    1.13 +    color: #000 !important; // Black prints faster: h5bp.com/s
    1.14 +    background: transparent !important;
    1.15 +    box-shadow: none !important;
    1.16 +  }
    1.17 +
    1.18 +  a,
    1.19 +  a:visited {
    1.20 +    text-decoration: underline;
    1.21 +  }
    1.22 +
    1.23 +  a[href]:after {
    1.24 +    content: " (" attr(href) ")";
    1.25 +  }
    1.26 +
    1.27 +  abbr[title]:after {
    1.28 +    content: " (" attr(title) ")";
    1.29 +  }
    1.30 +
    1.31 +  // Don't show links for images, or javascript/internal links
    1.32 +  a[href^="javascript:"]:after,
    1.33 +  a[href^="#"]:after {
    1.34 +    content: "";
    1.35 +  }
    1.36 +
    1.37 +  pre,
    1.38 +  blockquote {
    1.39 +    border: 1px solid #999;
    1.40 +    page-break-inside: avoid;
    1.41 +  }
    1.42 +
    1.43 +  thead {
    1.44 +    display: table-header-group; // h5bp.com/t
    1.45 +  }
    1.46 +
    1.47 +  tr,
    1.48 +  img {
    1.49 +    page-break-inside: avoid;
    1.50 +  }
    1.51 +
    1.52 +  img {
    1.53 +    max-width: 100% !important;
    1.54 +  }
    1.55 +
    1.56 +  @page {
    1.57 +    margin: 2cm .5cm;
    1.58 +  }
    1.59 +
    1.60 +  p,
    1.61 +  h2,
    1.62 +  h3 {
    1.63 +    orphans: 3;
    1.64 +    widows: 3;
    1.65 +  }
    1.66 +
    1.67 +  h2,
    1.68 +  h3 {
    1.69 +    page-break-after: avoid;
    1.70 +  }
    1.71 +
    1.72 +  // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
    1.73 +  // Once fixed, we can just straight up remove this.
    1.74 +  select {
    1.75 +    background: #fff !important;
    1.76 +  }
    1.77 +
    1.78 +  // Bootstrap components
    1.79 +  .navbar {
    1.80 +    display: none;
    1.81 +  }
    1.82 +  .table {
    1.83 +    td,
    1.84 +    th {
    1.85 +      background-color: #fff !important;
    1.86 +    }
    1.87 +  }
    1.88 +  .btn,
    1.89 +  .dropup > .btn {
    1.90 +    > .caret {
    1.91 +      border-top-color: #000 !important;
    1.92 +    }
    1.93 +  }
    1.94 +  .label {
    1.95 +    border: 1px solid #000;
    1.96 +  }
    1.97 +
    1.98 +  .table {
    1.99 +    border-collapse: collapse !important;
   1.100 +  }
   1.101 +  .table-bordered {
   1.102 +    th,
   1.103 +    td {
   1.104 +      border: 1px solid #ddd !important;
   1.105 +    }
   1.106 +  }
   1.107 +
   1.108 +}
Impressum Datenschutzerklärung