mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-23 09:24:03 +08:00
56a4ae17c9
We already do this for the prompt
105 lines
6.3 KiB
CSS
105 lines
6.3 KiB
CSS
.highlight .hll { background-color: #ffffcc }
|
|
.highlight .err { color: #a40000; border: 1px solid #ef2929 } /* Error */
|
|
.highlight .k { color: #204a87; font-weight: bold } /* Keyword */
|
|
.highlight .o { color: #005F66; } /* Operator */
|
|
.highlight .p { color: #000f8f; } /* Punctuation */
|
|
.highlight .c { color: #575757; font-style: italic; } /* Comment */
|
|
.highlight .ch { color: #645502; font-style: italic } /* Comment.Hashbang */
|
|
.highlight .cm { color: #645502; font-style: italic } /* Comment.Multiline */
|
|
.highlight .cp { color: #645502; font-style: italic } /* Comment.Preproc */
|
|
.highlight .cpf { color: #645502; font-style: italic } /* Comment.PreprocFile */
|
|
.highlight .c1 { color: #645502; font-style: italic } /* Comment.Single */
|
|
.highlight .cs { color: #645502; font-style: italic } /* Comment.Special */
|
|
.highlight .gd { color: #a40000 } /* Generic.Deleted */
|
|
.highlight .gr { color: #ef2929 } /* Generic.Error */
|
|
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
|
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
|
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
|
.highlight .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */
|
|
.highlight .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */
|
|
.highlight .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */
|
|
.highlight .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */
|
|
.highlight .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */
|
|
.highlight .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */
|
|
.highlight .kt { color: #204a87; font-weight: bold } /* Keyword.Type */
|
|
.highlight .m { color: #0000cf; font-weight: bold } /* Literal.Number */
|
|
.highlight .s { color: #2F5B06 } /* Literal.String */
|
|
.highlight .na { color: #c4a000 } /* Name.Attribute */
|
|
.highlight .nb { color: #204a87 } /* Name.Builtin */
|
|
.highlight .no { color: #000f8f } /* Name.Constant */
|
|
.highlight .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */
|
|
.highlight .ni { color: #ce5c00 } /* Name.Entity */
|
|
.highlight .ne { color: #cc0000; font-weight: bold } /* Name.Exception */
|
|
.highlight .nf { color: #004BCC; } /* Name.Function */
|
|
.highlight .nl { color: #f57900; } /* Name.Label */
|
|
.highlight .nt { color: #204a87; font-weight: bold } /* Name.Tag */
|
|
.highlight .ow { color: #204a87; font-weight: bold } /* Operator.Word */
|
|
.highlight .w { color: #f8f8f8; } /* Text.Whitespace */
|
|
.highlight .mb { color: #0000cf; font-weight: bold } /* Literal.Number.Bin */
|
|
.highlight .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */
|
|
.highlight .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */
|
|
.highlight .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */
|
|
.highlight .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */
|
|
.highlight .sa { color: #4e9a06 } /* Literal.String.Affix */
|
|
.highlight .sb { color: #4e9a06 } /* Literal.String.Backtick */
|
|
.highlight .sc { color: #4e9a06 } /* Literal.String.Char */
|
|
.highlight .dl { color: #4e9a06 } /* Literal.String.Delimiter */
|
|
.highlight .sd { color: #8f7902; font-style: italic } /* Literal.String.Doc */
|
|
.highlight .s2 { color: #2E6506 } /* Literal.String.Double */
|
|
.highlight .se { color: #800400 } /* Literal.String.Escape */
|
|
.highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */
|
|
.highlight .si { color: #4e9a06 } /* Literal.String.Interpol */
|
|
.highlight .sx { color: #4e9a06 } /* Literal.String.Other */
|
|
.highlight .sr { color: #4e9a06 } /* Literal.String.Regex */
|
|
.highlight .s1 { color: #605000 } /* Literal.String.Single */
|
|
.highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */
|
|
.highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */
|
|
.highlight .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */
|
|
|
|
:root {
|
|
/* custom property */
|
|
--contrast: #000000;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--contrast: #FFFFFF;
|
|
}
|
|
.highlight .no { color: #00bfff } /* Name.Constant */
|
|
.highlight .p { color: #00bfff; } /* Punctuation */
|
|
.highlight .k { color: #60A3BE; font-weight: bold } /* Keyword */
|
|
.highlight .nf { color: #00a0ff } /* Name.Function */
|
|
.highlight .nb { color: #A0AfF7 } /* Name.Builtin - we don't emit this, it's for bash scripts*/
|
|
.highlight .s { color: #4eFa06 } /* Literal.String */
|
|
.highlight .s1 { color: #a0a00b } /* Literal.String.Single */
|
|
.highlight .s2 { color: #9ce781 } /* Literal.String.Double */
|
|
.highlight .c { color: #969696; font-style: italic; } /* Comment */
|
|
.highlight .ch { color: #b19602; font-style: italic } /* Comment.Hashbang */
|
|
.highlight .cm { color: #b19602; font-style: italic } /* Comment.Multiline */
|
|
.highlight .cp { color: #b19602; font-style: italic } /* Comment.Preproc */
|
|
.highlight .cpf { color: #b19602; font-style: italic } /* Comment.PreprocFile */
|
|
.highlight .c1 { color: #b19602; font-style: italic } /* Comment.Single */
|
|
.highlight .cs { color: #b19602; font-style: italic } /* Comment.Special */
|
|
.highlight .o { color: #00F6b2; } /* Operator */
|
|
.highlight .se { color: #00a6b2 } /* Literal.String.Escape */
|
|
}
|
|
.highlight .g { color: var(--contrast) } /* Generic */
|
|
.highlight .gp { color: var(--contrast) } /* Generic.Prompt */
|
|
.highlight .l { color: var(--contrast) } /* Literal */
|
|
.highlight .n { color: var(--contrast) } /* Name */
|
|
.highlight .x { color: var(--contrast) } /* Other */
|
|
.highlight .ge { color: var(--contrast); font-style: italic } /* Generic.Emph */
|
|
.highlight .go { color: var(--contrast); font-style: italic; user-select: none; } /* Generic.Output */
|
|
.highlight .gs { color: var(--contrast); font-weight: bold } /* Generic.Strong */
|
|
.highlight .ld { color: var(--contrast) } /* Literal.Date */
|
|
.highlight .nc { color: var(--contrast) } /* Name.Class */
|
|
.highlight .nn { color: var(--contrast) } /* Name.Namespace */
|
|
.highlight .nx { color: var(--contrast) } /* Name.Other */
|
|
.highlight .py { color: var(--contrast) } /* Name.Property */
|
|
.highlight .nv { color: var(--contrast) } /* Name.Variable */
|
|
.highlight .fm { color: var(--contrast) } /* Name.Function.Magic */
|
|
.highlight .vc { color: var(--contrast) } /* Name.Variable.Class */
|
|
.highlight .vg { color: var(--contrast) } /* Name.Variable.Global */
|
|
.highlight .vi { color: var(--contrast) } /* Name.Variable.Instance */
|
|
.highlight .vm { color: var(--contrast) } /* Name.Variable.Magic */
|