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

56 lines
928 B
SCSS
Raw Normal View History

.commentDates {
2023-11-13 14:43:08 +00:00
@include font-size(1.2rem);
color: var(--secondary-color);
2024-02-29 21:11:59 +00:00
align-self: center;
display: flex;
2024-02-29 14:33:17 +00:00
align-items: flex-start;
justify-content: flex-start;
flex-direction: column;
gap: .5rem;
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;
2024-02-29 14:33:17 +00:00
margin-bottom: .5rem;
.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-08-12 14:17:00 +00:00
.icon {
line-height: 1;
width: 1rem;
display: inline-block;
opacity: 0.6;
margin-right: 0.5rem;
vertical-align: middle;
}
}
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;
}