lbry-desktop/ui/scss/component/_comments.scss

51 lines
833 B
SCSS
Raw Normal View History

2019-06-27 01:59:27 +02:00
.comments {
2019-07-21 23:31:22 +02:00
@extend .ul--no-style;
2019-06-27 01:59:27 +02:00
}
2019-05-22 20:59:46 +02:00
2019-06-27 01:59:27 +02:00
.comment {
2019-07-23 10:05:51 +02:00
display: flex;
flex-direction: column;
2019-11-22 22:13:00 +01:00
font-size: var(--font-small);
2019-11-14 21:02:15 +01:00
padding: var(--spacing-small) 0 var(--spacing-small);
&:first-of-type {
padding-top: 0;
}
2019-05-21 23:15:37 +02:00
&:not(:last-of-type) {
2019-11-22 22:13:00 +01:00
border-bottom: 1px solid var(--color-border);
2019-05-22 20:59:46 +02:00
}
}
.comment__meta {
text-overflow: ellipsis;
display: flex;
justify-content: space-between;
2019-11-14 21:02:15 +01:00
margin-bottom: var(--spacing-small);
2019-07-23 10:05:51 +02:00
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;
2019-11-07 20:39:22 +01:00
font-weight: var(--font-weight-bold);
}
.comment__time {
flex-basis: 200px;
text-align: right;
2019-05-21 23:15:37 +02:00
}
.comment__char-count {
align-self: flex-end;
2019-11-22 22:13:00 +01:00
font-size: var(--font-small);
}