Explore more blog-like styling.

This commit is contained in:
Sergio Martínez Portela 2022-07-21 23:28:02 +02:00
parent 7afb6be68f
commit 85e254d75c
2 changed files with 18 additions and 7 deletions

View File

@ -2,13 +2,13 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Código para llevar</title> <title>{{ title }} @ Código para llevar</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../css/style.css" /> <link rel="stylesheet" href="../css/style.css" />
<link rel="stylesheet" href="../css/dark-syntax.css" /> <link rel="stylesheet" href="../css/dark-syntax.css" />
</head> </head>
<body> <body>
<article> <article class="post">
<h2 class="post-title">{{ title }}</h2> <h2 class="post-title">{{ title }}</h2>
{{ content | safe }} {{ content | safe }}
</article> </article>

View File

@ -62,7 +62,7 @@ pre {
padding: 0.5ex; padding: 0.5ex;
padding-left: 0.5ex; padding-left: 0.5ex;
padding-left: 1.5ex; padding-left: 1.5ex;
background-color: #eee8d5; background-color: #001622;
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.26); box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.26);
} }
pre > code { pre > code {
@ -70,10 +70,21 @@ pre > code {
line-height: 1.2em; line-height: 1.2em;
overflow: auto; overflow: auto;
} }
code { pre code {
padding: 0.5ex; padding: 0.5ex;
font-size: medium; font-size: medium;
border: 2px solid #eee8d5; border: 2px solid #001622;
background: #fdf6e3; background: #073642;
color: #073642; color: #fff;
}
code {
padding: 0.25ex;
margin: 0.25ex;
border: 1px solid #001622;
}
article.post {
max-width: min(650px, 100ex);
margin: 0 auto;
} }