Sha256: a155d80832df9b22933bd01e3f6cfab4ae58170aaa1f6cceefdc1ac87cfb1fab

Contents?: true

Size: 909 Bytes

Versions: 8

Compression:

Stored size: 909 Bytes

Contents

// Govspeak warning callout
// https://govuk-static.herokuapp.com/component-guide/govspeak/warning_callout
//
// Support:
//
// - alphagov/whitehall: ✔︎
// - alphagov/govspeak: ✔︎

.gem-c-govspeak {
  .help-notice {
    $icon-size: 34px;
    $line-height-mobile: 20px;
    $line-height-tablet: 25px;

    margin: 2em 0;

    // Add '!' icon
    background-image: image-url("icon-important.png");
    background-size: $icon-size $icon-size;
    background-repeat: no-repeat;

    @include device-pixel-ratio() {
      background-image: image-url("icon-important-2x.png");
    }

    min-height: $icon-size;
    padding-left: $icon-size;

    // Center the icon around the baseline
    padding-top: ($icon-size - $line-height-mobile) / 2;

    @include media(tablet) {
      padding-top: ($icon-size - $line-height-tablet) / 2;
    }

    p {
      @include bold-19;
      margin-left: 1em;
    }
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
govuk_publishing_components-9.2.3 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-9.2.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-9.2.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-9.2.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-9.1.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-9.1.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-9.0.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-9.0.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss