Project

General

Profile

1
// Name:            Print
2
// Description:     Optimize page for printing
3
//
4
// Adapted from http://github.com/h5bp/html5-boilerplate
5
//
6
// Modifications:   Removed link `href` and `title` related rules
7
//
8
// ========================================================================
9

    
10

    
11
/* ========================================================================
12
   Component: Print
13
 ========================================================================== */
14

    
15
@media print {
16

    
17
    *,
18
    *::before,
19
    *::after {
20
        background: transparent !important;
21
        color: black !important;
22
        box-shadow: none !important;
23
        text-shadow: none !important;
24
    }
25

    
26
    a,
27
    a:visited { text-decoration: underline; }
28

    
29
    pre,
30
    blockquote {
31
        border: 1px solid #999;
32
        page-break-inside: avoid;
33
    }
34

    
35
    thead { display: table-header-group; }
36

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

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

    
42
    @page { margin: 0.5cm; }
43

    
44
    p,
45
    h2,
46
    h3 {
47
        orphans: 3;
48
        widows: 3;
49
    }
50

    
51
    h2,
52
    h3 { page-break-after: avoid; }
53

    
54
   @if(mixin-exists(hook-print)) {@include hook-print();}
55

    
56
}
57

    
58
// Hooks
59
// ========================================================================
60

    
61
// @mixin hook-print(){}
(46-46/66)