@mapcss/preset-typography
Version:
Typography preset for MapCSS
23 lines (22 loc) • 762 B
JavaScript
import { reBracket_$ } from "../../core/utils/regexp.js";
export const flex = [
["DEFAULT", { display: "flex" }],
[1, { flex: "1 1 0%" }],
["auto", { flex: "1 1 auto" }],
["initial", { flex: "0 1 auto" }],
["none", { flex: "none" }],
["row", {
DEFAULT: { "flex-direction": "row" },
reverse: { "flex-direction": "row-reverse" },
}],
["col", {
DEFAULT: { "flex-direction": "column" },
reverse: { "flex-direction": "column-reverse" },
}],
["wrap", {
DEFAULT: { "flex-wrap": "wrap" },
reverse: { "flex-wrap": "wrap-reverse" },
}],
["nowrap", { "flex-wrap": "nowrap" }],
[reBracket_$, ([, arbitrary]) => ({ flex: arbitrary })],
];