@import "../pickercolumn/index";

.nut-theme-dark {
  .nut-picker {
    background: $dark-background;

    /* #ifndef H5 */

    &__mask {
      background: none !important;
    }

    /* #endif */

    &__title {
      color: $dark-color;
    }

    &-content {
      color: $dark-color;
    }

    &-item {
      color: $dark-color;
    }

    &__column {
      &::before {
        border-color: $dark-background4;
      }
    }
  }
}

.nut-picker {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 5px;

  &__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
  }

  &__left {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 100%;
    padding: $picker-bar-button-padding;
    font-size: $picker-bar-cancel-font-size;
    color: $picker-cancel-color;
    cursor: pointer;
  }

  &__right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 100%;
    padding: $picker-bar-button-padding;
    font-size: $picker-bar-ok-font-size;
    color: $picker-ok-color;
    cursor: pointer;
  }

  &__column {
    position: relative;
    display: flex;

    &::before {
      position: absolute;
      top: 50%;
      width: 100%;
      height: var(--line-height);
      content: "";
      border: $picker-item-active-line-border;
      border-right: 0;
      border-left: 0;
      transform: scale(0.9);
      transform: translateY(-50%);
    }
  }

  &__columnitem {
    flex-grow: 1;
    width: 0;
    height: 100%;
    cursor: grab;
    user-select: none;
  }

  &__title {
    flex: 1;
    font-size: $picker-bar-title-font-size;
    font-weight: $picker-bar-title-font-weight;
    color: $picker-bar-title-color;
    text-align: center;

    @include oneline-ellipsis;
  }

  &__wrapper {
    display: block;
  }
}
