aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/messageLogger
diff options
context:
space:
mode:
authorAxu <321axu123@gmail.com>2023-06-09 22:17:44 +0200
committerGitHub <noreply@github.com>2023-06-09 22:17:44 +0200
commit683c92f904ca76574dc5db847ea0f5e70ea6a7ef (patch)
tree34acea20dfbdebaa07ef1a686f1af11c40fce11b /src/plugins/messageLogger
parent3410ed024f6cfccb7f2b6fd9a30d647d71b81249 (diff)
downloadVencord-683c92f904ca76574dc5db847ea0f5e70ea6a7ef.tar.gz
Vencord-683c92f904ca76574dc5db847ea0f5e70ea6a7ef.tar.bz2
Vencord-683c92f904ca76574dc5db847ea0f5e70ea6a7ef.zip
fix: do not highlight new member leaf in red in message logger (#1071)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/messageLogger')
-rw-r--r--src/plugins/messageLogger/deleteStyleText.css8
-rw-r--r--src/plugins/messageLogger/messageLogger.css25
2 files changed, 26 insertions, 7 deletions
diff --git a/src/plugins/messageLogger/deleteStyleText.css b/src/plugins/messageLogger/deleteStyleText.css
index 860c83f..85fdcd2 100644
--- a/src/plugins/messageLogger/deleteStyleText.css
+++ b/src/plugins/messageLogger/deleteStyleText.css
@@ -1,4 +1,10 @@
-.messagelogger-deleted :is(div, h1, h2, h3, p) {
+/* Message content highlighting */
+.messagelogger-deleted [class*="contents-"] > :is(div, h1, h2, h3, p) {
+ color: #f04747 !important;
+}
+
+/* Embed highlighting */
+.messagelogger-deleted article :is(div, span, h1, h2, h3, p) {
color: #f04747 !important;
}
diff --git a/src/plugins/messageLogger/messageLogger.css b/src/plugins/messageLogger/messageLogger.css
index da5ccc2..b5f58a5 100644
--- a/src/plugins/messageLogger/messageLogger.css
+++ b/src/plugins/messageLogger/messageLogger.css
@@ -2,16 +2,29 @@
display: none;
}
-.messagelogger-deleted :is(video, .emoji, [data-type="sticker"]),
-.messagelogger-deleted .messagelogger-deleted-attachment,
-.messagelogger-deleted div iframe {
+.messagelogger-deleted
+:is(
+ video,
+ .emoji,
+ [data-type="sticker"],
+ iframe,
+ .messagelogger-deleted-attachment,
+ [class|="inlineMediaEmbed"]
+) {
filter: grayscale(1) !important;
transition: 150ms filter ease-in-out;
}
-.messagelogger-deleted:hover :is(video, .emoji, [data-type="sticker"]),
-.messagelogger-deleted .messagelogger-deleted-attachment:hover,
-.messagelogger-deleted iframe:hover {
+.messagelogger-deleted
+:is(
+ video,
+ .emoji,
+ [data-type="sticker"],
+ iframe,
+ .messagelogger-deleted-attachment,
+ [class|="inlineMediaEmbed"]
+):hover,
+.messagelogger-deleted {
filter: grayscale(0) !important;
}