@import '../../common/style/press/hairline-more/top-bottom.scss';
@import '../../common/style/press/var.scss';

.press-picker {
  position: relative;
  overflow: hidden;
  -webkit-text-size-adjust: 100%; /* avoid iOS text size adjust */
  user-select: none;
  background-color: var(--picker-background-color, $picker-background-color);

  // 【修改点】将toolbar中的css移动到toolbar.vue中去
  &__columns {
    position: relative;
    display: flex;
  }

  /* #ifdef MP-ALIPAY */
  ::v-deep .press-picker-column-index,
  /* #endif */
  &__column {
    flex: 1 1;
    width: 0;
  }

  &__loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(
      --picker-loading-mask-color,
      $picker-loading-mask-color
    );
  }

  &__mask {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
      180deg,
      hsla(0, 0%, 100%, .9),
      hsla(0, 0%, 100%, .4)
    ),
      linear-gradient(0deg, hsla(0, 0%, 100%, .9), hsla(0, 0%, 100%, .4));
    background-repeat: no-repeat;
    background-position: top, bottom;
    backface-visibility: hidden;
    pointer-events: none;
  }

  &__frame {
    position: absolute !important; // 【修改点】防止选项间细线消失
    top: 50%;
    right: $padding-md;
    left: $padding-md;
    z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
  }
}