v. 1.0.0
Took 1 hour 52 minutes
This commit is contained in:
@@ -1,23 +1,5 @@
|
||||
package nl.astraeus.css.properties
|
||||
|
||||
class BorderRadius(
|
||||
value: String
|
||||
) : CssProperty(value) {
|
||||
companion object {
|
||||
fun px(nr: Int) = BorderRadius("${nr}px")
|
||||
fun em(nr: Int) = BorderRadius("${nr}em")
|
||||
fun em(nr: Double) = BorderRadius("${nr}em")
|
||||
fun perc(nr: Int) = BorderRadius("${nr}%")
|
||||
fun perc(nr: Double) = BorderRadius("${nr}%")
|
||||
fun pc(nr: Int) = BorderRadius("${nr}pc")
|
||||
fun pc(nr: Double) = BorderRadius("${nr}pc")
|
||||
fun cm(nr: Int) = BorderRadius("${nr}cm")
|
||||
fun cm(nr: Double) = BorderRadius("${nr}cm")
|
||||
val initial = BorderRadius("initial")
|
||||
val inherit = BorderRadius("inherit")
|
||||
}
|
||||
}
|
||||
|
||||
class BorderStyle(
|
||||
value: String
|
||||
) : CssProperty(value) {
|
||||
|
||||
@@ -645,18 +645,10 @@ open class Style : CssGenerator() {
|
||||
props["border-bottom-left-radius"] = prp(*radius)
|
||||
}
|
||||
|
||||
fun borderBottomLeftRadius(vararg radius: BorderRadius) {
|
||||
props["border-bottom-left-radius"] = prp(*radius)
|
||||
}
|
||||
|
||||
fun borderBottomRightRadius(vararg radius: Measurement) {
|
||||
props["border-bottom-right-radius"] = prp(*radius)
|
||||
}
|
||||
|
||||
fun borderBottomRightRadius(vararg radius: BorderRadius) {
|
||||
props["border-bottom-right-radius"] = prp(*radius)
|
||||
}
|
||||
|
||||
fun borderBottomStyle(style: BorderStyle) {
|
||||
props["border-bottom-style"] = prp(style)
|
||||
}
|
||||
@@ -795,18 +787,10 @@ open class Style : CssGenerator() {
|
||||
props["border-top-left-radius"] = prp(radius)
|
||||
}
|
||||
|
||||
fun borderTopLeftRadius(radius: BorderRadius) {
|
||||
props["border-top-left-radius"] = prp(radius)
|
||||
}
|
||||
|
||||
fun borderTopRightRadius(radius: Measurement) {
|
||||
props["border-top-right-radius"] = prp(radius)
|
||||
}
|
||||
|
||||
fun borderTopRightRadius(radius: BorderRadius) {
|
||||
props["border-top-right-radius"] = prp(radius)
|
||||
}
|
||||
|
||||
fun borderTopStyle(style: BorderStyle) {
|
||||
props["border-top-style"] = prp(style)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user