.gutter pre {
  color: #999;
}
pre {
  color: #525252;
}
pre .function .keyword,
pre .constant {
  color: #0092db;
}
pre .keyword,
pre .attribute {
  color: #e96900;
}
pre .number,
pre .literal {
  color: #ae81ff;
}
pre .tag,
pre .tag .title,
pre .change,
pre .winutils,
pre .flow,
pre .lisp .title,
pre .clojure .built_in,
pre .nginx .title,
pre .tex .special {
  color: #2973b7;
}
pre .class .title {
  color: #fff;
}
pre .symbol,
pre .symbol .string,
pre .value,
pre .regexp {
  color: #2E7CD5;
}
pre .title {
  color: #a6e22e;
}
pre .tag .value,
pre .string,
pre .subst,
pre .haskell .type,
pre .preprocessor,
pre .ruby .class .parent,
pre .built_in,
pre .sql .aggregate,
pre .django .template_tag,
pre .django .variable,
pre .smalltalk .class,
pre .javadoc,
pre .django .filter .argument,
pre .smalltalk .localvars,
pre .smalltalk .array,
pre .attr_selector,
pre .pseudo,
pre .addition,
pre .stream,
pre .envvar,
pre .apache .tag,
pre .apache .cbracket,
pre .tex .command,
pre .prompt {
  color: #2E7CD5;
}
pre .comment,
pre .java .annotation,
pre .python .decorator,
pre .template_comment,
pre .pi,
pre .doctype,
pre .deletion,
pre .shebang,
pre .apache .sqbracket,
pre .tex .formula {
  color: #b3b3b3;
}
pre .coffeescript .javascript,
pre .javascript .xml,
pre .tex .formula,
pre .xml .javascript,
pre .xml .vbscript,
pre .xml .css,
pre .xml .cdata {
  opacity: 0.5;
}
body {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #34495e;
  margin: 0;
}
a {
  text-decoration: none;
  color: #34495e;
}
img {
  border: none;
}
h1,
h2,
h3,
h4,
strong {
  font-weight: 600;
  color: #2c3e50;
}
code,
pre {
  font-family: 'Source Code Pro', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 0.9em;
  background-color: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 0px;
  -webkit-font-smoothing: initial;
  -moz-osx-font-smoothing: initial;
  padding: 18px 28px;
}

