This commit is contained in:
Vinnie Falco
2024-08-07 14:41:54 -07:00
parent 944655891d
commit 5052fb1825
2 changed files with 62 additions and 0 deletions

View File

@@ -130,3 +130,64 @@ font-weight: 550;
border: 1px solid #e8e8e8;
padding: 0.25em 0.55em;
}
/*----------------------------------------------*/
:root {
--color-pasteboard: rgb(209, 213, 219);
}
body.article {
background-color: var(--color-pasteboard);
}
body.article .doc {
display: grid;
grid-template-areas:
"header content"
". footer";
grid-template-columns: auto 1fr;
grid-template-rows: 1fr auto;
min-height: 100vh;
max-width: 80rem;
margin-left: auto;
margin-right: auto;
gap: 1rem;
padding: 1rem;
}
#toc > ul {
margin-left:.125em;
}
#toc ul {
margin: 0;
padding: 0;
line-height: 1.2;
font-size: 0.85rem;
list-style: none;
}
#toc ul {
padding-left: 0.5rem;
}
.doc > #header,
.doc > #content,
.doc > #footer {
background-color: white;
border-radius: 1rem;
padding: 1rem;
}
#header {
grid-area: header;
height: fit-content;
}
#content {
grid-area: content;
}
#footer {
grid-area: footer;
}

View File

@@ -3,6 +3,7 @@ Asciidoctor::Extensions.register do
process do |doc, output|
output = output.sub(/<body (.*?)>/, '<body \\1><div class="doc">')
output = output.sub(/<\/body>/, "</div></body>")
#output = output.sub(/<\/body>/, "</body>")
end
end
end