Sha256: 57440c6dd88e8cf3905247418bb0ec2aa7cf203aab6ce7888bc76956ffc49d79

Contents?: true

Size: 1.88 KB

Versions: 36

Compression:

Stored size: 1.88 KB

Contents

@import "../pb_textarea/textarea_mixin";
@import "../pb_title/title_mixin";
@import "../tokens/colors";


[class^=pb_text_input_kit] {
  .pb_text_input_kit_label {
    margin-bottom: $space_xs;
    display: block;
  }
  .text_input_wrapper {
    margin-bottom: $space_sm;
    display: block;
    input::placeholder,
    .text_input .placeholder {
      @include pb_body_light;
    }
    input,
    .text_input {
      max-height: 45px;
      @include pb_textarea_light;
      overflow: hidden;
    }
    input:hover,
    .text_input:hover{
      background-color: rgba($focus_input_light,$opacity_5);
    }
    input:focus,
    .text_input:focus,
    input:-webkit-autofill:focus,
    .text_input:-webkit-autofill:focus {
      @include pb_textarea_focus;
      @include transition_default;
      border-color: $primary;
      background-color: rgba($focus_input_light,$opacity_5);
    }
  }
  &.dark {
    .text_input_wrapper {
      margin-bottom: 1rem;
      input::placeholder,
      .text_input .placeholder {
        @include pb_body_light_dark;
      }
      input, .text_input {
        @include pb_textarea_dark;
        @include pb_body_dark;
        overflow: hidden;
        background-color: rgba($white,$opacity_1);
        border-color: rgba($white, 0.15);
      }
      input:hover,
      .text_input:hover{
        background-color: rgba($white, 0.15);
      }
      input:focus,
      .text_input:focus,
      input:-webkit-autofill:focus,
      .text_input:-webkit-autofill:focus {
        border-color: $active_dark;
        background-color: rgba($white, 0.025);
      }
    }
    &.error {
      .text_input_wrapper {
        input, .text_input {
          border-color: $error_dark;
        }
      }
    }
  }
  &.error {
    .text_input_wrapper {
      [class*=pb_body_kit] {
        margin-top: $space_xs / 2;
      }
      input, .text_input {
        border-color: $error;
      }
    }
  }
}

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
playbook_ui-9.11.0 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.10.0 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.9.0 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.8.0 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.7.0.pre.alpha.a11y.btn app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.7.0 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.6.1 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.6.1.pre.deps1 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.6.0 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.5.0.alpha.rs.downgrade app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.5.0 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.4.0.alpha.sisense app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.4.0 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_text_input/_text_input.scss
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_text_input/_text_input.scss