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

53 lines
890 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
margin-top: var(--spacing-large);
}
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;
padding: 0;
font-size: var(--font-multiplier-small);
padding: var(--spacing-small) 0;
2019-05-21 23:15:37 +02:00
&:not(:last-of-type) {
2019-05-22 20:59:46 +02:00
border-bottom: 1px solid var(--lbry-gray-1);
[data-mode='dark'] & {
border-color: rgba($lbry-gray-5, 0.2);
}
}
}
.comment__meta {
text-overflow: ellipsis;
display: flex;
justify-content: space-between;
2019-07-23 10:05:51 +02:00
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;
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-10-01 00:08:16 +02:00
font-size: var(--font-label);
}