Sha256: 8757943c381c21f9e595d9363577e08ee80d595323504228762c89ec41535c83

Contents?: true

Size: 712 Bytes

Versions: 4

Compression:

Stored size: 712 Bytes

Contents

// ** Responsive Web Design *width*--
@function rwd($elWidth, $parentWidth: $standard)
  $elWidth: lessPoint($elWidth)
  $parentWidth: lessPoint($parentWidth)
  @return $elWidth * 100% / $parentWidth

=rwd($elWidth, $parentWidth: $standard)
  width: rwd($elWidth, $parentWidth)

=center($Static: $standard, $Max: false, $Min: false)
  @if ($Static)
    width: lessPoint($Static)
  @if ($Max)
    max-width: lessPoint($Max)
  @if ($Min)
    min-width: lessPoint($Min)
  margin: auto

// Proportion units
=propBl($width, $proportion: 1, $depth: true)
  @if $depth
    @extend %relative
  @else
    position: relative
  overflow: hidden
  width: $width
  padding-bottom: $width/$proportion

Version data entries

4 entries across 4 versions & 1 rubygems

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