Voters list style fixes
This commit is contained in:
parent
919c9ff7ea
commit
c459db5813
|
@ -1,6 +1,5 @@
|
||||||
.navigationHeader {
|
.navigationHeader {
|
||||||
@include font-size(1.8rem);
|
@include font-size(1.8rem);
|
||||||
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-top: 1.1em;
|
margin-top: 1.1em;
|
||||||
}
|
}
|
||||||
|
@ -8,12 +7,25 @@
|
||||||
.navigation {
|
.navigation {
|
||||||
@include font-size(1.4rem);
|
@include font-size(1.4rem);
|
||||||
|
|
||||||
|
@include media-breakpoint-down(md) {
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-right: 2.4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
border-bottom: 2px solid;
|
||||||
color: var(--default-color-invert);
|
|
||||||
background: var(--background-color-invert);
|
|
||||||
cursor: inherit;
|
cursor: inherit;
|
||||||
|
font-weight: bold;
|
||||||
|
pointer-events: none;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
|
|
||||||
&.bordered {
|
&.bordered {
|
||||||
@include font-size(1.6rem);
|
@include font-size(1.6rem);
|
||||||
|
|
||||||
border: 2px solid #000;
|
border: 2px solid #000;
|
||||||
padding: 2.4rem;
|
padding: 2.4rem;
|
||||||
|
|
||||||
|
@ -46,7 +45,6 @@
|
||||||
|
|
||||||
&.tiny {
|
&.tiny {
|
||||||
@include font-size(1.4rem);
|
@include font-size(1.4rem);
|
||||||
|
|
||||||
box-shadow: 0 4px 60px rgb(0 0 0 / 10%);
|
box-shadow: 0 4px 60px rgb(0 0 0 / 10%);
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|
||||||
|
@ -60,8 +58,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.horizontalAnchorCenter {
|
&.horizontalAnchorCenter {
|
||||||
left: 50%;
|
left: -24px;
|
||||||
transform: translateX(-50%);
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.horizontalAnchorRight {
|
&.horizontalAnchorRight {
|
||||||
|
|
|
@ -17,14 +17,18 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-right: 1.2rem;
|
margin-right: 1.2rem;
|
||||||
|
|
||||||
a {
|
a:link {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #000;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.userpic {
|
.userpic {
|
||||||
width: 24px;
|
margin-right: 0.8rem;
|
||||||
height: 24px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,11 @@ export const VotersList = (props: Props) => {
|
||||||
{(reaction) => (
|
{(reaction) => (
|
||||||
<li class={styles.item}>
|
<li class={styles.item}>
|
||||||
<div class={styles.user}>
|
<div class={styles.user}>
|
||||||
<Userpic name={reaction.createdBy.name} userpic={reaction.createdBy.userpic} />
|
<Userpic
|
||||||
|
name={reaction.createdBy.name}
|
||||||
|
userpic={reaction.createdBy.userpic}
|
||||||
|
class={styles.userpic}
|
||||||
|
/>
|
||||||
<a href={`/author/${reaction.createdBy.slug}`}>{reaction.createdBy.name || ''}</a>
|
<a href={`/author/${reaction.createdBy.slug}`}>{reaction.createdBy.name || ''}</a>
|
||||||
</div>
|
</div>
|
||||||
{reaction.kind === ReactionKind.Like ? (
|
{reaction.kind === ReactionKind.Like ? (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user