Featured Comment Styles

This commit is contained in:
Belen Curcio
2017-07-05 12:28:09 -03:00
parent f9bece468f
commit 2a9535f88a
2 changed files with 29 additions and 7 deletions
@@ -7,20 +7,20 @@ import {Icon} from 'plugin-api/beta/client/components/ui';
const FeaturedComment = ({comment}) => {
return (
<div className={cn(`${name}__featured-comment`, styles.featuredComment)}>
<p className={cn(`${name}__featured-comment__comment-body`)}>
<div className={cn(styles.featuredComment, `${name}__featured-comment`)}>
<p className={cn(styles.body, `${name}__featured-comment__comment-body`)}>
"{comment.body}"
</p>
<footer>
<div>
<strong className={cn(`${name}__featured-comment__username`, styles.username)}>
<strong className={cn(styles.username, `${name}__featured-comment__username`)}>
{comment.user.username}
</strong>
<span className={cn(`${name}__featured-comment__timeago`, styles.timeago)}>
<span className={cn(styles.timeago, `${name}__featured-comment__timeago`)}>
,{' '}{timeago(comment.created_at)}
</span>
</div>
<a className={cn(`${name}__featured-comment__go-to`, styles.goTo)}>
<a className={cn(styles.goTo, `${name}__featured-comment__go-to`)}>
Go to conversation<Icon name="keyboard_arrow_right" />
</a>
</footer>
@@ -35,9 +35,31 @@
.featuredComments {
padding: 20px;
background-color: #f9f9f9;
margin: 10px 0 30px;
}
.featuredComment {
margin: 10px 0 35px;
}
.featuredComment:last-child {
margin: 10px 0;
}
.featuredComments .goTo {
color: #2d3fb9;
.featuredComment .goTo {
color: #1d5294;
font-size: 13px;
padding: 5px 0;
display: inline-block;
}
.featuredComment .goTo:hover {
cursor: pointer;
text-decoration: underline;
}
.featuredComment .body {
line-height: 20px;
text-align: left;
letter-spacing: 0.1px;
}