diff options
| author | 2025-08-08 09:50:27 +0100 | |
|---|---|---|
| committer | 2025-08-08 10:50:27 +0200 | |
| commit | d1f2e0f6be3de13a36754bb735182e8aad1ebc5f (patch) | |
| tree | 9bd870f519d913c1fe4cdcc6230fbe5f4c329de8 | |
| parent | 1f8273803f632b40c260721cb3257ae4e2251f5a (diff) | |
Avoid styling `<code>` inside of `<pre>` (#7797)
* Remove background from <code> inside <pre>
This caused an ugly effect where each line has a seperate background to
the whole pre block.
Fixes #7796
* Add James Frost to CREDITS.md
| -rw-r--r-- | CREDITS.md | 1 | ||||
| -rw-r--r-- | p/themes/Dark/dark.css | 2 | ||||
| -rw-r--r-- | p/themes/Dark/dark.rtl.css | 2 | ||||
| -rw-r--r-- | p/themes/Nord/nord.css | 3 | ||||
| -rw-r--r-- | p/themes/Nord/nord.rtl.css | 3 | ||||
| -rw-r--r-- | p/themes/Origine/origine.css | 6 | ||||
| -rw-r--r-- | p/themes/Origine/origine.rtl.css | 6 |
7 files changed, 23 insertions, 0 deletions
diff --git a/CREDITS.md b/CREDITS.md index 112c8ea04..e9b6826aa 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -108,6 +108,7 @@ People are sorted by name so please keep this order. * [Jackson Culbreth](https://github.com/culbrethj): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:culbrethj) * [jaden](https://github.com/jaden): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:jaden) * [Jake Mannens](https://github.com/jakem72360): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:jakem72360) +* [James Frost](https://github.com/Fraetor): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:Fraetor), [Web](https://www.frost.cx/) * [Jamie Slome](https://github.com/JamieSlome): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:JamieSlome), [Web](https://418sec.com/) * [Jan Lukas Gernert](https://github.com/jangernert): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:jangernert) * [Jan van den Berg](https://github.com/jan-vandenberg): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:jan-vandenberg), [Web](https://j11g.com/) diff --git a/p/themes/Dark/dark.css b/p/themes/Dark/dark.css index b2ddf8f2b..4d5d69f2b 100644 --- a/p/themes/Dark/dark.css +++ b/p/themes/Dark/dark.css @@ -505,7 +505,9 @@ button.as-link[disabled] { } .content pre code { + background: transparent; color: var(--dark-font-colorA); + border: none; } .content blockquote { diff --git a/p/themes/Dark/dark.rtl.css b/p/themes/Dark/dark.rtl.css index 4656ca241..69a296409 100644 --- a/p/themes/Dark/dark.rtl.css +++ b/p/themes/Dark/dark.rtl.css @@ -505,7 +505,9 @@ button.as-link[disabled] { } .content pre code { + background: transparent; color: var(--dark-font-colorA); + border: none; } .content blockquote { diff --git a/p/themes/Nord/nord.css b/p/themes/Nord/nord.css index f6f6ebdfa..63e959b67 100644 --- a/p/themes/Nord/nord.css +++ b/p/themes/Nord/nord.css @@ -871,7 +871,10 @@ li.item.active { .content pre { border: 1px solid var(--accent); border-radius: 6px; +} +.content pre code { + border: none; } .content blockquote { diff --git a/p/themes/Nord/nord.rtl.css b/p/themes/Nord/nord.rtl.css index 1822a48b6..9cfc4a52e 100644 --- a/p/themes/Nord/nord.rtl.css +++ b/p/themes/Nord/nord.rtl.css @@ -871,7 +871,10 @@ li.item.active { .content pre { border: 1px solid var(--accent); border-radius: 6px; +} +.content pre code { + border: none; } .content blockquote { diff --git a/p/themes/Origine/origine.css b/p/themes/Origine/origine.css index 36ca2a2de..648c791bb 100644 --- a/p/themes/Origine/origine.css +++ b/p/themes/Origine/origine.css @@ -921,6 +921,12 @@ a:hover .icon { border-radius: 3px; } +.content pre code { + background: transparent; + color: var(--font-color); + border: none; +} + .content code { background-color: var(--background-color-light-shadowed); color: var(--error-feed-color); diff --git a/p/themes/Origine/origine.rtl.css b/p/themes/Origine/origine.rtl.css index d38fbe4da..54249a75c 100644 --- a/p/themes/Origine/origine.rtl.css +++ b/p/themes/Origine/origine.rtl.css @@ -921,6 +921,12 @@ a:hover .icon { border-radius: 3px; } +.content pre code { + background: transparent; + color: var(--font-color); + border: none; +} + .content code { background-color: var(--background-color-light-shadowed); color: var(--error-feed-color); |
