Skip to content

Commit

Permalink
add transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks1mS committed Mar 8, 2024
1 parent 2ec6fc7 commit 19dc4a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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,7 +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' },
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 @@ -257,7 +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' },
'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 19dc4a1

Please sign in to comment.