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

67 lines
1.1 KiB
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 {
2019-10-23 09:04:40 +02:00
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;
2019-10-23 09:04:40 +02:00
font-weight: 600;
font-size: medium;
}
.comment__time {
2019-10-23 09:04:40 +02:00
flex: 1;
align-self: flex-start;
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);
}