// Styles for different forms in the system

form.answer-form {
  @include box-sizing(border-box);
  border-top: 1px solid #ddd;
  overflow: hidden;
  padding-left: flex-grid(1.1);
  padding-top: lh();

  p {
    margin-bottom: lh();
  }

  textarea {
    @include box-sizing(border-box);
    margin-top: 15px;
    resize: vertical;
    width: 99%;

    &#editor {
      min-height: em(120);
    }
  }

  div.checkbox {
    margin-bottom: lh();

    label {
      display: inline;
    }
  }

  div.form-item {
    margin: 15px 0;

    label {
      display: block;
      margin-bottom: -5px;
    }

    .title-desc {
      @include box-sizing(border-box);
      @include border-radius(4px);
      background: #333;
      color: #fff;
      display: none;
      font-size: 13px;
      padding: 7px 14px;
      -webkit-font-smoothing: antialiased;
    }

    &:hover  {
      .title-desc {
        display: inline-block;
        position: absolute;
        margin-left: 10px;
        z-index: 1;
        width: 200px;

        &:before {
          border-color: transparent #333 transparent transparent;
          border-style:solid;
          border-width:12px 12px 12px 0;
          content:"";
          height:0;
          left:-10px;
          position:absolute;
          top:1;
          width:0;

        }
      }
    }

  }

  span.form-error, label.form-error {
    color: #990000;
    display: inline-block;
    font-size: 90%;
    font-weight: bold;
    padding: 10px 0;
  }

  div.preview-toggle{
    padding: 15px 0;
    width: auto;
    a {
      @extend .light-button;
    }
  }

  .wmd-preview {
    margin: 3px 0 15px 0;
    padding: 10px;
    background-color: #F5F5F5;
    min-height: 20px;
    overflow: auto;
    font-size: 13px;
    font-family: Arial;

    p {
      margin-bottom: 14px;
      line-height: 1.4;
      font-size: 14px;
    }

    blockquote {
      margin-left: 2.5%;
      padding-left: 1.5%;
      border-left: 1px dashed #ddd;
      color: $pink;
    }

    ul, ol, pre {
      margin-left: 3%;
      margin-bottom: 20px;
    }


    pre {
      background-color: #eee;
    }

    blockquote {
      background-color: #eee;
    }
  }
}

input.after-editor {
  margin-bottom: 20px;
  margin-right: 10px;
}

form.question-form {
  @extend .answer-form;
  border: none;
  padding: 15px 0 0 0;

  input[type="text"] {
    @include box-sizing(border-box);
    width: flex-grid(6);
  }

  input[type="checkbox"] {
    margin-top: 10px;
  }

  input[value="Cancel"] {
    @extend .light-button;
    float: right;
  }

  div#question-list {
    background-color: rgba(255,255,255,0.95);
    @include box-sizing(border-box);
    margin-top: -15px;
    max-width: 505px;
    min-width: 300px;
    overflow: hidden;
    padding-left: 5px;
    position: absolute;
    width: 35%;
    z-index: 9999;

    h2 {
      text-transform: none;
      padding: 8px 0;
      border-bottom: 1px solid #eee;
      margin: 0;

      span {
        background: #eee;
        color: #555;
        padding: 2px 5px;
        @include border-radius(2px);
        margin-right: 5px;
      }
    }
  }
}


