coordinates
view sourceA shorthand for assigning coordinates to an element.
- use-name
-
scut-coords
- type
- mixin only
- arguments
-
-
$coordinates
- default
-
n n n n
-
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) signifiesnull
or "nothing" or "no" — so any coordinate assignedn
is simply ignored, creating no rule in your compiled CSS.a
can abbreviateauto
(both will work).- All four values must be passed, so use
n
as needed.
A list:
top
,right
,bottom
, andleft
coordinates.n
abbreviatesnull
.a
is interchangeable withauto
. See below.