Additional classes can be added to your button to change its size and shape.
+<p>
+ <a class="" data-open-video="3:23"><img src="{{root}}assets/img/icons/watch-video-icon.svg" class="video-icon" height="30" width="30" alt=""> Watch this part in video</a>
+</p>
+
+<div class="docs-codepen-container">
+ <a class="codepen-logo-link" href="http://codepen.io/ZURBFoundation/pen/JNLVRb?editors=1000" target="_blank"><img src="{{root}}assets/img/logos/edit-in-browser.svg" class="" height="" width="" alt="edit on codepen button"></a>
+</div>
+
```html_example
-<a class="tiny button" href="#">So Tiny</a>
-<a class="small button" href="#">So Small</a>
+<a class="button tiny" href="#">So Tiny</a>
+<a class="button small" href="#">So Small</a>
<a class="button" href="#">So Basic</a>
-<a class="large button" href="#">So Large</a>
-<a class="expanded button" href="#">Such Expand</a>
-<a class="small expanded-for-large button" href="#">Wow, Small + Expand for Large</a>
+<a class="button large" href="#">So Large</a>
+<a class="button expanded" href="#">Such Expand</a>
+<a class="button small expanded" href="#">Wow, Small Expand</a>
++<a class="button small expanded-for-large" href="#">Wow, Small + Expand for Large</a>
```
---
@include button;
// Sizes
- &.tiny { font-size: map-get($button-sizes, tiny); }
- &.small { font-size: map-get($button-sizes, small); }
- &.large { font-size: map-get($button-sizes, large); }
+ @each $size, $value in map-remove($button-sizes, default) {
+ &.#{$size} {
+ font-size: $value;
+ }
+ }
+
&.expanded { @include button-expand; }
+ @each $size in $breakpoint-classes {
+ @include breakpoint($size) {
+ &.expanded-for-#{$size} {
+ @include button-expand;
+ }
+ }
+ }
// Colors
- @each $name, $color in $foundation-colors {
+ @each $name, $color in $button-palette {
@if $button-fill != hollow {
&.#{$name} {
- @include button-style($color, auto);
+ @include button-style($color, auto, auto);
}
}
@else {