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

Scaling font sizes #87

Closed
jackmcconnell opened this issue Mar 13, 2013 · 1 comment
Closed

Scaling font sizes #87

jackmcconnell opened this issue Mar 13, 2013 · 1 comment

Comments

@jackmcconnell
Copy link

I get how to define a scale for the headers but how do you reduce or increase the base font-size for a specific section whilst utilising all the fallbacks in Typeplate etc?

I'm not sure whether to use:
font: @weight ~"@{font-size}%/@{line-height}" @font-family-sans;
or
.base-type(@weight, @line-height, @font-size, @font-family-sans, @serif-boolean);

...and even then, what do I need to change?

I'm using the LESS version btw.

Thanks!

@grayghostvisuals
Copy link
Contributor

How do you reduce or increase the base font-size for a specific section whilst utilising all the fallbacks in Typeplate?

If you want to increase or decrease the font-size for a section you can use the greek level classes. With Sass we do this using extends which is pretty similar to LESS.

h1.title {
    @extend .delta; //The Sass Way
    .delta; // The LESS Way
}

p.intro {
    @extend .beta; // The Sass Way
    .beta; // The LESS Way
}

If you want to increase or decrease the base font-size overall -in a responsive way- then see issue #64

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