// Styles for the single question view

div.question-header {
  @include clearfix();

  div.official-stamp {
    background: $pink;
    color: #fff;
    font-size: 12px;
    margin-left: -1px;
    margin-top: 10px;
    padding: 2px 5px;
    text-align: center;
  }

  div.vote-buttons {
    display: inline-block;
    float: left;
    margin-right: flex-gutter(9);
    width: flex-grid(0.7,9);

    ul {
      padding: 0;
      margin: 0;

      li {
        background-repeat: no-repeat;
        color: #999;
        font-size: em(20);
        font-weight: bold;
        list-style: none;
        text-align: center;

        &.question-img-upvote, &.answer-img-upvote  {
          background-image: url(../images/askbot/vote-arrow-up.png);
          background-position: center 0;
          cursor: pointer;
          height: 12px;
          margin-bottom: lh(.5);

          &:hover, &.on {
            background-image: url(../images/askbot/vote-arrow-up.png);
            background-position: center -22px;
          }
        }

        &.question-img-downvote, &.answer-img-downvote  {
          cursor: pointer;
          background-image: url(../images/askbot/vote-arrow-down.png);
          background-position: center 0;
          height: 12px;
          margin-top: lh(.5);

          &:hover, &.on {
            background-image: url(../images/askbot/vote-arrow-down.png);
            background-position: center -22px;
          }
        }
      }
    }
  }

  div.question-container {
    display: inline-block;
    float: left;
    width: flex-grid(8.3,9);

    h1 {
      margin-top: 0;
      font-weight: 100;
      line-height: 1.1em;

      a {
        font-weight: 100;
        line-height: 1.1em;
      }
    }

    div.meta-bar {
      border-bottom: 1px solid #eee;
      display: block;
      margin: lh(.5) 0 lh();
      overflow: hidden;
      padding: 5px 0 10px;

      div.tag-list {
        display: inline-block;
        float:left;
        width: flex-grid(4,8);
        margin-right: flex-gutter(8);
      }

      div.question-actions {
        display: inline-block;
        float:left;
        text-align: right;
        width: flex-grid(4,8);

        a {
          @extend a:link;
          cursor: pointer;
        }

        span.sep {
          color: #ccc;
        }
      }
    }

    div.question-content {
      overflow: hidden;

      div.question-body {
        display: inline-block;
        float: left;
        margin-right: flex-gutter(8);
        width: flex-grid(6.2,8);

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

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


      div.post-update-container {
        display: inline-block;
        float: left;
        width: 20%;
        border-left: 1px dashed #ddd;

        a {
          border-bottom: none;
          font-style: normal;
        }

        div.post-update-info {
          @include box-sizing(border-box);
          padding: 10px;
          margin-bottom: 10px;

          &:last-child {
            margin-bottom: 0;
          }

          &.revision {
            text-align: center;
            // background:lighten($cream, 7%);

            a {
              color: black;
            }
          }

          div.change-date {
            font-size: em(14);
            margin-bottom: 2px;
          }

          div.user-meta {
            display: inline-block;

            span.username {
              font-size: 20px;
              margin-right: 5px;
            }

            span.user-badges {
            }
          }
        }
      }
    }

    div.comments-container {
      @include box-sizing(border-box);
      display: inline-block;
      padding: 0 0 3% 0;
      width: 100%;
      margin-top: lh(2);

      div.comments-content {
        border-top: 1px solid lighten($border-color, 10%);

        .block {
          border-top: 1px solid lighten($border-color, 10%);
          padding: 15px;
          display: block;

          &:first-child {
            border-top: 0;
          }

          &.official {
            padding-top: 10px;

            span.official-comment {
              background: $pink;
              color: #fff;
              display: block;
              font-size: em(12);
              margin: 0 0 10px -5%;
              padding:2px 5px 2px 5%;
              text-align: left;
              width:100px;
            }
          }
        }

        form.post-comments {
          padding: 15px;

          button:first-of-type {
            @extend .blue-button;
          }

           button:last-child {
            margin-left: 10px;
            float: right;
          }
        }

        div.comment {
          &:first-child {
            border-top: 0;
          }

          &:last-child {
            margin-bottom: 20px;
          }

          aside.comment-controls {
            background: none;
            border: none;
            @include box-shadow(none);
            display: inline-block;
            padding:0 2% 0 0;
            text-align: center;
            width: 5%;

            div {
              background: none;
              opacity: 0.6;

              &:hover {
                opacity: 1;
              }
            }

            div.comment-votes {
                width: 16px;

              a.upvote {
                background: url(../images/askbot/comment-vote-up.png) no-repeat 2px;
                cursor: pointer;
                color: green;
                display: block;
                margin-bottom: 6px;
                margin-top: 5px;
                overflow: hidden;
                text-decoration: none;
                text-indent: -9999px; 
                width: 20px;
              }

              a.upvoted {
                @include border-radius(3px);
                background: #D1E3A8;
                color: green;
                font-weight: bold;
                margin-top: 10px;
                padding: 2px;
                text-indent: 0px;
              }
            }

            hr {
              margin: 0;
            }

            div.comment-delete {
              @extend a:link;
              cursor: pointer;
            }

            div.comment-edit {
              @include transform(rotate(50deg));
              cursor: pointer;

              a.edit-icon {
                color: #555;
                text-decoration: none;
              }
            }
          }

          div.comment-body {
            display: inline-block;
            width: 95%;

            &#full-width {
              width: 100%;
            }

            div.comment-meta {
              text-align: right;
              margin-top: lh(.5);

              a.author {
                font-weight: bold;
              }

              a.edit {
                padding: 2px 10px;
              }
            }
          }
        }
      }

      #edit-comment-form {
        margin: 10px 0;
        min-height: 100px;
        width: 99%;
        resize: vertical;
      }
      .counter {
        color: #888;
        display: none;
        float: right;
        margin-top: 5px;
        text-align: right;
      }

      div.controls {
        text-align: right;

        a {
          display: inline-block;
          margin: 10px 10px 10px 0;
        }
      }
    }
  }
}

div.question-status {
  background: $pink;
  clear:both;
  color: #fff;
  display: block;
  padding: 10px 0 10px 7.5%;

  h3 {
  font-weight: normal;
  }

  a {
    color: #eee;
  }
}

div.share-question {
  padding: 10px 0 10px 7.5%;

  p {
    padding: 0;
    margin: 0;
  }
}
