index.scss 1.71 KB
@import './variables.scss';
@import './element-ui.scss';

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type='number'] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

img {
  display: block;
  width: 100%;
  height: 100%;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}
.ImportentText {
  font-style: normal;
  color: #ffd200;
}
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pointer {
  cursor: pointer;
}
.el-tooltip__popper {
  max-width: 60%;
}
html,
body,
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#app {
  font-size: 12px;
}
body {
  .el-input-number,
  .el-input__inner,
  .el-input,
  .el-button {
    height: 22px;
    line-height: 22px;
    font-size: 12px;
  }
}

.el-button {
  padding: 0 8px;
}
@media screen and (min-width: $bigScreenWidth) {
  #app {
    font-size: 14px;
  }
  body {
    .el-input-number,
    .el-input__inner,
    .el-input,
    .el-button {
      height: 40px;
      line-height: 40px;
      font-size: 14px;
    }
    .el-button {
      line-height: 1;
    }
  }
  .el-button {
    padding: 12px 20px;
  }
}