//
// Comments
// --------------------------------------------------
#comments {
  margin-top: 2*@grid-gutter-width;
  margin-bottom: @grid-gutter-width;
}

.comments-title {
  .main-content-header();
  font-size: 18px;
  text-transform: uppercase;
  color: #111;
  margin: 0;

  span {
    color: @link-hover-color;
  }
}

.comment-list {
  list-style: none;
  padding: 30px @grid-gutter-width 0;

  .comment-body {
    margin-bottom: 2*@grid-gutter-width;
    border: 1px solid #e5e5e5;
    position: relative;

    @media (min-width: @screen-sm) {
      margin-left: 75px;

      &:before,
      &:after {
        content: "";
        border-top: 6px solid transparent;
        border-bottom: 6px dashed transparent;
        border-right: 6px solid #e5e5e5;
        position: absolute;
        left: -7px;
        top: 13px;
      }

      &:after {
        border-right-color: #fff; 
        left: -5px;
      }
    }

    @media (max-width: @screen-xs-max) {
      margin-top: 75px;
    }
  }

  .comment-meta {
    border-bottom: 1px solid #e5e5e5;
    padding: 7px 0 7px 20px;
    overflow: hidden;
    line-height: 25px;
  }

  .avatar {
    position: absolute;
    left: -75px;
    top: 0;
    @media (max-width: @screen-xs-max) {
      border: 1px solid #e5e5e5;
      border-bottom: none;
      top: -60px;
      left: -1px;
    }
  }

  .comment-author,
  .comment-metadata {
    float: left;
  }

  .fn {
    font-weight: bold;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 1px solid #e5e5e5;
    font-family: @font-family-sans-serif-1;
    font-size: 15px;
    color: #111;

    @media (max-width: @screen-xs-max) {
      position: absolute;
      top: -45px;
      left: 70px;
      border-right: none;
    }
  }

  .comment-datetime {
    line-height: 28px;
    i {
      font-size: 14px;
    }

    @media(max-width: (@screen-xs - 1px) ) { 
      span {
        display: none;
      }
    }
  }

  .edit-link {
    margin-left: 10px;
    @media (max-width: @screen-xs-max) {
      position: absolute;
      top: -45px;
      right: 0;
    }
  }

  .reply a {
    background: #F5F5F5;
    display: block;
    float: right;
    margin: -8px 0 -8px 0;
    padding: 10px 20px;
    border-left: 1px solid #e5e5e5;
    font-family: @font-family-sans-serif-1;
  }

  .comment-content {
    padding: 20px 20px 10px;
  }

  .comment-awaiting-moderation {
    font-weight: bold;
  }

  .children {
    list-style: none;
    padding-left: 0;
  }
  @media(min-width: @screen-sm){
    .comment-depth(10); 
  }
}

// comment respond
.comment-reply-title {
  .comments-title();
}

.comment-form {
  padding: @grid-gutter-width @grid-gutter-width 0;

  .comment-form-author,
  .comment-form-email,
  .comment-form-url,
  .comment-form-comment {
    label {
      color: #333;
    }
  }
  .required {
    color: @brand-danger;
  }

  textarea {
    width: 100%;
    resize: vertical;
    max-width: 100%;
    min-width: 100%;
    min-height: 178px;
  }

  .form-submit {
    text-align: right;
  }

  #submit {
    .btn();
    .btn-primary();
    height: 35px;
  }

  .col-sm-8 {
    .logged-in & { 
      width: 100%;
    }
  }
}

.comment {
  .comment-form {
    padding: 30px 0;
  }

  .comment-reply-title {
    border-width: 1px;
  }

  .comment-reply-title {
    position: relative;

    small {
      float: right;
      line-height: 24px;
    }
  }
}


.comment-navigation {
  padding: 5px 20px;

  h1 {
    font-size: 20px;
    margin-top: 0;
  }
}