Sha256: 39fe93e4656e4af247c3d07058f7083c6ddd818b13c1db2ac5ab882fddc0e05b

Contents?: true

Size: 763 Bytes

Versions: 81

Compression:

Stored size: 763 Bytes

Contents

@mixin govuk-width-container {
  // Limit the width of the container to the page width
  max-width: $govuk-page-width;

  @include govuk-if-ie8 {
    width: $govuk-page-width;
  }

  // On mobile, add half width gutters
  margin: 0 $govuk-gutter-half;

  // On tablet, add full width gutters
  @include govuk-media-query($from: tablet) {
    margin: 0 $govuk-gutter;
  }

  // As soon as the viewport is greater than the width of the page plus the
  // gutters, just centre the content instead of adding gutters.
  @include govuk-media-query($and: "(min-width: #{($govuk-page-width + $govuk-gutter * 2)})") {
    margin: 0 auto;
  }
}

@include govuk-exports("govuk/objects/width-container") {
  .govuk-width-container {
    @include govuk-width-container;
  }
}

Version data entries

81 entries across 81 versions & 2 rubygems

Version Path
govuk_publishing_components-13.7.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.6.1 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.6.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.5.4 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.5.3 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.5.2 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.5.1 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.5.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.4.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.3.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.2.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.1 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-13.0.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-12.21.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-12.20.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-12.19.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-12.18.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-12.17.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-12.16.0 node_modules/govuk-frontend/objects/_width-container.scss
govuk_publishing_components-12.15.0 node_modules/govuk-frontend/objects/_width-container.scss