Sha256: ae764dcd1f1b023f543f3a2df445f21e9ed46d893922093787f2225dfc57e300

Contents?: true

Size: 1.6 KB

Versions: 99

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: calc($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

99 entries across 99 versions & 1 rubygems

Version Path
playbook_ui-14.3.0.pre.rc.4 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.1.pre.alpha.20240828cikubedbump3702 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.3.0.pre.rc.3 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.1.pre.alpha.PBNTR431fixingduplicatingtextareaclassname3689 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.3.0.pre.rc.2 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.1.pre.alpha.PLAY1516railsiconsfixedwidth3674 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.1.pre.alpha.PBNTR479removeextraspacingfromradiochildren3671 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.3.0.pre.rc.1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.1.pre.alpha.PBNTR479removeextraspacingfromradiochildren3669 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.1.pre.alpha.pbntr373enablekitsforradio3665 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.1.pre.alpha.bugfixforactionrc3663 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.0.pre.alpha.play1490railsdialogdatafix3649 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.1 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.0.pre.alpha.PLAY15063640 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.0.pre.alpha.PLAY15063639 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.0.pre.alpha.PLAY15063638 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.0.pre.alpha.PLAY15063637 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.0.pre.alpha.PLAY15063634 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.0.pre.alpha.PLAY15063633 app/pb_kits/playbook/pb_textarea/_textarea.scss
playbook_ui-14.2.0.pre.alpha.fixphonenumberinputflag3632 app/pb_kits/playbook/pb_textarea/_textarea.scss