/*
* Editor
*/
.editor {
  margin-bottom: -0.5em;
}

.wmd-button-row {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 26px;
  line-height: 1;

  li {
    display: inline-block;
    margin-right: 4px;
    padding: 3px;
    cursor: pointer;
    @include border-radius(2px);
    &:hover {
      background-color: #E9E9E6;
    }
    &.wmd-spacer {
      height: 20px;
      margin: 0 10px 0 6px;
      padding: 3px 0;
      width: 1px;
      background: #E9E9E6;
      cursor: default;
    }
  }
}

.editor span {
  display: block;
  width: 20px;
  height: 20px;
  background: transparent url(../img/editor.png) no-repeat;
}

/* 对话框 */
.wmd-prompt-background {
  background-color: #000;
}
.wmd-prompt-dialog {
  position: fixed;
  z-index: 1001;
  top: 50%;
  left: 50%;
  margin-top: -95px;
  margin-left: -200px;
  padding: 20px;
  width: 360px;
  background: #F6F6F3;

  p { margin: 0 0 5px; }
  form { margin-top: 10px; }
  input[type="text"] {
    margin-bottom: 10px;
    width: 100%;
  }
  button { margin-right: 10px; }
}

/* 预览 */
#wmd-preview {
  background: #FFF;
  padding: 10px 20px;
  word-wrap: break-word;
  img { max-width: 100%; }
  code, pre {
    padding: 2px 4px;
    background: #F3F3F0;
    font-size: .92857em;
  }
  pre {
    padding: 1em;
    code { padding: 0; }
  }
  blockquote {
    margin: 1em 1.5em;
    padding-left: 1.5em;
    border-left: 4px solid #E9E9E6;
    color: #777;
  }
  hr {
    margin: 2em auto;
    width: 100px;
    border: 1px solid #E9E9E6;
    border-width: 2px 0 0 0;
  }
  .summary {
    &:after {
      display: block;
      margin: 2em 0;
      border: 1px dashed #D9D9D6;
      border-width: 1px 0;
      color: #999;
      font-size: .85714em;
      text-align: center;
      content: "- more -";
    }
  }
}

/* 编辑器全屏 */
.fullscreen {
  #wmd-button-bar, #text, #wmd-preview, .submit {
    // position: fixed;
    position: absolute;
    top: 0;
    width: 50%;
    background: #FFF;
    z-index: 999;
    @include box-sizing(border-box);
  }
  #wmd-button-bar {
    left: 0;
    padding: 13px 20px;
    border-bottom: 1px solid #F3F3F0;
    z-index: 1000;
  }
  #text {
    top: 53px;
    left: 0;
    padding: 20px;
    border: none;
    outline: none;
    @include border-radius(0);
  }
  #wmd-preview {
    top: 53px;
    right: 0;
    padding: 5px 20px;
    border-left: 1px solid #F3F3F0;
    background: #F6F6F3;
    overflow: auto;
    code, pre {
      background: #F0F0EC;
    }
  }
  .submit {
    right: 0;
    margin: 0;
    padding: 10px 20px;
    border-bottom: 1px solid #F3F3F0;
  }
}