Sha256: c22bc8580c9e78d3e10a9e0c071139b979b7fa1fc9c3605d8854717300930c43

Contents?: true

Size: 1.4 KB

Versions: 56

Compression:

Stored size: 1.4 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;

    // When the back link is focused, hide the bottom link border as the
    // focus styles has a bottom border.
    &:focus {
      border-bottom-color: transparent;
    }

    // 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: 0;
      bottom: 0;
      left: 0;

      margin: auto;
    }
  }

  @if $govuk-use-legacy-font {
    // Begin adjustments for font baseline offset
    // These should be removed when legacy font support is dropped
    .govuk-back-link:before {
      $offset: 1px;

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

}

Version data entries

56 entries across 56 versions & 3 rubygems

Version Path
govuk_tech_docs-2.0.11 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_publishing_components-21.12.0 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_tech_docs-2.0.10 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_publishing_components-21.11.0 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_tech_docs-2.0.9 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_tech_docs-2.0.8 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_publishing_components-21.10.0 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_publishing_components-21.9.0 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_publishing_components-21.8.1 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_publishing_components-21.8.0 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
dxw_govuk_frontend_rails-3.3.1 vendor/assets/stylesheets/components/back-link/_back-link.scss
govuk_publishing_components-21.7.0 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_publishing_components-21.6.1 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_publishing_components-21.6.0 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_tech_docs-2.0.7 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_tech_docs-2.0.6 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
govuk_tech_docs-2.0.5 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
dxw_govuk_frontend_rails-3.3.0 vendor/assets/stylesheets/components/back-link/_back-link.scss
dxw_govuk_frontend_rails-3.2.0 vendor/assets/stylesheets/components/back-link/_back-link.scss
govuk_publishing_components-21.5.0 node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss