sassline icon indicating copy to clipboard operation
sassline copied to clipboard

Sassline mixin ignores the font type.

Open mitchrenton opened this issue 8 years ago • 4 comments

I've noticed that the sassline mixin ignores the font type.

For example...

@include sassline(18, $bodytype, 1.5, 1, all);

Outputs

line-height: 1.5rem; font-size: 1.5rem; margin-bottom: 0.74499rem; padding-top: 0.25501rem;

As well as the break point adjustments.

Whilst...

@include sassline(18, $headingtype, 1.5, 1, all);

Outputs the same.

Am I missing something?

mitchrenton avatar May 12 '16 15:05 mitchrenton

@mitchrenton Is that with the default fonts? If you alter the cap-height values in the variables they will be different.

jakegiltsoff avatar Jun 13 '16 10:06 jakegiltsoff

I'm having the same problem. I've switched out the defaults with my own and modified their cap-heights as well, but the mixin doesn't respect font type.

paulhbarker avatar Jul 15 '16 17:07 paulhbarker

@paulhbarker hmm, it does use the font’s defined cap-height in the equations so there may be a different issue causing what you are seeing. It could be an issue there seems to be with the minified css not updating every time causing it to look like this is happening?

jakegiltsoff avatar Jul 15 '16 18:07 jakegiltsoff

I took a look at it today and you're right, it does use the cap-height of the specified font, but the documentation (your blog post) led me to believe that it would actually set the font-family property, when it only uses the font argument to calculate the padding/margins/etc.

paulhbarker avatar Jul 16 '16 00:07 paulhbarker