Skip to content

Commit

Permalink
updated split button docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zurbchris committed Mar 8, 2013
1 parent 0f7df99 commit 21ff778
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -20,6 +20,7 @@ We're currently working on patch fixes for various parts of Foundation. We'll ad
* Updated visibility classes to work properly with table display properties
* Helper classes like `.right, .left` now have `!important` so they don't get overriden on accident
* Added a page to the docs that explains our use of [media queries](http://foundation.zurb.com/docs/media-queries.html)
* Removed default outline on a:focus elements that normalize adds

You can compare the commits [here](https://github.com/zurb/foundation/compare/v4.0.4...master).

Expand Down
22 changes: 11 additions & 11 deletions docs/components/split-buttons.html.erb
Expand Up @@ -33,19 +33,19 @@

<%= code_example '
<!-- Size Classes -->
<a href="#" class="button split">Default Button</a>
<a href="#" class="tiny button split">Tiny Button</a>
<a href="#" class="small button split">Small Button</a>
<a href="#" class="large button split">Large Button</a>
<a href="#" class="button split">Default Button <span></span></a>
<a href="#" class="tiny button split">Tiny Button <span></span></a>
<a href="#" class="small button split">Small Button <span></span></a>
<a href="#" class="large button split">Large Button <span></span></a>
<!-- Color Classes -->
<a href="#" class="button split secondary">Secondary Button</a>
<a href="#" class="button split success">Success Button</a>
<a href="#" class="button split alert">Alert Button</a>
<a href="#" class="button split secondary">Secondary Button <span></span></a>
<a href="#" class="button split success">Success Button <span></span></a>
<a href="#" class="button split alert">Alert Button <span></span></a>
<!-- Radius Classes -->
<a href="#" class="button split radius">Radius Button</a>
<a href="#" class="button split round">Round Button</a>
<a href="#" class="button split radius">Radius Button <span></span></a>
<a href="#" class="button split round">Round Button <span></span></a>
', :html %>

<p>You may chain one class from each group to build up desired default styles. For these styles to take effect, make sure you have the <strong>default Foundation CSS package</strong> or that you've selected <strong>split buttons from a custom package</strong>. These should be linked up following our default <a href="#getting-started">HTML page structure</a>.</p>
Expand All @@ -62,7 +62,7 @@
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>

<%= code_example '
<a href="#" class="your-class-name">Split Button Text</a>
<a href="#" class="your-class-name">Split Button Text <span></span></a>
', :html %>

<h5>Quick Mixin</h5>
Expand Down Expand Up @@ -154,7 +154,7 @@ $split-button-pip-left-lrg: emCalc(-9px);
<p>To create a dropdown, you'll need to attach a data-attribute to whatever element you want the dropdown attached to (in this case a button). From there, you'll create a list that holds the links or content and add another data-attribute that associates with the element it belongs to. Here's an example of that markup:</p>

<%= code_example '
<a href="#" data-dropdown="drop1" class="button dropdown">Dropdown Button</a><br>
<a href="#" data-dropdown="drop1" class="button dropdown">Dropdown Button <span data-dropdown="drop1"></span></a><br>
<ul id="drop1" class="f-dropdown">
<li><a href="#">This is a link</a></li>
Expand Down

0 comments on commit 21ff778

Please sign in to comment.