mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-30 05:07:06 +08:00
0141d1667d
The CSS styles in Gitea themes are out-of-sync of Chroma's styles. This PR introduces a `chroma-style-diff.go` tool to compare the diff. The missing CSS styles have been added manually. They are left as empty to reduce arguments because there was no color for them before. And this PR fixes #22348, with just 2 lines changed: `.chroma .kt & .n`, these colors are taken from GitHub. It's good enough for #22348 ![image](https://user-images.githubusercontent.com/2114189/221551941-0d27d11d-e71e-498f-8e88-92b558fe4a18.png) --------- Co-authored-by: silverwind <me@silverwind.io>
75 lines
3.8 KiB
Plaintext
75 lines
3.8 KiB
Plaintext
.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 .fm {} /* NameFunctionMagic */
|
|
.chroma .g {} /* Generic */
|
|
.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 .gl {} /* GenericUnderline */
|
|
.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 .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: #ff7b72; } /* KeywordType */
|
|
.chroma .l {} /* Literal */
|
|
.chroma .ld {} /* LiteralDate */
|
|
.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: #c9d1d9; } /* 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 .py {} /* NameProperty */
|
|
.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 .vm {} /* NameVariableMagic */
|
|
.chroma .w { color: #7f8699; } /* TextWhitespace */
|