diff options
Diffstat (limited to 'resources/resource_transformers/tocss/internal/sass/cssValues.go')
-rw-r--r-- | resources/resource_transformers/tocss/internal/sass/cssValues.go | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/resources/resource_transformers/tocss/internal/sass/cssValues.go b/resources/resource_transformers/tocss/internal/sass/cssValues.go index b23c4fc02..410e89e04 100644 --- a/resources/resource_transformers/tocss/internal/sass/cssValues.go +++ b/resources/resource_transformers/tocss/internal/sass/cssValues.go @@ -15,65 +15,67 @@ package sass type cssValue struct { prefix []string - sufix []string + suffix []string } var ( cssValues = cssValue{ + // https://developer.mozilla.org/en-US/docs/Web/CSS/color_value prefix: []string{ "#", - "rgb(", + "attr(", + "calc(", + "clamp(", "hsl(", "hwb(", - "lch(", "lab(", - "calc(", - "min(", + "lch(", "max(", + "min(", "minmax(", - "clamp(", - "attr(", + "rgb(", }, - sufix: []string{ - "em", - "ex", + // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_and_Units#dimensions + suffix: []string{ + "%", "cap", "ch", - "ic", - "rem", - "lh", - "rlh", - "vw", - "vh", - "vi", - "vb", - "vmin", - "vmax", - "cqw", + "cm", + "cqb", "cqh", "cqi", - "cqb", - "cqmin", "cqmax", - "cm", - "mm", - "Q", + "cqmin", + "cqw", + "deg", + "dpcm", + "dpi", + "dppx", + "em", + "ex", + "fr", + "grad", + "ic", "in", + "lh", + "mm", + "ms", "pc", "pt", "px", - "deg", - "grad", + "Q", "rad", - "turn", + "rem", + "rlh", "s", - "ms", - "fr", - "dpi", - "dpcm", - "dppx", + "turn", + "vb", + "vh", + "vi", + "vmax", + "vmin", + "vw", "x", - "%", }, } ) |