Sha256: 0168dd7a83b1546dc3cf50541a8107e75d0619dd24e7350661179f512f69d78f

Contents?: true

Size: 1.39 KB

Versions: 89

Compression:

Stored size: 1.39 KB

Contents

@import "../../settings/all";
@import "../../tools/all";
@import "../../helpers/all";

@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

89 entries across 89 versions & 3 rubygems

Version Path
govuk_tech_docs-2.2.2 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_tech_docs-2.2.1 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_tech_docs-2.2.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_tech_docs-2.1.1 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_tech_docs-2.1.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_tech_docs-2.0.13 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
dxw_govuk_frontend_rails-3.6.0 vendor/assets/stylesheets/components/warning-text/_warning-text.scss
dxw_govuk_frontend_rails-3.5.0 vendor/assets/stylesheets/components/warning-text/_warning-text.scss
govuk_publishing_components-21.54.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.53.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.52.1 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.52.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.51.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.50.1 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.50.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.49.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.48.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.47.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.46.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
govuk_publishing_components-21.45.0 node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss