<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>
+<a class="button small expanded-small" href="#">Wow, Expand only on small viewport</a>
+<a class="button small expanded-medium-down" href="#">Expand on medium and smaller</a>
+<a class="button small expanded-medium-up" href="#">Expand on medium and larger</a>
```
---
/// Additional responsive classes for .expanded
/// @type Boolean
-$responsive-expanded-button: true !default;
+$button-responsive-expanded: false !default;
// TODO: Document button-base() mixin
@mixin button-base {
&.expanded { @include button-expand; }
- @if $responsive-expanded-button {
+ @if $button-responsive-expanded {
@each $size in $breakpoint-classes {
@include breakpoint(#{$size} only) {
- &.expanded-for-#{$size} {
+ &.expanded-#{$size} {
@include button-expand;
}
}
@if $size != $-zf-zero-breakpoint {
@include breakpoint(#{$size} down) {
- &.expanded-for-#{$size}-down {
+ &.expanded-#{$size}-down {
@include button-expand;
}
}
@include breakpoint(#{$size}) {
- &.expanded-for-#{$size}-up {
+ &.expanded-#{$size}-up {
@include button-expand;
}
}