From 9b9471b280b986198f6df0b54e3fde2775886b84 Mon Sep 17 00:00:00 2001 From: harry Date: Thu, 6 Jul 2017 21:39:29 +0530 Subject: [PATCH] Update docs copy on prefixing responsive classes from single to all helpers! --- docs/pages/prototyping-utilities.md | 42 ++++++++++++++++------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/docs/pages/prototyping-utilities.md b/docs/pages/prototyping-utilities.md index 2b37fac1d..38990d759 100644 --- a/docs/pages/prototyping-utilities.md +++ b/docs/pages/prototyping-utilities.md @@ -76,7 +76,30 @@ You can instead import only the specific utility classes that you need. To make @include foundation-prototype-spacing; ``` -Looking for more customization including **responsive breakpoints?** Click here for the [Sass Reference](#sass-reference) +Looking for more customization? Click here for the [Sass Reference](#sass-reference) + +--- + +## Responsive breakpoints + +
+

Responsive breakpoints is disabled by default.

+
+ +These prototype classes also have an optional mobile first responsive classes so that setting a class will apply to the small breakpoint and large unless overridden by a class for a larger breakpoint.
+You can easily enable these classes by setting `$global-prototype-breakpoints` to `true`. + +```html +

This text will be uppercase for medium and up.

+

This text will be lowercase for large breakpoint.

+``` + +You can also customise things by choosing to add responsive breakpoints only for specific prototype helpers that you would need as responsive classes.
+For example, text transformation classes have a breakpoint variable `$prototype-transformation-breakpoints` which is set to `$global-prototype-breakpoints` which is set to `false` by default. For enabling responsive breakpoints for text transformation classes, simply set: + +```scss +$prototype-transformation-breakpoints: true; +``` --- @@ -745,23 +768,6 @@ Note: Combining `overflow: hidden` in either the X or Y direction with the `over --- -## Responsive breakpoints - -For applicable classes, if you prefix a breakpoint, -the effect will be effective within that breakpoint. - -
-

Responsive breakpoints is disabled by default. If you want to enable it, please set $global-prototype-breakpoints to true.

-
- - -```html_example -

text-line-through effect when medium breakpoint.

-

text-line-through effect when large breakpoint.

-``` - ---- - ## Sass Mixin Helpers We also provides some extra utility mixins that you can use for your next prototype project. -- 2.47.2