Sha256: ab1c9db2b0d0fa5a395bca4db5458da02ca918de7da99d131f908464f97d40cb

Contents?: true

Size: 1.7 KB

Versions: 74

Compression:

Stored size: 1.7 KB

Contents

$share-button-width: 32px;
$share-button-height: 32px;

.gem-c-share-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gem-c-share-links__list-item {
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  min-height: $share-button-height;
  padding-left: ($share-button-width + govuk-spacing(2));
  padding-right: govuk-spacing(2);
  margin-bottom: govuk-spacing(2);
  font-size: $share-button-height / 2;
  line-height: $share-button-height;
}

.gem-c-share-links__link {
  @include govuk-font(16, $weight: bold);
  margin-right: govuk-spacing(6);

  @include govuk-template-link-focus-override;
}

.gem-c-share-links__title {
  @include govuk-text-colour;
  @include govuk-font($size: 16, $line-height: 1.5);
  margin: 0 0 govuk-spacing(2) 0;
}

.gem-c-share-links__link-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: $share-button-width;
  height: $share-button-height;
  line-height: $share-button-height;
}

.direction-rtl {
  .gem-c-share-links__link {
    display: inline-block;
    margin-right: 0;
    margin-left: govuk-spacing(6);
  }

  .gem-c-share-links__list-item {
    padding-left: govuk-spacing(2);
    padding-right: ($share-button-width + govuk-spacing(2));
  }

  .gem-c-share-links__link-icon {
    left: auto;
    right: 0;
  }
}

$column-width: 9.5em;

.gem-c-share-links--columns {
  .gem-c-share-links__list {
    @include govuk-clearfix;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax($column-width, 1fr));
  }

  .gem-c-share-links__list-item {
    float: left;
    min-width: $column-width;
  }

  .gem-c-share-links__link {
    margin: 0;
  }
}

.gem-c-share-links--stacked {
  .gem-c-share-links__list-item {
    display: block;
  }
}

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
govuk_publishing_components-28.2.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-28.1.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-28.0.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.20.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.19.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.18.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.17.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.16.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.15.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.14.2 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.14.1 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.14.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.13.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.12.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.11.0 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.10.5 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.10.4 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.10.3 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.10.2 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
govuk_publishing_components-27.10.1 app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss