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

rem units not working in vars #393

Closed
mauroporras opened this issue Sep 16, 2011 · 5 comments
Closed

rem units not working in vars #393

mauroporras opened this issue Sep 16, 2011 · 5 comments

Comments

@mauroporras
Copy link

This doesn't work:

@BigText: 2rem;

header {
font-size: @BigText;
}

@marksteyn
Copy link

The dimension function processes a large list of units, but doesn't include rems.

I manually added rem to the list and it seems to work for me (after a cursory examination at least).

Rem support would definitely be a useful addition.

@jkeyes
Copy link

jkeyes commented Oct 26, 2011

I ran into this issue a few days ago too.

@FingerFeat
Copy link

You can in fact use escape characters to get what you want. I tried this, using LESS.js' official example:

@str: 666;
@var: ~"@{str}" + 'rem';

h1 {
font-size: @var;
}

Gives (me at least) an output of:

h1 {
font-size: 666rem;
}

I hope this can help you out. I'll try playing around with it some more. :)

cloudhead pushed a commit that referenced this issue Dec 10, 2011
Issue #393 Add support for "rem" dimensions
@lukeapage
Copy link
Member

should be fixed now.

@FingerFeat
Copy link

Epic! Already tried it out, seems to work just great. :)

On 20-07-2012 21:47, Luke Page wrote:

should be fixed now.


Reply to this email directly or view it on GitHub:
#393 (comment)

Best regards,
Anders Schmidt Hansen http://www.andersschmidt.com
Enthusiastic Startupper, Digital Design Ninja & Front-End Engineer

stefanklug pushed a commit to stefanklug/carto that referenced this issue Jan 27, 2019
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

5 participants