Sha256: 3858518a064d35fadea266448bd2e4e9b7e6e9c65a6c18893f272af6355ce06d

Contents?: true

Size: 1.3 KB

Versions: 49

Compression:

Stored size: 1.3 KB

Contents

$gem-c-print-link-background-width: 16px;
$gem-c-print-link-background-height: 18px;

.gem-c-print-link {
  display: none;
}

.gem-c-print-link.gem-c-print-link--show-without-js {
  display: block;
}

.js-enabled {
  .gem-c-print-link {
    display: block;
  }
}

.gem-c-print-link__link,
.gem-c-print-link__button {
  background: image-url("govuk_publishing_components/icon-print.png") no-repeat govuk-spacing(2) 50%;
  background-size: $gem-c-print-link-background-width $gem-c-print-link-background-height;
  padding: govuk-spacing(2) govuk-spacing(2) govuk-spacing(2) (govuk-spacing(4) + $gem-c-print-link-background-width);

  @include govuk-device-pixel-ratio($ratio: 2) {
    background-image: image-url("govuk_publishing_components/icon-print-2x.png");
  }

  &:hover {
    background-color: govuk-colour("light-grey");
  }
}

.gem-c-print-link__link {
  box-shadow: inset 0 0 0 1px $govuk-border-colour;
  text-decoration: none;

  &:focus {
    border: 0;
    box-shadow: 0 $govuk-focus-width $govuk-text-colour;
  }
}

.gem-c-print-link__button {
  @extend %govuk-body-s;
  border: 1px solid $govuk-border-colour;
  color: $govuk-link-colour;
  cursor: pointer;
  margin: govuk-spacing(0);

  &:focus {
    @include govuk-focused-text;
    background-color: $govuk-focus-colour;
    border-color: transparent;
  }
}

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
govuk_publishing_components-24.9.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.9.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.8.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.7.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.7.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.6.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.6.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.5.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.4.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.4.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.3.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.3.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.2.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.1.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.1.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-24.0.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-23.15.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-23.14.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-23.13.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-23.13.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss