Foundation 5.5

Foundation 5.5 has arrived, and It’s lovely to see that great work has continued even with all the efforts going into the recent release of Foundation for Apps.

This release also contains a contribution of my own (woo!) which allows you to execute code based on the current media query. It means you can check things like Foundation.utils.is_large_up() or Foundation.utils.is_small_only() which I’ve found to be pretty useful.

You can see the pull request here.

Full list of what you can do:

// Small queries
Foundation.utils.is_small_only();
Foundation.utils.is_small_up();

// Medium queries
Foundation.utils.is_medium_only();
Foundation.utils.is_medium_up();

// Large queries
Foundation.utils.is_large_only();
Foundation.utils.is_large_up();

// XLarge queries
Foundation.utils.is_xlarge_only();
Foundation.utils.is_xlarge_up();

// XXLarge queries
Foundation.utils.is_xxlarge_only();
Foundation.utils.is_xxlarge_up();