Sha256: 97c723fa34ffd0deefef33df1e9cc46c275ce0545bbde136e6f0cea9262d9ab7

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

// ** Align icons
=alignIcon($top, $depth: true)
  $top: lessPoint($top)
  +pos("r", $top, false, false, false, false, $depth)

=pos($pos: "a", $top: false, $right: false, $bottom: false, $left: false, $zIndex: false, $depth: true)
  @if $pos == "a"
    $pos: "absolute"
  @if $pos == "r"
    $pos: "relative"
  @if $pos == "f"
    $pos: "fixed"
  @if $depth
    @if $pos == "absolute"
      @extend %absolute
    @else if $pos == "relative"
      @extend %relative
    @else if $pos == "fixed"
      @extend %fixed
  @else
    position: $pos
  @if $top
    top: lessPoint($top)
  @if $right
    right: lessPoint($right)
  @if $bottom
    bottom: lessPoint($bottom)
  @if $left
    left: lessPoint($left)
  @if $pos == "absolute" && $pos == "fixed"
    @if $zIndex
      z-index: $zIndex
    @else
      z-index: 1
  @else
    @if $zIndex
      z-index: $zIndex

// ** Pseudo
=psAbsPos($top: false, $right: false, $bottom: false, $left: false, $zIndex: false)
  +pos(absolute, $top, $right, $bottom, $left, $zIndex)
  content: ''

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rtpl-compass-1.4 templates/project/sass/source/lib/mixins/_positions.sass
rtpl-compass-1.3 templates/project/sass/source/lib/mixins/_positions.sass
rtpl-compass-1.2 templates/project/sass/source/lib/mixins/_positions.sass
rtpl-compass-1.0 templates/project/sass/source/lib/mixins/_positions.sass