Sha256: 0bee5a3cc496e31f62fde01c89e94b63555e35c66918122625dcc71c6d0a4879

Contents?: true

Size: 1.65 KB

Versions: 63

Compression:

Stored size: 1.65 KB

Contents

@import "../settings/all";
@import "../tools/all";
@import "../helpers/all";

// 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 {
  // 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;
  padding-top: govuk-spacing(4);
  padding-bottom: govuk-spacing(4);

  @include govuk-media-query($from: tablet) {
    // This spacing is manually adjusted to replicate the margin of
    // govuk-heading-xl (50px) minus the spacing of back link and
    // breadcrumbs (10px)
    padding-top: govuk-spacing(7);
    padding-bottom: govuk-spacing(7);
  }
}

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

63 entries across 63 versions & 2 rubygems

Version Path
govuk_publishing_components-17.21.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.20.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.19.1 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.19.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
dxw_govuk_frontend_rails-2.13.0 vendor/assets/stylesheets/objects/_main-wrapper.scss
dxw_govuk_frontend_rails-2.12.0 vendor/assets/stylesheets/objects/_main-wrapper.scss
govuk_publishing_components-17.18.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.17.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.16.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.15.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.14.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.13.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.12.2 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.12.1 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.12.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.11.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.10.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.9.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.8.0 node_modules/govuk-frontend/objects/_main-wrapper.scss
govuk_publishing_components-17.7.0 node_modules/govuk-frontend/objects/_main-wrapper.scss