print.less 1.6 KB
Newer Older
1
2
3
//
// Basic print styles
// --------------------------------------------------
4
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
5
6
7
8

@media print {
  * {
    background: transparent !important;
9
    color: #000 !important; // Black prints faster: h5bp.com/s
10
    box-shadow: none !important;
11
    text-shadow: none !important;
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

27
28
29
30
  // Don't show links that are fragment identifiers,
  // or use the `javascript:` pseudo protocol
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group; // h5bp.com/t
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
64

Geremia Taglialatela's avatar
Geremia Taglialatela committed
65
66
67
  // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
  // Once fixed, we can just straight up remove this.
  select {
Geremia Taglialatela's avatar
Geremia Taglialatela committed
68
    background: #fff !important;
Geremia Taglialatela's avatar
Geremia Taglialatela committed
69
70
  }

71
  // Bootstrap components
Mark Otto's avatar
Mark Otto committed
72
  .navbar {
73
74
    display: none;
  }
75
76
77
78
79
  .btn,
  .dropup > .btn {
    > .caret {
      border-top-color: #000 !important;
    }
80
81
82
83
  }
  .label {
    border: 1px solid #000;
  }
Mark Otto's avatar
Mark Otto committed
84
85
86

  .table {
    border-collapse: collapse !important;
87
88
89
90
91

    td,
    th {
      background-color: #fff !important;
    }
Mark Otto's avatar
Mark Otto committed
92
93
94
95
96
97
98
  }
  .table-bordered {
    th,
    td {
      border: 1px solid #ddd !important;
    }
  }
99
}