Sha256: 37a5efbdff841d4be7a65ace0a5424f4404cd88c2d73c78989e13b1a597b5c6c

Contents?: true

Size: 1.35 KB

Versions: 11

Compression:

Stored size: 1.35 KB

Contents

// Layout
// ==========================================================================

// Content
// ==========================================================================

// Allow an ID here, this is useful as it matches the GOV.UK template skiplink
// scss-lint:disable IdSelector
#content {
  @extend %site-width-container;
  @extend %contain-floats;
  padding-bottom: $gutter;

  @include media(desktop) {
    padding-bottom: $gutter * 3;
  }
  // Pressing enter when focus is on the skiplink sets focus on the #content area
  // Remove the blue outline
  outline: none;
}


// Grid layout
// ==========================================================================

// Usage:
// For two equal columns

// <div class="grid-row">
//   <div class="column-one-half">
//
//   </div>
//   <div class="column-one-half">
//
//   </div>
// </div>

// Use .grid-row to define a row for grid columns to sit in
.grid-row {
  @extend %grid-row;
}

// Use .grid-column to create a grid column with 15px gutter
// By default grid columns break to become full width at tablet size
.column-quarter,
.column-one-quarter {
  @include grid-column(1 / 4);
}

.column-half,
.column-one-half {
  @include grid-column(1 / 2);
}

.column-third,
.column-one-third {
  @include grid-column(1 / 3);
}

.column-two-thirds {
  @include grid-column(2 / 3);
}

.column-full {
  @include grid-column(1);
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
govuk_elements_rails-3.1.0 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-3.0.2 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-3.0.1 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-3.0.0 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-2.2.1 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-2.2.0 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-2.1.2 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-2.1.1 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-2.1.0 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-2.0.0 vendor/assets/stylesheets/elements/_layout.scss
govuk_elements_rails-1.2.2 vendor/assets/stylesheets/elements/_layout.scss