Small fixes

This commit is contained in:
2021-05-10 15:54:42 +02:00
parent a4331c0a98
commit d03db14444
2 changed files with 6 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ plugins {
}
group = "nl.astraeus"
version = "0.4.17"
version = "0.4.19"
repositories {
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }

View File

@@ -344,6 +344,10 @@ open class Style : CssGenerator() {
props[name] = prp(value)
}
fun plain(name: String, value: CssProperty) {
props[name] = prp(value)
}
fun alignContent(value: AlignContent) { props["align-content"] = prp(value) }
fun alignItems(alignItems: AlignItems) { props["align-items"] = prp(alignItems) }
fun all(all: All) { props["all"] = prp(all) }
@@ -542,7 +546,7 @@ open class Style : CssGenerator() {
fun left(left: Measurement) { props["left"] = prp(left) }
fun letterSpacing(length: Measurement) { props["letter-spacing"] = prp(length) }
fun letterSpacing(spacing: LetterSpacing) { props["letter-spacing"] = prp(spacing) }
fun lineHeight(number: Double) { props["letter-spacing"] = prp("$number") }
fun lineHeight(number: Double) { props["line-height"] = prp("$number") }
fun lineHeight(measurement: Measurement) { props["line-height"] = prp(measurement) }
fun lineHeight(height: LineHeight) { props["line-height"] = prp(height) }
fun listStyle(style: String) { props["list-style"] = prp(style) }