CarBrands.wxss 2.33 KB
/* components/CarBrands/CarBrands.wxss */
.car-brands-box {
  width: calc(100% + var(--fontSize64));
  height: 100%;
  margin-left: calc(-1 * var(--fontSize32));
}

.car-brands {
  height: calc(100% - var(--fontSize104));
  position: relative;
  /* display: flex; */
}

.y-center {
  display: flex;
  align-items: center;
}

.car-brands .title {
  background: #f7f8fa;
  font-size: var(--fontSize24);
  color: #969799;
  padding-left: var(--fontSize32);
  height: var(--fontSize64);
  /* position: sticky;
  left: 0;
  top: 0;
  z-index: 998; */
}

.list {
  height: var(--fontSize88);
  padding-left: var(--fontSize32);
  font-size: var(--fontSize32);
  font-weight: 700;
  color: #323436;
}

.child {
  font-weight: normal;
  padding-left: var(--fontSize96);
  font-size: var(--fontSize28);
  color: #323436;
  position: relative;
}

.child.active {
  color: #347BFF;
}

.child.title {
  color: #282829;
  padding-left: var(--fontSize64);
  /* color: #347BFF; */
}

.child .icon {
  display: none;
  width: var(--fontSize32);
  height: var(--fontSize32);
  position: absolute;
  top: 50%;
  left: var(--fontSize40);
  transform: translateY(-50%);
}

.child.active .icon {
  display: block;
}

.side-bar {
  z-index: 999;
  /* display: none; */
  /* position: fixed; */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fontSize24);
  color: #4c4c4c;
  width: 10%;
  /* width: var(--fontSize452); */
  opacity: 0;
  animation: show-side-bar 0.5s forwards;
}

@media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
  .side-bar {
    font-size: var(--fontSize12);
  }
}

@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: var(--fontSize140);
  height: var(--fontSize140);
  border-radius: 50%;
  color: #fff;
  background: rgba(153, 153, 153, 0.7);
  z-index: 9999;
  font-size: var(--fontSize60);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nothing {
  padding: var(--fontSize100);
  text-align: center;
  color: #999;
}