Sha256: 9ee1ea476ce637d092371b9e801ab7897e6db3eee8d3dee6111d0905191ad58e

Contents?: true

Size: 1016 Bytes

Versions: 4

Compression:

Stored size: 1016 Bytes

Contents

// Govspeak warning callout
// https://components.publishing.service.gov.uk/component-guide/govspeak/warning_callout
//
// Support:
//
// - alphagov/whitehall: ✔︎
// - alphagov/govspeak: ✔︎

.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
.gem-c-govspeak {
  @import "govuk/components/warning-text/warning-text";

  .help-notice {
    $icon-size: 35px;
    $icon-spacing: 10px;

    margin: 2em 0;
    padding-left: calc($icon-size + $icon-spacing);
    position: relative;

    &::before {
      content: "!";
      @include govuk-typography-weight-bold($important: false);
      @extend .govuk-warning-text__icon; // stylelint-disable-line scss/at-extend-no-missing-placeholder
    }

    p {
      @include govuk-font($size: 19, $weight: bold);
    }
  }

  // Prevent excessive spacing when placed in a call-to-action block
  .call-to-action {
    .help-notice:first-child {
      margin-top: 0;
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-51.0.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-50.0.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
govuk_publishing_components-50.0.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss