Hi!
I'm working on the style-guide for an academic journal that uses Prince. I have an `@page :first {` rule that sets the margin-box content for all of the articles, which are separate PDF files. But the Table of Contents page has different margin-box content, and I want to override my `@page :first` settings on that specific document without forking my stylesheet. Is this possible?
I applied an `id` to the `html` element on that document, and tried a rule like this, but it isn't the correct way, and Prince couldn't parse it:
I also tried this:
This would work with other selectors, but not @selectors. What's the correct way to subordinate @page or margin-boxes to other elements in the cascade?
I'm working on the style-guide for an academic journal that uses Prince. I have an `@page :first {` rule that sets the margin-box content for all of the articles, which are separate PDF files. But the Table of Contents page has different margin-box content, and I want to override my `@page :first` settings on that specific document without forking my stylesheet. Is this possible?
I applied an `id` to the `html` element on that document, and tried a rule like this, but it isn't the correct way, and Prince couldn't parse it:
#toc @page :first {
@top-left {
/* my styles */
}
}
I also tried this:
#toc {
@page :first {
@top-left {
/* my styles */
}
}
}
This would work with other selectors, but not @selectors. What's the correct way to subordinate @page or margin-boxes to other elements in the cascade?