// DemoBox style
.code-box {
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  display: inline-block;
  width: 100%;
  position: relative;
  margin: 0px 0 16px 0px;
  transition: all 0.2s ease;

  &:hover,
  &:active {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  }

  hr {
    display: none;
  }

  p {
    margin: 0;
  }

  pre {
    // 代码框内部右边距
    padding-right: 15px;
  }

  .code-box-title {
    line-height: 40px;
    padding: 0 1em;
    font-weight: 700;
    color: #777;
    border-radius: 6px 6px 0 0;
    background: #f2f2f2;
    transition: all 0.4s ease;
    border-bottom: 1px solid #ddd;
  }
  .code-box-meta {
    border-bottom: 1px solid #e9e9e9;
    position: relative;
    padding: 10px 16px;
    background-color: #f9f9f9;
    transition: background-color 0.4s ease;
    width: 100%;
    min-height: 52px;
  }
  .code-box-demo {
    padding: 10px;
    overflow: auto;
    li {
      list-style: none;
    }
  }

  .highlight-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 0 0 6px 6px;
    position: relative;
  }

  .highlight-wrapper-expand {
    opacity: 1;
    max-height: 500px;
    overflow: auto;
  }

  .code-action {
    border-top: 1px solid #e9e9e9;
    padding-left: 16px;
    line-height: 50px;
    margin: 0;
  }

  .collaps {
    cursor: pointer;
    &:hover {
      color: #6af;
    }
  }
}
