Skip to content

Commit

Permalink
Lib: Add margin and padding shorthands
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Dec 4, 2024
1 parent 562749f commit 96f9643
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/shorthand/margin.chiri
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#each in ["margin", "margin-block", "margin-inline"] as var property:
#shorthand #{property}:
margin-top
margin-left
margin-right
margin-bottom
margin-inline-start
margin-inline-end
margin-block-start
margin-block-end
10 changes: 10 additions & 0 deletions lib/shorthand/padding.chiri
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#each in ["padding", "padding-block", "padding-inline"] as var property:
#shorthand #{property}:
padding-top
padding-left
padding-right
padding-bottom
padding-inline-start
padding-inline-end
padding-block-start
padding-block-end
2 changes: 2 additions & 0 deletions lib/shorthands.chiri
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
shorthand/border
shorthand/background
shorthand/transition
shorthand/padding
shorthand/margin

0 comments on commit 96f9643

Please sign in to comment.