@import './common/var';
@import './mixins/utils';

*{
  box-sizing: border-box;
  font-weight: $--font-weight-normal;
}

body,html {
  font-family: "Helvetica Neue",Helvetica,"PingFang SC","Microsoft YaHei","微软雅黑",Arial,sans-serif;
  font-weight: $--font-weight-normal;
  font-size: $--font-size-base;
  color: $--color-text-content;
  -webkit-font-smoothing: antialiased;
}

a {
  font-family: "Helvetica Neue",Helvetica,"PingFang SC","Microsoft YaHei","微软雅黑",Arial,sans-serif;
  text-decoration: none;
  font-size:14px;
  color: $--color-text-link;

  &:hover,
  &:focus,
  &:active {
    color: $--color-text-link;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  margin:0;
  line-height: 2em;

  &:first-child {
    margin-top: 0;
  }

  &:last-child {
    margin-bottom: 0;
  }
}

h1 {
  font-size: #{$--font-size-base + 12px};
  color: $--color-text-title;
  font-weight: $--font-weight-base;
}

h2 {
  font-size: #{$--font-size-base + 4px};
  color: $--color-text-title;
  font-weight: $--font-weight-base;
}

h3 {
  font-size: #{$--font-size-base + 2px};
  color:$--color-text-content;
  font-weight: $--font-weight-base;
}

h4 {
  font-size: $--font-size-base;
  color:$--color-text-content;
  font-weight: $--font-weight-base;
}

h5, h6, p {
  font-size: $--font-size-base;
}

p {
  font-size: $--font-size-base;
  line-height: 1.8em;
  color:$--color-text-content;
}

.text-auxiliary {
  font-size: $--font-size-base;
  color:$--color-text-auxiliary;
}

.text-disabled{
  font-size: $--font-size-base;
  color: mix($--color-text-auxiliary, $--color-white, 46%);
}

.text-success{
  @include success-font-color;
}
.text-danger{
  @include danger-font-color;
}
.text-warning{
  @include warning-font-color;
}


sup, sub {
  font-size: #{$--font-size-base - 1px};
}

small {
  font-size: #{$--font-size-base - 2px};
}

hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eeeeee;
}

ul{
  padding:0;
  li{
    list-style: none;
  }
}
dl{
  margin:0;
  dd{
    margin-left:0;
  }
}
p{
  padding:0;
}


input[type=number] {
  -moz-appearance:textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

table {
  border-collapse: collapse;
  table-layout: fixed;
}
th, td {
  margin: 0;
  padding: 0;
}

.algin-right{
  text-align: right;
}

.margin-top-20{
  margin-top: 20px;
}

.margin-bottom-30{
  margin-bottom: 30px;
}

.clearfix {
  zoom: 1;
}

.clearfix:after {
  content: ".";
  width: 0;
  height: 0;
  visibility: hidden;
  display: block;
  clear: both;
  overflow:hidden;
}

.ellipse {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inline{
  display: inline-block;
  *display: inline;
  *zoom: 1;
}