Skip to content

A platform for community discussion. Free, open, simple.

UX: Add some missing hljs classes

David Taylor683c038ec01d
diff --git a/app/assets/stylesheets/common/base/code_highlighting.scss b/app/assets/stylesheets/common/base/code_highlighting.scss
index df7fb5f06c8..887ea642e47 100644
--- a/app/assets/stylesheets/common/base/code_highlighting.scss
+++ b/app/assets/stylesheets/common/base/code_highlighting.scss
@@ -15,7 +15,8 @@ pre > code {
.hljs-comment,
.hljs-doctag,
-.hljs-code {
+.hljs-code,
+.hljs-meta {
color: var(--hljs-comment);
font-style: italic;
}
@@ -35,7 +36,8 @@ pre > code {
.hljs-string,
.hljs-tag .hljs-string,
.hljs-template-tag,
-.hljs-template-variable {
+.hljs-template-variable,
+.hljs-type {
color: var(--hljs-string);
}
@@ -44,7 +46,8 @@ pre > code {
.hljs-quote,
.hljs-operator,
.hljs-selector-pseudo,
-.hljs-selector-tag {
+.hljs-selector-tag,
+.hljs-link {
color: var(--hljs-string);
font-weight: bold;
}
@@ -53,6 +56,7 @@ pre > code {
font-weight: normal;
}
+.hljs-literal,
.hljs-class .hljs-title {
color: var(--hljs-literal);
font-weight: bold;
@@ -65,6 +69,11 @@ pre > code {
font-weight: normal;
}
+.hljs-tag .hljs-attr,
+.hljs-tag .hljs-name {
+ color: var(--hljs-attribute);
+}
+
.hljs-attribute,
.hljs-selector-attr,
.hljs-selector-class,