common.wxss 2.07 KB
/**app.wxss**/
.flex {
  display: flex;
  align-items: center;
}

.sticky {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: #fff;
}

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

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

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

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

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

.flex-column{
  flex-direction: column;
}

.isFullSucreen {
  /* padding-bottom: 34px !important; */
  padding-bottom: constant(safe-area-inset-bottom) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
}

.isFullSucreen-bottom {
  bottom: constant(safe-area-inset-bottom) !important;
  bottom: env(safe-area-inset-bottom) !important;
}


.default-btn {
  width: 686rpx;
  height: 88rpx;
  background: var(--btnColor);
  border-radius: var(--borderRadius);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--margin);
}

.list-nothing {
  width: 100%;
  padding: 8rpx 0 30rpx;
  text-align: center;
  font-size: 28rpx;
  color: #C1C2C3;
}

.list-nothing .icon {
  width: 320rpx;
  height: 320rpx;
}

.list-not {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 24rpx;
  height: 100%;
}

@keyframes show-box {
  0% {
    opacity: 0;
    transform: scale(2.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes show-box-opacity {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
@keyframes show-box-inset{
  0% {
    opacity: 0;
    transform: scale(.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.safe-area {
  display: block;
  width: 100%;
  height: 0;
  opacity: 0;
}