Merge "Invalid ApplicationExceptionTest"
[portal.git] / portal-FE-common / src / styles / bootstrap / _print.scss
1 // stylelint-disable declaration-no-important, selector-no-qualifying-type
2
3 // Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
4
5 // ==========================================================================
6 // Print styles.
7 // Inlined to avoid the additional HTTP request:
8 // http://www.phpied.com/delay-loading-your-print-css/
9 // ==========================================================================
10
11 @if $enable-print-styles {
12   @media print {
13     *,
14     *::before,
15     *::after {
16       // Bootstrap specific; comment out `color` and `background`
17       //color: #000 !important; // Black prints faster: http://www.sanbeiji.com/archives/953
18       text-shadow: none !important;
19       //background: transparent !important;
20       box-shadow: none !important;
21     }
22
23     a,
24     a:visited {
25       text-decoration: underline;
26     }
27
28     // Bootstrap specific; comment the following selector out
29     //a[href]::after {
30     //  content: " (" attr(href) ")";
31     //}
32
33     abbr[title]::after {
34       content: " (" attr(title) ")";
35     }
36
37     // Bootstrap specific; comment the following selector out
38     //
39     // Don't show links that are fragment identifiers,
40     // or use the `javascript:` pseudo protocol
41     //
42
43     //a[href^="#"]::after,
44     //a[href^="javascript:"]::after {
45     // content: "";
46     //}
47
48     pre {
49       white-space: pre-wrap !important;
50     }
51     pre,
52     blockquote {
53       border: $border-width solid #999;   // Bootstrap custom code; using `$border-width` instead of 1px
54       page-break-inside: avoid;
55     }
56
57     //
58     // Printing Tables:
59     // http://css-discuss.incutio.com/wiki/Printing_Tables
60     //
61
62     thead {
63       display: table-header-group;
64     }
65
66     tr,
67     img {
68       page-break-inside: avoid;
69     }
70
71     p,
72     h2,
73     h3 {
74       orphans: 3;
75       widows: 3;
76     }
77
78     h2,
79     h3 {
80       page-break-after: avoid;
81     }
82
83     // Bootstrap specific changes start
84
85     // Bootstrap components
86     .navbar {
87       display: none;
88     }
89     .badge {
90       border: $border-width solid #000;
91     }
92
93     .table {
94       border-collapse: collapse !important;
95
96       td,
97       th {
98         background-color: #fff !important;
99       }
100     }
101     .table-bordered {
102       th,
103       td {
104         border: 1px solid #ddd !important;
105       }
106     }
107
108     // Bootstrap specific changes end
109   }
110 }