Gerillass

v2.1.0

Resizable

Type: Mixin
@include resizable();

* You can call mixins with or without the gls- namespace (e.g. @include gls-resizable();).

The Resizable Sass mixin helps you make an element resizable in both the horizontal and vertical directions.

Arguments

NameTypeDescription
$directionstringSets the direction of the resize property. Accepts the values both, horizontal, vertical, and none. The default value is both.
$overflowstringSets the overflow property. The default value is auto.

Examples

Simply call the mixin without passing any arguments.

Sass
.element{
  @include resizable;
}
CSS
.element {
  resize: both;
  overflow: auto;
  max-width: 100%;
}
Result