Small fixes
This commit is contained in:
@@ -236,7 +236,6 @@ fun attrEntriesContain(name: DescriptionProvider, value: String) : DescriptionPr
|
||||
fun attrEndsWith(name: DescriptionProvider, value: String) : DescriptionProvider = ValueDescriptionProvider("[${name.description()}$=$value]")
|
||||
fun attrStartsWith(name: DescriptionProvider, value: String) : DescriptionProvider = ValueDescriptionProvider("[${name.description()}^=$value]")
|
||||
|
||||
|
||||
@CssTagMarker
|
||||
open class Style : CssGenerator() {
|
||||
var fontFace: FontFace? = null
|
||||
@@ -266,7 +265,7 @@ open class Style : CssGenerator() {
|
||||
}
|
||||
|
||||
/**
|
||||
* like the sccs &
|
||||
* like the scss &
|
||||
* @param selector blabla
|
||||
*/
|
||||
fun and(selector: DescriptionProvider, style: Css) {
|
||||
@@ -439,6 +438,8 @@ open class Style : CssGenerator() {
|
||||
fun borderTopStyle(style: BorderStyle) { props["border-top-style"] = prp(style) }
|
||||
fun borderTopWidth(width: BorderWidth) { props["border-top-width"] = prp(width) }
|
||||
fun borderTopWidth(width: Measurement) { props["border-top-width"] = prp(width) }
|
||||
fun borderWidth(width: Measurement) { props["border-width"] = prp(width) }
|
||||
fun borderWidth(width: BorderWidth) { props["border-width"] = prp(width) }
|
||||
fun bottom(measurement: Measurement) { props["bottom"] = prp(measurement) }
|
||||
fun boxDecorationBreak(brk: BoxDecorationBreak) { props["box-decoration-break"] = prp(brk) }
|
||||
fun boxShadow(shadow: BoxShadow) { props["box-shadow"] = prp(shadow) }
|
||||
@@ -452,13 +453,6 @@ open class Style : CssGenerator() {
|
||||
fun clip(clip: Clip) { props["clip"] = prp(clip) }
|
||||
fun clipPath(path: ClipPath) { props["clip-path"] = prp(path) }
|
||||
fun color(color: Color) { props["color"] = listOf(color) }
|
||||
var color: Color? = null
|
||||
set(value) {
|
||||
field = value
|
||||
value?.let {
|
||||
props["color"] = listOf(it)
|
||||
}
|
||||
}
|
||||
fun columnCount(count: Count) { props["column-count"] = prp(count) }
|
||||
fun columnFill(fill: Fill) { props["column-fill"] = prp(fill) }
|
||||
fun columnGap(gap: Measurement) { props["column-gap"] = prp(gap) }
|
||||
@@ -588,8 +582,8 @@ open class Style : CssGenerator() {
|
||||
fun overflowX(overflow: Overflow) { props["overflow-x"] = prp(overflow) }
|
||||
fun overflowY(overflow: Overflow) { props["overflow-y"] = prp(overflow) }
|
||||
fun padding(padding: Measurement) { props["padding"] = prp(padding) }
|
||||
fun padding(topLeft: Measurement, bottomRight: Measurement) {
|
||||
props["padding"] = prp(topLeft, bottomRight)
|
||||
fun padding(vertical: Measurement, horizontal: Measurement) {
|
||||
props["padding"] = prp(vertical, horizontal)
|
||||
}
|
||||
fun padding(top: Measurement, right: Measurement, bottom: Measurement, left: Measurement) {
|
||||
props["padding"] = prp(top, right, bottom, left)
|
||||
@@ -658,7 +652,6 @@ open class Style : CssGenerator() {
|
||||
fun writingMode(writingMode: WritingMode) { props["writing-mode"] = prp(writingMode) }
|
||||
fun zIndex(zIndex: Int) { props["z-index"] = prp(zIndex.toString()) }
|
||||
fun zIndex(zIndex: ZIndex) { props["z-index"] = prp(zIndex) }
|
||||
|
||||
}
|
||||
|
||||
@CssTagMarker
|
||||
@@ -673,5 +666,4 @@ open class ConditionalStyle : Style() {
|
||||
fun supports(query: String, style: ConditionalCss) {
|
||||
supports[query] = style
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user