less css repetition

This commit is contained in:
Ben Wheeler 2018-12-18 10:48:03 -05:00
parent edec88f0ab
commit 5d96a6293a

View file

@ -24,30 +24,10 @@
}
}
.mod-username {
display: inline;
padding-right: 2rem;
font-size: .875rem;
&:before {
display: inline-block;
margin-right: .5rem;
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
width: 1.5rem;
height: 1.5rem;
vertical-align: -.35rem;
content: "";
opacity: .5;
background-image: url("/svgs/project/username.svg");
}
}
.mod-date,
.mod-sprites,
.mod-scripts {
.mod-scripts,
.mod-username {
display: inline;
padding-right: 2rem;
@ -89,3 +69,11 @@
background-image: url("/svgs/project/block-count.svg");
}
}
.mod-username {
&:before {
opacity: .5;
background-image: url("/svgs/project/username.svg");
}
}