Sha256: fd9f60d090791e8e3251f1c87bc62dc6b805e7476d7a36f9f8e0fef9dee1ae02

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 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");
}

// 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

4 entries across 4 versions & 2 rubygems

Version Path
govuk_publishing_components-9.5.1 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-9.5.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-9.4.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_fe_assets-0.1.0.pre.alpha node_modules/govuk-frontend/objects/_main-wrapper.scss