Sha256: 4cdf7a9b54b815a89285543952d9d9c8fbf28c803c2050cff85cbe9364379fe4

Contents?: true

Size: 1.6 KB

Versions: 852

Compression:

Stored size: 1.6 KB

Contents

@import "../pb_body/body_mixins";
@import "./textarea_mixin";
@import "../tokens/spacing";
@import "../tokens/titles";

[class^=pb_textarea_kit] {
  margin-bottom: $space_sm;

  [class^=pb_caption_kit] {
    margin-bottom: $space_xs;
    display: block;
  }
  textarea::placeholder,
  .pb_text_area_kit::placeholder {
    @include pb_body_light;
  }
  textarea,
  .pb_text_area_kit {
    @include pb_textarea_light;
  }
  textarea:focus,
  .pb_text_area_kit:focus {
    border-color: $primary;
    @include pb_textarea_focus_light;
    @include transition_default;
  }
  textarea:hover,
  .pb_text_area_kit:hover {
    background-color: rgba($focus_input_light,$opacity_5);
  }

  &.resize_both > textarea {
    resize: both;
    overflow: auto;
  }
  &.resize_horizontal > textarea {
    resize: horizontal;
    overflow: auto;
  }
  &.resize_vertical > textarea {
    resize: vertical;
    overflow: auto;
  }

  &.dark {
    textarea::placeholder {
      @include pb_body_light_dark;
    }
    textarea,
    .pb_text_area_kit {
      @include pb_body_dark;
      background-color: rgba($white, $opacity_1);
      border-color: rgba($white, 0.15);
    }
    textarea:focus, .pb_text_area_kit:focus {
      border-color: $active_dark;
      background-color: rgba($white, 0.025);
    }
  }

  &.error {
    [class*=pb_body_kit] {
      margin-top: $space_xs / 2;
    }
    textarea {
      border-color: $error;
    }
  }

  &.inline {
    textarea {
      &:not(:hover) {
        border-color: transparent;
      }
      &:focus {
        border-color: $primary;
      }
    }
  }

  .pb_caption_kit_xs {
    text-align: right;
  }
}

Version data entries

852 entries across 852 versions & 1 rubygems

Version Path
playbook_ui-14.7.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.6.2.pre.alpha.PLAY1613darkdatetimecolors4432 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.19 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.18 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.6.2.pre.alpha.PBNTR667railstypeaheadformintegration4424 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.17 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.16 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.15 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.14 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.13 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.6.2.pre.alpha.PBNTR666advancedtablefirstcolumn4406 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.12 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.6.2.pre.alpha.PLAY15814384 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4380 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.11 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.10 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.6.2.pre.alpha.PLAY1551tiptapextbump4350 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.6.2.pre.alpha.PLAY15814348 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.9 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.7.0.pre.rc.8 app/pb_kits/playbook/pb_textarea/_textarea.scss