From 317cce45e0e2a16b72f47240d4be6c1ab8f446cf Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 13 Oct 2023 12:33:49 +0300 Subject: [PATCH] Fixed material code display --- assets/styles/layout/_code.scss | 8 ++++++++ layouts/default.vue | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/styles/layout/_code.scss b/assets/styles/layout/_code.scss index b191fc868..85aa65106 100644 --- a/assets/styles/layout/_code.scss +++ b/assets/styles/layout/_code.scss @@ -174,4 +174,12 @@ pre[class*="language-"] { background: var(--surface-700) !important; } } + + &[data-p-theme^="md-"] { + pre[class*="language-"] { + code { + background: var(--surface-900) !important; + } + } + } } \ No newline at end of file diff --git a/layouts/default.vue b/layouts/default.vue index 0bc56c254..2366d7269 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,5 +1,5 @@