mirror of
https://projects.blender.org/infrastructure/gitea-custom.git
synced 2024-12-22 15:23:32 -05:00
UI: Code syntax highlighting adjustments
Use the same colors that `arc-green` imports from: * Chroma from /web_src/less/themes/chroma/dark.less * CodeMirror from /web_src/less/codemirror/dark.less
This commit is contained in:
parent
24e354fc79
commit
1fd47659c0
1 changed files with 137 additions and 0 deletions
|
@ -423,3 +423,140 @@ footer a {
|
||||||
.emoji[aria-label="musical notes"] {
|
.emoji[aria-label="musical notes"] {
|
||||||
filter: invert(100%) hue-rotate(180deg);
|
filter: invert(100%) hue-rotate(180deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* From web_src/less/themes/chroma/dark.less */
|
||||||
|
.chroma .bp { color: #fabd2f; } /* NameBuiltinPseudo */
|
||||||
|
.chroma .c { color: #777e94; } /* Comment */
|
||||||
|
.chroma .c1 { color: #777e94; } /* CommentSingle */
|
||||||
|
.chroma .ch { color: #777e94; } /* CommentHashbang */
|
||||||
|
.chroma .cm { color: #777e94; } /* CommentMultiline */
|
||||||
|
.chroma .cp { color: #8ec07c; } /* CommentPreproc */
|
||||||
|
.chroma .cpf { color: #649bc4; } /* CommentPreprocFile */
|
||||||
|
.chroma .cs { color: #9075cd; } /* CommentSpecial */
|
||||||
|
.chroma .dl { color: #649bc4; } /* LiteralStringDelimiter */
|
||||||
|
.chroma .gd { color: #ffffff; background-color: #5f3737; } /* GenericDeleted */
|
||||||
|
.chroma .ge { color: #ddee30; } /* GenericEmph */
|
||||||
|
.chroma .gh { color: #ffaa10; } /* GenericHeading */
|
||||||
|
.chroma .gi { color: #ffffff; background-color: #3a523a; } /* GenericInserted */
|
||||||
|
.chroma .go { color: #777e94; } /* GenericOutput */
|
||||||
|
.chroma .gp { color: #ebdbb2; } /* GenericPrompt */
|
||||||
|
.chroma .gr { color: #ff4433; } /* GenericError */
|
||||||
|
.chroma .gs { color: #ebdbb2; } /* GenericStrong */
|
||||||
|
.chroma .gt { color: #ff7540; } /* GenericTraceback */
|
||||||
|
.chroma .gu { color: #b8bb26; } /* GenericSubheading */
|
||||||
|
.chroma .hl { background-color: #3f424d; } /* LineHighlight */
|
||||||
|
.chroma .il { color: #649bc4; } /* LiteralNumberIntegerLong */
|
||||||
|
.chroma .k { color: #ff7540; } /* Keyword */
|
||||||
|
.chroma .kc { color: #649bc4; } /* KeywordConstant */
|
||||||
|
.chroma .kd { color: #ff7540; } /* KeywordDeclaration */
|
||||||
|
.chroma .kn { color: #ffaa10; } /* KeywordNamespace */
|
||||||
|
.chroma .kp { color: #5f8700; } /* KeywordPseudo */
|
||||||
|
.chroma .kr { color: #ff7540; } /* KeywordReserved */
|
||||||
|
.chroma .kt { color: #fabd2f; } /* KeywordType */
|
||||||
|
.chroma .ln { color: #7f8699; } /* LineNumbers */
|
||||||
|
.chroma .lnt { color: #7f8699; } /* LineNumbersTable */
|
||||||
|
.chroma .m { color: #649bc4; } /* LiteralNumber */
|
||||||
|
.chroma .mb { color: #649bc4; } /* LiteralNumberBin */
|
||||||
|
.chroma .mf { color: #649bc4; } /* LiteralNumberFloat */
|
||||||
|
.chroma .mh { color: #649bc4; } /* LiteralNumberHex */
|
||||||
|
.chroma .mi { color: #649bc4; } /* LiteralNumberInteger */
|
||||||
|
.chroma .mo { color: #649bc4; } /* LiteralNumberOct */
|
||||||
|
.chroma .n { color: #fabd2f; } /* Name */
|
||||||
|
.chroma .na { color: #b8bb26; } /* NameAttribute */
|
||||||
|
.chroma .nb { color: #fabd2f; } /* NameBuiltin */
|
||||||
|
.chroma .nc { color: #ffaa10; } /* NameClass */
|
||||||
|
.chroma .nd { color: #8ec07c; } /* NameDecorator */
|
||||||
|
.chroma .ne { color: #ff7540; } /* NameException */
|
||||||
|
.chroma .nf { color: #fabd2f; } /* NameFunction */
|
||||||
|
.chroma .ni { color: #fabd2f; } /* NameEntity */
|
||||||
|
.chroma .nl { color: #ff7540; } /* NameLabel */
|
||||||
|
.chroma .nn { color: #ffaa10; } /* NameNamespace */
|
||||||
|
.chroma .no { color: #649bc4; } /* NameConstant */
|
||||||
|
.chroma .nt { color: #ff7540; } /* NameTag */
|
||||||
|
.chroma .nv { color: #ebdbb2; } /* NameVariable */
|
||||||
|
.chroma .nx { color: #b6bac5; } /* NameOther */
|
||||||
|
.chroma .o { color: #ff7540; } /* Operator */
|
||||||
|
.chroma .ow { color: #5f8700; } /* OperatorWord */
|
||||||
|
.chroma .p { color: #d2d4db; } /* Punctuation */
|
||||||
|
.chroma .s { color: #b8bb26; } /* LiteralString */
|
||||||
|
.chroma .s1 { color: #b8bb26; } /* LiteralStringSingle */
|
||||||
|
.chroma .s2 { color: #b8bb26; } /* LiteralStringDouble */
|
||||||
|
.chroma .sa { color: #649bc4; } /* LiteralStringAffix */
|
||||||
|
.chroma .sb { color: #b8bb26; } /* LiteralStringBacktick */
|
||||||
|
.chroma .sc { color: #649bc4; } /* LiteralStringChar */
|
||||||
|
.chroma .sd { color: #777e94; } /* LiteralStringDoc */
|
||||||
|
.chroma .se { color: #ff7540; } /* LiteralStringEscape */
|
||||||
|
.chroma .sh { color: #649bc4; } /* LiteralStringHeredoc */
|
||||||
|
.chroma .si { color: #ffaa10; } /* LiteralStringInterpol */
|
||||||
|
.chroma .sr { color: #9075cd; } /* LiteralStringRegex */
|
||||||
|
.chroma .ss { color: #ff7540; } /* LiteralStringSymbol */
|
||||||
|
.chroma .sx { color: #ffaa10; } /* LiteralStringOther */
|
||||||
|
.chroma .vc { color: #ff7540; } /* NameVariableClass */
|
||||||
|
.chroma .vg { color: #ffaa10; } /* NameVariableGlobal */
|
||||||
|
.chroma .vi { color: #ffaa10; } /* NameVariableInstance */
|
||||||
|
.chroma .w { color: #7f8699; } /* TextWhitespace */
|
||||||
|
|
||||||
|
/* From web_src/less/codemirror/dark.less */
|
||||||
|
.CodeMirror.cm-s-default .cm-property, .CodeMirror.cm-s-paper .cm-property {
|
||||||
|
color: #a0cc75;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-header, .CodeMirror.cm-s-paper .cm-header {
|
||||||
|
color: #9daccc;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-quote, .CodeMirror.cm-s-paper .cm-quote {
|
||||||
|
color: #009900;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-keyword, .CodeMirror.cm-s-paper .cm-keyword {
|
||||||
|
color: #cc8a61;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-atom, .CodeMirror.cm-s-paper .cm-atom {
|
||||||
|
color: #ef5e77;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-number, .CodeMirror.cm-s-paper .cm-number {
|
||||||
|
color: #ff5656;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-def, .CodeMirror.cm-s-paper .cm-def {
|
||||||
|
color: #e4e4e4;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-variable-2, .CodeMirror.cm-s-paper .cm-variable-2 {
|
||||||
|
color: #00bdbf;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-variable-3, .CodeMirror.cm-s-paper .cm-variable-3 {
|
||||||
|
color: #008855;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-comment, .CodeMirror.cm-s-paper .cm-comment {
|
||||||
|
color: #8e9ab3;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-string, .CodeMirror.cm-s-paper .cm-string {
|
||||||
|
color: #a77272;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-string-2, .CodeMirror.cm-s-paper .cm-string-2 {
|
||||||
|
color: #ff5500;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-meta, .CodeMirror.cm-s-default .cm-qualifier, .CodeMirror.cm-s-paper .cm-meta, .CodeMirror.cm-s-paper .cm-qualifier {
|
||||||
|
color: #ffb176;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-builtin, .CodeMirror.cm-s-paper .cm-builtin {
|
||||||
|
color: #b7c951;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-bracket, .CodeMirror.cm-s-paper .cm-bracket {
|
||||||
|
color: #999977;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-tag, .CodeMirror.cm-s-paper .cm-tag {
|
||||||
|
color: #f1d273;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-attribute, .CodeMirror.cm-s-paper .cm-attribute {
|
||||||
|
color: #bfcc70;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-hr, .CodeMirror.cm-s-paper .cm-hr {
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-url, .CodeMirror.cm-s-paper .cm-url {
|
||||||
|
color: #c5cfd0;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-link, .CodeMirror.cm-s-paper .cm-link {
|
||||||
|
color: #d8c792;
|
||||||
|
}
|
||||||
|
.CodeMirror.cm-s-default .cm-error, .CodeMirror.cm-s-paper .cm-error {
|
||||||
|
color: #dbdbeb;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue