highlight messages with mentions

This commit is contained in:
hippoz 2023-08-09 20:44:15 +03:00
parent b52a35a734
commit fd8aa70ee2
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED
2 changed files with 19 additions and 1 deletions

View file

@ -53,10 +53,26 @@
height: 40px;
}
.message:hover, .message.pinged {
.message:hover {
background-color: var(--background-color-3);
}
.message.pinged {
background-color: var(--purple-2-highlight);
}
.message.pinged::before {
content: "";
display: block;
position: absolute;
width: 3px;
border-radius: 2px;
top: 0;
left: 0;
bottom: 0;
background-color: var(--purple-2);
}
.message-content {
color: var(--foreground-color-2);
white-space: pre-wrap;

View file

@ -66,6 +66,8 @@
--yellow-2: hsl(50, 78%, 60%);
--red-2: hsl(2, 78%, 60%);
--purple-2-highlight: hsla(266, 62%, 58%, 0.1);
--space-unit: 1em;
--space-xxs: calc(0.25 * var(--space-unit));