Vulcan/client/sass/modules/_comments.scss

74 lines
1.1 KiB
SCSS
Raw Normal View History

2012-08-25 11:20:17 +09:00
.comment{
2012-08-31 18:58:12 +09:00
margin-left:30px;
2012-08-25 11:20:17 +09:00
}
.comment-content{
position:relative;
@extend .grid-block;
font-size:14px;
}
.comment-meta{
margin-bottom:5px;
.comment-username, .comment-time, .comment-permalink{
display:inline-block;
margin-right:4px;
}
color:$light-text;
.comment-permalink{
position:relative;
@include hide-text;
width:20px;
color:$light-text;
&:before{
position:absolute;
display:block;
top:1px;
left:0;
text-indent:0;
}
&:hover:before{
color:$red;
}
}
}
.comment-actions{
position:absolute;
2012-08-31 18:58:12 +09:00
left:-30px;
2012-08-25 11:20:17 +09:00
top:0px;
a{
position:relative;
display:block;
height:30px;
width:30px;
2012-08-31 18:58:12 +09:00
background:$light-blue;
@include box-shadow(0 1px 1px black(0.15));
2012-08-25 11:20:17 +09:00
overflow:hidden;
@include hide-text;
&.upvote{
2012-08-31 18:58:12 +09:00
margin-bottom:1px;
2012-08-25 11:20:17 +09:00
}
2012-08-31 18:58:12 +09:00
i{
font-size:12px;
2012-08-25 11:20:17 +09:00
display:block;
position:absolute;
height:30px;
width:30px;
line-height:30px;
text-align:center;
text-indent:0;
2012-08-31 18:58:12 +09:00
color:$light-blue2;
2012-08-25 11:20:17 +09:00
}
&:hover{
2012-08-31 18:58:12 +09:00
background:$highlight-color;
i{
color:white;
2012-08-25 11:20:17 +09:00
}
}
}
}
.comment-new{
@extend .grid-block;
2012-08-31 18:58:12 +09:00
@include cf;
.comment-field{
margin-bottom:$grid-margin;
}
2012-08-25 11:20:17 +09:00
}