From 71b1d8b8713790971881e0076f90d5f743797ec7 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Mon, 13 Sep 2021 23:30:11 +0200 Subject: Further simplify templates and CSS --- static/css/style.css | 35 +++++++++++++++-------------------- templates/article.html | 3 --- templates/base.html | 2 +- 3 files changed, 16 insertions(+), 24 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 4015589..e265378 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -13,15 +13,15 @@ a:visited { color: #752d77; } -#banner a:link, -#banner a:visited, -#banner a:hover, -#menu a:link, -#menu a:visited, -#menu a:hover, -header a, -header a:visited, -header a:hover { +h1 a:link, +h1 a:visited, +h1 a:hover, +h2 a:link, +h2 a:visited, +h2 a:hover, +h3 a:link, +h3 a:visited, +h3 a:hover { color: inherit; text-decoration: none; } @@ -53,27 +53,21 @@ footer.copyright { pre { border: 2px solid gray; padding: 0.5em; - background: white; -} - -@media(prefers-color-scheme: light) { - html { - background-color: aliceblue; - } + background-color: snow; } @media(prefers-color-scheme: dark) { html { - background-color: #232323; + background-color: black; color: lightgrey; } a { - color: #7d74ff; + color: cornflowerblue; } a:visited { - color: #b369b5; + color: orchid; } footer.post-info, @@ -82,6 +76,7 @@ pre { } pre { - background: black; + background-color: darkgrey; + color: black; } } diff --git a/templates/article.html b/templates/article.html index 1089b78..fba7058 100644 --- a/templates/article.html +++ b/templates/article.html @@ -41,9 +41,6 @@ {{ article.locale_modified }} {% endif %} - {% if article.category %} - in category {{ article.category }} - {% endif %} {% if article.tags %}
Tags: diff --git a/templates/base.html b/templates/base.html index efb4fca..bc7556f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -58,7 +58,7 @@
-- cgit v1.2.3