style for mentions
All checks were successful
/ weblog.lol (push) Successful in 9s

This commit is contained in:
Gordon Pedersen 2024-05-23 11:40:15 +10:00
parent ed6ab30dde
commit f5ad3727d2

View file

@ -312,7 +312,7 @@ footer p {
text-align: center; text-align: center;
} }
.tag { .tag, .mention {
background: var(--accent); background: var(--accent);
color: var(--background); color: var(--background);
padding: .3em .4em; padding: .3em .4em;
@ -334,6 +334,31 @@ h2 .tag {
color: white; color: white;
} }
.mention {
font-family: var(--font-main);
font-weight: var(--font-main-weight);
position: relative;
margin-left: 1.6em;
}
.mention::before {
content: '📢';
position: absolute;
margin-left: -2em;
}
.mention::after {
content: '';
position: absolute;
left: -0.35em;
top: calc(50% - 0.4em);
width: 0;
height: 0;
border: 0.4em solid transparent;
border-right-color: var(--accent);
border-left: 0;
}
hr { hr {
border: 0; border: 0;
height: 1px; height: 1px;