mirror of
https://github.com/boostorg/boostlook.git
synced 2026-01-19 04:02:14 +00:00
layout
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user