/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */

// ==========================================================================
// Print styles.
// Inlined to avoid the additional HTTP request: h5bp.com/r
// ==========================================================================

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; // Black prints faster: h5bp.com/s
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .#{$class-prefix}-html-a,
    .#{$class-prefix}-html-a:visited {
        text-decoration: underline;
    }

    .#{$class-prefix}-html-a[href]:after {
        content: " (" attr(href) ")";
    }

    .#{$class-prefix}-html-abbr[title]:after {
        content: " (" attr(title) ")";
    }

    // Don't show links that are fragment identifiers,
    // or use the `javascript:` pseudo protocol
    .#{$class-prefix}-html-a[href^="#"]:after,
    .#{$class-prefix}-html-a[href^="javascript:"]:after {
        content: "";
    }

    .#{$class-prefix}-html-pre,
    .#{$class-prefix}-html-blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    .#{$class-prefix}-html-thead {
        display: table-header-group; // h5bp.com/t
    }

    .#{$class-prefix}-html-tr,
    .#{$class-prefix}-html-img {
        page-break-inside: avoid;
    }

    .#{$class-prefix}-html-img {
        max-width: 100% !important;
    }

    .#{$class-prefix}-html-p,
    .#{$class-prefix}-html-h2,
    .#{$class-prefix}-html-h3 {
        orphans: 3;
        widows: 3;
    }

    .#{$class-prefix}-html-h2,
    .#{$class-prefix}-html-h3 {
        page-break-after: avoid;
    }

    // Bootstrap specific changes start

    // Bootstrap components
    .#{$class-prefix}-navbar {
        display: none;
    }
    .#{$class-prefix}-btn,
    .#{$class-prefix}-dropup > .#{$class-prefix}-btn {
        > .#{$class-prefix}-caret {
            border-top-color: #000 !important;
        }
    }
    .#{$class-prefix}-label {
        border: 1px solid #000;
    }

    .#{$class-prefix}-table {
        border-collapse: collapse !important;

        .#{$class-prefix}-html-td,
        .#{$class-prefix}-html-th {
            background-color: #fff !important;
        }
    }
    .#{$class-prefix}-table-bordered {
        .#{$class-prefix}-html-th,
        .#{$class-prefix}-html-td {
            border: 1px solid #ddd !important;
        }
    }

    // Bootstrap specific changes end
}
