Sha256: d6984fb4cc316e72edadd5f30d8ab6c432b08f17db3e8ae9afd80f5c979bf67f

Contents?: true

Size: 576 Bytes

Versions: 17

Compression:

Stored size: 576 Bytes

Contents

// @category  utilities/units

// abstract factor of measurement
// @function  _getUnit
// @private
// @param     $number {Number} unit of measurement
// @param     $abuse {Bool} if `false`, $number cannot be a fraction
// @return    $number {Number} normalized number of measurement
@function _getUnit($number, $abuse: false) {
  @if(not unitless($number)) {
    @warn "#{$number} is not unitless";
    $number: strip-units($number);
  }
  @if($CONFIG_UNIT_FORCE_INT and ($CONFIG_UNIT_FORCE_INT == strict or not $abuse)) {
    @return ceil($number);
  }
  @return $number;
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
archetype-0.0.1.pre.13 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.12 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.11 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.10 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.9 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.8 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.7 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.6 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.5 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.4 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.3.90263a7 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.3.6ed259b stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.3.f9dde24 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.3.00dfd9a stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.3.83f0d7a stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.3.55c4182 stylesheets/archetype/util/_units.scss
archetype-0.0.1.pre.3.811928f stylesheets/archetype/util/_units.scss