elm-css icon indicating copy to clipboard operation
elm-css copied to clipboard

Add content to pseudo element

Open rodrigo-morais opened this issue 9 years ago • 2 comments

In pseudo elements as :before and / or :after is possible to use content property. Today we have a content property linked with flex. I'd like add a content to :before and :after.

What is the better design for that?

We could reuse the same content and verify the parameter. If the parameter is a String then we use it as a property to pseudo element, but if the parameter is a LengthOrNumberOrAutoOrNoneOrContent than we use it as property to flex.

Another option is to create a new property with another name as contentPseudoElement.

What is the best solution? Have any other?

rodrigo-morais avatar Oct 06 '16 17:10 rodrigo-morais

For now, you can use property "content" "''"

scottcorgan avatar Oct 06 '16 17:10 scottcorgan

https://github.com/rtfeldman/elm-css/issues/432 would make it possible to introduce a content property without namespace collisions!

rtfeldman avatar Jun 10 '18 20:06 rtfeldman