-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@page :first isn't working as expected in paged.js #733
Comments
I'm seeing a syntax error for using both page selectors like For the case above using the page name +
It isn't pretty but you could get this to work by using the pagedjs classes directly:
|
@fchasen, yes, the goal is to be able to remove the bottom-left content if it's a first right-hand page, because that content is the page title and so duplicative of the main heading on the page. From what I'm seeing, the spec shows a couple examples with two pseudo pages in a selector like |
Ah thanks, I missed that one - working on an update to support multiple selectors. I'm still not sure |
Ok, so to enable the targeting of a first page of any chapter in the book, I think I need to look at refactoring the css so that every chapter is a named page, so that I can apply Prince has the idea of Page Groups (https://www.princexml.com/doc/paged/#page-groups) where it lets you apply |
We are currently working on a fix for your bug! Stay tuned for updates, and thank you for your important contribution. |
Before proceeding, check to make sure there isn’t an existing issue for this bug.
Steps to reproduce
quire build
andquire pdf
to generate the PDFActual behavior
The chapter title is being included on the first page of the main essay, which is page number 1, even though we've set a
:first
page rule to remove it:The :first rule only seems to be working on named pages, though the paged.js documentation seems to indicate it should work on all pages. In Prince, we had to define
prince-page-group: start;
on .quire-page to get :first to work properly. Is there something similar with paged.js?Expected behavior
The
bottom-left
margin area should be blank on page 1.Version numbers
Quire CLI 1.0.0-rc.7
Quire 11ty 1.0.0-rc.9
Node 18.16.0
What browsers are you seeing the problem on?
No response
Relevant Terminal/Shell output
No response
Supporting Information
No response
The text was updated successfully, but these errors were encountered: