Idea: Custom CSS (updated to data attr)

A small suggestion, maybe replace data-checkbox="[]" and “[x]” with either:
“TODO”
“DONE”

or
“TRUE”
“FALSE”.

:slight_smile:

image

2 Likes

the advantage of the current null, [], or [x]

is that

  • reuses existing code , for lazyness
  • null and [] differentiates between not being a task and unchecked (3 states instead of 2)
2 Likes

Good point! So let’s stay with the easier route :). There is just one additional blank space after and in the code, i.e. " " . Nothing big, just letting you know.

1 Like

I am also a little bit unsure whether it is allowed to use “[” in attributes :D. But it works!

1 Like

“[” is a valid string so i don’t see why it wouldn’t be

even if the attr was “[123, 32]”, that’s a string, not an array until you convert/parse it as such

2 Likes

Then it is all fine :).

1 Like

Thank you very much again. I hope it did not take too much time to implement.

I hope that of the benefits for you could be that people will experiment. So you will be able to see their creations.

And please, don’t be afraid to change any of these things anytime. There should be no expectation that if I make custom CSS now that it will work after updates :). Updates and your vision are much more important.

I will stress it, if I write about using CSS for Kinopio. :slight_smile:

2 Likes

i’m looking forward to it :slight_smile:

2 Likes