Sha256: 4541fe2a517cf4228c51ef62b4ae10edbf6fc54f15477ac3b0f5d237db8445cd

Contents?: true

Size: 1.69 KB

Versions: 15

Compression:

Stored size: 1.69 KB

Contents

@include govuk-exports("govuk/component/warning-text") {
  .govuk-warning-text {
    @include govuk-font($size: 19);
    @include govuk-responsive-margin(6, "bottom");
    position: relative;
    padding: govuk-spacing(2) 0;
  }

  .govuk-warning-text__icon {
    // We apply this here and not at the parent level because the actual text is
    // a <strong> and so will always be bold
    @include govuk-typography-weight-bold;
    box-sizing: border-box;

    display: inline-block;

    position: absolute;
    left: 0;

    min-width: 35px;
    min-height: 35px;
    margin-top: -7px;

    @include govuk-media-query($from: tablet) {
      margin-top: -5px;
    }

    // When a user customises their colours the background colour will often be
    // removed. Adding a border to the component keeps it's shape as a circle.
    border: 3px solid $govuk-text-colour;
    border-radius: 50%;

    color: $govuk-body-background-colour;
    background: $govuk-text-colour;

    font-size: 30px;
    line-height: 29px;

    text-align: center;

    // Prevent the exclamation mark from being included when the warning text
    // is copied, for example.
    -webkit-user-select: none;
        -ms-user-select: none;
            user-select: none;

    // Improve rendering in Windows High Contrast Mode (Edge), where a
    // readability backplate behind the exclamation mark obscures the circle
    forced-color-adjust: none;

    @media screen and (forced-colors: active) {
      border-color: windowText;
      color: windowText;
      background: transparent;
    }
  }

  .govuk-warning-text__text {
    @include govuk-text-colour;
    display: block;
    padding-left: 45px;
  }
}

/*# sourceMappingURL=_index.scss.map */

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
govuk_publishing_components-44.1.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
katalyst-govuk-formbuilder-1.12.1 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-44.0.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
katalyst-govuk-formbuilder-1.12.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.5.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.4.1 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.4.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.3.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.2.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
katalyst-govuk-formbuilder-1.11.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.1.1 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.1.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.0.2 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.0.1 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss
govuk_publishing_components-43.0.0 node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss