]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Added ability to customize split button pip 6115/head
authorsarmstrong <sarmstrong@eprod.com>
Mon, 15 Dec 2014 20:41:21 +0000 (14:41 -0600)
committersarmstrong <sarmstrong@eprod.com>
Mon, 15 Dec 2014 20:41:21 +0000 (14:41 -0600)
doc/includes/split_button/examples_split_button_custom_pip.html [new file with mode: 0644]
doc/includes/split_button/examples_split_button_custom_pip_rendered.html [new file with mode: 0644]
doc/pages/components/split_buttons.html
scss/foundation/components/_split-buttons.scss

diff --git a/doc/includes/split_button/examples_split_button_custom_pip.html b/doc/includes/split_button/examples_split_button_custom_pip.html
new file mode 100644 (file)
index 0000000..5eb5bff
--- /dev/null
@@ -0,0 +1 @@
+<a href="#" class="button split no-pip">Custom Pip<span><i class="fi-arrow-down"></i></span></a>
\ No newline at end of file
diff --git a/doc/includes/split_button/examples_split_button_custom_pip_rendered.html b/doc/includes/split_button/examples_split_button_custom_pip_rendered.html
new file mode 100644 (file)
index 0000000..3cb8874
--- /dev/null
@@ -0,0 +1,5 @@
+{{#markdown}}
+```html
+<a href="#" class="button split no-pip">Custom Pip<span><i class="fi-arrow-down"></i></span></a>
+```
+{{/markdown}}
\ No newline at end of file
index 32f72712b544fb506caf33f1c57b77c2ed2edaab..0e14fdb96f78570defcedc24f1fd792441693e72 100644 (file)
@@ -50,6 +50,23 @@ Additional classes can be added to your split buttons to change its appearance.
 
 ***
 
+<h2>Custom Pip</h2>
+
+If you desire to use your own pip in the split button, the `no-pip` class will remove ours and allow you to place any icon inside of the pip span
+
+<div class="row">
+  <div class="large-6 columns">
+    <h4>HTML</h4>
+{{> examples_split_button_custom_pip_rendered}}
+  </div>
+  <div class="large-6 columns">
+    <h4>HTML Rendered</h4>
+{{> examples_split_button_custom_pip}}
+  </div>
+</div>
+
+***
+
 ## Accessibility
 
 <p class="panel">This component is not yet accessible. Stay tuned for updates in future releases.</p>
index 00b9f7ac2e05e72da59f603cf0dd34d48ea29e94..f0e1c4068f5e8ef124914df1f5514ae0952b5684 100644 (file)
@@ -185,6 +185,14 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
 
       &.radius span { @include side-radius($opposite-direction, $global-radius); }
       &.round span { @include side-radius($opposite-direction, 1000px); }
+      &.no-pip{
+        span:before{ border-style:none; }
+        span:after{ border-style:none; }
+        span{padding-top:$split-button-pip-top-med;}
+        &.tiny{ span{ padding-top:$split-button-pip-top-tny; } }
+        &.small{ span{ padding-top:$split-button-pip-top-sml; } }
+        &.large{ span{ padding-top:$split-button-pip-top-lrg; } }
+      }
     }
 
   }