Builder test
This commit is contained in:
@@ -3,6 +3,7 @@ package nl.astraeus.css
|
||||
import nl.astraeus.css.properties.*
|
||||
import nl.astraeus.css.properties.AlignContent.Companion.flexStart
|
||||
import nl.astraeus.css.properties.AlignContentValue.*
|
||||
import nl.astraeus.css.properties.Color.Companion.hex
|
||||
import nl.astraeus.css.style.Css
|
||||
import nl.astraeus.css.style.Style
|
||||
|
||||
@@ -99,20 +100,22 @@ fun main() {
|
||||
|
||||
val sd = style {
|
||||
select("#pipo") {
|
||||
// backgroundColor = Color.hex("eeeeee")
|
||||
// fontFamily = text("Arial, Courier")
|
||||
backgroundColor(hex("eeeeee"))
|
||||
fontFamily("Arial, Courier")
|
||||
// animationDelay = listOf(DelayDuration.initial())
|
||||
|
||||
select("div") {
|
||||
fontFace {
|
||||
fontFamily = text("SanSation")
|
||||
fontSize = FontSize.larger()
|
||||
src = text("font/sansation_bold.woff")
|
||||
fontStretch = FontStretch.condensed()
|
||||
fontStyle = FontStyle.italic()
|
||||
fontWeight = FontWeight._600()
|
||||
fontFamily("SanSation")
|
||||
fontSize(FontSize.larger())
|
||||
src("font/sansation_bold.woff")
|
||||
// fontStretch = FontStretch.condensed()
|
||||
// fontStyle = FontStyle.italic()
|
||||
// fontWeight = FontWeight._600()
|
||||
}
|
||||
|
||||
fontFamily("SanSation")
|
||||
|
||||
// fontFamily = text("SanSation")
|
||||
// color = Color.hex("1b1b1b1")
|
||||
// alignContent = flexStart()
|
||||
@@ -121,6 +124,9 @@ fun main() {
|
||||
// text("bar")
|
||||
// )
|
||||
select("span") {
|
||||
alignItems(AlignItems.BASELINE)
|
||||
alignSelf(AlignSelf.FLEX_START)
|
||||
|
||||
// animationIterationCount = listOf(
|
||||
// Count.count(3),
|
||||
// Count.infinite()
|
||||
|
||||
Reference in New Issue
Block a user