@import "./picker";
@import "./picker.md.vars";

// Material Design Picker
// --------------------------------------------------

.picker-md .picker-wrapper {
  height: $picker-md-height;

  border-top: $hairlines-width solid $picker-md-border-color;

  background: $picker-md-background-color;
}

.picker-md .picker-toolbar {
  display: flex;

  justify-content: flex-end;

  height: $picker-md-toolbar-height;

  background: $picker-md-toolbar-background-color;
}

.picker-md .picker-button,
.picker-md .picker-button.activated {
  @include margin(0);
  @include padding(0, 1.1em);

  height: $picker-md-button-height;

  background: $picker-md-button-background-color;
  color: $picker-md-button-text-color;

  font-size: $picker-md-button-font-size;
  font-weight: 500;

  text-transform: uppercase;

  box-shadow: none;
}

.picker-md .picker-columns {
  height: $picker-md-height - $picker-md-toolbar-height;
  perspective: 1800px;
}

.picker-md .picker-col {
  @include padding($picker-md-column-padding-top, $picker-md-column-padding-end, $picker-md-column-padding-bottom, $picker-md-column-padding-start);

  transform-style: preserve-3d;
}

.picker-md .picker-prefix,
.picker-md .picker-suffix,
.picker-md .picker-opts {
  top: $picker-md-option-offset-y;

  transform-style: preserve-3d;

  color: $picker-md-option-text-color;

  font-size: $picker-md-option-font-size;

  line-height: $picker-md-option-height;
  pointer-events: none;
}


.picker-md .picker-opt {
  @include margin(0);
  @include padding($picker-md-option-padding-top, $picker-md-option-padding-end, $picker-md-option-padding-bottom, $picker-md-option-padding-start);

  height: 43px;

  transition-timing-function: ease-out;

  background: transparent;
  color: $picker-md-option-text-color;

  font-size: $picker-md-option-font-size;

  line-height: $picker-md-option-height;
  backface-visibility: hidden;
  pointer-events: auto;
}

.picker-md .picker-prefix,
.picker-md .picker-suffix,
.picker-md .picker-opt.picker-opt-selected {
  color: $picker-md-option-selected-color;
}

.picker-md .picker-above-highlight {
  @include position(0, null, null, 0);
  @include transform(translate3d(0, 0, 90px));

  position: absolute;

  width: 100%;
  height: $picker-md-option-offset-y + 4px;

  border-bottom: 1px solid $picker-md-border-color;

  background: linear-gradient(to bottom,
                            $picker-md-top-background-color 20%,
                            $picker-md-bottom-background-color 100%);

  z-index: 10;
}

.picker-md .picker-below-highlight {
  @include position($picker-md-option-offset-y + $picker-md-option-height - 4, null, null, 0);
  @include transform(translate3d(0, 0, 90px));

  position: absolute;

  width: 100%;
  height: $picker-md-option-offset-y + $picker-md-option-height;

  border-top: 1px solid $picker-md-border-color;

  background: linear-gradient(to top,
                           $picker-md-top-background-color 30%,
                           $picker-md-bottom-background-color 100%);

  z-index: 11;
}
