mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
93 lines
1.7 KiB
CSS
93 lines
1.7 KiB
CSS
@define-mixin fix-interaction $type {
|
|
.metabar__interactions .interaction--$(type) {
|
|
padding: var(--padding-tiny) var(--padding-small);
|
|
}
|
|
}
|
|
|
|
.metabar__interactions {
|
|
display: block;
|
|
}
|
|
|
|
.metabar__interactions .comments_count {
|
|
background: 0;
|
|
border: 0;
|
|
position: static;
|
|
}
|
|
|
|
@mixin if-phone {
|
|
.metabar__interactions {
|
|
display: grid;
|
|
width: 100%;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
}
|
|
|
|
@mixin fix-interaction fave;
|
|
@mixin fix-interaction upvote;
|
|
@mixin fix-interaction downvote;
|
|
@mixin fix-interaction hide;
|
|
|
|
.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 {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: var(--block-header-height);
|
|
}
|
|
|
|
.metabar a,
|
|
.metabar .score {
|
|
padding: var(--padding-small);
|
|
}
|
|
|
|
.metabar__user-credit {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: var(--padding-small);
|
|
}
|
|
|
|
.metabar__user-credit .image_uploader {
|
|
display: flex;
|
|
align-items: 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;
|
|
}
|
|
}
|
|
|
|
.metabar__mobile-info td {
|
|
padding: var(--padding-small);
|
|
}
|
|
|
|
.badges {
|
|
display: inline-block;
|
|
}
|