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

is not working with symfony and sass-rem #455

Closed
tniemann opened this issue Jul 23, 2016 · 1 comment
Closed

is not working with symfony and sass-rem #455

tniemann opened this issue Jul 23, 2016 · 1 comment

Comments

@tniemann
Copy link

tniemann commented Jul 23, 2016

I try to get this runnning with the sass mixin sass-rem (https://github.com/pierreburel/sass-rem)

here is the code in my twig file:

{% stylesheets filter="scssphp" output="/assets/css/style.css" "@AppBundle/Resources/sass/style.scss" %} <link rel="stylesheet" href="{{ asset_url }}" /> {% endstylesheets %}
Here is the sass code:

$nav-font-size: 15px; 
@include rem(( font-size: $nav-font-size ));

My rem-baseline is:
$rem-baseline: 16px;

and this is what comes out:

font-size:15px; 
font-size:0.00977rem --> it should be 0.997

Calculated rems are to small of factor 100, so if i put 1500 as baseline it works.

When i generate the css file with an other tool or manual everything works fine.

Any idea what cause this?

Regards
Thomas

@robocoder
Copy link
Collaborator

Maybe you could retry with master? I'm getting the same results with both the latest scssphp and scss (3.4.20).

@import 'rem';
$rem-baseline: 16px;

$nav-font-size: 15px; 
div {
@include rem(( font-size: $nav-font-size ));
}

Both output:

div {
  font-size: 15px;
  font-size: 0.9375rem; }

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