More properties, cleanup

This commit is contained in:
2020-02-28 19:47:14 +01:00
parent b92b16f1b8
commit ba58deeaf5
8 changed files with 224 additions and 4 deletions

View File

@@ -0,0 +1,39 @@
package nl.astraeus.css.properties
class BoxDecorationBreak(
value: String
): CssProperty(value) {
companion object {
fun slice() = BorderWidth("slice")
fun clone() = BorderWidth("clone")
fun initial() = BorderWidth("initial")
fun inherit() = BorderWidth("inherit")
fun unset() = BorderWidth("unset")
}
}
class BoxShadow(
value: String
): CssProperty(value) {
companion object {
fun none() = BoxShadow("none")
fun text(txt: String) = BoxShadow(txt)
fun inset() = BoxShadow("inset")
fun initial() = BoxShadow("initial")
fun inherit() = BoxShadow("inherit")
}
}
class BoxSizing(
value: String
): CssProperty(value) {
companion object {
fun contextBox() = BoxSizing("content-box")
fun borderBox() = BoxSizing("border-box")
fun initial() = BoxShadow("initial")
fun inherit() = BoxShadow("inherit")
}
}