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>
|
<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>
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue