Foun­da­tion 5.5

Publisher: TJ Fogarty

Modified: 2018-03-13

Foun­da­tion 5.5 has arrived, and It’s love­ly to see that great work has con­tin­ued even with all the efforts going into the recent release of Foun­da­tion for Apps.

This release also con­tains a con­tri­bu­tion of my own (woo!) which allows you to exe­cute code based on the cur­rent 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 pret­ty 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();