57 lines
984 B
SCSS
57 lines
984 B
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;
|
|
}
|
|
|
|
.comment__meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
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-basis: 400px;
|
|
flex-shrink: 1;
|
|
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);
|
|
}
|