@import "extend/reset";
@import "extend/function";
@import "page/highlight";
@import "page/nav";
@import "page/hack";

::-webkit-scrollbar {
  width: 3px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background-color: #FAFAFA;
}

::-webkit-scrollbar-thumb {
  background-color: #EAF0F2;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #BFBFBF;
}

::-webkit-scrollbar-thumb:active {
  background-color: #CCC;
}

@iconfont: 'VUE-YDUI-ORG';
@font-face {
  font-family: @iconfont;
  src: url('//at.alicdn.com/t/font_dtvtho7r2nxhto6r.ttf');
}

html {
  height: 100%;
}

body {
  overflow: hidden;
  height: 100%;
  font-family: @FONT-YAHEI;
  background-color: #F5F9FC !important;
}

.box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.header {
  height: 70px;
  width: 100%;
  background-color: #FFF;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #F0F0F0;
  h1 {
    font-size: 24px;
    font-weight: normal;
    color: #313131;
    padding-left: 20px;
    display: flex;
    align-items: center;
    font-family: @FONT-YAHEI;
    img {
      width: 50px;
      margin-right: 20px;
      display: inline-block;
    }
  }
}

.main {
  width: 100%;
  flex: 1;
  display: flex;
  height: 100%;
  min-width: 888px;
}

.content-box {
  margin-top: 20px;
  margin-right: 20px;
  flex: 1;
  padding: 25px 25px 100px 25px;
  color: #666;
  background-color: #fff;
  box-sizing: border-box;
  line-height: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: @FONT-YAHEI;
  font-size: 14px;
  h1, h2, h3 {
    font-weight: normal;
    color: #555;
  }
  h1 {
    font-size: 24px;
    padding-bottom: 20px;
  }
  h2 {
    font-size: 18px;
    padding-top: 30px;
    padding-bottom: 10px;
  }
  h3 {
    text-indent: 1.4em;
    font-size: 15px;
    padding-bottom: 5px;
    span {
      background-color: #F9F9F9;
      border: 1px solid #F1F1F1;
      padding: 1px 6px 3px;
      border-radius: 3px;
    }
    a {
      color: #3390D4;
      &:hover {
        text-decoration: underline;
      }
    }
    > strong {
      font-family: @FONT-ARIAL;
      font-size: 16px;
    }
  }
  h4 {
    font-weight: normal;
    font-size: 13px;
    text-indent: 1.6em;
    a {
      color: #3390D4;
    }
    span {
      background-color: #F9F9F9;
      border: 1px solid #F1F1F1;
      padding: 1px 6px 3px;
      border-radius: 3px;
    }
  }
}

.demo-box {
  border: 1px solid #E2E2E2;
  border-radius: 1px;
  display: flex;
  margin-top: 25px;
  background-color: #FEFEFE;
}

.fuck {
  padding-left: 1.3em;
  div.demo-box:first-of-type {
    margin-top: 10px;
  }
}

.demo-content {
  font-size: 13px;
  transition: height .2s ease-in-out;
  position: relative;
  &:first-child {
    flex: 1;
    background-color: #FCFCFC;
  }
  &:last-child {
    width: 55%;
    overflow: hidden;
    border-left: 1px dashed #DEDEDE;
    position: relative;
    .pre {
      font-size: 14px;
      padding: 18px 20px 25px 20px;
    }
    .show-more {
      width: 100%;
      height: 30px;
      position: absolute;
      bottom: -8px;
      text-align: center;
      left: 0;
      background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(250, 250, 250, 1) 100%);
      &:after {
        font-family: @iconfont;
        content: '\e61d';
        font-size: 12px;
        color: #999;
        margin-top: 2px;
        display: block;
      }
      &.down:after {
        content: '\e61e';
      }
    }
  }
}

.demo-content .content {
  .demo {
    background-color: #FFF;
    padding: 18px 20px 15px 20px;
  }
  > strong {
    font-weight: normal;
    padding: 0 10px;
    position: absolute;
    z-index: 2;
    left: 25px;
    color: #42AE7C;
    font-size: 14px;
    top: -12px;
    span {
      position: relative;
      z-index: 3;
    }
    &:after {
      content: '';
      height: 1px;
      width: 100%;
      background-color: #FEFEFE;
      position: absolute;
      top: 11px;
      left: 0;
      z-index: 1;
    }
  }
  .interpretation {
    border-top: 1px solid #EEEEEE;
    padding: 15px 20px;
    font-size: 12px;
    line-height: 22px;
    p {
      padding-bottom: 8px;
      span {
        background-color: #E8E8E8;
        padding: 0 5px 1px;
        border-radius: 3px;
        margin: 0 3px;
      }
      a {
        color: #3390D4;
        margin: 0 2px;
      }
      &:last-child {
        padding-bottom: 0;
      }
    }
  }
}

