Sha256: 2de919db1fb0d481b7b96f95fc46c1eb0ea1ff94a7f37a4fdc1c6ed7429128fb
Contents?: true
Size: 1.79 KB
Versions: 4
Compression:
Stored size: 1.79 KB
Contents
// ============================================================================= // POSITION // // The position mixin is used to easily set elements position, by providing // the position type and location. // // Available As: // +skeletor-position() // +s-position() // // ============================================================================= // ----------------------------------------------------------------------------- // Position // ----------------------------------------------------------------------------- =skeletor-position($position: relative, $coordinates: 0 0 0 0) @if type-of($position) == list $coordinates: $position $position: relative $top: nth($coordinates, 1) $right: nth($coordinates, 2) $bottom: nth($coordinates, 3) $left: nth($coordinates, 4) position: $position @if $top == auto top: $top @else if not(unitless($top)) top: $top @if $right == auto right: $right @else if not(unitless($right)) right: $right @if $bottom == auto bottom: $bottom @else if not(unitless($bottom)) bottom: $bottom @if $left == auto left: $left @else if not(unitless($left)) left: $left // ----------------------------------------------------------------------------- // Alias for position mixin // ----------------------------------------------------------------------------- =s-position($position: relative, $coordinates: 0 0 0 0) +skeletor-position($position, $coordinates) // ----------------------------------------------------------------------------- // If no-conflict set to allow shorter mixin names // ----------------------------------------------------------------------------- // @if $no-conflict // =position($position: relative, $coordinates: 0 0 0 0) // +skeletor-position($position, $coordinates)
Version data entries
4 entries across 4 versions & 1 rubygems