Sha256: f4ea05a59c289ca53753fc5a2fc663019e9639a64b11acc8bf13402621687d81

Contents?: true

Size: 1.34 KB

Versions: 32

Compression:

Stored size: 1.34 KB

Contents

@import "govuk_publishing_components/individual_component_support";

$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: 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);
  text-decoration: none;

  @include govuk-device-pixel-ratio($ratio: 2) {
    background-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-colour("dark-grey");

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

.gem-c-print-link__button {
  border: 1px solid govuk-colour("dark-grey");
  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

32 entries across 32 versions & 1 rubygems

Version Path
govuk_publishing_components-41.1.2 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-41.1.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-41.1.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-41.0.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-40.1.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-40.0.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-39.2.5 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-39.2.4 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-39.2.3 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-39.2.2 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-39.2.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-39.2.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-39.1.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-39.0.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-38.4.2 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-38.1.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-38.1.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-38.0.1 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-38.0.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
govuk_publishing_components-37.10.0 app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss