Sha256: 2f263427a75a2952a6a672665aea2d6a58865b41473d4b01d834b216a894a405

Contents?: true

Size: 1.12 KB

Versions: 76

Compression:

Stored size: 1.12 KB

Contents

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

@include govuk-exports("govuk/component/skip-link") {
  .govuk-skip-link {
    @include govuk-visually-hidden-focusable;
    @include govuk-typography-common;
    @include govuk-link-style-text;
    @include govuk-typography-responsive($size: 16);

    display: block;
    padding: govuk-spacing(2) govuk-spacing(3);

    // Respect 'display cutout' safe area (avoids notches and rounded corners)
    @supports (padding: unquote("max(calc(0px))")) {
      $padding-safe-area-right: calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
      $padding-safe-area-left: calc(#{govuk-spacing(3)} + env(safe-area-inset-left));

      // Use max() to pick largest padding, default or with safe area
      // Escaped due to Sass max() vs. CSS native max()
      padding-right: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-right})");
      padding-left: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-left})");
    }

    &:focus {
      outline: $govuk-focus-width solid $govuk-focus-colour;
      background-color: $govuk-focus-colour;
    }
  }
}

Version data entries

76 entries across 76 versions & 3 rubygems

Version Path
govuk_publishing_components-21.20.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.19.1 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.19.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.18.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.17.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.16.3 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.16.2 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.16.1 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.16.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.15.2 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.15.1 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.15.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.14.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.13.5 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.13.4 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.13.3 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
dxw_govuk_frontend_rails-3.4.0 vendor/assets/stylesheets/components/skip-link/_skip-link.scss
govuk_publishing_components-21.13.2 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.13.1 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_tech_docs-2.0.11 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss