Sha256: 20e2cf9c1fd7897f50aae1a48638233411c0a80d6840c0dc04d5925795d0fd66

Contents?: true

Size: 1.23 KB

Versions: 39

Compression:

Stored size: 1.23 KB

Contents

@include govuk-exports("govuk/component/skip-link") {
  .govuk-skip-link {
    @include govuk-visually-hidden-focusable;
    @include govuk-typography-common;
    @include govuk-link-decoration;
    @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;
      outline-offset: 0;
      background-color: $govuk-focus-colour;

      // Undo unwanted changes when global styles are enabled
      @if ($govuk-global-styles) {
        box-shadow: none;
      }
    }
  }
}

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
dxw_govuk_frontend_rails-3.12.0 vendor/assets/stylesheets/components/skip-link/_index.scss
govuk_publishing_components-25.4.0 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-25.3.1 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-25.3.0 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-25.2.3 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-25.2.2 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-25.2.1 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-25.2.0 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-25.1.0 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-25.0.0 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.21.1 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.21.0 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.20.0 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.19.0 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.18.5 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.18.4 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.18.3 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.18.2 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.18.1 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
govuk_publishing_components-24.18.0 node_modules/govuk-frontend/govuk/components/skip-link/_index.scss