@mixin basic {
  * {
    padding: 0;
  }

  @include basic-html;
  @include basic-body;
  @include basic-img;
  @include basic-input;
  @include selection;
  @include app;
}

@mixin basic-html {
  html {
    width: 100%;
    margin: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: none;
  }
}

@mixin basic-body {
  body {
    width: 100%;
    margin: 0;
  }
}

@mixin basic-img {
  img {
    max-width: 100%;
    height: auto;
    border: none;
    user-select: none;
    -webkit-user-drag: none;
  }
}

@mixin basic-input {
  input {
    border: 0 solid #fff0;
    border-radius: 0;
    outline: none;
    appearance: none;
    resize: none;
  }

  /* 去除iPhone中默认的input样式 */
  input[type='submit'],
  input[type='reset'],
  input[type='button'],
  input:focus,
  button:focus,
  select:focus,
  textarea:focus {
    outline: none;
  }
}

// selection 选择文本
@mixin selection {
  ::selection {
    color: #fff;
    background: #333;
  }
}

@mixin app {
  .douza-app {
    position: absolute;
    width: 100%;
    overflow-x: hidden;
  }
}
