Vulcan/client/sass/modules/_comments.scss

105 lines
1.7 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;
@include border-radius(0 3px 3px 3px);
2012-08-25 11:20:17 +09:00
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;
margin:0;
2012-08-25 11:20:17 +09:00
&: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{
@include border-radius(0 0 0 3px);
2012-08-25 11:20:17 +09:00
position:relative;
display:block;
height:30px;
width:30px;
// background:$light-blue;
background:white;
2012-08-31 18:58:12 +09:00
@include box-shadow(0 1px 1px black(0.15));
2012-08-25 11:20:17 +09:00
overflow:hidden;
@include hide-text;
// border-right:1px solid $lightest-grey;
2012-08-25 11:20:17 +09:00
&.upvote{
@include border-radius(3px 0 0 0);
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;
// color:$light-blue2;
color:$red;
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-09-08 12:11:26 +09:00
@extend .cf;
2012-08-31 18:58:12 +09:00
.comment-field{
margin-bottom:$grid-margin;
}
2012-09-08 12:11:26 +09:00
.comment-submit{
@extend .cf;
}
.comment-page &{
margin-left:30px;
position: relative;
background: #ffffff;
&:after {
bottom: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #ffffff;
border-width: 8px;
left: 20px;
margin-left: -8px;
}
}
2012-09-08 12:17:56 +09:00
}
2012-09-09 11:00:53 +09:00
// abcdefgh