v. 1.0.6
- Fix not Took 9 minutes
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform") version "1.5.31"
|
kotlin("multiplatform") version "1.6.10"
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
signing
|
signing
|
||||||
id("org.jetbrains.dokka") version "1.5.31"
|
id("org.jetbrains.dokka") version "1.5.31"
|
||||||
@@ -7,11 +7,10 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "nl.astraeus"
|
group = "nl.astraeus"
|
||||||
version = "1.0.5-SNAPSHOT"
|
version = "1.0.6"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
|
|
||||||
|
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
||||||
maven { setUrl("https://plugins.gradle.org/m2/") }
|
maven { setUrl("https://plugins.gradle.org/m2/") }
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -222,7 +222,7 @@ abstract class CssGenerator {
|
|||||||
if (css.isNotBlank()) {
|
if (css.isNotBlank()) {
|
||||||
val builder = StringBuilder()
|
val builder = StringBuilder()
|
||||||
|
|
||||||
check (allowCommaInSelector || !name.contains(',')) {
|
check (allowCommaInSelector || (name.indexOf(',') == -1)) {
|
||||||
"Comma is not allowed in selector (option is set in generateCss call)"
|
"Comma is not allowed in selector (option is set in generateCss call)"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -862,6 +862,10 @@ open class InlineStyle : CssGenerator() {
|
|||||||
props["content"] = prp(content)
|
props["content"] = prp(content)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun content(content: String) {
|
||||||
|
props["content"] = prp(content)
|
||||||
|
}
|
||||||
|
|
||||||
fun counterIncrement(increment: String) {
|
fun counterIncrement(increment: String) {
|
||||||
props["counter-increment"] = prp(increment)
|
props["counter-increment"] = prp(increment)
|
||||||
}
|
}
|
||||||
@@ -1610,6 +1614,8 @@ open class Style : InlineStyle() {
|
|||||||
addStyle("::${selector.description()}", style)
|
addStyle("::${selector.description()}", style)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun not(name: DescriptionProvider): DescriptionProvider = ValueDescriptionProvider(":not(${name.description()})")
|
||||||
|
@Deprecated("Use select(not(...)) instead.")
|
||||||
fun not(selector: DescriptionProvider, style: Css) {
|
fun not(selector: DescriptionProvider, style: Css) {
|
||||||
addStyle(":not(${selector.description()})", style)
|
addStyle(":not(${selector.description()})", style)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import kotlin.test.Test
|
|||||||
|
|
||||||
class TestCalcExpression {
|
class TestCalcExpression {
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testCalcExpression() {
|
fun testCalcExpression() {
|
||||||
val a = calc(10.px + 20.px - 5.em)
|
val a = calc(10.px + 20.px - 5.em)
|
||||||
|
|||||||
Reference in New Issue
Block a user