Sha256: dc7411fe0a1c559a40e631434ef16ff4b6abc914265e96576fbd030e48e5594a

Contents?: true

Size: 1.44 KB

Versions: 23

Compression:

Stored size: 1.44 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;
    }
  }

  .pb_caption_kit_xs {
    text-align: right;
  }
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
playbook_ui-10.7.1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.7.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.6.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.5.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.4.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.3.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.2.1.alpha.sisensefix app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.2.1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.2.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.1.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.0.3.pre.alpha.walkthrough2 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.0.1.alpha.railscusticon app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.0.2.pre.alpha.pre.iconfix app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.0.1.alpha.rtflexfix app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.0.0.pre.alphafonts app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.0.1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-10.0.0 app/pb_kits/playbook/pb_textarea/_textarea.scss