style(template): make width uniform; smaller code-block font
This commit is contained in:
parent
ca19fe2ab9
commit
331138689e
2 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@ class CodeBlockComponent extends HTMLElement {
|
|||
<div>
|
||||
<pre class="language-${lang} ${
|
||||
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
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
<style>
|
||||
body {
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
max-width: 750px;
|
||||
max-width: 40em;
|
||||
width: 40em;
|
||||
margin: 0 auto;
|
||||
padding: 1em;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue