Sha256: 44c9c726749af0c67b21ffc41c417b6ee405a44770428da601a10c9f91d2d6c8

Contents?: true

Size: 956 Bytes

Versions: 43

Compression:

Stored size: 956 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-tabular-numbers;
    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

43 entries across 43 versions & 3 rubygems

Version Path
govuk_publishing_components-45.7.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-45.6.1 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-45.6.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-45.5.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-45.4.1 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-45.4.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-45.3.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_tech_docs-4.1.1 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-45.2.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-45.1.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-45.0.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
katalyst-govuk-formbuilder-1.13.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-44.11.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-44.10.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-44.9.1 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-44.9.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-44.8.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-44.7.1 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_publishing_components-44.7.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss
govuk_tech_docs-4.1.0 node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss