Skip to content

Conversation

@Cube707
Copy link
Contributor

@Cube707 Cube707 commented Mar 23, 2025

after I got asked on Discord how I achieved this on my character-sheet, I thought it might make sense to add a small example.

It shows how to style an Input depending on its data-value and how to map selectable strings to numerical values using the inlineSelector.

The input definitions got quite long, but as it is quiet manageable via interactive edit mode, I believe it is not to much at once.

image

@Cube707 Cube707 force-pushed the example/styling-datavalues branch from cdba5e0 to 21351ce Compare March 23, 2025 19:07
@Cube707
Copy link
Contributor Author

Cube707 commented Mar 23, 2025

Are you OK with using the new CSS-native nesting?

I can also switch everything to full selectors, I just find this much more readable

@mProjectsCode
Copy link
Owner

The nesting is fine. Thanks for the PR.

@mProjectsCode mProjectsCode merged commit 7cab274 into mProjectsCode:master Mar 23, 2025
1 check passed
@Cube707 Cube707 deleted the example/styling-datavalues branch March 23, 2025 20:51
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

Successfully merging this pull request may close these issues.

2 participants