Skip to content
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

Allow setting of HTML Attribute and CSS features at the <div class="page"> level #3901

Open
dbolack-ab opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
feature UI/UX User Interface, user experience

Comments

@dbolack-ab
Copy link
Collaborator

Your idea:

Presently, when a user wants to change CSS parameters of a Page classed div, it has to be done via page :has() mechanisms. While this works pretty well, it's not the most intuitive thing for folks new to CSS.
Its primary failing is it only permits setting CSS Properties to predefined values.

This issue proposes that we extend the single-branch mustache syntax to be appendable to a \page and inserted into the page classed div's style, class, and arbitrary add-on attributes as desired.

Additionally, to support setting values on the first page, we need to consider dropping a completely empty Page 1, treating the \page definition as the start of the page, not the end. By only dropping the empty page body, we maintain backward compatibility.

example syntax:

\page{--TOC:"'exclude'",wide,XCUSTOMATTR="'Foo'"}
  • I may have the quoting syntax inverted in the example.
@5e-Cleric 5e-Cleric added feature UI/UX User Interface, user experience labels Nov 20, 2024
@5e-Cleric
Copy link
Member

I agree this would make things easier for users, if they find out about this feature.

@dbolack-ab dbolack-ab self-assigned this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature UI/UX User Interface, user experience
Projects
None yet
Development

No branches or pull requests

2 participants