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

Use with Foundation -- not an issue but question #26

Open
DaveyJake opened this issue May 13, 2014 · 3 comments
Open

Use with Foundation -- not an issue but question #26

DaveyJake opened this issue May 13, 2014 · 3 comments

Comments

@DaveyJake
Copy link

Just curious if there's a way to implement this with Foundation 5?

I'm currently building a responsive template and would really like to incorporate FlowType into it.

Please let me know.

Thanks!

@johnbarrierwilson
Copy link
Contributor

Have you tried it yet? I don't see why it shouldn't work...

@DaveyJake
Copy link
Author

Trying it right now with jQuery 1.9.1. Am I using the right jQuery?

Here's what I'm encountering when I resize my template:
screen shot 2014-05-19 at 3 54 04 pm

I have this snippet placed right before the close of my body tag:

<script>
    $('body').flowtype({
        minimum   : 641,
        maximum   : 1919,
        minFont   : 12,
        maxFont   : 40,
        fontRatio : 45
    });
</script>

@DaveyJake
Copy link
Author

Figured it out!

Went into Foundation's default stylesheets and commented out all font-size rules. Added my own custom sizes to my own authored stylesheet and everything now works as it should!

Hopefully this can help someone out there who has the same question.

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