]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
feat: add support of fractions in "xy-cell-base()" function and mixin.
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 18 Jul 2018 22:48:00 +0000 (00:48 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Wed, 18 Jul 2018 22:48:00 +0000 (00:48 +0200)
commit0dea510f9f1807889873f13f17ea1f8ca904ad44
treedfaf3e8698661a2ecf76b411b0008912ab6e89d2
parentfde38861fef454705b78e8b37f1f7440b6eb6824
feat: add support of fractions in "xy-cell-base()" function and mixin.

Make the `xy-cell-base()` function and mixin support values representing a fraction (`6`, `50%`, `1 of 2` or `1/2`...) and treating them like "shrink".

**BREAKING CHANGE**: The `xy-cell()` and `xy-cell-base()` mixins now generate the XY cell base CSS when `$size` represents a fraction.

Static CSS did not changed.
scss/xy-grid/_cell.scss