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

67 lines
1.1 KiB
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 {
display: inherit;
justify-content: left;
vertical-align: center;
flex: initial;
padding-bottom: inherit;
}
.comment__author-thumbnail {
flex-shrink: 1;
}
.comment__author-name {
margin-bottom: 1rem;
text-overflow: ellipsis; // This is where the magic happens
flex-basis: 400px;
flex-shrink: 1;
font-weight: 600;
font-size: medium;
}
.comment__time {
flex: 1;
align-self: flex-start;
flex-basis: 200px;
text-align: right;
}
.comment__char-count {
align-self: flex-end;
font-size: var(--font-small);
}