From 670e7ee4e44c5043e1b346fc723f91bc0c83f7b3 Mon Sep 17 00:00:00 2001 From: Logan Yang Date: Fri, 14 Apr 2023 12:14:43 -0700 Subject: [PATCH] Fix css specificity --- styles.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/styles.css b/styles.css index 2281526f..bce98a99 100644 --- a/styles.css +++ b/styles.css @@ -160,18 +160,18 @@ If your plugin does not need CSS, delete this file. word-break: break-word; } -pre, p { +.message-content pre, p { margin: 0; padding: 0; } -ol, ul { +.message-content ol, ul { list-style: none; padding-left: 20px; margin: 0; } -li { +.message-content li { margin: 0; width: 100%; padding-left: 10px; @@ -179,19 +179,19 @@ li { position: relative; } -li::before { +.message-content li::before { content: counter(list-item, decimal) "."; counter-increment: list-item; position: absolute; left: -20px; } -li:has(> p) { +.message-content li:has(> p) { display: flex; flex-direction: column; } -li:has(> p)::before { +.message-content li:has(> p)::before { align-self: flex-start; margin-top: 0; /* Adjust this value to align the pseudo-element vertically */ }