index.scss 2.15 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: #f7f7f7;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  // overflow: hidden;
  --themeColor: #3975C6;
  /* 兼容 IOS<11.2 先constant再env */
  --constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
  /* 兼容 IOS>11.2 */
  --envSafeAreaInsetBottom: env(safe-area-inset-bottom);
}

.isFullSucreen {
  padding-bottom: var(--constantSafeAreaInsetBottom) !important;
  padding-bottom: var(--envSafeAreaInsetBottom) !important;
}

img {
  width: 100%;
  height: 100%;
  vertical-align: top;
}

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

.list-box {
  padding: 16px;
}

.btn {
  padding: 0 12px;
  height: 24px;
  background: var(--themeColor);
  border-radius: 12px;
  color: #ffffff;
  margin-left: auto;
  font-size: 10px;
}

.list-box.isFullSucreen {
  // height: calc(100vh - 134px) !important;
}

.van-dropdown-menu {
  margin-left: auto;

  .icon-down {
    transition: all 0.25s;
  }

  .van-dropdown-menu__bar--opened~.arrow .sprite-icon,
  .van-dropdown-menu__title--active .icon-down {
    transform: rotate(-180deg);
  }

  .van-dropdown-menu__bar {
    background-color: #fff;
    box-shadow: none;

    .van-dropdown-menu__title {
      color: #545454 !important;
      font-size: 16px;

      &::after {
        display: none;
      }
    }
  }
}

.attachment {
  .van-dropdown-menu__bar {
    .van-dropdown-menu__title {
      color: #5F5F5F !important;
      font-size: 12px;
    }

    .van-dropdown-menu__title--active {
      color: var(--themeColor) !important;
    }
  }
}