code {
  font-size: 12px;
  color: #444;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 1px 3px;
  word-wrap: break-word;
  word-break: normal;
}
pre code{
  border: none;
}
.highlight code {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.428571429;
  color: #333;
  word-break: break-all;
  word-wrap: break-word;
  border: none;
  border-radius: 3px;
}
em {
  color: #7f8c8d;
}
p {
  word-spacing: 0.05em;
}
a.button {
  display: inline-block;
  font-size: 1.2em;
  color: #2E7CD5;
  font-weight: 700;
  background-color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  border: 2px solid #2E7CD5;
  transition: all 0.15s ease;
}
a.button:hover {
  color: #fff;
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
  background-color: #2E7CD5;
}
.highlight {
  overflow-x: auto;
  position: relative;
  padding: 0;
  background-color: #f9f9f9;
  padding: 0.8em 0.8em 0.4em;
  border:1px solid #ececec;
  border-radius: 6px;
  line-height: 1.1em;
  margin-bottom: 20px;
  margin-left: 12px;
}
.highlight table,
.highlight tr,
.highlight td {
  width: 100%;
  border-collapse: collapse;
  padding: 0;
  margin: 0;
}
.highlight pre {
  margin: 0;
}
.highlight .gutter {
  width: 1.5em;
}
.highlight .code pre {
  padding-left: 0.5em;
}
.highlight.html .code:after,
.highlight.js .code:after,
.highlight.bash .code:after,
.highlight.css .code:after {
  position: absolute;
  top: 0;
  right: 0;
  color: #ccc;
  text-align: right;
  font-size: 0.75em;
  padding: 5px 10px 0;
  line-height: 15px;
  height: 15px;
  font-weight: 600;
}
.highlight.html .code:after {
  content: 'HTML';
}
.highlight.js .code:after {
  content: 'JS';
}
.highlight.bash .code:after {
  content: 'Shell';
}
.highlight.css .code:after {
  content: 'CSS';
}
#main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom:30px;
  overflow-x: hidden;
}
#ad {
  width: 130px;
  position: fixed;
  z-index: 99;
  bottom: 10px;
  right: 10px;
  padding: 10px;
  background-color: #fff;
  border-radius: 3px;
  font-size: 13px;
}
#ad .carbon-img,
#ad .carbon-text {
  display: block;
  margin-bottom: 6px;
  font-weight: normal;
  color: #34495e;
}
#ad .carbon-poweredby {
  color: #aaa;
  font-weight: normal;
}
#demo,
.demo {
  border: 1px solid #f0f0f0;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  border-radius: 0px;
  padding: 25px 35px;
  margin-left: 0.8em;
  margin-bottom: 40px;
  font-size: 1.2em;
  line-height: 1.5em;
}
#demo h1,
.demo h1 {
  margin: 0 0 0.5em;
  font-size: 1.8em;
}
#demo ul,
.demo ul {
  padding-left: 1.5em;
  margin: 0;
}
#demo li,
.demo li {
  cursor: pointer;
  color: #34495e;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}
#demo li.done,
.demo li.done {
  color: #7f8c8d;
  text-decoration: line-through;
}
ul#demo li,
ul.demo li {
  margin-left: 1.5em;
}
.header-wrap .toggle{
  display: none;
  margin-top: 10px;
  color:  white;
  font-size: 18px;
  cursor: pointer;
}
@media screen and (max-width: 720px) {
  #demo,
  .demo {
    margin-left: 0;
  }
}
.content.blog h1 {
  margin: 0 0 0.5em;
}
.content.blog h2 {
  margin: 0.8em 0;
  padding-bottom: 0;
  border-bottom: none;
}
.content.blog h2 a {
  color: #2c3e50;
}
.content.blog h2 a:hover {
  border-bottom: 2px solid #2E7CD5;
}
.content.blog h4 {
  color: #7f8c8d;
  margin: 1.2em 0;
}
.content.blog figure,
.content.blog p {
  margin-left: 0;
}
.content.blog .post {
  padding: 1em 0 2em;
  border-bottom: 1px solid #ddd;
}
@media screen and (max-width: 1400px) and (min-width: 720px) {
  .content.blog {
    margin: 0 0 0 280px;
  }
}

#mobile-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #fff;
  z-index: 9;
  display: none;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
}
#mobile-bar .menu-button {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 8px;
  left: 12px;
  background: url("../images/menu.png") center center no-repeat;
  background-size: 24px;
}
#mobile-bar .logo {
  position: absolute;
  width: 30px;
  height: 30px;
  background: url("../images/logo.png") center center no-repeat;
  top: 5px;
  left: 50%;
  margin-left: -15px;
  background-size: 30px;
}
.sidebar {
  position: absolute;
  z-index: 10;
  top: 80px;
  bottom: 0;
  overflow-y: hidden;
  border-right: 1px solid #ececec;
  padding: 0;
  width: 250px;
  margin-right: 20px;
  -webkit-overflow-scrolling: touch;
  transition: all 0.5s ease-in-out;
}
.sidebar ul li a.active{
  color:rgb(242, 68, 27);
}

.sidebar h2 {
  margin-top: 0.2em;
}
.sidebar ul {
  list-style-type: none;
  margin: 0;
  line-height: 1.8em;
  padding-left: 1em;
}
.sidebar .menu-root {
  padding-left: 0;
}
.sidebar .menu-category a{
  font-weight: 600;
  color: #2E7CD5;
}
.sidebar .menu-sub {
  padding-left: 15px;
  font-size: 0.85em;
}
.sidebar .sidebar-link {
  color: #7f8c8d;
}
.sidebar .sidebar-link.current {
  font-weight: 600;
  color: #2E7CD5;
}
.sidebar .sidebar-link:hover {
  border-bottom: 2px solid #2E7CD5;
}
.sidebar .section-link.active {
  font-weight: bold;
  color: #2E7CD5;
}
.sidebar .main-menu {
  margin-bottom: 20px;
  display: none;
  padding-left: 0;
}
.content {
  padding: 80px 0 20px;
}

.content.with-sidebar {
  margin-left: 280px;
  min-height: 600px;
}
.content.api ul {
  font-size: 0.9em;
  padding-left: 1.25em;
  color: #444;
}
.content a.button {
  font-size: 1.1em;
  margin: 0.2em 0;
  width: 180px;
  text-align: center;
  padding: 10px 24px;
  display: inline-block;
  vertical-align: middle;
}
.content span.light {
  color: #7f8c8d;
}
.content span.info {
  font-size: 0.85em;
  display: inline-block;
  vertical-align: middle;
  width: 280px;
  margin-left: 20px;
}
.content h1 {
  margin: 0 0 1em;
}
.content h2 {
  margin: 2em 0 0.8em;
  padding-bottom: 0.7em;
  border-bottom: 1px solid #ddd;
}
.content h3 {
  border-left: 5px solid #2E7CD5;
  margin: 2em 0 0.8em;
  padding-left: 0.5em;
}

.content p,
.content ul,
.content ol {
  line-height: 1.6em;
}
.content ul,
.content ol {
  padding-left: 1em;
}
.content a {
  color: #5596DF;
  font-weight: 600;
}
.content blockquote {
  padding: 12px 24px 12px 30px;
  margin: 2em 0 2em 10px;
  border-left: 4px solid rgb(250, 199, 105);
  background-color: #f9f9f9;
  position: relative;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}
