Open chipsenkbeil opened 7 years ago
Looks like I can do the following for now:
object MyStyle extends CascadingStyleSheet {
lazy val myClass: Cls = cls(
Selector("input[type='radio']")(
// My specific CSS content
)
)
}
lol I didn't even realize you could do that.
I guess we could document it, or maybe even include it as part of the base-syntax if we could find a nice way of representing. Maybe input(
type:= "radio")
or something. This might clash with the existing use of input.apply
to mean building up a frag
, so it might take some refactoring to separate the input
s we see in CascadingStyleSheet
from the input
s we see in scalatags.Text.all._
so we can make that syntax work
I want to be able to write something like
There doesn't appear to be any documentation for attribute selectors nor do I see anything for them in the source code.