@import "./../variables";
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family:'Microsoft YaHei',serif;
  font-weight:200;
}
html,body{
  position: relative;
  min-height: 100%;
}
html{
  font-size: 10px;
  box-sizing: border-box;
  height: 100%;
}
body {
  font-size: $font-size;
  color: $content-color;
  background-color: #fff;
  overflow-x: hidden;
  line-height: $line-height-base;
}

/*
 Typography
*/

/* Remove top margins from headings

 By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
 margin for easier control within type scales as it avoids margin collapsing.*/
h1, h2, h3, h4, h5, h6 {
  margin-top: 1rem;
  margin-bottom:2rem;
  line-height: 1;
}
/* Reset margins on paragraphs

 Similarly, the top margin on `<p>`s get reset. However, we also reset the
 bottom margin to use `rem` units instead of `em`.*/
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

dd {
  margin-bottom: 1rem;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1rem;
}

a, a:link, a:visited{
  color:$link-color;
  text-decoration: none;
  cursor: pointer;
}
a:hover{
  color:$link-hover-color;
}
a:focus {
  outline: none;
}

iframe{
  display: block;
  border: none;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset;
}

/* Let's get this party started */
::-webkit-scrollbar {
  width:0.5rem;
}

/* Track */
::-webkit-scrollbar-track {
  background-color:transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background:#ccc;
}
::-webkit-scrollbar-thumb:window-inactive {

}

table {
  background-color: transparent;
  border-collapse: collapse;
  border-spacing: 0;
}

::selection { background: #a9fd00; }

/*
 Code
*/

pre {
  /* Remove browser default top margin*/
  margin-top: 0;
  /* Reset browser default of `1em` to use `rem`s*/
  margin-bottom: 1rem;
  /* Normalize v4 removed this property, causing `<pre>` content to break out of wrapping code snippets*/
  overflow: auto;
}

/*
 Figures
*/

figure {
  /* Normalize adds `margin` to `figure`s as browsers apply it inconsistently.
   We reset that to create a better flow in-page.*/
  margin: 0 0 1rem;
}

/*
 Images
*/

img {
  /*By default, `<img>`s are `inline-block`. This assumes that, and vertically*/
  /*centers them. This won't apply should you reset them to `block` level.*/
  vertical-align: middle;
  /*Note: `<img>`s are deliberately not made responsive by default.*/
  /*For the rationale behind this, see the comments on the `.img-fluid` class.*/
  max-width: 100%;
  border: 0;
}

hr {
  margin:2rem 0;
  border: 0;
  border-top: $border-width solid $border-color;
  border-bottom: $border-width solid #fff;
}