Remove

Arguments

NameTypeDescription
$valuenumber (with unit)

Sets the width value to which your styles will be applied.

$modestring

Sets the width media feature. Accepts only, min, max or between values.

Examples

Simply call the mixin and pass the width value for which you want the selected element to remove from the documen layout.

.element{
  @include remove(500px);
}
//CSS Output
@media (width: 500px) {
  .element {
    display: none;
  }
}

You can specify a range where you don’t want the selected element to appear.

.element{
  @include remove(500px, 1024px);
}
//CSS Output
@media (min-width: 500px) and (max-width: 1024px) {
  .element {
    display: none;
  }
}

You can use $mode options to set the width media feature. Accepts only, min, max or between values.

.element{
  @include remove(min, 1200px);
}
//CSS Output
@media (min-width: 1200px) {
  .element {
    display: none;
  }
}

You can use predefined breakpoint values which are: xsmall, small, medium, large, xlarge.

.element{
  @include remove(max, medium);
}
//CSS Output
@media (max-width: 768px) {
  .element {
    display: none;
  }
}

You can set a range by using predefined values as well!

.element{
  @include remove(small, medium);
}
//CSS Output
@media (min-width: 576px) and (max-width: 767px) {
  .element {
    display: none;
  }
}