- Fix not

Took 9 minutes
This commit is contained in:
2022-03-24 09:24:10 +01:00
parent 780dd0782a
commit 1e37ac07ba
5 changed files with 9 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
plugins {
kotlin("multiplatform") version "1.5.31"
kotlin("multiplatform") version "1.6.10"
`maven-publish`
signing
id("org.jetbrains.dokka") version "1.5.31"
@@ -7,11 +7,10 @@ plugins {
}
group = "nl.astraeus"
version = "1.0.5-SNAPSHOT"
version = "1.0.6"
repositories {
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
}
kotlin {

View File

@@ -1,7 +1,5 @@
pluginManagement {
repositories {
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
mavenCentral()
maven { setUrl("https://plugins.gradle.org/m2/") }

View File

@@ -1,11 +0,0 @@
package nl.astraeus.css.style
import nl.astraeus.css.properties.Color
object CssFunctions {
fun darken(color: Color, percentage: Int): Color {
return color
}
}

View File

@@ -222,7 +222,7 @@ abstract class CssGenerator {
if (css.isNotBlank()) {
val builder = StringBuilder()
check (allowCommaInSelector || !name.contains(',')) {
check (allowCommaInSelector || (name.indexOf(',') == -1)) {
"Comma is not allowed in selector (option is set in generateCss call)"
}
@@ -862,6 +862,10 @@ open class InlineStyle : CssGenerator() {
props["content"] = prp(content)
}
fun content(content: String) {
props["content"] = prp(content)
}
fun counterIncrement(increment: String) {
props["counter-increment"] = prp(increment)
}
@@ -1610,6 +1614,8 @@ open class Style : InlineStyle() {
addStyle("::${selector.description()}", style)
}
fun not(name: DescriptionProvider): DescriptionProvider = ValueDescriptionProvider(":not(${name.description()})")
@Deprecated("Use select(not(...)) instead.")
fun not(selector: DescriptionProvider, style: Css) {
addStyle(":not(${selector.description()})", style)
}

View File

@@ -9,7 +9,6 @@ import kotlin.test.Test
class TestCalcExpression {
@Test
fun testCalcExpression() {
val a = calc(10.px + 20.px - 5.em)