Skip to content

Added mq option#4

Open
randallbruder wants to merge 2 commits intonathanford:masterfrom
randallbruder:master
Open

Added mq option#4
randallbruder wants to merge 2 commits intonathanford:masterfrom
randallbruder:master

Conversation

@randallbruder
Copy link

Added an option for a “media query,” so that the script won’t run when the viewport is a smaller width than a specified width.

When using the script on a h2 with the nbsp option with a particularly wide webfont, I found that the script could unintentionally force some text to extend wider than the viewport, adding a horizontal scrollbar on mobile.

Would need to be re-minified.

Randall Bruder added 2 commits January 8, 2016 16:13
Added an option for a “media query,” so that the script won’t run when
the viewport is a smaller width than a specified width.
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

Successfully merging this pull request may close these issues.

1 participant