style(template): make width uniform; smaller code-block font

This commit is contained in:
Ayo 2023-10-22 01:05:30 +02:00
parent ca19fe2ab9
commit 331138689e
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ class CodeBlockComponent extends HTMLElement {
<div> <div>
<pre class="language-${lang} ${ <pre class="language-${lang} ${
lineNumbers ? "line-numbers" : "" lineNumbers ? "line-numbers" : ""
}" id="pre" style="padding:1em;background:#efefef;margin:1em 0;border-radius:5px;font-size:large;overflow:scroll"><code id="code">${ }" id="pre" style="padding:1em;background:#efefef;margin:1em 0;border-radius:5px;overflow:scroll"><code id="code">${
this.trimmed this.trimmed
}</code></pre> }</code></pre>
</div> </div>

View file

@ -26,7 +26,8 @@
<style> <style>
body { body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
max-width: 750px; max-width: 40em;
width: 40em;
margin: 0 auto; margin: 0 auto;
padding: 1em; padding: 1em;
} }