Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix background color of code block

Behrokh Satarnejad8683d1dab03f
diff --git a/frontend/src/global_styles/content/user-content/_code-block.sass b/frontend/src/global_styles/content/user-content/_code-block.sass
index 5868a787532..a4c74350f49 100644
--- a/frontend/src/global_styles/content/user-content/_code-block.sass
+++ b/frontend/src/global_styles/content/user-content/_code-block.sass
@@ -5,7 +5,8 @@
padding: 1rem
overflow-x: auto
overflow-y: hidden
- background-color: #fafafa
+ background-color: var(--bgColor-muted)
+ color: var(--fgColor-muted)
border: 1px solid var(--borderColor-default)
> *
@@ -25,8 +26,8 @@
.op-uc-code
font-family: Consolas, "Liberation Mono", Courier, monospace
font-weight: normal
- color: #333739
- background-color: #fafafa
+ color: var(--fgColor-muted)
+ background-color: var(--bgColor-muted)
border: 1px solid var(--borderColor-default)
padding: 0.125em 0.3125em
break-inside: avoid