Skip to content

Commit

Permalink
Merge pull request #47 from Maks1mS/gap-and-row-gap
Browse files Browse the repository at this point in the history
add gap and row-gap
  • Loading branch information
CheerlessCloud authored Jun 1, 2024
2 parents f0abc21 + 19dc4a1 commit 5782054
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Atomize aliases are short names for each css rule
| *font-variant-position* | `fvp` |
| *font-variation-settings* | `fvs` |
| *font-weight* | `fw` |
| *gap* | `g` |
| *grid* | `gd` |
| *grid-area* | `gda` |
| *grid-auto-columns* | `gdac` |
Expand Down Expand Up @@ -223,6 +224,7 @@ Atomize aliases are short names for each css rule
| *ratio-padding* | `none` |
| *resize* | `rsz` |
| *right* | `r` |
| *row-gap* | `rowg` |
| *scroll-behavior* | `none` |
| *size-height* | `none` |
| *size-width* | `none` |
Expand Down
4 changes: 3 additions & 1 deletion src/constants/dict.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const dict = {
color: { alias: 'c', type: 'string' },
'column-count': { alias: 'colmc', type: 'string' },
'column-fill': { alias: 'colmf', type: 'string' },
'column-gap': { alias: 'colmg', type: 'string' },
'column-gap': { alias: 'colmg', type: 'string', scale: 'space', transformer: 'pixel' },
'column-rule': { alias: 'colmr', type: 'string' },
'column-rule-color': { alias: 'colmrc', type: 'string' },
'column-rule-style': { alias: 'colmrs', type: 'string' },
Expand Down Expand Up @@ -138,6 +138,7 @@ const dict = {
'font-variant-position': { alias: 'fvp', type: 'string' },
'font-variation-settings': { alias: 'fvs', type: 'string' },
'font-weight': { alias: 'fw', type: ['number', 'string'] },
gap: { alias: 'g', type: 'string', scale: 'space', transformer: 'pixel' },
grid: { alias: 'gd', type: 'string' },
'grid-area': { alias: 'gda', type: 'string', process: false },
'grid-auto-columns': { alias: 'gdac', type: 'string' },
Expand Down Expand Up @@ -256,6 +257,7 @@ const dict = {
'ratio-padding': { type: ['number', 'string'] },
resize: { alias: 'rsz', type: 'string' },
right: { alias: 'r', transformer: 'pixel', type: ['number', 'string'] },
'row-gap': { alias: 'rowg', type: 'string', scale: 'space', transformer: 'pixel' },
'scroll-behavior': { type: 'string' },
'size-height': { type: 'string' },
'size-width': { type: 'string' },
Expand Down

0 comments on commit 5782054

Please sign in to comment.