index.scss 1.39 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%;
  // overflow: hidden;
  --themeColor: #3975C6;
}
*{
  margin: 0;
  padding: 0;
}
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: .1);
    display: block;
  }
}


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