From ba640f460077be86ae644460fda6a9e8e69f6d84 Mon Sep 17 00:00:00 2001 From: Josh Mitchell Date: Mon, 16 Oct 2023 10:38:39 -0700 Subject: [PATCH] Correct some performance and accessibility issues. --- _includes/head.html | 4 +-- _layouts/default.html | 10 ------- public/css/styles.css | 16 +++++++---- public/css/syntax.css | 65 ------------------------------------------- 4 files changed, 12 insertions(+), 83 deletions(-) delete mode 100755 public/css/syntax.css diff --git a/_includes/head.html b/_includes/head.html index c8cea15..a5d57af 100755 --- a/_includes/head.html +++ b/_includes/head.html @@ -11,11 +11,9 @@ {% if page.description %} {% endif %} {% if page.image %} {% endif %} - + {% if page.title == "Home" %}{{ site.title }} · {{ site.tagline }}{% else %}{{ page.title }} · {{ site.title }}{% endif %} - - diff --git a/_layouts/default.html b/_layouts/default.html index fcc81ae..c99f6e6 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -12,14 +12,4 @@ - diff --git a/public/css/styles.css b/public/css/styles.css index 8f01b50..7a6de2f 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -10,7 +10,10 @@ */ html { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: -apple-system, BlinkMacSystemFont, + "Segoe UI", "Roboto", "Oxygen", + "Ubuntu", "Cantarell", "Fira Sans", + "Droid Sans", "Helvetica Neue", sans-serif; } @media (min-width: 48em) { html { @@ -53,7 +56,7 @@ html { } body { - color: #515151; + color: #202020; background-color: #fff; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; @@ -61,9 +64,12 @@ body { /* No `:visited` state is required by default (browsers will use `a`) */ a { - color: #268bd2; + color: #0000ff; text-decoration: none; } +.content a { + text-decoration: underline; +} a strong { color: inherit; } @@ -350,7 +356,7 @@ tbody tr:nth-child(odd) th { display: block; margin-top: -.5rem; margin-bottom: 1rem; - color: #9a9a9a; + color: #343434; } /* Related posts */ @@ -440,7 +446,7 @@ a.pagination-item:hover { .sidebar { text-align: center; padding: 2rem 1rem; - color: rgba(255,255,255,.5); + color: #FFFFFF; background-color: #202020; } @media (min-width: 48em) { diff --git a/public/css/syntax.css b/public/css/syntax.css deleted file mode 100755 index 15ad797..0000000 --- a/public/css/syntax.css +++ /dev/null @@ -1,65 +0,0 @@ -.highlight .hll { background-color: #ffc; } -.highlight .c { color: #999; } /* Comment */ -.highlight .err { color: #a00; background-color: #faa } /* Error */ -.highlight .k { color: #069; } /* Keyword */ -.highlight .o { color: #555 } /* Operator */ -.highlight .cm { color: #09f; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #099 } /* Comment.Preproc */ -.highlight .c1 { color: #999; } /* Comment.Single */ -.highlight .cs { color: #999; } /* Comment.Special */ -.highlight .gd { background-color: #fcc; border: 1px solid #c00 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #f00 } /* Generic.Error */ -.highlight .gh { color: #030; } /* Generic.Heading */ -.highlight .gi { background-color: #cfc; border: 1px solid #0c0 } /* Generic.Inserted */ -.highlight .go { color: #aaa } /* Generic.Output */ -.highlight .gp { color: #009; } /* Generic.Prompt */ -.highlight .gs { } /* Generic.Strong */ -.highlight .gu { color: #030; } /* Generic.Subheading */ -.highlight .gt { color: #9c6 } /* Generic.Traceback */ -.highlight .kc { color: #069; } /* Keyword.Constant */ -.highlight .kd { color: #069; } /* Keyword.Declaration */ -.highlight .kn { color: #069; } /* Keyword.Namespace */ -.highlight .kp { color: #069 } /* Keyword.Pseudo */ -.highlight .kr { color: #069; } /* Keyword.Reserved */ -.highlight .kt { color: #078; } /* Keyword.Type */ -.highlight .m { color: #f60 } /* Literal.Number */ -.highlight .s { color: #d44950 } /* Literal.String */ -.highlight .na { color: #4f9fcf } /* Name.Attribute */ -.highlight .nb { color: #366 } /* Name.Builtin */ -.highlight .nc { color: #0a8; } /* Name.Class */ -.highlight .no { color: #360 } /* Name.Constant */ -.highlight .nd { color: #99f } /* Name.Decorator */ -.highlight .ni { color: #999; } /* Name.Entity */ -.highlight .ne { color: #c00; } /* Name.Exception */ -.highlight .nf { color: #c0f } /* Name.Function */ -.highlight .nl { color: #99f } /* Name.Label */ -.highlight .nn { color: #0cf; } /* Name.Namespace */ -.highlight .nt { color: #2f6f9f; } /* Name.Tag */ -.highlight .nv { color: #033 } /* Name.Variable */ -.highlight .ow { color: #000; } /* Operator.Word */ -.highlight .w { color: #bbb } /* Text.Whitespace */ -.highlight .mf { color: #f60 } /* Literal.Number.Float */ -.highlight .mh { color: #f60 } /* Literal.Number.Hex */ -.highlight .mi { color: #f60 } /* Literal.Number.Integer */ -.highlight .mo { color: #f60 } /* Literal.Number.Oct */ -.highlight .sb { color: #c30 } /* Literal.String.Backtick */ -.highlight .sc { color: #c30 } /* Literal.String.Char */ -.highlight .sd { color: #c30; font-style: italic } /* Literal.String.Doc */ -.highlight .s2 { color: #c30 } /* Literal.String.Double */ -.highlight .se { color: #c30; } /* Literal.String.Escape */ -.highlight .sh { color: #c30 } /* Literal.String.Heredoc */ -.highlight .si { color: #a00 } /* Literal.String.Interpol */ -.highlight .sx { color: #c30 } /* Literal.String.Other */ -.highlight .sr { color: #3aa } /* Literal.String.Regex */ -.highlight .s1 { color: #c30 } /* Literal.String.Single */ -.highlight .ss { color: #fc3 } /* Literal.String.Symbol */ -.highlight .bp { color: #366 } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #033 } /* Name.Variable.Class */ -.highlight .vg { color: #033 } /* Name.Variable.Global */ -.highlight .vi { color: #033 } /* Name.Variable.Instance */ -.highlight .il { color: #f60 } /* Literal.Number.Integer.Long */ - -.css .o, -.css .o + .nt, -.css .nt + .nt { color: #999; }