foundation / foundation-sites

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.
https://get.foundation
MIT License
29.66k stars 5.49k forks source link

Modular scale missing a value #951

Closed establish closed 11 years ago

establish commented 11 years ago

I'm using the Modular Scale but having a particular problem with getting one specific value to show.

// Modular Scale
$ratio: fourth();
$baseFontSize: 16px;
$importantModNum: 24px;

Using the calculator at modularscale.com I'm trying to assign 14px to an element. So I would do...

font-size: ms(-1)

According to the modular scale this is 13.507 Pixels which should round up to 14px. However it always comes out at 12px.

Every other value comes out as expected but that one 14px value won't render for some reason. It renders 12px for both...

font-size: ms(-1)
font-size: ms(-2)

Has anyone come across this before?

hatefulcrawdad commented 11 years ago

I haven't seen this. I know there is some strangeness with the $augFourth ratio, I wonder if $fourth is strange as well. Have you tried asking the modular scale guys?

hatefulcrawdad commented 11 years ago

This looks like a problem with modular-scale, not with Foundation. I'm going to close. For now you can also do ms(0) - 2 and that is the same as 16-2 = 14px. Cheers!