Sha256: 7f63f6e1efe3c368515bbd7444fd9b852c720fb1e247213302fbb6b5a0fa9ba2

Contents?: true

Size: 1.31 KB

Versions: 14

Compression:

Stored size: 1.31 KB

Contents

@include govuk-exports("govuk/component/warning-text") {

  .govuk-warning-text {
    position: relative;
    @include govuk-responsive-margin(6, "bottom");
    padding: govuk-spacing(2) 0;
  }

  .govuk-warning-text__assistive {
    @include govuk-visually-hidden;
  }

  .govuk-warning-text__icon {
    @include govuk-font($size: false, $weight: bold);

    display: inline-block;

    position: absolute;
    left: 0;

    min-width: 29px;
    min-height: 29px;
    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-colour("black");
    border-radius: 50%;

    color: govuk-colour("white");
    background: govuk-colour("black");

    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;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }

  .govuk-warning-text__text {
    @include govuk-font($size: 19, $weight: bold);
    @include govuk-text-colour;
    display: block;
    padding-left: 45px;
  }
}

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
govuk_publishing_components-21.60.0 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.59.0 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.58.0 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
dxw_govuk_frontend_rails-3.7.0 vendor/assets/stylesheets/components/warning-text/_index.scss
govuk_publishing_components-21.57.1 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.57.0 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.56.2 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.56.1 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.56.0 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.55.4 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.55.3 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.55.2 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.55.1 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
govuk_publishing_components-21.55.0 node_modules/govuk-frontend/govuk/components/warning-text/_index.scss