Mercurial Hosting > chat
diff src/chat.css @ 53:9298b04607ae
add unread
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 03 Mar 2025 19:39:30 -0700 |
parents | 7628fd0e3560 |
children | 323ddacc1593 |
line wrap: on
line diff
--- a/src/chat.css Mon Mar 03 12:29:06 2025 -0700 +++ b/src/chat.css Mon Mar 03 19:39:30 2025 -0700 @@ -143,6 +143,20 @@ margin-left: 4px; } +span[unread] { + font-size: small; + display: inline-block; + background-color: DodgerBlue; + color: white; + padding: 2px; + border-radius: calc(1em + 4px); + min-width: calc(1em + 4px); + text-align: center; + line-height: 1; +} +span[unread="0"] { + display: none; +} @media (min-width: 700px) { div[chat_content] {