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.13.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.12.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_tech_docs-2.0.10 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.11.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_tech_docs-2.0.9 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_tech_docs-2.0.8 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.10.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.9.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.8.1 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.8.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
dxw_govuk_frontend_rails-3.3.1 vendor/assets/stylesheets/components/skip-link/_skip-link.scss
govuk_publishing_components-21.7.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.6.1 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_publishing_components-21.6.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_tech_docs-2.0.7 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_tech_docs-2.0.6 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
govuk_tech_docs-2.0.5 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
dxw_govuk_frontend_rails-3.3.0 vendor/assets/stylesheets/components/skip-link/_skip-link.scss
dxw_govuk_frontend_rails-3.2.0 vendor/assets/stylesheets/components/skip-link/_skip-link.scss
govuk_publishing_components-21.5.0 node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss