From 1401dd98b896aaf0095d649d04e9daddbb808803 Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sun, 23 Jul 2023 19:02:09 +0300 Subject: [PATCH] Fix codehilite --- config.yaml | 5 ++- static/css/custom.css | 84 ------------------------------------------- themes/ds | 2 +- 3 files changed, 3 insertions(+), 88 deletions(-) delete mode 100644 static/css/custom.css diff --git a/config.yaml b/config.yaml index 07c9ea7..2ea8640 100644 --- a/config.yaml +++ b/config.yaml @@ -22,6 +22,5 @@ schema: type: TechArticle copyright: http://creativecommons.org/licenses/by/4.0/ -includes: ['copy.js'] - -custom_css: custom.css +js_includes: ['copy.js'] +css_includes: ['codehilite.css'] diff --git a/static/css/custom.css b/static/css/custom.css deleted file mode 100644 index 8c8a671..0000000 --- a/static/css/custom.css +++ /dev/null @@ -1,84 +0,0 @@ -pre { line-height: 125%; } -td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -.codehilite .hll { background-color: #333333 } -.codehilite { background: #111111; color: #ffffff } -.codehilite .c { color: #008800; font-style: italic; background-color: #0f140f } /* Comment */ -.codehilite .err { color: #ffffff } /* Error */ -.codehilite .esc { color: #ffffff } /* Escape */ -.codehilite .g { color: #ffffff } /* Generic */ -.codehilite .k { color: #fb660a; font-weight: bold } /* Keyword */ -.codehilite .l { color: #ffffff } /* Literal */ -.codehilite .n { color: #ffffff } /* Name */ -.codehilite .o { color: #ffffff } /* Operator */ -.codehilite .x { color: #ffffff } /* Other */ -.codehilite .p { color: #ffffff } /* Punctuation */ -.codehilite .ch { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Hashbang */ -.codehilite .cm { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Multiline */ -.codehilite .cp { color: #ff0007; font-weight: bold; font-style: italic; background-color: #0f140f } /* Comment.Preproc */ -.codehilite .cpf { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.PreprocFile */ -.codehilite .c1 { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Single */ -.codehilite .cs { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Special */ -.codehilite .gd { color: #ffffff } /* Generic.Deleted */ -.codehilite .ge { color: #ffffff } /* Generic.Emph */ -.codehilite .gr { color: #ffffff } /* Generic.Error */ -.codehilite .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ -.codehilite .gi { color: #ffffff } /* Generic.Inserted */ -.codehilite .go { color: #444444; background-color: #222222 } /* Generic.Output */ -.codehilite .gp { color: #ffffff } /* Generic.Prompt */ -.codehilite .gs { color: #ffffff } /* Generic.Strong */ -.codehilite .gu { color: #ffffff; font-weight: bold } /* Generic.Subheading */ -.codehilite .gt { color: #ffffff } /* Generic.Traceback */ -.codehilite .kc { color: #fb660a; font-weight: bold } /* Keyword.Constant */ -.codehilite .kd { color: #fb660a; font-weight: bold } /* Keyword.Declaration */ -.codehilite .kn { color: #fb660a; font-weight: bold } /* Keyword.Namespace */ -.codehilite .kp { color: #fb660a } /* Keyword.Pseudo */ -.codehilite .kr { color: #fb660a; font-weight: bold } /* Keyword.Reserved */ -.codehilite .kt { color: #cdcaa9; font-weight: bold } /* Keyword.Type */ -.codehilite .ld { color: #ffffff } /* Literal.Date */ -.codehilite .m { color: #0086f7; font-weight: bold } /* Literal.Number */ -.codehilite .s { color: #0086d2 } /* Literal.String */ -.codehilite .na { color: #ff0086; font-weight: bold } /* Name.Attribute */ -.codehilite .nb { color: #ffffff } /* Name.Builtin */ -.codehilite .nc { color: #ffffff } /* Name.Class */ -.codehilite .no { color: #0086d2 } /* Name.Constant */ -.codehilite .nd { color: #ffffff } /* Name.Decorator */ -.codehilite .ni { color: #ffffff } /* Name.Entity */ -.codehilite .ne { color: #ffffff } /* Name.Exception */ -.codehilite .nf { color: #ff0086; font-weight: bold } /* Name.Function */ -.codehilite .nl { color: #ffffff } /* Name.Label */ -.codehilite .nn { color: #ffffff } /* Name.Namespace */ -.codehilite .nx { color: #ffffff } /* Name.Other */ -.codehilite .py { color: #ffffff } /* Name.Property */ -.codehilite .nt { color: #fb660a; font-weight: bold } /* Name.Tag */ -.codehilite .nv { color: #fb660a } /* Name.Variable */ -.codehilite .ow { color: #ffffff } /* Operator.Word */ -.codehilite .pm { color: #ffffff } /* Punctuation.Marker */ -.codehilite .w { color: #888888 } /* Text.Whitespace */ -.codehilite .mb { color: #0086f7; font-weight: bold } /* Literal.Number.Bin */ -.codehilite .mf { color: #0086f7; font-weight: bold } /* Literal.Number.Float */ -.codehilite .mh { color: #0086f7; font-weight: bold } /* Literal.Number.Hex */ -.codehilite .mi { color: #0086f7; font-weight: bold } /* Literal.Number.Integer */ -.codehilite .mo { color: #0086f7; font-weight: bold } /* Literal.Number.Oct */ -.codehilite .sa { color: #0086d2 } /* Literal.String.Affix */ -.codehilite .sb { color: #0086d2 } /* Literal.String.Backtick */ -.codehilite .sc { color: #0086d2 } /* Literal.String.Char */ -.codehilite .dl { color: #0086d2 } /* Literal.String.Delimiter */ -.codehilite .sd { color: #0086d2 } /* Literal.String.Doc */ -.codehilite .s2 { color: #0086d2 } /* Literal.String.Double */ -.codehilite .se { color: #0086d2 } /* Literal.String.Escape */ -.codehilite .sh { color: #0086d2 } /* Literal.String.Heredoc */ -.codehilite .si { color: #0086d2 } /* Literal.String.Interpol */ -.codehilite .sx { color: #0086d2 } /* Literal.String.Other */ -.codehilite .sr { color: #0086d2 } /* Literal.String.Regex */ -.codehilite .s1 { color: #0086d2 } /* Literal.String.Single */ -.codehilite .ss { color: #0086d2 } /* Literal.String.Symbol */ -.codehilite .bp { color: #ffffff } /* Name.Builtin.Pseudo */ -.codehilite .fm { color: #ff0086; font-weight: bold } /* Name.Function.Magic */ -.codehilite .vc { color: #fb660a } /* Name.Variable.Class */ -.codehilite .vg { color: #fb660a } /* Name.Variable.Global */ -.codehilite .vi { color: #fb660a } /* Name.Variable.Instance */ -.codehilite .vm { color: #fb660a } /* Name.Variable.Magic */ -.codehilite .il { color: #0086f7; font-weight: bold } /* Literal.Number.Integer.Long */ diff --git a/themes/ds b/themes/ds index 80bb708..5b287c8 160000 --- a/themes/ds +++ b/themes/ds @@ -1 +1 @@ -Subproject commit 80bb7086ba12bdd28375b4f09ac9954e6e748421 +Subproject commit 5b287c850c5bb520e75953a31990fba5fc24f005