mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 21:11:15 -03:00
Css refresh (#9982)
This cleans up the CSS, reduces the number of different colors and special settings we use.
It increases contrast so we now pass WCAG AAA (according to chromium), and switches to css variables for colors to make dark mode simpler to implement.
(cherry picked from commit b48fa1f1a0)
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
.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: #00a6b2; } /* Operator */
|
||||
.highlight .p { color: #00bfff; } /* Punctuation */
|
||||
.highlight .c { color: #777; font-style: italic; } /* Comment */
|
||||
.highlight .ch { color: #8f7902; font-style: italic } /* Comment.Hashbang */
|
||||
.highlight .cm { color: #8f7902; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #8f7902; font-style: italic } /* Comment.Preproc */
|
||||
.highlight .cpf { color: #8f7902; font-style: italic } /* Comment.PreprocFile */
|
||||
.highlight .c1 { color: #8f7902; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #8f7902; font-style: italic } /* Comment.Special */
|
||||
.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 .gp { color: #8f7902 } /* Generic.Prompt */
|
||||
.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 */
|
||||
@@ -24,15 +23,15 @@
|
||||
.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: #4e9a06 } /* Literal.String */
|
||||
.highlight .s { color: #2F5B06 } /* Literal.String */
|
||||
.highlight .na { color: #c4a000 } /* Name.Attribute */
|
||||
.highlight .nb { color: #204a87 } /* Name.Builtin */
|
||||
.highlight .no { color: #00bfff } /* Name.Constant */
|
||||
.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: #005fd7 } /* Name.Function */
|
||||
.highlight .nl { color: #f57900 } /* Name.Label */
|
||||
.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 */
|
||||
@@ -46,13 +45,13 @@
|
||||
.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: #4daf08 } /* Literal.String.Double */
|
||||
.highlight .se { color: #00a6b2 } /* Literal.String.Escape */
|
||||
.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: #d0d00b } /* Literal.String.Single */
|
||||
.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 */
|
||||
@@ -66,12 +65,26 @@
|
||||
:root {
|
||||
--contrast: #FFFFFF;
|
||||
}
|
||||
.highlight .k { color: #507a97; font-weight: bold } /* Keyword */
|
||||
.highlight .nf { color: #008fd7 } /* Name.Function */
|
||||
.highlight .nb { color: #209a87 } /* Name.Builtin */
|
||||
.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 */
|
||||
|
||||
Reference in New Issue
Block a user