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;
|
2024-04-30 20:38:28 +02:00
|
|
|
}
|
2023-11-23 17:07:49 +01:00
|
|
|
|
2024-04-30 20:38:28 +02:00
|
|
|
.interaction--$(type).active, .interaction--$(type):hover {
|
|
|
|
color: var(--text-color) !important;
|
|
|
|
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
|
|
|
|
2024-05-20 21:25:43 +02:00
|
|
|
.comments-count {
|
2023-11-23 17:07:49 +01:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2024-05-20 21:25:43 +02:00
|
|
|
.interaction--comment:hover > .comments-count {
|
2023-11-23 17:07:49 +01:00
|
|
|
visibility: hidden;
|
|
|
|
}
|