common.wxss 1.11 KB
/**app.wxss**/
/*每个页面公共css */



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

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

.c-blue {
  color: #3666FE;
}

.c-white {
  color: #fff;
}

.bgc-blue {
  background-color: #3666FE;
}