Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird issue #5

Closed
mmjaeger opened this issue Sep 27, 2015 · 1 comment
Closed

weird issue #5

mmjaeger opened this issue Sep 27, 2015 · 1 comment

Comments

@mmjaeger
Copy link

Hello
I got the following code - baseline is set to 10px:
`a {

        background-color: #fff;
        border: 1px solid #eee;
        border-top: 0;
    font-size: rem(14px);
   @include rem(font-size, 14px);
        padding: rem(20px);
        position: relative;
        width: 200px;
        word-wrap: break-word;

    }`

using the rem function returns 0.875rem whereas using the mixin returns 1.4rem which is correct - do you have any ideas what could cause this?

Thanks

@pierreburel
Copy link
Owner

Hi,

I think it's the same issue as #4: if you're using an other lib like Bourbon, you need to import sass-rem after it to overwrite their rem function or mixin.

You have 2 different values because the sass-rem mixin uses a 10px baseline by default and the Bourbon rem function uses a 16px one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants