From 3594b6d41f39c130b6cb14f22be157511fd02e0d Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Sat, 19 Dec 2020 22:25:00 -0800 Subject: [PATCH] Fix CSS and CSP --- static/style.css | 20 ++++++++++++++++++-- templates/base.html | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index 161acf5..badcc2e 100644 --- a/static/style.css +++ b/static/style.css @@ -63,6 +63,7 @@ a:not(.post_right):hover { } #about { + padding-top: 20px; background: #151515; } @@ -268,7 +269,7 @@ small { margin-top: 1em; border-radius: 5px; display: flex; - /* border: 2px solid var(--foreground); */ + font-size: 15px; } .comment_left, .comment_right { @@ -279,7 +280,7 @@ small { .comment_left { text-align: center; min-width: 50px; - padding: 5px; + padding: 5px 0px; align-items: center; } @@ -374,6 +375,21 @@ small { background: black; } +/* Code */ + +pre { + background: var(--outside); + padding: 20px; + margin-top: 10px; + border-radius: 5px; + box-shadow: var(--black-contrast); +} + +code { + font-family: monospace; + font-size: 14px; +} + /* Tables */ table { diff --git a/templates/base.html b/templates/base.html index 2f1040f..df555bf 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,7 @@ {% block head %} {% block title %}{% endblock %} - +