]>
Commit | Line | Data |
---|---|---|
91e44d91 S |
1 | // scss-lint:disable QualifyingElement |
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 | p::first-letter, | |
17 | div::first-letter, | |
18 | blockquote::first-letter, | |
19 | li::first-letter, | |
20 | p::first-line, | |
21 | div::first-line, | |
22 | blockquote::first-line, | |
23 | li::first-line { | |
24 | // Bootstrap specific; comment out `color` and `background` | |
25 | //color: #000 !important; // Black prints faster: | |
26 | // http://www.sanbeiji.com/archives/953 | |
27 | text-shadow: none !important; | |
28 | //background: transparent !important; | |
29 | box-shadow: none !important; | |
30 | } | |
31 | ||
32 | a, | |
33 | a:visited { | |
34 | text-decoration: underline; | |
35 | } | |
36 | ||
37 | // Bootstrap specific; comment the following selector out | |
38 | //a[href]::after { | |
39 | // content: " (" attr(href) ")"; | |
40 | //} | |
41 | ||
42 | abbr[title]::after { | |
43 | content: " (" attr(title) ")"; | |
44 | } | |
45 | ||
46 | // Bootstrap specific; comment the following selector out | |
47 | // | |
48 | // Don't show links that are fragment identifiers, | |
49 | // or use the `javascript:` pseudo protocol | |
50 | // | |
51 | ||
52 | //a[href^="#"]::after, | |
53 | //a[href^="javascript:"]::after { | |
54 | // content: ""; | |
55 | //} | |
56 | ||
57 | pre { | |
58 | white-space: pre-wrap !important; | |
59 | } | |
60 | pre, | |
61 | blockquote { | |
62 | border: $border-width solid #999; // Bootstrap custom code; using `$border-width` instead of 1px | |
63 | page-break-inside: avoid; | |
64 | } | |
65 | ||
66 | // | |
67 | // Printing Tables: | |
68 | // http://css-discuss.incutio.com/wiki/Printing_Tables | |
69 | // | |
70 | ||
71 | thead { | |
72 | display: table-header-group; | |
73 | } | |
74 | ||
75 | tr, | |
76 | img { | |
77 | page-break-inside: avoid; | |
78 | } | |
79 | ||
80 | p, | |
81 | h2, | |
82 | h3 { | |
83 | orphans: 3; | |
84 | widows: 3; | |
85 | } | |
86 | ||
87 | h2, | |
88 | h3 { | |
89 | page-break-after: avoid; | |
90 | } | |
91 | ||
92 | // Bootstrap specific changes start | |
93 | ||
94 | // Bootstrap components | |
95 | .navbar { | |
96 | display: none; | |
97 | } | |
98 | .badge { | |
99 | border: $border-width solid #000; | |
100 | } | |
101 | ||
102 | .table { | |
103 | border-collapse: collapse !important; | |
104 | ||
105 | td, | |
106 | th { | |
107 | background-color: #fff !important; | |
108 | } | |
109 | } | |
110 | .table-bordered { | |
111 | th, | |
112 | td { | |
113 | border: 1px solid #ddd !important; | |
114 | } | |
115 | } | |
116 | ||
117 | // Bootstrap specific changes end | |
118 | } | |
119 | } |