index.wxss 1.92 KB
@import './sprite.wxss';
@import './sharegoods.wxss';

html,
body .app {
  color: #333333;
  font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif;
  background-color: #f7f8fa;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  --themeColor: #3975c6;
}


img {
  width: 100%;
  height: 100%;
  vertical-align: top;
}

video {
  width: 100%;
  height: 100%;
}

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

.text-hide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-two-line {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.text-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.y-center {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.xy-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-on-leave {
  position: relative;
  overflow: hidden;
}

.btn-on-leave::after {
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  /* background-color: rgba($color: #000000, $alpha: 0.1); */
  background-color: rgba(255, 255, 255, 0.1);
  display: block;
}

#audio {
  position: fixed;
  top: -10000px;
  left: -10000px;
  width: 10px;
  height: 10px;
}

.live-line {
  height: 10px;
  position: relative;
}

@keyframes side-animation {

  0%,
  50%,
  100% {
    height: 2px;
  }

  25%,
  75% {
    height: 10px;
  }
}

.live-line .side {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 6px;
  border-radius: 1px;
  background: linear-gradient(to bottom, #ffe385 0%, #ffc34d 100%);
  animation: side-animation 2s infinite;
}

.live-line .side:last-of-type {
  left: 8px;
}

.live-line .side.center {
  height: 10px;
  left: 4px;
  animation: side-animation 2s infinite reverse;
}