Style plain text code blocks
For quotes of poetry, etc, style pre-formatted blocks of plain text.
This commit is contained in:
parent
cf8de8a58a
commit
25eaca442c
4 changed files with 11 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
|||
********/
|
||||
|
||||
|
||||
figure, h1, h2, h3, h4, h5, h6, p {
|
||||
figure, h1, h2, h3, h4, h5, h6, p, pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ body {
|
|||
grid-column: main-start / main-end;
|
||||
}
|
||||
|
||||
.content > :is(.figure--image, pre) {
|
||||
.content > :is(.figure--image, .codeblock) {
|
||||
grid-column: wide-gutter-start / wide-gutter-end;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,12 @@
|
|||
}
|
||||
|
||||
|
||||
.pre--plaintext {
|
||||
font-family: var(--font-family-body);
|
||||
grid-column: main-start / main-end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
3
layouts/_default/_markup/render-codeblock-text.html
Normal file
3
layouts/_default/_markup/render-codeblock-text.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<pre class="pre--plaintext">
|
||||
{{ .Inner | safeHTML }}
|
||||
</pre>
|
Loading…
Add table
Add a link
Reference in a new issue