philomena/assets/css/elements/interaction.css

35 lines
879 B
CSS
Raw Normal View History

@define-mixin interaction-type $type {
.interaction--$(type) {
2023-11-23 17:07:49 +01:00
position: relative;
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;
background-color: var(--$(type)-color);
2023-11-23 17:07:49 +01: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;
}