_edit.scss 1.73 KB
/**
 * Created by chenglong.wang@yoho.cn on 2014/1/30.
 */

.has-comment{
  margin: 10px 15px 20px 15px;
  background: #f5f5f5;
  min-height: 80px;
  padding-bottom: 10px;
  .has-user{
    margin-left: 15px;
    margin-top: 12px;
    width: 56px;
    height: 56px;
    float: left;
    display: block;
    @include border-radius(28px);
    overflow: hidden;
    img{
      width: 100%;
      height: 100%;
      display: block;
      overflow: hidden;
    }
  }
  .has-comment-info{
    overflow: hidden;
    @include box-sizing();
    padding: 0 12px;

    >h2{
      font-size: 1.8rem;
      font-weight: bold;
      margin-top: 12px;
    }
    .edit-intrduce{
      color: #666;
      line-height: 18px;
      position: relative;
      font-size: 1.4rem;
      margin-top: 8px;
      .line-btn{
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        bottom: 2px;
        &:after{
          content: '';
          width: 12px;
          height: 10px;
          background: inline_image('base64/more.png') center center no-repeat;
          @include background-size(100%);
          display: inline-block;
          position: absolute;
          right: 0;
          bottom: 0;
        }
      }
      .line-btn.edit-active{
        &:after{
          background: inline_image('base64/more-active.png') center center no-repeat;
        }
      }
    }

    >span{
      margin-top: 5px;
      display: block;
      position: relative;
      height: 30px;
      line-height: 25px;
      text-indent: 40px;
      &:after{
        content: '';
        @include retina-sprite($icons,edit-comment,0,true);
      }
      font-size: 1.4rem;
    }
  }
}