From: Nicolas Coden Date: Thu, 18 Jan 2018 21:14:10 +0000 (+0100) Subject: docs: show base classes before their modifiers in grids and callout X-Git-Tag: v6.6.0~53^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caa6ba33255e149f46ba9efcf8bd4958e6514d3a;p=thirdparty%2Ffoundation%2Ffoundation-sites.git docs: show base classes before their modifiers in grids and callout See: https://github.com/zurb/foundation-sites/issues/10843#issuecomment-358097432 --- diff --git a/docs/pages/callout.md b/docs/pages/callout.md index b32c71ff5..078de2b6d 100644 --- a/docs/pages/callout.md +++ b/docs/pages/callout.md @@ -56,25 +56,25 @@ Callouts can be colored using the `.secondary`, `.primary`, `.success`, `.warnin It's dangerous to go alone, take this. -
+
This is a primary callout

It has an easy to override visual style, and is appropriately subdued.

It's dangerous to go alone, take this.
-
+
This is a success callout

It has an easy to override visual style, and is appropriately subdued.

It's dangerous to go alone, take this.
-
+
This is a warning callout

It has an easy to override visual style, and is appropriately subdued.

It's dangerous to go alone, take this.
-
+
This is an alert callout

It has an easy to override visual style, and is appropriately subdued.

It's dangerous to go alone, take this. @@ -111,7 +111,7 @@ Callouts can be sized using the `.small` and `.large` classes. These will affect Pair the callout with the [close button](close-button.html) component and `data-closable` attribute to create a dismissable alert box. Watch this part in video -
+

Any element can be used as a close trigger, not just close button. Adding the attribute data-close to any element within the callout will turn it into a close trigger.

When using the data-closable attribute, you can optionally add Motion UI classes to the attribute to change the closing animation. If no class is added, the plugin defaults to jQuery's .fadeOut() function.

@@ -121,7 +121,7 @@ Pair the callout with the [close button](close-button.html) component and `data-
```html_example -
+
This is Important!

But when you're done reading it, click the close button in the corner to dismiss this alert.

I'm using the default data-closable parameters, and simply fade out.

@@ -129,7 +129,7 @@ Pair the callout with the [close button](close-button.html) component and `data-
-
+
This a friendly message.

And when you're done with me, I can be closed using a Motion UI animation.