CarBrand.scss 3.66 KB
/* packageMine/components/CarBrand/CarBrand.wxss */
.y-center {
  display: flex;
  align-items: center;
  transform: translateY(0);
}

.car-brands-box {
  width: 100%;
  height: calc(100% - 120rpx);
  background: #FFFFFF;
  // padding-top: 20rpx;
}

.car-brands {
  height: 100%;
  position: relative;
}

.box-title {
  height: 112rpx;
  line-height: 112rpx;
  font-size: 32rpx;
  font-weight: 600;
  color: #323436;
  text-align: center;
}


.car-brands .title {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F7F8FA;
  font-size: 24rpx;
  color: #969799;
  padding-left: 24rpx;
  height: 64rpx;
  line-height: 64rpx;
}

.pBrand {
  display: flex;
  align-items: center;
  width: 100%;
  height: 88rpx;
  line-height: 88rpx;
  margin-right: 24rpx;
  background: #F8F9FC;
}

.list {
  height: 88rpx;
  padding-left: 32rpx;
  font-weight: 500;
}

.logo {
  width: 40rpx;
  height: 40rpx;
  margin: 0 14rpx 0 20rpx;
}

.child {
  font-weight: normal;
  // padding-left: 82rpx;
  font-size: 28rpx;
  color: #323436;
  position: relative;
  animation: show-child .25s forwards;
}

.child.active {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  color: #3666FE;
  padding-right: 44rpx;

  .icon {
    width: 32rpx;
    height: 32rpx;
  }
}

@keyframes show-child {
  0% {
    height: 0;
  }

  100% {
    height: 88rpx;
  }
}

.side-bar {
  z-index: 999;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24rpx;
  color: #4c4c4c;
  width: 10%;
  opacity: 0;
  animation: show-side-bar .5s forwards;
}

@keyframes show-side-bar {
  0% {
    opacity: 0;
    right: -100%;
  }

  100% {
    opacity: 1;
    right: 0;
  }
}

.side-bar .view {
  width: 100%;
  text-align: center;
}

.tips {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140rpx;
  height: 140rpx;
  border-radius: 50%;
  color: #fff;
  background: rgba(153, 153, 153, 0.7);
  z-index: 9999;
  font-size: 60rpx;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nothing {
  padding: 100rpx;
  text-align: center;
  color: #999;
}

.car-type-box {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  font-size: 28rpx;
  color: #333;
  z-index: 9999;
}

.car-type-box .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.car-type-box .brands-box {
  position: absolute;
  top: 0;
  right: 0;
  width: 60.5%;
  height: 100%;
  overflow-y: scroll;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  animation: move 0.4s;
  box-sizing: border-box;
  padding-bottom: 40rpx;
}

.car-type-box .title {
  width: 100%;
  height: 64rpx;
  box-sizing: border-box;
  padding-left: 32rpx;
  color: #969799;
  background: #F7F8FA;
  top: 0;
}

.car-type-box .brands-box .brands-list {
  width: 100%;
  box-sizing: border-box;
  padding-left: 32rpx;
  border-bottom: 1rpx solid #e9e9e9;
  animation: show-car-type .25s forwards;
}

@keyframes show-car-type {
  0% {
    min-height: 0;
    opacity: 0;
  }

  100% {
    min-height: 100rpx;
    opacity: 1;
  }
}

@keyframes move {
  from {
    right: -60.5%;
  }

  to {
    right: 0;
  }
}

.btn-box {
  width: 100%;
  position: fixed;
  bottom: 0;
  display: flex;
  padding: 8rpx 32rpx 16rpx;
  background: #FFFFFF;

  .btn {
    box-sizing: border-box;
    width: calc((100% - 78rpx) / 2);
    height: 88rpx;
    line-height: 88rpx;
    text-align: center;
    font-size: 28rpx;
    color: #FFFFFF;
    background: #3666FE;
    border-radius: 12rpx;
    border: 2rpx solid #3666FE;
  }

  .btn-cancel {
    color: #8A8C90;
    border: 2rpx solid #EEEEEE;
    background: #FFFFFF;
    margin-right: 14rpx;
  }
}