Skip to content

Instantly share code, notes, and snippets.

@JosephClay
Last active August 29, 2015 13:58
Show Gist options
  • Save JosephClay/9992258 to your computer and use it in GitHub Desktop.
Save JosephClay/9992258 to your computer and use it in GitHub Desktop.
Less: #pos
#pos {
.t(@a: 0) { top: @a; }
.r(@a: 0) { right: @a; }
.b(@a: 0) { bottom: @a; }
.l(@a: 0) { left: @a; }
.tl(@a: 0; @b: @a) { top: @a; left: @b; }
.tr(@a: 0; @b: @a) { top: @a; right: @b; }
.bl(@a: 0; @b: @a) { bottom: @a; left: @b; }
.br(@a: 0; @b: @a) { bottom: @a; right: @b; }
.tb(@a: 0; @b: @a) { top: @a; bottom: @b; }
.lr(@a: 0; @b: @a) { left: @a; right: @b; }
.trbl(@a: 0; @b: @a; @c: @a; @d: @a) { top: @a; right: @b; bottom: @c; left: @d; }
.abs() { position: absolute; }
.rel() { position: relative; }
.z(@z: 0) { z-index: @z; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment