lbry-desktop/ui/scss/component/_comments.scss
2019-12-04 13:24:57 -05:00

63 lines
1.1 KiB
SCSS

.comments {
@extend .ul--no-style;
}
.comment {
font-size: var(--font-multiplier-small);
padding: var(--spacing-small) 0;
flex-direction: row;
display: flex;
&:not(:last-of-type) {
border-bottom: 1px solid var(--lbry-gray-1);
&:not(:last-of-type) {
border-bottom: 1px solid var(--color-border);
}
}
.comment__body_container {
padding: var(--spacing-small) 0;
display: inline-block;
width: 100%;
width: -moz-available;
width: -webkit-fill-available;
width: available;
}
.comment__meta {
display: flex;
flex-direction: row;
justify-content: flex-end;
text-overflow: ellipsis;
time {
opacity: 0.3;
}
}
.comment__message {
white-space: pre-line;
}
.comment__author {
margin-bottom: 1rem;
text-overflow: ellipsis; // This is where the magic happens
flex: 1;
flex-basis: 400px;
font-weight: 600;
}
.comment__author-thumbnail {
display: inline-block;
}
.comment__time {
flex-basis: 200px;
text-align: right;
justify-content: flex-end;
}
.comment__char-count {
align-self: flex-end;
font-size: var(--font-small);
}