common.scss 1008 Bytes
@import './sprite';
* {
  margin: 0;
  padding: 0;
}

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

.text-hide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-disabled {
  background: #ccc !important;
}

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

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

.fixed-btn {
  position: fixed !important;
  bottom: 20px;
}

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

// 路由淡入淡出
.fade-enter-active,
.fade-leave-active {
  transition-property: opacity;
  transition-duration: .3s;
}

.fade-enter-active {
  transition-delay: .3s;
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}

.disabled {
  background-color: #999 !important;
}