.import-demo {
  padding: 15px;
  margin-left: 21px;
  border: 1px solid #EDEDED;
  background-color: #FCFCFC;
  p {
    color: #44c125;
    span {
      background-color: #efefef;
      padding: 1px 6px 3px;
      border-radius: 3px;
      color: #E96900;
    }
  }
}

.table {
  margin-left: 1.3em;
  table {
    width: 100%;
    margin-bottom: 20px;
    margin-top: 5px;
    td {
      border: 1px solid #ECECEC;
      padding: 0 8px;
      span {
        background-color: #F9F9F9;
        border: 1px solid #F1F1F1;
        padding: 1px 6px 3px;
        border-radius: 3px;
        margin-right: 3px;
      }
    }
    tr {
      height: 40px;
    }
    thead {
      background-color: #F5F9FC;
    }
  }
}

.grids {
  margin-top: 30px;
  border: 1px solid #ECECEC;
  border-bottom: none;
  margin-left: 1.3em;
  p {
    font-size: 15px;
    text-align: center;
    height: 42px;
    line-height: 42px;
    border-bottom: 1px solid #ECECEC;
    background-color: #FAFAFA;
  }
}

.cell-demo .demo {
  background-color: #F5F5F5 !important;
}

.prams-box {
  padding-left: 2.4em;
  padding-top: 8px;
  &:before {
    content: '';
    width: 4px;
    height: 4px;
    background-color: #657180;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 50%;
  }
  span {
    background-color: #F9F9F9;
    border: 1px solid #F1F1F1;
    padding: 1px 6px 3px;
    border-radius: 3px;
    margin-right: 3px;
  }
  a {
    color: #3390D4;
    &:hover {
      text-decoration: underline;
    }
  }
}

.sponwsor-box {
  strong {
    font-size: 16px;
    padding-top: 30px;
    padding-bottom: 10px;
    line-height: 36px;
    font-weight: normal;
    padding-left: 20px;
  }
  .sponwsor {
    padding-left: 50px;
    p {
      font-size: 14px;
      padding-top: 10px;
      &:before {
        content: '';
        width: 4px;
        height: 4px;
        background-color: #657180;
        display: inline-block;
        vertical-align: middle;
        border-radius: 50%;
        margin-right: 12px;
      }
      a {
        color: #3390D4;
        &:hover {
          text-decoration: underline;
        }
      }
    }
    .img {
      margin-top: 15px;
      margin-left: 15px;
      background: url(//static.ydcss.com/www/img/reward.png?v=G55kCkonGbKOPvR8Mg2kEg%3D%3D) no-repeat;
      width: 474px;
      height: 212px;
      background-position: -108px -201px;
    }
  }
}

.update-logs-box {
  padding-top: 15px;
}

ul.update-logs {
  li {
    position: relative;
    padding-left: 25px;
    padding-bottom: 20px;
    strong {
      font-weight: normal;
      font-size: 20px;
      display: flex;
      align-items: baseline;
      span {
        font-size: 12px;
        margin-left: 10px;
      }
    }
    &.q:after {
      content: '';
      width: 13px;
      height: 13px;
      border: 1px solid #16AA6B;
      position: absolute;
      border-radius: 50%;
      top: 5px;
      left: 0;
      background-color: #FFF;
    }
    &.bug:after {
      content: '\E66A';
      font-size: 17px;
      color: #FF5500;
      position: absolute;
      background-color: #fff;
      top: 2px;
      left: -2px;
      font-family: @iconfont;
    }
    &.rocket:after {
      content: '\E695';
      font-size: 16px;
      color: #ff3a4b;
      position: absolute;
      background-color: #fff;
      top: 2px;
      left: -2px;
      font-family: @iconfont;
    }
    &.mark:after {
      content: '\E628';
      font-size: 15px;
      color: #79bcff;
      position: absolute;
      background-color: #fff;
      top: 2px;
      left: -1px;
      font-family: @iconfont;
    }
    &:not(:last-child):before {
      content: '';
      width: 1px;
      height: 100%;
      position: absolute;
      top: 5px;
      left: 6px;
      background-color: #E3E8EE;
    }
  }
  p {
    padding-left: 10px;
    font-size: 14px;
    padding-top: 8px;
    span {
      background-color: #F9F9F9;
      border: 1px solid #F1F1F1;
      padding: 0 3px 0 3px;
      border-radius: 3px;
      margin: 0 3px;
    }
    &:before {
      content: '';
      width: 5px;
      height: 5px;
      border: 1px solid #b3b3b3;
      display: inline-block;
      margin-right: 8px;
      border-radius: 50%;
      position: relative;
      top: -3px;
    }
    a {
      color: #3390D4;
      margin: 0 3px;
      &:hover {
        text-decoration: underline;
      }
      &.issues {
        color: #39F;
        &:after {
          content: '\E67A';
          font-size: 14px;
          color: #39F;
          font-family: @iconfont;
        }
      }
    }
  }
}

