$_print-text-color: #999;
$_black: #000;
$_white: #fff;

// Print
// Inlined to avoid required HTTP connection: h5bp.com/r
// sass-lint:disable-all
@media print {
    * {
        // scss-lint:disable ImportantRule
        background: transparent !important;
        box-shadow: none !important;
        color: $_black !important; // Black prints faster: h5bp.com/s
        text-shadow: none !important;
        // scss-lint:enable ImportantRule
    }

    a,
    a:visited {
        text-decoration: underline;
    }
    // scss-lint:disable QualifyingElement
    a[href]::after {
        content: ' (" attr(href) ")';
    }

    abbr[title]::after {
        content: ' (" attr(title) ")';
    }
    // scss-lint:enable QualifyingElement

    // Don't show links for images, or javascript/internal links
    // scss-lint:disable QualifyingElement
    .ir a::after,
    a[href^="javascript:"]::after,
    a[href^="#"]::after {
        content: '';
    }
    // scss-lint:enable QualifyingElement
    pre,
    blockquote {
        border: 1px solid $_print-text-color;
        page-break-inside: avoid;
    }

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

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

    img {
        // scss-lint:disable ImportantRule
        max-width: 100% !important;
        // scss-lint:enable ImportantRule
    }

    @page {
        margin: .5cm;
    }

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

    h2,
    h3 {
        page-break-after: avoid;
    }
}
// sass-lint:enable-all
