From 85e254d75c4021a12fa860d69a72c96261b0eb57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Thu, 21 Jul 2022 23:28:02 +0200 Subject: [PATCH] Explore more blog-like styling. --- static/article.tmpl.html | 4 ++-- static/style.css | 21 ++++++++++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/static/article.tmpl.html b/static/article.tmpl.html index 879d557..36d27d1 100644 --- a/static/article.tmpl.html +++ b/static/article.tmpl.html @@ -2,13 +2,13 @@ - Código para llevar + {{ title }} @ Código para llevar -
+

{{ title }}

{{ content | safe }}
diff --git a/static/style.css b/static/style.css index 656ff1b..2ba09d7 100644 --- a/static/style.css +++ b/static/style.css @@ -62,7 +62,7 @@ pre { padding: 0.5ex; padding-left: 0.5ex; padding-left: 1.5ex; - background-color: #eee8d5; + background-color: #001622; box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.26); } pre > code { @@ -70,10 +70,21 @@ pre > code { line-height: 1.2em; overflow: auto; } -code { +pre code { padding: 0.5ex; font-size: medium; - border: 2px solid #eee8d5; - background: #fdf6e3; - color: #073642; + border: 2px solid #001622; + background: #073642; + color: #fff; +} + +code { + padding: 0.25ex; + margin: 0.25ex; + border: 1px solid #001622; +} + +article.post { + max-width: min(650px, 100ex); + margin: 0 auto; }