coordinates

view source

A shorthand for assigning coordinates to an element.

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

    A list: top, right, bottom, and left coordinates. n abbreviates null. a is interchangeable with auto. See below.

You may want to use this mixin on its own — but this mixin's primary purpose is to facilitate the positioning mixins: scut-absolute, scut-relative, and scut-fixed, which pair your coordinates with a position value.

Some guidlines for this mixin and its followers:

  • n (the default value) signifies null or "nothing" or "no" — so any coordinate assigned n is simply ignored, creating no rule in your compiled CSS.
  • a can abbreviate auto (both will work).
  • All four values must be passed, so use n as needed.