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

Unable to Operate Variables in Font Property #600

Closed
alixaxel opened this issue Jan 27, 2012 · 1 comment
Closed

Unable to Operate Variables in Font Property #600

alixaxel opened this issue Jan 27, 2012 · 1 comment

Comments

@alixaxel
Copy link

The following:

@typeSize: 12px;
@typeRhythm: 1.5;
@typeFamily: "Helvetica Neue", Helvetica, "Helvetica Sans Unicode", Arial, sans-serif;

html {
    font: @typeSize ~'/' @typeRhythm @typeFamily;
    font-size: @typeSize;
    line-height: @typeSize * @typeRhythm;
}

Works, and produces the following CSS:

html {
  font:12px / 1.5 "Helvetica Neue",Helvetica,"Helvetica Sans Unicode",Arial,sans-serif;
  font-size:12px;
  line-height:18px;
}

However, if I change the source to:

@typeSize: 12px;
@typeRhythm: 1.5;
@typeFamily: "Helvetica Neue", Helvetica, "Helvetica Sans Unicode", Arial, sans-serif;

html {
    font: @typeSize ~'/' (@typeSize * @typeRhythm) @typeFamily;
    font-size: @typeSize;
    line-height: @typeSize * @typeRhythm;
}

I get a syntax error.

@lukeapage
Copy link
Member

Fixed on master for 1.4.0

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

No branches or pull requests

2 participants