.content blockquote.warning {
  border: 1px solid #ececec;
  border-left: 4px solid rgb(250, 130, 166);
}
.content blockquote.warning:before {
  background-color: rgb(250, 130, 166);
}
.content blockquote:before {
  position: absolute;
  top: 50%;
  margin-top: -17px;
  left: -17px;
  background-color: rgb(250, 199, 105);
  color: #fff;
  content: "i";
  width: 30px;
  height: 30px;
  border-radius: 100%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  font-family: Georgia;
}
.content blockquote p {
  margin-left: 0;
}
.content iframe {
  margin: 1em 0;
}
.content p.tip {
  padding: 12px 24px 12px 30px;
  margin: 2em 0 2em 0.8em;
  border-left: 4px solid #2E7CD5;
  background-color: #f9f9f9;
  position: relative;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.125);
}
.content p.tip:before {
  position: absolute;
  top: 50%;
  margin-top: -17px;
  left: -17px;
  background-color: #2E7CD5;
  color: #fff;
  content: "i";
  width: 30px;
  height: 30px;
  border-radius: 100%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  font-family: Georgia;
}

.content a.title-anchor{
  display:block;
  padding-top:90px;
  margin-top: -90px;
}
.content h4{
  color: #4F84D3;
  font-size: 20px;
  padding-left: 10px;
  border-left: 4px solid #4F84D3;
}

.footer {
  color: #7f8c8d;
  margin-top: 4em;
  padding-top: 2em;
  border-top: 1px solid #e5e5e5;
  margin-left: 0.8em;
  font-size: 0.9em;
}
@media screen and (min-width: 720px) {
  #main.fix-sidebar .sidebar {
    position: fixed;
  }
}
@media screen and (max-width: 720px) {
  .header-wrap .toggle{
    display: inline-block;
    width: 30px;
    font-size: 14px;
  }
  .header-wrap header{
    padding: 0px 20px;
  }
  .header-wrap .nav-left,header .logo {
    display: none;
  }
  .content{
    padding-top: 0px;
  }
}
@media screen and (max-width: 720px) {
  body {
    -webkit-text-size-adjust: none;
    font-size: 14px;
  }
  .nav-link {
    padding-bottom: 1px;
  }
  #mobile-bar {
    display: block;
  }
  #main {
    padding: 1em 1.4em 0;
  }
  .highlight pre {
    padding: 1.2em 1em;
  }
  .sidebar {
    position: fixed;
    background-color: #f9f9f9;
    height: 100%;
    top: 0;
    left: 0;
    overflow: scroll;
    padding: 60px 30px 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0, 0, 1);
    transform: translate(-110%, 0);
    -webkit-transform: translate(-110%, 0);
  }
  .sidebar .main-menu {
    display: block;
  }
  .sidebar.open {
    transform: translate(0, 0);
    -webkit-transform: translate(0, 0);
    left: 0;
  }
  .content.with-sidebar {
    margin-left: 0;
  }
  .content figure,
  .content p,
  .content ul,
  .content p.tip {
    margin-left: 0;
  }

  .footer {
    margin-left: 0;
    text-align: center;
  }
}


/*********************doc css**************************/

.content img{
  max-width: 100%;
}



/*****************header**************************/

.header-wrap {
    position: fixed;
    width: 100%;
    top:0px;
    left: 0px;
    z-index: 1000;
    background-color: #3360A3;
    transition: all 0.5s ease-in-out;
}

header {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
    padding: 0px;
}

header:after {
    content: "";
    display: table;
    clear: both;
}

.logo-wrap .logo{
    font-size: 30px;
    color: #F4F3F3;
    text-shadow: 0 1px 1px #333;
}




.doc-content{
  padding-bottom: 20px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 20px;
}


.sidebar>ul>li,.sidebar>ul>li>a{
  color:#2E7CD5;
}
.sidebar li a:active{
  color:#2E7CD5;
}

.sidebar ul li ul{
  font-size: 14px;
}
.sidebar>ul>li>ul>li>ul{
  border-left: 1px solid #ececec;
}

.github-filepath {
  background-color: #000;
  margin-top: 30px;
  padding: 10px;
  color: #FFFFFF;
}

.sidebar .main-nav{
  margin: 10px 0 20px;
  display: none;
}
.sidebar.open .main-nav{
  display: block;
}
.sidebar .main-nav a{
  display: block;
  padding: 0px 8px;
  line-height: 20px;
  margin-bottom: 8px;
  color: #888;
  float: none;
}


/*****************导航条向下滚动时隐藏************************/

.hide-header .header-wrap{
  top: -100px;

}
.hide-header #main.fix-sidebar .sidebar{
  top:10px;
}

