Sha256: 97bd2c68ad4a95b2913087e09e4069aea3728f22fbc338e13e2f7c0da0649ab3

Contents?: true

Size: 1.49 KB

Versions: 4

Compression:

Stored size: 1.49 KB

Contents

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

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

    box-sizing: border-box; // should this be global?
    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;

      @include govuk-if-ie8 {
        // IE8 doesn't support `box-shadow` so double the border with
        // `border-width`.
        border-width: $govuk-border-width-form-element * 2;
      }
    }
  }

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katalyst-govuk-formbuilder-1.4.0 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss
katalyst-govuk-formbuilder-1.3.2 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss
katalyst-govuk-formbuilder-1.3.1 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss
katalyst-govuk-formbuilder-1.3.0 app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss