Skip to content

Commit

Permalink
Merge pull request #81 from Vyntrix/master
Browse files Browse the repository at this point in the history
feat: grid-rows class
  • Loading branch information
developer-1px authored Jan 2, 2025
2 parents d682a07 + 8054756 commit 615566b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vite/src/core/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,12 @@ export const RULES:Rules = {
else if (value) css.push(`grid-template-columns:${value};`)
return css.join("")
},
"grid-rows": (value) => {
const css = ["display:grid;"]
if (+value === +value) css.push(`grid-template-rows:repeat(${value},1fr);`)
else if (value) css.push(`grid-template-rows:${value};`)
return css.join("")
},
"inline-grid": () => "display:inline-grid;",


Expand Down

0 comments on commit 615566b

Please sign in to comment.