Modify PolyGerrit syntax colors

The style used by PolyGerrit is modified to more-closely resemble the
colors found in the "Eclipse" theme of CodeMirror. Note: because the
style information is computed by HLJS, the bits of code that are
highlighted may differ from CodeMirror.

Bug: Issue 5183
Change-Id: If165525e411e2af00f82b92294cd363b2bb1ce65
This commit is contained in:
Wyatt Allen
2016-12-20 10:40:23 -08:00
parent 42ea853037
commit af6053a29d

View File

@@ -19,65 +19,63 @@ limitations under the License.
/** /**
* @overview Highlight.js emits the following classes that do not have * @overview Highlight.js emits the following classes that do not have
* styles here: * styles here:
* subst, symbol, class, function, doctag, meta-string, section, * subst, symbol, class, function, doctag, meta-string, section, name,
* builtin-name, bulletm, code, formula, quote, addition, deletion * builtin-name, bulletm, code, formula, quote, addition, deletion,
* attribute
* @see {@link http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html} * @see {@link http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html}
*/ */
.gr-syntax-literal, .gr-syntax-meta {
.gr-syntax-keyword, color: #FF1717;
.gr-syntax-selector-tag { }
.gr-syntax-keyword {
color: #7F0055;
font-weight: bold; font-weight: bold;
color: #00f; line-height: 1em;
} }
.gr-syntax-built_in { .gr-syntax-number,
color: #555; .gr-syntax-selector-class {
color: #164;
}
.gr-syntax-variable {
color: black;
} }
.gr-syntax-type,
.gr-syntax-selector-pseudo,
.gr-syntax-template-variable { .gr-syntax-template-variable {
color: #ff00e7; color: #0000C0;
} }
.gr-syntax-number { .gr-syntax-comment {
color: violet; color: #3F7F5F;
}
.gr-syntax-regexp,
.gr-syntax-variable,
.gr-syntax-selector-attr,
.gr-syntax-template-tag {
color: #FA8602;
} }
.gr-syntax-string, .gr-syntax-string,
.gr-syntax-selector-id { .gr-syntax-selector-id {
color: #018846; color: #2A00FF;
} }
.gr-syntax-title { .gr-syntax-built_in {
color: teal; color: #30a;
}
.gr-syntax-params {
color: red;
}
.gr-syntax-comment {
color: #af72a9;
}
.gr-syntax-meta {
color: #0091AD;
}
.gr-syntax-meta-keyword {
color: #00426b;
font-weight: bold;
} }
.gr-syntax-tag { .gr-syntax-tag {
color: #DB7C00; color: #170;
} }
.gr-syntax-name { /* XML/HTML Tag Name */ .gr-syntax-link,
color: brown; .gr-syntax-meta-keyword {
color: #219;
} }
.gr-syntax-attr { /* XML/HTML Attribute */ .gr-syntax-params,
color: #8C7250; .gr-syntax-type {
color: #00f;
} }
.gr-syntax-attribute { /* CSS Property */ .gr-syntax-title {
color: #299596; color: #0000C0;
}
.gr-syntax-attr,
.gr-syntax-literal { /* XML/HTML Attribute */
color: #219;
}
.gr-syntax-selector-pseudo,
.gr-syntax-regexp,
.gr-syntax-selector-attr,
.gr-syntax-template-tag {
color: #FA8602;
} }
.gr-syntax-emphasis { .gr-syntax-emphasis {
font-style: italic; font-style: italic;
@@ -85,12 +83,6 @@ limitations under the License.
.gr-syntax-strong { .gr-syntax-strong {
font-weight: bold; font-weight: bold;
} }
.gr-syntax-link {
color: blue;
}
.gr-syntax-selector-class {
color: #1F71FF;
}
</style> </style>
</template> </template>
</dom-module> </dom-module>