Sha256: a3172ca59623b523aabafee7edb2d691786dcab3cf376b938a72d463ea29b924

Contents?: true

Size: 666 Bytes

Versions: 4

Compression:

Stored size: 666 Bytes

Contents

// Helpers
// ==========================================================================

// Return ems from a pixel value
// This assumes a base of 19px
@function em($px, $base: 19) {
  @return ($px / $base) + em;
}

// Want to see how the grid works?
// add this class to the body to see how grid padding is set
.example-highlight-grid {
  .grid-row {
    background: $grey-2;
  }

  .column-highlight {
    background: $grey-3;
    width: 100%;
  }

}

// Hide, but not for screenreaders
.visually-hidden,
.visuallyhidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
govuk_elements_rails-2.1.2 vendor/assets/stylesheets/elements/_helpers.scss
govuk_elements_rails-2.1.1 vendor/assets/stylesheets/elements/_helpers.scss
govuk_elements_rails-2.1.0 vendor/assets/stylesheets/elements/_helpers.scss
govuk_elements_rails-2.0.0 vendor/assets/stylesheets/elements/_helpers.scss