Sha256: 0162c44c4bcc05ba8d55dff6acb4e369cda9de975f60b24d9f293e4c236136d3

Contents?: true

Size: 914 Bytes

Versions: 5

Compression:

Stored size: 914 Bytes

Contents

// A helper class for removing column layouts when printing.
// This should be applied to row/column layouts, by adding the
// class to elements with a `govuk-grid-row` class. The columns
// will then print at the full width of the page.
// Note that only the immediate child columns will be affected.
// If a child column also contains a row/column layout of
// further elements, these will be unaffected and will retain
// their existing column layout. Use the class again on these
// nested grids to apply fullwidth column printing if required.

@include govuk-media-query($media-type: print) {
  .gem-print-columns-none {
    width: 100%;

    > .govuk-width-container {
      margin: 0;
      max-width: none;
    }

    > [class*="govuk-grid-column"] {
      position: static !important; // stylelint-disable-line declaration-no-important
      float: none;
      clear: both;
      width: 100%;
    }
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
govuk_publishing_components-43.5.0 app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss
govuk_publishing_components-43.4.1 app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss
govuk_publishing_components-43.4.0 app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss
govuk_publishing_components-43.3.0 app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss
govuk_publishing_components-43.2.0 app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss