|
|
|
@ -6,174 +6,174 @@
|
|
|
|
|
package org.jetbrains.compose.web.css |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column |
|
|
|
|
fun StyleBuilder.gridColumn(value: String) { |
|
|
|
|
fun StyleScope.gridColumn(value: String) { |
|
|
|
|
property("grid-column", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridColumn(start: String, end: String) { |
|
|
|
|
fun StyleScope.gridColumn(start: String, end: String) { |
|
|
|
|
property("grid-column", "$start / $end") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridColumn(start: String, end: Int) { |
|
|
|
|
fun StyleScope.gridColumn(start: String, end: Int) { |
|
|
|
|
property("grid-column", "$start / $end") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridColumn(start: Int, end: String) { |
|
|
|
|
fun StyleScope.gridColumn(start: Int, end: String) { |
|
|
|
|
property("grid-column", "$start / $end") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridColumn(start: Int, end: Int) { |
|
|
|
|
fun StyleScope.gridColumn(start: Int, end: Int) { |
|
|
|
|
property("grid-column", "$start / $end") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start |
|
|
|
|
fun StyleBuilder.gridColumnStart(value: String) { |
|
|
|
|
fun StyleScope.gridColumnStart(value: String) { |
|
|
|
|
property("grid-column-start", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridColumnStart(value: Int) { |
|
|
|
|
fun StyleScope.gridColumnStart(value: Int) { |
|
|
|
|
property("grid-column-start", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end |
|
|
|
|
fun StyleBuilder.gridColumnEnd(value: String) { |
|
|
|
|
fun StyleScope.gridColumnEnd(value: String) { |
|
|
|
|
property("grid-column-end", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridColumnEnd(value: Int) { |
|
|
|
|
fun StyleScope.gridColumnEnd(value: Int) { |
|
|
|
|
property("grid-column-end", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row |
|
|
|
|
fun StyleBuilder.gridRow(value: String) { |
|
|
|
|
fun StyleScope.gridRow(value: String) { |
|
|
|
|
property("grid-row", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridRow(start: String, end: String) { |
|
|
|
|
fun StyleScope.gridRow(start: String, end: String) { |
|
|
|
|
property("grid-row", "$start / $end") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridRow(start: String, end: Int) { |
|
|
|
|
fun StyleScope.gridRow(start: String, end: Int) { |
|
|
|
|
property("grid-row", "$start / $end") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridRow(start: Int, end: String) { |
|
|
|
|
fun StyleScope.gridRow(start: Int, end: String) { |
|
|
|
|
property("grid-row", "$start / $end") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridRow(start: Int, end: Int) { |
|
|
|
|
fun StyleScope.gridRow(start: Int, end: Int) { |
|
|
|
|
property("grid-row", "$start / $end") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start |
|
|
|
|
fun StyleBuilder.gridRowStart(value: String) { |
|
|
|
|
fun StyleScope.gridRowStart(value: String) { |
|
|
|
|
property("grid-row-start", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridRowStart(value: Int) { |
|
|
|
|
fun StyleScope.gridRowStart(value: Int) { |
|
|
|
|
property("grid-row-start", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end |
|
|
|
|
fun StyleBuilder.gridRowEnd(value: String) { |
|
|
|
|
fun StyleScope.gridRowEnd(value: String) { |
|
|
|
|
property("grid-row-end", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridRowEnd(value: Int) { |
|
|
|
|
fun StyleScope.gridRowEnd(value: Int) { |
|
|
|
|
property("grid-row-end", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns |
|
|
|
|
fun StyleBuilder.gridTemplateColumns(value: String) { |
|
|
|
|
fun StyleScope.gridTemplateColumns(value: String) { |
|
|
|
|
property("grid-template-columns", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns |
|
|
|
|
fun StyleBuilder.gridAutoColumns(value: String) { |
|
|
|
|
fun StyleScope.gridAutoColumns(value: String) { |
|
|
|
|
property("grid-auto-columns", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow |
|
|
|
|
fun StyleBuilder.gridAutoFlow(value: GridAutoFlow) { |
|
|
|
|
fun StyleScope.gridAutoFlow(value: GridAutoFlow) { |
|
|
|
|
property("grid-auto-flow", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows |
|
|
|
|
fun StyleBuilder.gridTemplateRows(value: String) { |
|
|
|
|
fun StyleScope.gridTemplateRows(value: String) { |
|
|
|
|
property("grid-template-rows", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows |
|
|
|
|
fun StyleBuilder.gridAutoRows(value: String) { |
|
|
|
|
fun StyleScope.gridAutoRows(value: String) { |
|
|
|
|
property("grid-auto-rows", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area |
|
|
|
|
fun StyleBuilder.gridArea(rowStart: String) { |
|
|
|
|
fun StyleScope.gridArea(rowStart: String) { |
|
|
|
|
property("grid-area", rowStart) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridArea(rowStart: String, columnStart: String) { |
|
|
|
|
fun StyleScope.gridArea(rowStart: String, columnStart: String) { |
|
|
|
|
property("grid-area", "$rowStart / $columnStart") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridArea(rowStart: String, columnStart: String, rowEnd: String) { |
|
|
|
|
fun StyleScope.gridArea(rowStart: String, columnStart: String, rowEnd: String) { |
|
|
|
|
property("grid-area", "$rowStart / $columnStart / $rowEnd") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gridArea(rowStart: String, columnStart: String, rowEnd: String, columnEnd: String) { |
|
|
|
|
fun StyleScope.gridArea(rowStart: String, columnStart: String, rowEnd: String, columnEnd: String) { |
|
|
|
|
property("grid-area", "$rowStart / $columnStart / $rowEnd / $columnEnd") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas |
|
|
|
|
fun StyleBuilder.gridTemplateAreas(vararg rows: String) { |
|
|
|
|
fun StyleScope.gridTemplateAreas(vararg rows: String) { |
|
|
|
|
property("grid-template-areas", rows.joinToString(" ") { "\"$it\"" }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self |
|
|
|
|
fun StyleBuilder.justifySelf(value: String) { |
|
|
|
|
fun StyleScope.justifySelf(value: String) { |
|
|
|
|
property("justify-self", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items |
|
|
|
|
fun StyleBuilder.justifyItems(value: String) { |
|
|
|
|
fun StyleScope.justifyItems(value: String) { |
|
|
|
|
property("justify-items", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/align-self |
|
|
|
|
fun StyleBuilder.alignSelf(value: String) { |
|
|
|
|
fun StyleScope.alignSelf(value: String) { |
|
|
|
|
property("align-self", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/align-items |
|
|
|
|
fun StyleBuilder.alignItems(value: String) { |
|
|
|
|
fun StyleScope.alignItems(value: String) { |
|
|
|
|
property("align-items", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/place-self |
|
|
|
|
fun StyleBuilder.placeSelf(value: String) { |
|
|
|
|
fun StyleScope.placeSelf(value: String) { |
|
|
|
|
property("place-self", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap |
|
|
|
|
fun StyleBuilder.rowGap(value: CSSNumeric) { |
|
|
|
|
fun StyleScope.rowGap(value: CSSNumeric) { |
|
|
|
|
property("row-gap", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap |
|
|
|
|
fun StyleBuilder.columnGap(value: CSSNumeric) { |
|
|
|
|
fun StyleScope.columnGap(value: CSSNumeric) { |
|
|
|
|
property("column-gap", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/gap |
|
|
|
|
fun StyleBuilder.gap(value: CSSNumeric) { |
|
|
|
|
fun StyleScope.gap(value: CSSNumeric) { |
|
|
|
|
property("gap", value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.gap(rowGap: CSSNumeric, columnGap: CSSNumeric) { |
|
|
|
|
fun StyleScope.gap(rowGap: CSSNumeric, columnGap: CSSNumeric) { |
|
|
|
|
property("gap", "$rowGap $columnGap") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|