Sha256: 17735780b4958838b53c4b4967fb5be8d204a75db97f766b2dc013084cb832b2

Contents?: true

Size: 1.32 KB

Versions: 137

Compression:

Stored size: 1.32 KB

Contents

@if not mixin-exists("govuk-exports") {
  @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
}

@import "../base";

@include govuk-exports("govuk/core/template") {

  // Applied to the <html> element
  .govuk-template {
    // Set the overall page background colour to the same colour as used by the
    // footer to give the illusion of a long footer.
    background-color: $govuk-canvas-background-colour;

    // Prevent automatic text sizing, as we already cater for small devices and
    // would like the browser to stay on 100% text zoom by default.
    -webkit-text-size-adjust: 100%;
       -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
            text-size-adjust: 100%;

    // Force the scrollbar to always display in IE, to prevent horizontal page
    // jumps as content height changes (e.g. autocomplete results open).
    @include govuk-media-query($media-type: screen) {
      overflow-y: scroll;
    }
  }

  // Applied to the <body> element
  .govuk-template__body {
    // The default margins set by user-agents are not required since we have our
    // own containers.
    margin: 0;
    // Set the overall body of the page back to the typical background colour.
    background-color: $govuk-body-background-colour;
  }
}

Version data entries

137 entries across 137 versions & 3 rubygems

Version Path
govuk_publishing_components-24.1.1 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-24.1.0 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-24.0.0 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.15.0 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.14.0 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.13.1 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.13.0 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.12.3 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.12.2 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.12.1 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.12.0 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.11.1 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.11.0 node_modules/govuk-frontend/govuk/core/_template.scss
dxw_govuk_frontend_rails-3.10.2 vendor/assets/stylesheets/core/_template.scss
dxw_govuk_frontend_rails-3.9.1 vendor/assets/stylesheets/core/_template.scss
dxw_govuk_frontend_rails-3.8.0 vendor/assets/stylesheets/core/_template.scss
govuk_publishing_components-23.10.2 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.10.1 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.10.0 node_modules/govuk-frontend/govuk/core/_template.scss
govuk_publishing_components-23.9.2 node_modules/govuk-frontend/govuk/core/_template.scss