Sha256: 1e898ccb976db682841ed0455d0aa3c0adffb0ea0d6478948c90f9fb995fca67

Contents?: true

Size: 1.2 KB

Versions: 158

Compression:

Stored size: 1.2 KB

Contents

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

@include govuk-exports("govuk/component/back-link") {

  .govuk-back-link {
    @include govuk-typography-responsive($size: 16);
    @include govuk-link-common;
    @include govuk-link-style-text;

    display: inline-block;
    position: relative;

    margin-top: govuk-spacing(3);
    margin-bottom: govuk-spacing(3);

    // Allow space for the arrow
    padding-left: 14px;

    // Use border-bottom rather than text-decoration so that the arrow is
    // underlined as well.
    border-bottom: 1px solid govuk-colour("black");

    // Underline is provided by a bottom border
    text-decoration: none;

    // Prepend left pointing arrow
    &:before {
      @include govuk-shape-arrow($direction: left, $base: 10px, $height: 6px);

      content: "";

      // Vertically align with the parent element
      position: absolute;

      top: -1px;
      bottom: 1px;
      left: 0;

      margin: auto;
    }
  }

  // Begin adjustments for font baseline offset
  // These should be removed when the font is updated with the correct baseline

  .govuk-back-link:before {
    $offset: 1px;

    top: $offset * -1;
    bottom: $offset;
  }
}

Version data entries

158 entries across 158 versions & 3 rubygems

Version Path
govuk_publishing_components-16.9.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-16.8.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-16.7.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-16.6.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-16.5.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-16.4.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-16.3.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-16.2.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-16.1.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-16.0.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-15.3.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-15.2.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-15.1.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-15.0.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-14.0.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-13.8.1 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-13.8.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-13.7.0 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-13.6.1 node_modules/govuk-frontend/components/back-link/_back-link.scss
govuk_publishing_components-13.6.0 node_modules/govuk-frontend/components/back-link/_back-link.scss