@font-face {
  font-family: 'iconfont';  /* project id："185528" */
  src: url('https://at.alicdn.com/t/font_baeavkcyne45cdi.eot');
  src: url('https://at.alicdn.com/t/font_baeavkcyne45cdi.eot?#iefix') format('embedded-opentype'),
  url('https://at.alicdn.com/t/font_baeavkcyne45cdi.woff') format('woff'),
  url('https://at.alicdn.com/t/font_baeavkcyne45cdi.ttf') format('truetype'),
  url('https://at.alicdn.com/t/font_baeavkcyne45cdi.svg#iconfont') format('svg');
}

.iconfont {
  font-family: iconfont;
  font-size: 16px;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  display: inline-block;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-menu:before {
  content: '\e63b';
}

.icon-rss:before {
  content: '\e6ee';
}

.icon-list:before {
  content: '\e6dc';
}

.icon-up:before {
  content: '\e600';
}

.icon-down:before {
  content: '\e601';
}


body {
  font-size: 16px;
  background: #fff;
}

a:link {
  color: #37a;
}

a:visited {
  color: #669;
}

a:hover,
.type a:hover {
  background-color: #37a;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}


article {
  margin-top: 1em;
  margin-bottom: 1em;
  padding: 1em;
}

article .post-title {
  font-size: 150%;
}

article .post-meta {
  font-size: 90%;
}


.type h1,
.type h2,
.type h3,
.type h4,
.type h5,
.type h6 {
  color: #222223;
  margin-top: 1em;
  margin-bottom: 0.25em;
}

.type > h1 {
  margin-top: 0;
}

.type h2 {
  font-size: 135%;
  margin-top: 0.75em;
  margin-bottom: 0.25em;
}

.type h3 {
  font-size: 120%;
}

.type h4 {
  font-size: 110%;
}

.type h5,
.type h6 {
  font-size: 100%;
  font-weight: 500;
}

.type p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.type pre,
.type code {
  font-size: 80%;
}


aside {
  font-size: 90%;
  box-sizing: border-box;
  width: 240px;
  padding: 1em;
  overflow-x: visible;
  overflow-y: auto;
  text-align: right;
  background: #f5f5f5;
}

aside h1 a {
  display: block;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  height: 0;
  padding-bottom: 100%;
  background: url(https://ossgw.alicdn.com/creatives-assets/image/2016/09/21/29f93b05-5d4a-4b57-99e8-71c52803b9a3.png);
  background-size: contain;
  background-repeat: no-repeat;
}

aside h1 a:hover {
  background-color: transparent;
}

nav {
  border-bottom: 1px dotted #ddd;
  padding: 1em 0;
}

nav a {
  display: block;
  line-height: 1.2;
  margin-bottom: 0.8em;
}

nav a:last-child {
  margin-bottom: 0;
}

aside .repos {
  padding: 1em 0;
}


.btn-menu {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5em;
  border: none;
  background: #f5f5f5;
}

.btn-menu:focus {
  outline: none;
}

.article-helpers {
  position: fixed;
  right: 0;
  top: 50%;
  width: 2em;
  margin-top: -1.5em;
  background: #f5f5f5;
}

.article-helpers button {
  border: none;
  background: none;
  border-bottom: 1px dotted #669;
}

.article-helpers button:last-child {
  border-bottom: none;
}


.collapsed {
  background: #f5f5f5;
}

.collapsed article {
  height: 2.5em;
  overflow: hidden;
}

.collapsed article h1:hover {
  cursor: pointer;
}

.collapsed article.expanded {
  height: auto;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) inset;
  border-radius: 2px;
}


@media (max-width: 1000px) {
  html, body {
    height: 100%;
  }

  body {
    transition: transform 0.3s;
    transform: translateX(0);
    overflow: hidden;
  }

  body.aside-revealed {
    transform: translateX(240px);
  }

  #page {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: auto;
  }

  article {
    max-width: 50em;
  }

  aside {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -240px;
  }
}

@media (min-width: 1000px) {
  #page {
    padding-top: 1em;
    padding-left: 240px;
  }

  article {
    max-width: 50em;
  }

  aside {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
  }

  .btn-menu {
    display: none;
  }
}