From eb33710aa8bdbe71600e52da921c641d635930e3 Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sat, 16 Jun 2018 09:10:41 +0200 Subject: [PATCH] Use pull request #10866 from ncoden/docs/improve-grid-setup-10843 for v6.5.0 c3f72c617 docs: add doc for different grids setup caa6ba332 docs: show base classes before their modifiers in grids and callout 049679c18 docs: fix callout class glued to modifier in grids doc Signed-off-by: Nicolas Coden --- docs/pages/callout.md | 14 +-- docs/pages/flex-grid.md | 63 +++++----- docs/pages/grid.md | 260 +++++++++++++++++++++------------------- docs/pages/xy-grid.md | 65 +++++----- 4 files changed, 209 insertions(+), 193 deletions(-) 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.