Sha256: 175e007e5fc092f2588f05e005c8995e477898390cfc2003f047f43711e22a8c

Contents?: true

Size: 1.51 KB

Versions: 37

Compression:

Stored size: 1.51 KB

Contents

$thumbnail-width: 99px;
$thumbnail-height: 140px;
$thumbnail-border-width: 5px;
$thumbnail-background: govuk-colour("white");
$thumbnail-border-colour: rgba(11, 12, 12, .1);
$thumbnail-shadow-colour: rgba(11, 12, 12, .4);
$thumbnail-shadow-width: 0 2px 2px;
$thumbnail-icon-border-colour: govuk-colour("grey-3");

.gem-c-attachment {
  @include govuk-font(19);
  @include govuk-clearfix;
  position: relative;

  .govuk-details__summary {
    @include govuk-font($size: 14);
  }
}

.gem-c-attachment__thumbnail {
  position: relative;
  width: auto;
  margin-right: govuk-spacing(5);
  margin-bottom: govuk-spacing(3);
  padding: $thumbnail-border-width;
  float: left;
}

.gem-c-attachment__thumbnail-image {
  display: block;
  width: auto; // for IE8
  max-width: $thumbnail-width;
  height: $thumbnail-height;
  border: $thumbnail-border-colour; // for IE9 & IE10
  outline: $thumbnail-border-width solid $thumbnail-border-colour;
  background: $thumbnail-background;
  box-shadow: $thumbnail-shadow-width $thumbnail-shadow-colour;
  fill: $thumbnail-icon-border-colour;
  stroke: $thumbnail-icon-border-colour;
}

.gem-c-attachment__details {
  padding-left: $thumbnail-width + $thumbnail-border-width * 2 + govuk-spacing(5);
}

.gem-c-attachment__title {
  @include govuk-font($size: 27);
  margin: 0 0 govuk-spacing(3);
}

.gem-c-attachment__metadata {
  @include govuk-font($size: 14);
  margin: 0 0 govuk-spacing(3);

  &:last-of-type {
    margin-bottom: 0;
  }
}

.gem-c-attachment__abbr {
  text-decoration: none;
  cursor: help;
}

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
govuk_publishing_components-17.21.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.20.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.19.1 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.19.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.18.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.17.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.16.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.15.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.14.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.13.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.12.2 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.12.1 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.12.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.11.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.10.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.9.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.8.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.7.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.6.1 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss
govuk_publishing_components-17.6.0 app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss