_edit.scss
1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* 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;
}
}
}