is-int()

  • /src/css/core/function/_condition.scss

Checks for a valid int

scss

//
// @param   mixed  $value
// @return  bool
//

@use "node_modules/sass-basis/src/css/core";

@if (core.is-int($value)) {
  z-index: $value;
}

is-length()

  • /src/css/core/function/_condition.scss

Checks for a valid CSS length

scss

//
// @param   mixed  $value
// @return  bool
//

@use "node_modules/sass-basis/src/css/core";

@if (core.is-length($value)) {
  width: $value;
}

is-null()

  • /src/css/core/function/_condition.scss

Checks for a valid null

scss

//
// @param   mixed  $value
// @return  bool
//

@use "node_modules/sass-basis/src/css/core";

@if (not core.is-null($value)) {
  width: $value;
}

is-number()

  • /src/css/core/function/_condition.scss

Checks for a valid number

scss

//
// @param   mixed  $value
// @return  bool
//

@use "node_modules/sass-basis/src/css/core";

@if (core.is-number($value)) {
  z-index: $value;
}