taiga-front/app/styles/modules/comments.scss

85 lines
1.7 KiB
SCSS

.add-comment {
@include clearfix;
textarea {
@include transition(height .3s ease-in);
&:focus {
@include transition(height .3s ease-in);
height: 150px;
+a {
display: inline-block;
}
}
}
a {
color: $white;
display: none;
float: right;
}
}
.comment-single {
@include table-flex;
border-bottom: 2px solid $gray-light;
padding: 1rem 0;
position: relative;
&:hover {
.delete-comment {
opacity: 1;
@include transition(opacity .2s linear);
}
}
&:first-child {
margin-top: 0;
}
.username {
color: $green-taiga;
display: block;
margin-bottom: 1rem;
}
.comment-user {
@include table-flex-child(1, 50px, 0);
img {
max-width: 70px;
width: 100%;
}
}
.comment-content {
@include table-flex-child(20, 150px, 0);
}
.us-activity {
background: $whitish;
.activity-inner {
display: none;
}
}
.date {
@extend %small;
color: $gray-light;
}
.delete-comment {
@include transition(all .2s linear);
bottom: 2rem;
color: $grayer;
opacity: 0;
position: absolute;
right: 1.5rem;
&:hover {
@include transition(color .2s linear);
color: $red;
}
}
}
.more-comments {
@extend %small;
border-bottom: 1px solid $gray-light;
color: $gray-light;
display: block;
padding: 1rem;
.prev-comments-num {
color: $green-taiga;
margin-left: .5rem;
}
}