index.scss 4.01 KB
@import "./normalize.scss";

@font-face {
  font-family: "PingFangSC-Regular";
  src: url("../font/PingFang-Regular.ttf");
}

html,
body .app {
  color: #333333;
  font-family: "PingFangSC-Regular", Arial, Helvetica, "STHeiti STXihei", "Microsoft YaHei", Tohoma, sans-serif;
  background-color: #fff;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  // overflow: hidden;
  --themeColor: #3975c6;
}
div {
  user-select: none;
}
img {
  width: 100%;
  height: 100%;
  vertical-align: top;
}

.flex {
  display: flex;
  align-items: center;
}
.flex-around {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: 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%);
}

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

.user-select {
  user-select: none;
}

.pointer {
  cursor: pointer;
}

.box {
  background: #061422;
  box-shadow: inset 0 0 10.42px 0 #3d57ff69;
}

.inline {
  display: inline-block;
}
.icon-title {
  display: inline-block;
  width: 0.94vw;
  height: 0.93vh;
  background: url(../images/operation//icon-title.png) no-repeat;
  background-size: 100%;
}
.title {
  padding-top: 0.77vh;
  font-size: 0.75vw;
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  user-select: none;
  box-sizing: border-box;
  height: 2.5vh;
  background: linear-gradient(to right, #00C8FF, #006FFF); /* 从左到右渐变 */
  -webkit-background-clip: text; /* Safari/Chrome支持该属性 */
  color: transparent; /* 将文本颜色设置为透明 */
  // margin-top: 4px;
  .title-bg {
    display: inline-block;
    height: 1.71vh;
    padding-left: 0.21vw;
    // transform: rotate(-360deg);
    // background-image: linear-gradient(90deg, #003F57 0%, #111056 54%, #07173500 100%);
  }
}
.operational-box {
  background-color: rgba(11, 63, 142, 0.2);
}

.container {
  height: 8.54vh;
  margin: 8px 6px 8px 8px;
}
.user-container {
  height: 6.1vh;
  margin: 5px 6px 5px 6px;
}
.empty {
  display: flex;
  width: 100%;
  height: calc(100% - 4.1vh);
  align-items: center;
  justify-content: center;

  img {
    max-width: 20vh;
    height: 9.5vh;
  }
}
.text-linear {
  display: inline-block;
  color: #5894ff;
  background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.user-box {
  height: 9.23vh;
  width: 13.26vw;
  background: #071735;
}
.patch-title {
  position: relative;
  height: 2.22vh;
  color: #fff;
  line-height: 2.22vh;
  padding-left: 0.83vw;
  font-size: 14px;
  z-index: 1;
  &::before {
    content: "";
    position: absolute;
    left: 0;
    width: 7.5vw;
    height: 2.22vh;
    background-image: linear-gradient(269deg, #5663ff00 10%, #6578ffd4 49%, #079ff1 100%);
    z-index: -1;
  }
}
.linear-gradient-text {
  color: #5894ff;
  background-image: -webkit-linear-gradient(left, #0185f9, #53faff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-element {
  animation: float 5s linear infinite;
}