Sha256: 76f48e887823957b98da7ba6d6934a02e0aa7d5b5c44e0917d02c1d9b9f1069b

Contents?: true

Size: 970 Bytes

Versions: 3

Compression:

Stored size: 970 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

3 entries across 3 versions & 1 rubygems

Version Path
katalyst-govuk-formbuilder-1.7.1 vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/character-count/_index.scss
katalyst-govuk-formbuilder-1.7.0 vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/character-count/_index.scss
katalyst-govuk-formbuilder-1.6.0 vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/character-count/_index.scss