Subtle syntax highlighting, load font from remote Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Sat, 23 Mar 2019 11:56:30 +0530
4 files changed,
94 insertions(+),
166 deletions(-)
M
build/static/style.css
→
build/static/style.css
@@ -1,11 +1,11 @@
-@font-face { - font-family: Inter; - src: url('fonts/Inter-Regular.woff2'); +@import url('https://rsms.me/inter/inter.css'); +html { font-family: 'Inter', sans-serif; } +@supports (font-variation-settings: normal) { + html { font-family: 'Inter var', sans-serif; } } html, body { - font-family: Inter, sans-serif; background: #021012; }@@ -74,9 +74,12 @@ width: 60%;
line-height: 1.8; } +pre { + padding: 10px; +} + pre, code { background: #041b1e; - padding: 2px; } .logo {
M
build/static/syntax.css
→
build/static/syntax.css
@@ -1,78 +1,39 @@
-.codehilite .hll { background-color: #404040 } -.codehilite { background: #202020; color: #d0d0d0 } -.codehilite .c { color: #999999; font-style: italic } /* Comment */ -.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */ -.codehilite .esc { color: #d0d0d0 } /* Escape */ -.codehilite .g { color: #d0d0d0 } /* Generic */ -.codehilite .k { color: #6ab825; font-weight: bold } /* Keyword */ -.codehilite .l { color: #d0d0d0 } /* Literal */ -.codehilite .n { color: #d0d0d0 } /* Name */ -.codehilite .o { color: #d0d0d0 } /* Operator */ -.codehilite .x { color: #d0d0d0 } /* Other */ -.codehilite .p { color: #d0d0d0 } /* Punctuation */ -.codehilite .ch { color: #999999; font-style: italic } /* Comment.Hashbang */ -.codehilite .cm { color: #999999; font-style: italic } /* Comment.Multiline */ -.codehilite .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */ -.codehilite .cpf { color: #999999; font-style: italic } /* Comment.PreprocFile */ -.codehilite .c1 { color: #999999; font-style: italic } /* Comment.Single */ -.codehilite .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */ -.codehilite .gd { color: #d22323 } /* Generic.Deleted */ -.codehilite .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */ -.codehilite .gr { color: #d22323 } /* Generic.Error */ -.codehilite .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ -.codehilite .gi { color: #589819 } /* Generic.Inserted */ -.codehilite .go { color: #cccccc } /* Generic.Output */ -.codehilite .gp { color: #aaaaaa } /* Generic.Prompt */ -.codehilite .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */ -.codehilite .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */ -.codehilite .gt { color: #d22323 } /* Generic.Traceback */ -.codehilite .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */ -.codehilite .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */ -.codehilite .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */ -.codehilite .kp { color: #6ab825 } /* Keyword.Pseudo */ -.codehilite .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */ -.codehilite .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */ -.codehilite .ld { color: #d0d0d0 } /* Literal.Date */ -.codehilite .m { color: #3677a9 } /* Literal.Number */ -.codehilite .s { color: #ed9d13 } /* Literal.String */ -.codehilite .na { color: #bbbbbb } /* Name.Attribute */ -.codehilite .nb { color: #24909d } /* Name.Builtin */ -.codehilite .nc { color: #447fcf; text-decoration: underline } /* Name.Class */ -.codehilite .no { color: #40ffff } /* Name.Constant */ -.codehilite .nd { color: #ffa500 } /* Name.Decorator */ -.codehilite .ni { color: #d0d0d0 } /* Name.Entity */ -.codehilite .ne { color: #bbbbbb } /* Name.Exception */ -.codehilite .nf { color: #447fcf } /* Name.Function */ -.codehilite .nl { color: #d0d0d0 } /* Name.Label */ -.codehilite .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */ -.codehilite .nx { color: #d0d0d0 } /* Name.Other */ -.codehilite .py { color: #d0d0d0 } /* Name.Property */ -.codehilite .nt { color: #6ab825; font-weight: bold } /* Name.Tag */ -.codehilite .nv { color: #40ffff } /* Name.Variable */ -.codehilite .ow { color: #6ab825; font-weight: bold } /* Operator.Word */ -.codehilite .w { color: #666666 } /* Text.Whitespace */ -.codehilite .mb { color: #3677a9 } /* Literal.Number.Bin */ -.codehilite .mf { color: #3677a9 } /* Literal.Number.Float */ -.codehilite .mh { color: #3677a9 } /* Literal.Number.Hex */ -.codehilite .mi { color: #3677a9 } /* Literal.Number.Integer */ -.codehilite .mo { color: #3677a9 } /* Literal.Number.Oct */ -.codehilite .sa { color: #ed9d13 } /* Literal.String.Affix */ -.codehilite .sb { color: #ed9d13 } /* Literal.String.Backtick */ -.codehilite .sc { color: #ed9d13 } /* Literal.String.Char */ -.codehilite .dl { color: #ed9d13 } /* Literal.String.Delimiter */ -.codehilite .sd { color: #ed9d13 } /* Literal.String.Doc */ -.codehilite .s2 { color: #ed9d13 } /* Literal.String.Double */ -.codehilite .se { color: #ed9d13 } /* Literal.String.Escape */ -.codehilite .sh { color: #ed9d13 } /* Literal.String.Heredoc */ -.codehilite .si { color: #ed9d13 } /* Literal.String.Interpol */ -.codehilite .sx { color: #ffa500 } /* Literal.String.Other */ -.codehilite .sr { color: #ed9d13 } /* Literal.String.Regex */ -.codehilite .s1 { color: #ed9d13 } /* Literal.String.Single */ -.codehilite .ss { color: #ed9d13 } /* Literal.String.Symbol */ -.codehilite .bp { color: #24909d } /* Name.Builtin.Pseudo */ -.codehilite .fm { color: #447fcf } /* Name.Function.Magic */ -.codehilite .vc { color: #40ffff } /* Name.Variable.Class */ -.codehilite .vg { color: #40ffff } /* Name.Variable.Global */ -.codehilite .vi { color: #40ffff } /* Name.Variable.Instance */ -.codehilite .vm { color: #40ffff } /* Name.Variable.Magic */ -.codehilite .il { color: #3677a9 } /* Literal.Number.Integer.Long */ +.codehilite .hll { background-color: #ffffcc } +.codehilite { background: #ffffff; } +.codehilite .c { font-style: italic } /* Comment */ +.codehilite .err { border: 1px solid #FF0000 } /* Error */ +.codehilite .k { font-weight: bold } /* Keyword */ +.codehilite .ch { font-style: italic } /* Comment.Hashbang */ +.codehilite .cm { font-style: italic } /* Comment.Multiline */ +.codehilite .cpf { font-style: italic } /* Comment.PreprocFile */ +.codehilite .c1 { font-style: italic } /* Comment.Single */ +.codehilite .cs { font-style: italic } /* Comment.Special */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gh { font-weight: bold } /* Generic.Heading */ +.codehilite .gp { font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { font-weight: bold } /* Generic.Subheading */ +.codehilite .kc { font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { font-weight: bold } /* Keyword.Namespace */ +.codehilite .kr { font-weight: bold } /* Keyword.Reserved */ +.codehilite .s { font-style: italic } /* Literal.String */ +.codehilite .nc { font-weight: bold } /* Name.Class */ +.codehilite .ni { font-weight: bold } /* Name.Entity */ +.codehilite .ne { font-weight: bold } /* Name.Exception */ +.codehilite .nn { font-weight: bold } /* Name.Namespace */ +.codehilite .nt { font-weight: bold } /* Name.Tag */ +.codehilite .ow { font-weight: bold } /* Operator.Word */ +.codehilite .sa { font-style: italic } /* Literal.String.Affix */ +.codehilite .sb { font-style: italic } /* Literal.String.Backtick */ +.codehilite .sc { font-style: italic } /* Literal.String.Char */ +.codehilite .dl { font-style: italic } /* Literal.String.Delimiter */ +.codehilite .sd { font-style: italic } /* Literal.String.Doc */ +.codehilite .s2 { font-style: italic } /* Literal.String.Double */ +.codehilite .se { font-weight: bold; font-style: italic } /* Literal.String.Escape */ +.codehilite .sh { font-style: italic } /* Literal.String.Heredoc */ +.codehilite .si { font-weight: bold; font-style: italic } /* Literal.String.Interpol */ +.codehilite .sx { font-style: italic } /* Literal.String.Other */ +.codehilite .sr { font-style: italic } /* Literal.String.Regex */ +.codehilite .s1 { font-style: italic } /* Literal.String.Single */ +.codehilite .ss { font-style: italic } /* Literal.String.Symbol */
M
static/style.css
→
static/style.css
@@ -1,11 +1,11 @@
-@font-face { - font-family: Inter; - src: url('fonts/Inter-Regular.woff2'); +@import url('https://rsms.me/inter/inter.css'); +html { font-family: 'Inter', sans-serif; } +@supports (font-variation-settings: normal) { + html { font-family: 'Inter var', sans-serif; } } html, body { - font-family: Inter, sans-serif; background: #021012; }@@ -74,9 +74,12 @@ width: 60%;
line-height: 1.8; } +pre { + padding: 10px; +} + pre, code { background: #041b1e; - padding: 2px; } .logo {
M
static/syntax.css
→
static/syntax.css
@@ -1,78 +1,39 @@
-.codehilite .hll { background-color: #404040 } -.codehilite { background: #202020; color: #d0d0d0 } -.codehilite .c { color: #999999; font-style: italic } /* Comment */ -.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */ -.codehilite .esc { color: #d0d0d0 } /* Escape */ -.codehilite .g { color: #d0d0d0 } /* Generic */ -.codehilite .k { color: #6ab825; font-weight: bold } /* Keyword */ -.codehilite .l { color: #d0d0d0 } /* Literal */ -.codehilite .n { color: #d0d0d0 } /* Name */ -.codehilite .o { color: #d0d0d0 } /* Operator */ -.codehilite .x { color: #d0d0d0 } /* Other */ -.codehilite .p { color: #d0d0d0 } /* Punctuation */ -.codehilite .ch { color: #999999; font-style: italic } /* Comment.Hashbang */ -.codehilite .cm { color: #999999; font-style: italic } /* Comment.Multiline */ -.codehilite .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */ -.codehilite .cpf { color: #999999; font-style: italic } /* Comment.PreprocFile */ -.codehilite .c1 { color: #999999; font-style: italic } /* Comment.Single */ -.codehilite .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */ -.codehilite .gd { color: #d22323 } /* Generic.Deleted */ -.codehilite .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */ -.codehilite .gr { color: #d22323 } /* Generic.Error */ -.codehilite .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ -.codehilite .gi { color: #589819 } /* Generic.Inserted */ -.codehilite .go { color: #cccccc } /* Generic.Output */ -.codehilite .gp { color: #aaaaaa } /* Generic.Prompt */ -.codehilite .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */ -.codehilite .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */ -.codehilite .gt { color: #d22323 } /* Generic.Traceback */ -.codehilite .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */ -.codehilite .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */ -.codehilite .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */ -.codehilite .kp { color: #6ab825 } /* Keyword.Pseudo */ -.codehilite .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */ -.codehilite .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */ -.codehilite .ld { color: #d0d0d0 } /* Literal.Date */ -.codehilite .m { color: #3677a9 } /* Literal.Number */ -.codehilite .s { color: #ed9d13 } /* Literal.String */ -.codehilite .na { color: #bbbbbb } /* Name.Attribute */ -.codehilite .nb { color: #24909d } /* Name.Builtin */ -.codehilite .nc { color: #447fcf; text-decoration: underline } /* Name.Class */ -.codehilite .no { color: #40ffff } /* Name.Constant */ -.codehilite .nd { color: #ffa500 } /* Name.Decorator */ -.codehilite .ni { color: #d0d0d0 } /* Name.Entity */ -.codehilite .ne { color: #bbbbbb } /* Name.Exception */ -.codehilite .nf { color: #447fcf } /* Name.Function */ -.codehilite .nl { color: #d0d0d0 } /* Name.Label */ -.codehilite .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */ -.codehilite .nx { color: #d0d0d0 } /* Name.Other */ -.codehilite .py { color: #d0d0d0 } /* Name.Property */ -.codehilite .nt { color: #6ab825; font-weight: bold } /* Name.Tag */ -.codehilite .nv { color: #40ffff } /* Name.Variable */ -.codehilite .ow { color: #6ab825; font-weight: bold } /* Operator.Word */ -.codehilite .w { color: #666666 } /* Text.Whitespace */ -.codehilite .mb { color: #3677a9 } /* Literal.Number.Bin */ -.codehilite .mf { color: #3677a9 } /* Literal.Number.Float */ -.codehilite .mh { color: #3677a9 } /* Literal.Number.Hex */ -.codehilite .mi { color: #3677a9 } /* Literal.Number.Integer */ -.codehilite .mo { color: #3677a9 } /* Literal.Number.Oct */ -.codehilite .sa { color: #ed9d13 } /* Literal.String.Affix */ -.codehilite .sb { color: #ed9d13 } /* Literal.String.Backtick */ -.codehilite .sc { color: #ed9d13 } /* Literal.String.Char */ -.codehilite .dl { color: #ed9d13 } /* Literal.String.Delimiter */ -.codehilite .sd { color: #ed9d13 } /* Literal.String.Doc */ -.codehilite .s2 { color: #ed9d13 } /* Literal.String.Double */ -.codehilite .se { color: #ed9d13 } /* Literal.String.Escape */ -.codehilite .sh { color: #ed9d13 } /* Literal.String.Heredoc */ -.codehilite .si { color: #ed9d13 } /* Literal.String.Interpol */ -.codehilite .sx { color: #ffa500 } /* Literal.String.Other */ -.codehilite .sr { color: #ed9d13 } /* Literal.String.Regex */ -.codehilite .s1 { color: #ed9d13 } /* Literal.String.Single */ -.codehilite .ss { color: #ed9d13 } /* Literal.String.Symbol */ -.codehilite .bp { color: #24909d } /* Name.Builtin.Pseudo */ -.codehilite .fm { color: #447fcf } /* Name.Function.Magic */ -.codehilite .vc { color: #40ffff } /* Name.Variable.Class */ -.codehilite .vg { color: #40ffff } /* Name.Variable.Global */ -.codehilite .vi { color: #40ffff } /* Name.Variable.Instance */ -.codehilite .vm { color: #40ffff } /* Name.Variable.Magic */ -.codehilite .il { color: #3677a9 } /* Literal.Number.Integer.Long */ +.codehilite .hll { background-color: #ffffcc } +.codehilite { background: #ffffff; } +.codehilite .c { font-style: italic } /* Comment */ +.codehilite .err { border: 1px solid #FF0000 } /* Error */ +.codehilite .k { font-weight: bold } /* Keyword */ +.codehilite .ch { font-style: italic } /* Comment.Hashbang */ +.codehilite .cm { font-style: italic } /* Comment.Multiline */ +.codehilite .cpf { font-style: italic } /* Comment.PreprocFile */ +.codehilite .c1 { font-style: italic } /* Comment.Single */ +.codehilite .cs { font-style: italic } /* Comment.Special */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gh { font-weight: bold } /* Generic.Heading */ +.codehilite .gp { font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { font-weight: bold } /* Generic.Subheading */ +.codehilite .kc { font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { font-weight: bold } /* Keyword.Namespace */ +.codehilite .kr { font-weight: bold } /* Keyword.Reserved */ +.codehilite .s { font-style: italic } /* Literal.String */ +.codehilite .nc { font-weight: bold } /* Name.Class */ +.codehilite .ni { font-weight: bold } /* Name.Entity */ +.codehilite .ne { font-weight: bold } /* Name.Exception */ +.codehilite .nn { font-weight: bold } /* Name.Namespace */ +.codehilite .nt { font-weight: bold } /* Name.Tag */ +.codehilite .ow { font-weight: bold } /* Operator.Word */ +.codehilite .sa { font-style: italic } /* Literal.String.Affix */ +.codehilite .sb { font-style: italic } /* Literal.String.Backtick */ +.codehilite .sc { font-style: italic } /* Literal.String.Char */ +.codehilite .dl { font-style: italic } /* Literal.String.Delimiter */ +.codehilite .sd { font-style: italic } /* Literal.String.Doc */ +.codehilite .s2 { font-style: italic } /* Literal.String.Double */ +.codehilite .se { font-weight: bold; font-style: italic } /* Literal.String.Escape */ +.codehilite .sh { font-style: italic } /* Literal.String.Heredoc */ +.codehilite .si { font-weight: bold; font-style: italic } /* Literal.String.Interpol */ +.codehilite .sx { font-style: italic } /* Literal.String.Other */ +.codehilite .sr { font-style: italic } /* Literal.String.Regex */ +.codehilite .s1 { font-style: italic } /* Literal.String.Single */ +.codehilite .ss { font-style: italic } /* Literal.String.Symbol */