lbry-desktop/ui/scss/component/_comments.scss
2019-11-22 16:45:33 -05:00

51 lines
833 B
SCSS

.comments {
@extend .ul--no-style;
}
.comment {
display: flex;
flex-direction: column;
font-size: var(--font-small);
padding: var(--spacing-small) 0 var(--spacing-small);
&:first-of-type {
padding-top: 0;
}
&:not(:last-of-type) {
border-bottom: 1px solid var(--color-border);
}
}
.comment__meta {
text-overflow: ellipsis;
display: flex;
justify-content: space-between;
margin-bottom: var(--spacing-small);
time {
opacity: 0.3;
}
}
.comment__message {
white-space: pre-line;
}
.comment__author {
text-overflow: ellipsis; // This is where the magic happens
flex-basis: 400px;
flex-shrink: 1;
font-weight: var(--font-weight-bold);
}
.comment__time {
flex-basis: 200px;
text-align: right;
}
.comment__char-count {
align-self: flex-end;
font-size: var(--font-small);
}