@import "symbols";




.panel-topic-detail {
  padding:10px;

  .topic-meta {
    border-bottom: 1px solid $gray-body-background;
    padding-bottom: 10px;
    margin-bottom: 15px;
    
    .topic-author-avatar{
      float: left;
      width: 48px;
      height: 48px;
      display: block;
      margin-right: 10px;
      margin-top: 8px;
      border-radius: 3px;
    }
    
    h1 {
      font-size: 22px;
      font-weight: 700;
      margin: 8px 0 3px 0;
      display: inline-block;
      vertical-align: bottom;
      width: 75%;
      line-height: 130%;
    }
    
    .meta-item{
      &:before{
        content: "•";
      }

      font-size: 12px;
      color: #838383;
      display: inline-block;
      margin-right: 5px;
    }
  }
  
  .topic-content{
    padding: 5px;
    max-width: 100%;
    min-height: 120px;

    @include article_content
  }

}


.panel-topic-replies{
  .panel-body {
    padding: 5px 10px 10px 5px;
  }
  
  
  .reply-item{
    &:first-child{
      border-top:none;
    }
    
    min-height: 60px;
    border-top: 1px solid $gray-body-background;
    padding: 10px 5px;
    overflow: hidden;
    
    
    .reply-author{
      float: left;
      width: 80px;
      margin-right:5px;
      position: relative;
      text-align: center;
      vertical-align: middle;
      word-break: break-all;
      
      font-weight: bold;
      color: $gray-light;
      
      .avatar{
        width: 48px;
        height: 48px;
        border-radius: 3px;
      }
      
      .username{
        margin-top:5px;
      }

      .imported-from-wechat-mark{
        display: block;
        width: 24px;
        height: 24px;
        background: url(/assets/wechat-logo.png);
        position: absolute;
        right: 8px;
        top: 33px;
        background-size: 24px;
      }
    }
    
    .reply-content{
      float: left;
      width: calc(100% - 86px);
      overflow: hidden;
      
      .reply-content-related{
        color: $brand-lightest;
        font-size: 12px;
        margin-top: 15px;
      }

      @include article_content
    }
  }
}

.panel-topic-create-reply  {  
  .tab-content{
    border: 1px solid $nav-tabs-border-color;
    border-top: none;
  }
  
  #content-editor {
    border: none;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(27,31,35,0.075);
    background-color: #fdfdfd;  // $gray-content-hover;


    outline: none;
    
    margin: 10px;
    padding: 10px;

    width: calc(100% - 20px);
    min-width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    
    height: 100px;
    min-height: 100px;
    max-height: 400px;
  }
  
  #preview{
    padding: 10px;
    min-height: 120px;

    @include article_content
  }
  
  #submit-create{
    margin-top:10px; 
  }
}

