From 987fa7d6cf5b2ae5d40b6700d8f435aa806acdbc Mon Sep 17 00:00:00 2001 From: bh Date: Thu, 15 Jan 2026 18:10:37 +0800 Subject: Added code blocks --- CSS/chatgpt.com.css | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'CSS/chatgpt.com.css') 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; + } + + +} -- cgit v1.2.3