misuzu/assets/less/comment.less

171 lines
2.9 KiB
Text

.comment {
margin: 10px;
&__reply-toggle {
display: none;
&:checked ~ .comment--reply {
display: block;
}
}
&--reply {
display: none;
}
&--deleted > &__container {
opacity: .5;
transition: opacity .2s;
&:hover {
opacity: .9;
}
}
&__container {
display: flex;
margin-bottom: 3px;
}
&__mention {
color: var(--user-colour);
text-decoration: none;
font-weight: 700;
&:hover {
text-decoration: underline;
}
}
&__actions {
list-style: none;
display: flex;
font-size: .9em;
align-items: center;
}
&__action {
color: inherit;
text-decoration: none;
vertical-align: middle;
cursor: pointer;
&:not(:last-child) {
margin-right: 6px;
}
&--link:hover {
text-decoration: underline;
}
&--post {
margin-left: auto;
}
&--button {
cursor: pointer;
font: 12px/20px @mio-font-regular;
padding: 0 10px;
}
&--hide {
opacity: 0;
transition: opacity .2s;
}
&--voted {
font-weight: 700;
}
&__checkbox {
vertical-align: text-top;
margin-right: 2px;
}
}
&__replies {
&--indent {
&-1, &-2, &-3, &-4, &-5 {
margin-left: 20px;
}
}
.comment__avatar {
width: 40px;
height: 40px;
}
}
&__avatar {
flex: 0 0 auto;
height: 50px;
width: 50px;
margin-right: 5px;
}
&__content {
flex: 1 1 auto;
display: flex;
flex-direction: column;
overflow: hidden;
word-wrap: break-word;
padding-left: 5px;
&:hover {
.comment__action--hide {
opacity: 1;
}
}
}
&__info {
display: inline-flex;
}
&__text {
margin-right: 2px;
&--input {
min-width: 100%;
max-width: 100%;
min-height: 50px;
font: 12px/20px @mio-font-regular;
margin-right: 1px;
}
}
&__user {
color: var(--user-colour);
text-decoration: none;
&--link:hover {
text-decoration: underline;
}
}
&__date,
&__pin {
color: #666;
font-size: .9em;
margin-left: 8px;
}
&__link {
color: #666;
display: inline-flex;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
&__pin {
&:before {
content: "-";
padding-right: 4px;
}
margin-left: 4px;
}
}