]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Add docs for visibility classes
authorGeoff Kimball <geoff@zurb.com>
Mon, 7 Mar 2016 23:31:02 +0000 (15:31 -0800)
committerGeoff Kimball <geoff@zurb.com>
Mon, 7 Mar 2016 23:31:10 +0000 (15:31 -0800)
docs/pages/visibility.md [new file with mode: 0644]

diff --git a/docs/pages/visibility.md b/docs/pages/visibility.md
new file mode 100644 (file)
index 0000000..af779e2
--- /dev/null
@@ -0,0 +1,24 @@
+---
+title: Visibility Classes
+descripiton: Visibility classes allow you to control what content appears on what kind of device.
+---
+
+Foundation for Emails has two breakpoints: *small*, which is any email client under 600 pixels wide, and *large*, any client over 600 pixels. This means small generally correlates to mobile clients, and large correlates to desktop clients.
+
+You can use a visibility class to selectively show or hide content on mobile vs. desktop clients.
+
+**To show content only on mobile clients,** add the class `.hide-for-large` to the element.
+
+```inky
+<callout class="hide-for-large">
+  <p>This callout will only appear on small screens.</p>
+</callout>
+```
+
+**To show content only on desktop clients,** add the class `.show-for-large` to the element.
+
+```inky
+<callout class="show-for-large">
+  <p>This callout will only appear on large screens.</p>
+</callout>
+```