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

Request - add support to Style for list styling #449

Closed
reubenfirmin opened this issue Nov 12, 2022 · 2 comments
Closed

Request - add support to Style for list styling #449

reubenfirmin opened this issue Nov 12, 2022 · 2 comments

Comments

@reubenfirmin
Copy link

reubenfirmin commented Nov 12, 2022

Please add support for:

  • list-style
  • counter-reset
  • counter-increment
  • the counter() css function
@rjaros
Copy link
Owner

rjaros commented Nov 12, 2022

Remember you can always use setStyle(), like this:

val olStyle = Style("ol") {
    setStyle("counter-reset", "section")
    setStyle("list-style-type", "none")
}

val liStyle = Style("li", pElement = PElement.BEFORE) {
    setStyle("counter-increment", "section")
    setStyle("content", "counters(section, \".\") \" \"")
}

@rjaros
Copy link
Owner

rjaros commented Dec 3, 2022

I've implemented type-safe listStyle property, but counter and content css properties are just strings, so in my opinion it's better to just use setStyle.

@rjaros rjaros closed this as completed Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants