relative

view source

Relatively position an element and assign its coordinates, all in one line of SCSS.

use-name
scut-relative
type
mixin only
arguments
  1. $coordinates
    default
    n n n n

    See information about scut-coords.

example

SCSS

.eg-relative-1 {
  @include scut-relative(0.2em 0.2em n n);
}
.eg-relative-2 {
  @include scut-relative(a a 1em n);
}
.eg-relative-3 {
  @include scut-relative(n n -0.5em 0.2em);
}

Result

Some of these words are positioned in strange ways.