From f4a9896a0fc1ccdf472c2298abaa4403eb3942bf Mon Sep 17 00:00:00 2001 From: Wing-Hou Chan Date: Tue, 15 Apr 2014 15:12:50 +0100 Subject: [PATCH] Various changes Heading hierarchy has been refined. Content hierarchy has been refined. Documentation added for new Equalizer setting. See issue #4977 (https://github.com/zurb/foundation/pull/4977) --- doc/pages/components/equalizer.html | 47 +++++++++++++++++++---------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/doc/pages/components/equalizer.html b/doc/pages/components/equalizer.html index c01f60c40..7c5c45df5 100644 --- a/doc/pages/components/equalizer.html +++ b/doc/pages/components/equalizer.html @@ -32,12 +32,10 @@ layout: doc/layouts/default.html -### Basic +## Basic You can create an equal height container using a few data attributes. Apply the `data-equalizer` attribute to a parent container. Then apply the `data-equalizer-watch` attribute to each element you'd like to have an equal height. The height of `data-equalizer-watch` attribute will be equal to that of the tallest element. -**NOTE:** If items with equal height become stacked their heights will reset. This will ensure that unneccessary whitespace isn't introduced. -

HTML

@@ -67,11 +65,11 @@ You can create an equal height container using a few data attributes. Apply the
-### Advanced +## Advanced Perhaps you need to create items that are positioned at the bottom of your input. For example Sign Up buttons on some [pricing tables]({{relative absolute 'dist/docs/components/pricing_tables.html'}}). -#### HTML +### HTML ```html
@@ -89,7 +87,7 @@ Perhaps you need to create items that are positioned at the bottom of your input
``` -#### Rendered HTML +### Rendered HTML
    @@ -117,7 +115,33 @@ Perhaps you need to create items that are positioned at the bottom of your input --- -### Callbacks +## Using the Javascript + +Before you can use Equalizer you'll want to verify that jQuery and `foundation.js` are available on your page. You can refer to the [Javascript documentation](../javascript.html) on setting that up. + + +Just add `foundation.equalizer.js` AFTER the `foundation.js` file. Your markup should look something like this: + +{{> examples_equalizer_javascript}} + +Required Foundation Library: `foundation.equalizer.js` + +### Optional Javascript Configuration + +#### JS + +{{#markdown}} +```js +$(document).foundation({ + equalizer: + // specify if Equalizer should make elements equal height on the small media query range + equalize_on_small: false +}); +``` + +--- + +## Callbacks There are two ways to bind to callbacks in your equalizers. @@ -157,13 +181,4 @@ $(document).on('after-height-change', function(){
-### Using the Javascript - -Before you can use Equalizer you'll want to verify that jQuery and `foundation.js` are available on your page. You can refer to the [Javascript documentation](../javascript.html) on setting that up. - - -Just add `foundation.equalizer.js` AFTER the `foundation.js` file. Your markup should look something like this: - -{{> examples_equalizer_javascript}} -Required Foundation Library: `foundation.equalizer.js` \ No newline at end of file -- 2.47.2