Sha256: 2449df3aa8e3796cd7e73d3898d296d0d338649e8ec9b2841fdd60019d973359

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

@import "govuk-frontend/dist/govuk/components/error-message/index";
@import "govuk-frontend/dist/govuk/components/hint/index";
@import "govuk-frontend/dist/govuk/components/label/index";

@include govuk-exports("govuk/component/richtextarea") {
  .govuk-richtextarea {
    @include govuk-font($size: 19, $line-height: 1.25);

    box-sizing: border-box;
    display: block;
    width: 100%;
    // min-height inherited from trix-editor styles
    @include govuk-responsive-margin(6, "bottom");
    padding: govuk-spacing(1);

    resize: vertical;

    border: $govuk-border-width-form-element solid $govuk-input-border-colour;
    border-radius: 0;

    -webkit-appearance: none;

    &:focus {
      outline: $govuk-focus-width solid $govuk-focus-colour;
      // Ensure outline appears outside of the element
      outline-offset: 0;
      // Double the border by adding its width again. Use `box-shadow` to do
      // this instead of changing `border-width` (which changes element size)
      // and since `outline` is already used for the yellow focus state.
      box-shadow: inset 0 0 0 $govuk-border-width-form-element;
    }

    &:disabled {
      opacity: 0.5;
      color: inherit;
      background-color: transparent;
      cursor: not-allowed;
    }
  }

  .govuk-richtextarea--error {
    border-color: $govuk-error-colour;

    &:focus {
      border-color: $govuk-input-border-colour;
    }
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
katalyst-govuk-formbuilder-1.16.0 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss
katalyst-govuk-formbuilder-1.15.0 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss
katalyst-govuk-formbuilder-1.14.0 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss
katalyst-govuk-formbuilder-1.13.0 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss
katalyst-govuk-formbuilder-1.12.1 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss
katalyst-govuk-formbuilder-1.12.0 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss