webapp/src/components/Article/CommentDate/CommentDate.module.scss

57 lines
934 B
SCSS

.commentDates {
@include font-size(1.2rem);
color: var(--secondary-color);
// align-self: center;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-direction: column;
gap: .5rem;
flex: 1;
flex-wrap: wrap;
font-size: 1.2rem;
margin-bottom: .5rem;
.date {
font-weight: 500;
margin-right: 1rem;
position: relative;
.icon {
line-height: 1;
width: 1rem;
display: inline-block;
opacity: 0.6;
margin-right: 0.5rem;
vertical-align: middle;
}
}
&.showOnHover {
.text {
position: absolute;
left: 1.5rem;
top: 0.2rem;
opacity: 0;
white-space: nowrap;
transition: opacity 0.3s ease-in-out;
}
.icon {
cursor: pointer;
&:hover + .text {
opacity: 1;
left: 1.5rem;
}
}
}
}
.commentDatesLastInRow {
margin-right: 0;
white-space: nowrap;
}