summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbh <qn+git@excalibur.computer>2026-01-15 18:10:37 +0800
committerbh <qn+git@excalibur.computer>2026-01-15 18:10:37 +0800
commit987fa7d6cf5b2ae5d40b6700d8f435aa806acdbc (patch)
tree9d63fd2a474a4b7187717d5c78c30a595d97c01f
parent13def0619dc3117c142594fa889109736b013675 (diff)
Added code blocks
-rw-r--r--CSS/chatgpt.com.css47
1 files changed, 47 insertions, 0 deletions
diff --git a/CSS/chatgpt.com.css b/CSS/chatgpt.com.css
index ac401c2..ff512ac 100644
--- a/CSS/chatgpt.com.css
+++ b/CSS/chatgpt.com.css
@@ -189,3 +189,50 @@ header,
}
}
}
+
+@-moz-document url-prefix("https://chatgpt.com/"), url-prefix("https://chat.openai.com/") {
+
+ /* ===== OUTER CODE BLOCK WRAPPER ===== */
+ pre {
+ padding: 0 !important;
+ background: none !important;
+ border-radius: 14px !important;
+ overflow: visible !important;
+ }
+
+ /* ===== ACTUAL BACKGROUND LAYER ===== */
+ pre > div {
+ background-color: #002323 !important;
+ border-radius: 14px !important;
+ overflow: hidden !important; /* THIS is the key */
+ }
+
+ /* ===== LANGUAGE HEADER BAR ===== */
+ pre > div > div:first-child {
+ background-color: #002323 !important;
+ border-top-left-radius: 14px !important;
+ border-top-right-radius: 14px !important;
+ }
+
+ /* ===== SCROLL AREA + CODE ===== */
+ pre code {
+ background-color: #002323 !important;
+ padding: 14px !important;
+ display: block !important;
+ }
+
+ /* ===== INLINE CODE ===== */
+ code:not(pre code) {
+ background-color: #002323 !important;
+ border-radius: 6px !important;
+ padding: 0.15em 0.35em !important;
+ }
+
+
+ pre div,
+ pre span {
+ background-color: #002323 !important;
+ }
+
+
+}