index.scss 1.98 KB
@import './normalize.scss';
@import './sprite.scss';

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;
}

* {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

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;

  &::after {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba($color: #000000, $alpha: 0.1);
    display: block;
  }
}

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

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

  @keyframes side-animation {

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

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

  .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;

    &:last-of-type {
      left: 8px;
    }
  }

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