Add elements for document sidebar and margin gutters #4659
Closed
jimjam-slam
started this conversation in
Feature Requests
Replies: 2 comments 1 reply
-
This is a pretty interesting suggestion - something I hadn't even thought of, so thank you! I'll open an enhancement request and give it some consideration for our 1.4 release (we'll starting working on that version soon, but are currently stabilizing 1.3). Two additional thoughts:
Thanks again. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Closing in favour of #4671 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Quarto's CSS grid system has 13 grid column tracks:
The main elements in those tracks—the sidebar, article body (or header block) and margin, all have elements in the document, so they can be targeted by CSS.
The gutter elements, though (column tracks 1, 2, 6, 8, 12 and 13), are empty.
As far as I can tell, the only way to target empty grid cells is with CSS Grid-Structural Selectors, which are still in development and don't yet have any browser support. Using
:nth-child
doesn't work, as that targets the nth HTML child, not the nth grid cell. In other words, it only works if every grid cell is occupied.This isn't a big issue, but if the empty gutters had empty HTML elements in them, you could do things like have a sidebar or margin with a background colour that goes out to the page edge (say, if I wanted tracks 1–5 to all be blue).
Beta Was this translation helpful? Give feedback.
All reactions