Sha256: 89fb54e23fd1049525d9aa37b7e4855d4f431d89fc51794191bd3bf2f9c4ebed
Contents?: true
Size: 541 Bytes
Versions: 4
Compression:
Stored size: 541 Bytes
Contents
// Set element positioning in a single statement @mixin position($position: relative, $coordinates: null null null null) { @if type-of($position) == list { $coordinates: $position; $position: relative; } $coordinates: unpack($coordinates); $offsets: ( top: nth($coordinates, 1), right: nth($coordinates, 2), bottom: nth($coordinates, 3), left: nth($coordinates, 4) ); position: $position; @each $offset, $value in $offsets { @if is-length($value) { #{$offset}: $value; } } }
Version data entries
4 entries across 4 versions & 2 rubygems