_common.scss 3.05 KB
// 通用颜色
.cOrange {
  color: $cOrange;
}

.cGreen {
  color: $cGreen;
}

.cGray {
  color: $cGray;
}

.cDark {
  color: $cDark;
}

// 提示栏
.alert {
  @extend .bb;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  border-radius: 10px;
  border: solid 1px #dcdddd;
  background-color: #f2f2f2;
  margin: 0 auto 12px;
  padding: 6px 36px;

  .icon {
    margin-right: 5px;
    display: inline-block;
  }

  .btn {
    color: $cOrange;
  }

  .close {
    position: absolute;
    right: 17px;
  }
}

// 输入框
.ipt-wrap {
  .ipt {
    @extend .bb;
    width: 100%;
    height: 54px;
    border-radius: 54px;
    border: solid 1px #dcdddd !important;
    background-color: #ffffff;
    padding: 0 24px;
    flex: 1;
    display: flex;
    align-items: center;

    &:lang(zh) {
      letter-spacing: 1.2px;
    }
  }

  .down-arrow {
    position: absolute;
    top: 26.4px;
    right: 24px;
    background-image: url("~@/assets/images/common/down-arrow.png");
    width: 12px;
    height: 8px;
    pointer-events: none;
    cursor: default;
  }

  .eye {
    position: absolute;
    top: 14.4px;
    right: 24px;
    background-image: url("~@/assets/images/common/icon-eyes-off.png");
    width: 27px;
    height: 24px;
    pointer-events: none;
    cursor: default;
  }

  .eye-act {
    background-image: url("~@/assets/images/common/icon-eyes-on.png");
  }

  .ipt:focus {
    border-color: $cOrange !important;
  }

  .ipt.err {
    border-color: $cOrange !important;
  }

  .err {
    .ipt {
      border-color: $cOrange !important;
    }
  }
}

// 输入框
.ipt-wrap-linear {
  position: relative;
  .ipt {
    @extend .bb;
    width: 100%;
    height: 50px;
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(90deg, #fff, #fff),
      linear-gradient(90deg, #feab1b, #f15a08);

    background-color: #ffffff;
    padding: 0 24px;
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 18px;
    color: $cFontGray2;

    &:lang(zh) {
      letter-spacing: 1.1px;
    }
  }

  .sel{
    padding: 0 48px 0 24px;
  }

  ::-webkit-input-placeholder {
    color: rgba(102, 102, 102, 0.5);
  }

  .down-arrow {
    position: absolute;
    top: 18px;
    right: 24px;
    background-image: url("~@/assets/images/common/down-arrow-linear.png");
    width: 20px;
    height: 15px;
    pointer-events: none;
    cursor: default;
    z-index: 1001;
  }

  .eye {
    position: absolute;
    top: 14.4px;
    right: 24px;
    background-image: url("~@/assets/images/common/icon-eyes-off.png");
    width: 27px;
    height: 24px;
    pointer-events: none;
    cursor: default;
  }

  .eye-act {
    background-image: url("~@/assets/images/common/icon-eyes-on.png");
  }
}

// 轮播
.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
}

.swiper-pagination-bullet-active {
  background: $cOrange !important;
}

@media (max-width: 768px) {
  .alert {
    padding: 4px 36px 4px 12px;

    .icon {
    }
  }
}