summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/highlight/themes/white.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/highlight/themes/white.scss')
-rw-r--r--app/assets/stylesheets/highlight/themes/white.scss11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/stylesheets/highlight/themes/white.scss b/app/assets/stylesheets/highlight/themes/white.scss
index b0f6595feff..f6cce25671f 100644
--- a/app/assets/stylesheets/highlight/themes/white.scss
+++ b/app/assets/stylesheets/highlight/themes/white.scss
@@ -2,9 +2,18 @@
@import '../white_base';
@include conflict-colors('white');
+
+ // Highlight.js theme overrides (https://gitlab.com/gitlab-org/gitlab/-/issues/365167)
+ // We should be able to remove the overrides once the upstream issue is fixed (https://github.com/sourcegraph/sourcegraph/issues/23251)
@include hljs-override('variable', $white-nv);
@include hljs-override('symbol', $white-ss);
- @include hljs-override('title.class_.inherited__', $white-no);
+ @include hljs-override('title\\.class_\\.inherited__', $white-no);
+ @include hljs-override('title\\.class\\.inherited', $white-no);
+ @include hljs-override('title\\.class', $white-nc);
+ @include hljs-override('variable\\.constant', $white-no);
+ @include hljs-override('variable\\.language', $white-nb);
+ @include hljs-override('title\\.function', $white-nf);
+ @include hljs-override('params', $white-nb);
}
:root {