diff --git a/build.gradle.kts b/build.gradle.kts index d0bb1d5..88a0265 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") } diff --git a/src/commonMain/kotlin/nl/astraeus/css/style/Style.kt b/src/commonMain/kotlin/nl/astraeus/css/style/Style.kt index 88d723e..d86e405 100644 --- a/src/commonMain/kotlin/nl/astraeus/css/style/Style.kt +++ b/src/commonMain/kotlin/nl/astraeus/css/style/Style.kt @@ -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) }