Sha256: 9e3be1a9c28b3fbeb242ac775da8e4f5390bb0aead0bf85779e168dac20dce61

Contents?: true

Size: 1.82 KB

Versions: 5

Compression:

Stored size: 1.82 KB

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group typography
////

// scss-lint:disable all

@mixin foundation-print-styles {
  .show-for-print { display: none !important; }

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

    .show-for-print { display: block !important; }
    .hide-for-print { display: none !important; }

    table.show-for-print { display: table !important; }
    thead.show-for-print { display: table-header-group !important; }
    tbody.show-for-print { display: table-row-group !important; }
    tr.show-for-print { display: table-row !important; }
    td.show-for-print { display: table-cell !important; }
    th.show-for-print { display: table-cell !important; }

    // Display the URL of a link after the text
    a,
    a:visited { text-decoration: underline;}
    a[href]:after { content: ' (' attr(href) ')'; }

    // Don't display the URL for images or JavaScript/internal links
    .ir a:after,
    a[href^='javascript:']:after,
    a[href^='#']:after { content: ''; }

    // Display what an abbreviation stands for after the text
    abbr[title]:after { content: ' (' attr(title) ')'; }

    // Prevent page breaks in the middle of a blockquote or preformatted text block
    pre,
    blockquote {
      border: 1px solid #999;
      page-break-inside: avoid;
    }

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

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

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

    @page { margin: 0.5cm; }

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

    // Avoid page breaks after a heading
    h2,
    h3 { page-break-after: avoid; }
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foundation-rails-6.1.2.0 vendor/assets/scss/typography/_print.scss
foundation-rails-6.1.1.3 vendor/assets/scss/typography/_print.scss
foundation-rails-6.1.1.2 vendor/assets/scss/typography/_print.scss
foundation-rails-6.1.1.1 vendor/assets/scss/typography/_print.scss
foundation-rails-6.1.1.0 vendor/assets/scss/typography/_print.scss