Skip to content

Commit

Permalink
fix justify content
Browse files Browse the repository at this point in the history
  • Loading branch information
allangomes committed Aug 19, 2024
1 parent db94501 commit 7bde05d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ org.gradle.parallel=true
org.gradle.caching=true

group=io.github.allangomes
version=0.0.1
version=0.0.2
6 changes: 3 additions & 3 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ mavenPublishing {
))

coordinates(
groupId = "io.github.allangomes",
artifactId = "kotlinwind-css",
version = "0.0.1"
groupId = rootProject.group as String,
artifactId = rootProject.name,
version = rootProject.version as String
)

pom {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import io.github.allangomes.kotlinwind.css.features.sizing.Sizing
import io.github.allangomes.kotlinwind.css.features.text.Text
import io.github.allangomes.kotlinwind.css.features.text_decoration.TextDecoration

typealias StyleBuilder = Root.() -> Unit

class Root : KWRoot,
AspectRatio<KWRoot>,
Expand Down Expand Up @@ -92,4 +93,8 @@ class Root : KWRoot,
TextDecoration(this, "none")
}

operator fun StyleBuilder?.unaryPlus() {
this?.invoke(this@Root)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,48 @@ interface JustifyContent<T> : KWScope<T> {
/** justify-content: normal;
* - [documentation](https://tailwindcss.com/docs/justify-content#normal)
* */
val justify_normal get() = JUSTIFY_CONTENT value "justify-normal"
val justify_normal get() = JUSTIFY_CONTENT value "normal"

@StyleValueMarker
/** justify-content: flex-start;
* - [documentation](https://tailwindcss.com/docs/justify-content#start)
* */
val justify_start get() = JUSTIFY_CONTENT value "justify-start"
val justify_start get() = JUSTIFY_CONTENT value "flex-start"

@StyleValueMarker
/** justify-content: flex-end;
* - [documentation](https://tailwindcss.com/docs/justify-content#end)
* */
val justify_end get() = JUSTIFY_CONTENT value "justify-end"
val justify_end get() = JUSTIFY_CONTENT value "flex-end"

@StyleValueMarker
/** justify-content: center;
* - [documentation](https://tailwindcss.com/docs/justify-content#center)
* */
val justify_center get() = JUSTIFY_CONTENT value "justify-center"
val justify_center get() = JUSTIFY_CONTENT value "center"

@StyleValueMarker
/** justify-content: space-between;
* - [documentation](https://tailwindcss.com/docs/justify-content#space-between)
* */
val justify_between get() = JUSTIFY_CONTENT value "justify-between"
val justify_between get() = JUSTIFY_CONTENT value "space-between"

@StyleValueMarker
/** justify-content: space-around;
* - [documentation](https://tailwindcss.com/docs/justify-content#space-around)
* */
val justify_around get() = JUSTIFY_CONTENT value "justify-around"
val justify_around get() = JUSTIFY_CONTENT value "space-around"

@StyleValueMarker
/** justify-content: space-evenly;
* - [documentation](https://tailwindcss.com/docs/justify-content#space-evenly)
* */
val justify_evenly get() = JUSTIFY_CONTENT value "justify-evenly"
val justify_evenly get() = JUSTIFY_CONTENT value "space-evenly"

@StyleValueMarker
/** justify-content: stretch;
* - [documentation](https://tailwindcss.com/docs/justify-content#stretch)
* */
val justify_stretch get() = JUSTIFY_CONTENT value "justify-stretch"
val justify_stretch get() = JUSTIFY_CONTENT value "stretch"

}

0 comments on commit 7bde05d

Please sign in to comment.