Skip to content

Commit

Permalink
feat(meta-css): add/update template specs
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Mar 17, 2024
1 parent 5f08683 commit e4ef222
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/meta-css/specs/anim.mcss.json
Expand Up @@ -60,7 +60,7 @@
"doc": {
"group": "animation / transition",
"args": ["duration: in seconds"],
"desc": "Animation which rotates element a full turn, loops indefinitely"
"desc": "Animation which rotates element a full turn, looping indefinitely"
},
"name": "spin",
"props": { "animation": "spin {0}s linear infinite" }
Expand Down
7 changes: 5 additions & 2 deletions packages/meta-css/specs/aspect.mcss.json
@@ -1,7 +1,10 @@
{
"specs": [
{
"doc": { "group": "aspect ratios" },
"doc": {
"group": "aspect ratios",
"desc": "To be used on the element forming the background of a `bg-aspect-ratio()` parent/wrapper"
},
"name": "bg-aspect-ratio-object",
"props": {
"position": "absolute",
Expand Down Expand Up @@ -36,7 +39,7 @@
"props": {
"height": 0,
"position": "relative",
"padding-bottom": "calc(100%/({0}/{1}))"
"padding-bottom": "calc(100% / ({0} / {1}))"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions packages/meta-css/specs/colors.mcss.json
Expand Up @@ -146,9 +146,9 @@
{
"doc": {
"group": "svg",
"args": ["index: color variable index"]
"args": ["name: variable name (without `--` prefix)"]
},
"name": "<var>-color",
"name": "<var>",
"props": { "<var>": "var(--color{0})" },
"vars": ["fill-stroke"]
}
Expand Down
11 changes: 11 additions & 0 deletions packages/meta-css/specs/grids.mcss.json
Expand Up @@ -56,5 +56,16 @@
"values": "align",
"vars": ["align", "justify"]
}
],
"templates": [
{
"doc": {
"group": "grid layout",
"args": ["<vid>: CSS <vid> definitions"]
},
"name": "grid-<vid>",
"props": "grid-template-<var>",
"vars": ["cols", "rows"]
}
]
}

0 comments on commit e4ef222

Please sign in to comment.