Sha256: 4185a800ddfb5f0933f8926dd1549c55786ccc42f2a37367148cd834643043a3

Contents?: true

Size: 1.32 KB

Versions: 88

Compression:

Stored size: 1.32 KB

Contents

// Example usage with Breadcrumbs, phase banners, back links:
// <div class="govuk-width-container">
//   <!-- Breadcrumbs, phase banners, back links are placed in here. -->
//   <div class="govuk-main-wrapper">
//       <!-- Wrapper for the main content of your page which applies padding
//            to the top / bottom -->
//   </div>
// </div>
//
// Example usage without Breadcrumbs, phase banners, back links:
// <div class="govuk-width-container">
//   <div class="govuk-main-wrapper govuk-main-wrapper--l">
//       <!-- Wrapper for the main content of your page which applies padding
//            to the top / bottom -->
//   </div>
// </div>


@mixin govuk-main-wrapper {
  @include govuk-responsive-padding(6, "top");
  @include govuk-responsive-padding(6, "bottom");
  // In IE11 the `main` element can be used, but is not recognized  –
  // meaning it's not defined in IE's default style sheet,
  // so it uses CSS initial value, which is inline.
  display: block;
}

// Use govuk-main-wrapper--l when you page does not have Breadcrumbs, phase banners or back links
@mixin govuk-main-wrapper--l {
  @include govuk-responsive-padding(8, "top");
}

@include govuk-exports("govuk/objects/main-wrapper") {
  .govuk-main-wrapper {
    @include govuk-main-wrapper;
  }

  .govuk-main-wrapper--l {
    @include govuk-main-wrapper--l;
  }
}

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
govuk_publishing_components-16.3.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-16.2.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-16.1.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-16.0.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-15.3.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-15.2.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-15.1.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-15.0.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-14.0.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.8.1 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.8.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.7.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.6.1 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.6.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.5.4 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.5.3 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.5.2 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.5.1 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.5.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-13.4.0 node_modules/govuk-frontend/objects/_main-wrapper.scss