]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Update _visibility.scss 7092/head
authormichael-wilson <michael.wilson@nottingham.ac.uk>
Sat, 21 Nov 2015 00:13:51 +0000 (00:13 +0000)
committermichael-wilson <michael.wilson@nottingham.ac.uk>
Sat, 21 Nov 2015 00:13:51 +0000 (00:13 +0000)
commitf3212070361efdae63f2f823b0544d06f75df3c1
treea41cd38bc14a3e13361a4ef3b2405f86df6c054e
parent2ec840ee6c17ae0d4f42f74d3b4000cf88c8f6ce
Update _visibility.scss

If you use every breakpoint in $breakpoint-classes, the last one will break, because it's impossible to have an "only" range for the highest one. As in, you can't do "xxlarge-only" because there's no upper bound past xxlarge. So the -only classes need to account for this by not printing any CSS.

When printing "small only", the loop should check if the lower bound is 0, and if it is, don't subtract the (1/16)rem, just keep it at 0.
scss/components/_visibility.scss