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

43 lines
670 B
SCSS
Raw Normal View History

.commentDates {
2023-11-13 14:43:08 +00:00
@include font-size(1.2rem);
color: var(--secondary-color);
display: flex;
2024-04-30 15:58:27 +00:00
justify-content: center;
2024-02-29 14:33:17 +00:00
flex-direction: column;
2023-08-12 14:17:00 +00:00
flex: 1;
2023-10-16 22:13:13 +00:00
flex-wrap: wrap;
2023-08-12 14:17:00 +00:00
font-size: 1.2rem;
.date {
2023-08-12 14:17:00 +00:00
font-weight: 500;
2023-10-16 22:13:13 +00:00
margin-right: 1rem;
2023-11-13 14:43:08 +00:00
position: relative;
}
2023-11-13 14:43:08 +00:00
&.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;
}