@import './var.less';
@import './normalize.css';
@media (-webkit-max-device-pixel-ratio: 1) {
  ::-webkit-scrollbar-track-piece {
    background-color: #fff;
  }

  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  ::-webkit-scrollbar-thumb {
    background-color: #c2c2c2;
    background-clip: padding-box;
    min-height: 28px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0;
  }
}
.loop-pt(50);
.loop-pb(50);
.loop-pr(50);
.loop-pl(50);
.loop-mt(50);
.loop-mb(50);
.loop-ml(50);
.loop-mr(50);
.loop-fz(30);

html {
  box-sizing: border-box;
}
body {
  font-size: 12px;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

.fade-enter-active {
  transition: opacity 0.5s ease-out;
}

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

.clearfix:after {
  content: '';
  display: table;
  clear: both;
}

.pointer {
  cursor: pointer;
}

.clearfix {
  zoom: 1;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.ib {
  display: inline-block;
}
.flex {
  display: flex;
  &.v-center {
    align-items: center;
  }
}
.flex-item {
  flex: 1;
}
.red {
  color: #f30e03;
}
.blue {
  color: #108ee9;
}
.green {
  color: #07b440;
}

.m-brower-tip {
  position: fixed;
  top: 0;
  width: 400px;
  left: 50%;
  margin-left: -200px;
  text-align: center;
  background: #38f;
  padding: 10px 15px;
  color: #fff;
  z-index: 999;
  font-size: 16px;
}

.m-container {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  .m-title {
    color: #333;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    display: flex;
    align-items: center;
    &::before {
      display: inline-block;
      content: '';
      width: 4px;
      height: 15px;
      margin-right: 10px;
      background: @primary-color;
    }
  }
  .m-body {
    padding-top: 15px;
  }
}
.m-container + .m-container {
  margin-top: 10px;
}