mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-21 21:45:42 -05:00
style: add CSS grid overrides for full-width and minimal page frames
This commit is contained in:
parent
e6049847bd
commit
74fe409bbc
@ -309,6 +309,48 @@ a {
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Page Frame Overrides
|
||||
// ============================================================================
|
||||
|
||||
// Full-width frame: no sidebars, center content spans full width
|
||||
.page[data-frame="full-width"] > #quartz-body {
|
||||
grid-template-columns: auto;
|
||||
grid-template-rows: auto auto auto;
|
||||
grid-template-areas:
|
||||
"grid-header"
|
||||
"grid-center"
|
||||
"grid-footer";
|
||||
|
||||
@media all and ($tablet) {
|
||||
grid-template-columns: auto;
|
||||
}
|
||||
|
||||
& .center.full-width {
|
||||
max-width: 100%;
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// Minimal frame: no sidebars, no header/footer chrome, body content only + footer
|
||||
.page[data-frame="minimal"] > #quartz-body {
|
||||
grid-template-columns: auto;
|
||||
grid-template-rows: auto auto;
|
||||
grid-template-areas:
|
||||
"grid-center"
|
||||
"grid-footer";
|
||||
|
||||
@media all and ($tablet) {
|
||||
grid-template-columns: auto;
|
||||
}
|
||||
|
||||
& .center.minimal {
|
||||
max-width: 100%;
|
||||
min-width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.footnotes {
|
||||
margin-top: 2rem;
|
||||
border-top: 1px solid var(--lightgray);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user