Sha256: 0c67d929ab3056d183ce126c5485feda462afe01c8525e9178b8c2fe898d41bd

Contents?: true

Size: 1.45 KB

Versions: 50

Compression:

Stored size: 1.45 KB

Contents

@import "../pb_body/body_mixins";
@import "./textarea_mixin";
@import "../pb_title/title_mixin";
@import "../tokens/spacing";

[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

50 entries across 50 versions & 1 rubygems

Version Path
playbook_ui-9.19.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.18.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.17.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.16.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.15.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.14.1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.13.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.12.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.11.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.10.0 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.9.0.alpha.inline1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-9.9.0 app/pb_kits/playbook/pb_textarea/_textarea.scss