Sha256: 2fbb245e4cfc49c2cd8928c9d4272ad492593b971985c53f9dcbf9d2201bbcaf

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

@import "~flatpickr/dist/flatpickr.css";
@import "../pb_textarea/textarea_mixin";
@import "../pb_title/title_mixin";
@import "../tokens/colors";
@import "../pb_caption/caption_mixin";

[class^=pb_date_picker_kit] {
  // input styles
  [class^=pb_caption_kit] {
    margin-bottom: $space_xs;
    display: block;
  }
  .input_wrapper {
    margin-bottom: $space_sm;
    
    .flatpickr-wrapper {
      display: block;
      input::placeholder {
        @include pb_body_light;
      }
  
      > input:first-child {
        @include pb_textarea_light;
        @include pb_title_4;
        overflow: hidden;
      }
  
      input:focus, input:-webkit-autofill:focus {
        @include pb_textarea_focus;
        -webkit-box-shadow: 0 0 0px 1000px $focus_input_light inset;
        transition: background-color 5000s ease-in-out 0s;
      }
    }
  }

  &.error {
    [class^=pb_body_kit] {
      margin-top: $space_xs / 2;
    }
    .flatpickr-wrapper {
      > input:first-child {
        border-color: $error;
      }
    }
  }
}

// date-picker styles

div.flatpickr-weekdays {
  margin-top: 5px;
}
span.flatpickr-weekday {
  @include caption;
}

.pb_popover_body {
  overflow: visible !important;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
playbook_ui-6.1.0.pre.alpha4 app/pb_kits/playbook/pb_date_picker/_date_picker.scss