@symbo.ls/scratch 2.11.229 → 2.11.234

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": "symbo.ls",
5
- "version": "2.11.229",
5
+ "version": "2.11.234",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -29,5 +29,5 @@
29
29
  "@symbo.ls/utils": "latest",
30
30
  "color-contrast-checker": "^1.5.0"
31
31
  },
32
- "gitHead": "3ccc5fb6cb32e86462f774d7bac671a94e963e48"
32
+ "gitHead": "16ba231199a1a519fa482541824c9820630f826e"
33
33
  }
package/src/utils/var.js CHANGED
@@ -28,9 +28,12 @@ export const applyGlobalVars = (vars, obj, options) => {
28
28
  vars[ratioVar] = ratio
29
29
 
30
30
  const [first, middle, second] = getSubratio(base, ratio)
31
- vars[`${prefix}-sub-ratio-1`] = first
32
- vars[`${prefix}-sub-ratio-2`] = middle
33
- vars[`${prefix}-sub-ratio-3`] = second
31
+ vars[`${prefix}-sub-ratio-1`] = `calc(var(${prefix}-ratio) * ${first / ratio})`
32
+ vars[`${prefix}-sub-ratio-2`] = `calc(var(${prefix}-ratio) * ${middle / ratio})`
33
+ vars[`${prefix}-sub-ratio-3`] = `calc(var(${prefix}-ratio) * ${second / ratio})`
34
+ // vars[`${prefix}-sub-ratio-1`] = first
35
+ // vars[`${prefix}-sub-ratio-2`] = middle
36
+ // vars[`${prefix}-sub-ratio-3`] = second
34
37
  }
35
38
 
36
39
  export const applySequenceVars = (FACTORY, options = {}) => {