Improve contrast in light theme.
This commit is contained in:
parent
60ac230ca7
commit
1d8462a191
|
@ -1,5 +1,5 @@
|
|||
@import url("monokai.css") screen and (prefers-color-scheme: dark);
|
||||
@import url("perldoc.css") (prefers-color-scheme: light), print;
|
||||
@import url("pastie.css") (prefers-color-scheme: light), print;
|
||||
|
||||
:root
|
||||
{
|
||||
|
@ -25,28 +25,37 @@
|
|||
--font-mono: "Source Code Pro", monospace;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light), print {
|
||||
@media (prefers-color-scheme: light), print
|
||||
{
|
||||
:root
|
||||
{
|
||||
--bg: LightGray;
|
||||
--bg-code: #eeeedd; /* From perldoc.css */
|
||||
--bg-code-trans: #aaaa;
|
||||
--bg-hover: Gainsboro;
|
||||
--bg-dark: #cdcdcd;
|
||||
--bg: #eee;
|
||||
--bg-code: #fff; /* From pastie.css */
|
||||
--bg-code-trans: #fff;
|
||||
--bg-hover: #f8f8f8;
|
||||
--bg-dark: #ddd;
|
||||
--fg: #1d1f21;
|
||||
--fg-dim: Gray;
|
||||
--link: MediumBlue;
|
||||
--link-hover: ForestGreen;
|
||||
--link-visited: MediumVioletRed;
|
||||
|
||||
--fg-note: LimeGreen;
|
||||
--fg-tip: CornflowerBlue;
|
||||
--fg-note: ForestGreen;
|
||||
--fg-tip: DodgerBlue;
|
||||
--fg-important: Chocolate;
|
||||
--fg-caution: OrangeRed;
|
||||
--fg-warning: Red;
|
||||
}
|
||||
}
|
||||
|
||||
@media print
|
||||
{
|
||||
:root
|
||||
{
|
||||
--bg: white;
|
||||
}
|
||||
}
|
||||
|
||||
html
|
||||
{
|
||||
background-color: var(--bg);
|
||||
|
|
68
static/pastie.css
Normal file
68
static/pastie.css
Normal file
|
@ -0,0 +1,68 @@
|
|||
.highlight .tok-hll { background-color: #ffffcc }
|
||||
.highlight { background: #ffffff; }
|
||||
.highlight .tok-c { color: #888888 } /* Comment */
|
||||
.highlight .tok-err { color: #a61717; background-color: #e3d2d2 } /* Error */
|
||||
.highlight .tok-k { color: #008800; font-weight: bold } /* Keyword */
|
||||
.highlight .tok-ch { color: #888888 } /* Comment.Hashbang */
|
||||
.highlight .tok-cm { color: #888888 } /* Comment.Multiline */
|
||||
.highlight .tok-cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
|
||||
.highlight .tok-cpf { color: #888888 } /* Comment.PreprocFile */
|
||||
.highlight .tok-c1 { color: #888888 } /* Comment.Single */
|
||||
.highlight .tok-cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
|
||||
.highlight .tok-gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
|
||||
.highlight .tok-ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .tok-gr { color: #aa0000 } /* Generic.Error */
|
||||
.highlight .tok-gh { color: #333333 } /* Generic.Heading */
|
||||
.highlight .tok-gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
|
||||
.highlight .tok-go { color: #888888 } /* Generic.Output */
|
||||
.highlight .tok-gp { color: #555555 } /* Generic.Prompt */
|
||||
.highlight .tok-gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .tok-gu { color: #666666 } /* Generic.Subheading */
|
||||
.highlight .tok-gt { color: #aa0000 } /* Generic.Traceback */
|
||||
.highlight .tok-kc { color: #008800; font-weight: bold } /* Keyword.Constant */
|
||||
.highlight .tok-kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
|
||||
.highlight .tok-kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
|
||||
.highlight .tok-kp { color: #008800 } /* Keyword.Pseudo */
|
||||
.highlight .tok-kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .tok-kt { color: #888888; font-weight: bold } /* Keyword.Type */
|
||||
.highlight .tok-m { color: #0000DD; font-weight: bold } /* Literal.Number */
|
||||
.highlight .tok-s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
|
||||
.highlight .tok-na { color: #336699 } /* Name.Attribute */
|
||||
.highlight .tok-nb { color: #003388 } /* Name.Builtin */
|
||||
.highlight .tok-nc { color: #bb0066; font-weight: bold } /* Name.Class */
|
||||
.highlight .tok-no { color: #003366; font-weight: bold } /* Name.Constant */
|
||||
.highlight .tok-nd { color: #555555 } /* Name.Decorator */
|
||||
.highlight .tok-ne { color: #bb0066; font-weight: bold } /* Name.Exception */
|
||||
.highlight .tok-nf { color: #0066bb; font-weight: bold } /* Name.Function */
|
||||
.highlight .tok-nl { color: #336699; font-style: italic } /* Name.Label */
|
||||
.highlight .tok-nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
|
||||
.highlight .tok-py { color: #336699; font-weight: bold } /* Name.Property */
|
||||
.highlight .tok-nt { color: #bb0066; font-weight: bold } /* Name.Tag */
|
||||
.highlight .tok-nv { color: #336699 } /* Name.Variable */
|
||||
.highlight .tok-ow { color: #008800 } /* Operator.Word */
|
||||
.highlight .tok-w { color: #bbbbbb } /* Text.Whitespace */
|
||||
.highlight .tok-mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
|
||||
.highlight .tok-mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
|
||||
.highlight .tok-mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
|
||||
.highlight .tok-mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
|
||||
.highlight .tok-mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
|
||||
.highlight .tok-sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
|
||||
.highlight .tok-sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
|
||||
.highlight .tok-sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
|
||||
.highlight .tok-dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
|
||||
.highlight .tok-sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
|
||||
.highlight .tok-s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
|
||||
.highlight .tok-se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
|
||||
.highlight .tok-sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
|
||||
.highlight .tok-si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
|
||||
.highlight .tok-sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
|
||||
.highlight .tok-sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
|
||||
.highlight .tok-s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
|
||||
.highlight .tok-ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
|
||||
.highlight .tok-bp { color: #003388 } /* Name.Builtin.Pseudo */
|
||||
.highlight .tok-fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
|
||||
.highlight .tok-vc { color: #336699 } /* Name.Variable.Class */
|
||||
.highlight .tok-vg { color: #dd7700 } /* Name.Variable.Global */
|
||||
.highlight .tok-vi { color: #3333bb } /* Name.Variable.Instance */
|
||||
.highlight .tok-vm { color: #336699 } /* Name.Variable.Magic */
|
||||
.highlight .tok-il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
|
Loading…
Reference in New Issue
Block a user