]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Create media-queries.md 10185/head
authorMartin Desrumaux <GNUletik@users.noreply.github.com>
Wed, 14 Jun 2017 09:09:38 +0000 (11:09 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2017 09:09:38 +0000 (11:09 +0200)
docs/pages/media-queries.md

index 129d5472bec850d8363b9a8867b4c6e42adb1db5..e5522e6518ae7e6f063bb87f13d1df677ed4cf85 100644 (file)
@@ -197,6 +197,15 @@ if (Foundation.MediaQuery.atLeast('medium')) {
 }
 ```
 
+To see if the screen is currently a certain breakpoint, use `MediaQuery.is`.
+
+```js
+if (Foundation.MediaQuery.is('small only')) {
+  // True if small
+  // False if medium or large
+}
+```
+
 To get the media query of a breakpoint, use `MediaQuery.get`.
 
 ```js