From 63847c346b6e49ddcdb34f5b733b57e3db8cc2df Mon Sep 17 00:00:00 2001 From: xnaas Date: Tue, 16 Aug 2022 14:11:50 -0500 Subject: [PATCH] add custom nick colors section to custom css guide (#265) --- _guides/custom-css.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_guides/custom-css.md b/_guides/custom-css.md index 71fd0987..1a26b469 100644 --- a/_guides/custom-css.md +++ b/_guides/custom-css.md @@ -189,6 +189,18 @@ This removes all colors, boldness, italics, underline, strikethrough, and monosp } ``` +### Custom nick colors + +This code will color the target nick in the userlist and in the chat area. The +`i` is for case-insensitive matching. + +```css +#chat .msg .user[data-name="targetnick" i], +#chat .userlist .names .user[data-name="targetnick" i] { + color: #ff79c6; +} +``` + ### Hide join/part/quit in specific channel only Assuming we want to hide some status messages in the `#thelounge` channel: