2024-04-30 12:16:09 +02:00
|
|
|
@define-mixin interaction-type $type {
|
|
|
|
.interaction--$(type) {
|
2023-11-23 17:07:49 +01:00
|
|
|
position: relative;
|
2024-04-30 12:16:09 +02:00
|
|
|
color: var(--$(type)-color) !important;
|
2023-11-23 17:07:49 +01:00
|
|
|
padding: 0 var(--padding-tiny);
|
|
|
|
width: 1rem;
|
|
|
|
|
|
|
|
&.active, &:hover {
|
|
|
|
color: var(--text-color) !important;
|
2024-04-30 12:16:09 +02:00
|
|
|
background-color: var(--$(type)-color);
|
2023-11-23 17:07:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-30 12:16:09 +02:00
|
|
|
@mixin interaction-type fave;
|
|
|
|
@mixin interaction-type upvote;
|
|
|
|
@mixin interaction-type downvote;
|
|
|
|
@mixin interaction-type comment;
|
|
|
|
@mixin interaction-type hide;
|
2023-11-23 17:07:49 +01:00
|
|
|
|
|
|
|
.comments_count {
|
|
|
|
position: absolute;
|
|
|
|
background: var(--background-color);
|
|
|
|
border: var(--number-badge-border) solid var(--background-color);
|
|
|
|
border-radius: 100%;
|
|
|
|
padding: var(--number-badge-padding);
|
|
|
|
line-height: var(--number-badge-size);
|
|
|
|
min-width: var(--number-badge-size);
|
|
|
|
top: var(--number-badge-lower-offset);
|
|
|
|
}
|
|
|
|
|
|
|
|
.interaction--comment:hover > .comments_count {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|