@symbo.ls/scratch 0.3.13 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "Symbols",
5
- "version": "0.3.13",
5
+ "version": "0.3.14",
6
6
  "files": [
7
7
  "src"
8
8
  ],
@@ -160,7 +160,7 @@ export const changeLightness = (delta, hsl) => {
160
160
 
161
161
  export const rgbToHSL = (r, g, b) => {
162
162
  const a = Math.max(r, g, b); const n = a - Math.min(r, g, b); const f = (1 - Math.abs(a + a - n - 1))
163
- const h = n && ((a == r) ? (g - b) / n : ((a == g) ? 2 + (b - r) / n : 4 + (r - g) / n))
163
+ const h = n && ((a == r) ? (g - b) / n : ((a == g) ? 2 + (b - r) / n : 4 + (r - g) / n)) //eslint-disable-line
164
164
  return [60 * (h < 0 ? h + 6 : h), f ? n / f : 0, (a + a - n) / 2]
165
165
  }
166
166
 
@@ -328,7 +328,7 @@ export const fallBack = ({ type, prop, val = 'A', prefix = '--font-size-', unit
328
328
  if (typeof val !== 'string') console.warn(prop, val, 'is not a string')
329
329
 
330
330
  if (val === '-' || val === '') return ({ })
331
- if (val === 'auto' || val === 'fit-content' || val === 'min-content' || val === 'max-content') return ({ [prop]: val })
331
+ if (val === 'none' || val === 'auto' || val === 'fit-content' || val === 'min-content' || val === 'max-content') return ({ [prop]: val })
332
332
 
333
333
  // const startsWithLetterRegex = /^[a-zA-Z]/i
334
334
  const startsWithLetterRegex = /^-?[a-zA-Z]/i