Sha256: 11680394023d74ec9df980fd3d471b063031e65a4f2bc56f39e64e83400db25a

Contents?: true

Size: 968 Bytes

Versions: 25

Compression:

Stored size: 968 Bytes

Contents

@import "../error-message/index";
@import "../hint/index";
@import "../label/index";
@import "../textarea/index";

@include govuk-exports("govuk/component/character-count") {
  .govuk-character-count {
    @include govuk-responsive-margin(6, "bottom");

    .govuk-form-group,
    .govuk-textarea {
      margin-bottom: govuk-spacing(1);
    }
  }

  .govuk-character-count__message {
    @include govuk-font($size: false, $tabular: true);
    margin-top: 0;
    margin-bottom: 0;

    &:after {
      // Zero-width space that will reserve vertical space when no hint is provided
      // as:
      // - setting a min-height is not possible without a magic number
      //   because the line-height is set by the `govuk-font` call above
      // - using `:empty` is not possible as the hint macro outputs line breaks
      content: "\200B";
    }
  }

  .govuk-character-count__message--disabled {
    visibility: hidden;
  }
}

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
govuk_publishing_components-39.2.5 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-39.2.4 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-39.2.3 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-39.2.2 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-39.2.1 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-39.2.0 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-39.1.0 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-39.0.0 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-38.4.2 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-38.1.1 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-38.1.0 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-38.0.1 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-38.0.0 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-37.10.0 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-37.9.1 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-37.9.0 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-37.8.1 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-37.8.0 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-37.7.1 node_modules/govuk-frontend/govuk/components/character-count/_index.scss
govuk_publishing_components-37.7.0 node_modules/govuk-frontend/govuk/components/character-count/_index.scss