Files
kotlin-css-generator/src/commonMain/kotlin/nl/astraeus/css/properties/Content.kt
2021-05-11 17:26:08 +02:00

24 lines
641 B
Kotlin

package nl.astraeus.css.properties
class Content(
value: String
) : CssProperty(value) {
companion object {
val normal = Content("normal")
val none = Content("none")
val counter = Content("counter")
val openQuote = Content("open-quote")
val closeQuote = Content("close-quote")
val noOpenQuote = Content("no-open-quote")
val noCloseQuote = Content("no-close-quote")
val initial = Content("initial")
val inherit = Content("inherit")
fun attr(attribute: String) = Content("attr($attribute)")
fun string(txt: String) = Content("\"$txt\"")
fun url(url: String) = Content("url($url)")
}
}