2024-04-30 12:16:09 +02:00
|
|
|
@define-mixin fix-interaction $type {
|
2024-04-30 20:38:28 +02:00
|
|
|
.metabar__interactions .interaction--$(type) {
|
2023-11-23 17:07:49 +01:00
|
|
|
padding: var(--padding-tiny) var(--padding-small);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-07 19:33:56 +02:00
|
|
|
.metabar__interactions {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.metabar__interactions .comments_count {
|
|
|
|
background: 0;
|
|
|
|
border: 0;
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
|
2024-04-30 12:16:09 +02:00
|
|
|
@mixin if-phone {
|
2023-11-23 17:07:49 +01:00
|
|
|
.metabar__interactions {
|
|
|
|
display: grid;
|
|
|
|
width: 100%;
|
|
|
|
grid-template-columns: repeat(5, 1fr);
|
|
|
|
}
|
|
|
|
|
2024-04-30 20:38:28 +02:00
|
|
|
@mixin fix-interaction fave;
|
|
|
|
@mixin fix-interaction upvote;
|
|
|
|
@mixin fix-interaction downvote;
|
|
|
|
@mixin fix-interaction hide;
|
|
|
|
|
2023-11-23 17:07:49 +01:00
|
|
|
.metabar__interactions * {
|
|
|
|
align-self: center;
|
|
|
|
justify-self: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.metabar__mobile-separator {
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
margin-top: var(--padding-small);
|
|
|
|
margin-bottom: var(--padding-normal);
|
|
|
|
background: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.metabar__navigation {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
|
padding: var(--padding-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.metabar__navigation a {
|
|
|
|
align-self: center;
|
|
|
|
justify-self: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.metabar {
|
2024-04-30 12:16:09 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2023-11-23 17:07:49 +01:00
|
|
|
line-height: var(--block-header-height);
|
|
|
|
}
|
|
|
|
|
|
|
|
.metabar a,
|
|
|
|
.metabar .score {
|
|
|
|
padding: var(--padding-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.metabar__user-credit {
|
2024-05-07 19:33:56 +02:00
|
|
|
display: flex;
|
2023-11-23 17:07:49 +01:00
|
|
|
box-sizing: border-box;
|
2024-05-07 19:33:56 +02:00
|
|
|
gap: var(--padding-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.metabar__user-credit .image_uploader {
|
|
|
|
display: flex;
|
|
|
|
align-self: center;
|
|
|
|
align-items: center;
|
|
|
|
vertical-align: center;
|
|
|
|
gap: var(--padding-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* For some bizarre reason the icon appears to have
|
|
|
|
* comically large gap on desktop */
|
|
|
|
@mixin if-desktop {
|
|
|
|
.image_uploader > .username-with-icon {
|
|
|
|
gap: 0;
|
|
|
|
}
|
2023-11-23 17:07:49 +01:00
|
|
|
}
|
|
|
|
|
2024-04-30 20:38:28 +02:00
|
|
|
.metabar__mobile-info td {
|
|
|
|
padding: var(--padding-small);
|
2023-11-23 17:07:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.badges {
|
|
|
|
display: inline-block;
|
|
|
|
}
|