Sha256: cec7ff76b3c1db447162f84e7e6b654a538a4a27cae44325d9c20d3c5b07cfaa

Contents?: true

Size: 1.04 KB

Versions: 19

Compression:

Stored size: 1.04 KB

Contents

//
// SASS Functions
// @author Ad Taylor
//


// ==========================================================================
// Convert number to word - https://github.com/zurb/foundation/blob/master/scss/foundation/functions/_convert-number-to-word.scss
// ==========================================================================

@function convert-number-to-word($num) {
  $count:1;
  @each $word in one,two,three,four,five,six,seven,eight,nine,ten,eleven,
  twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen,
  twenty,twentyone,twentytwo,twentythree,twentyfour{
    @if ($count == $num) { @return $word; }
    $count: $count + 1;
  }
  @return "invalid";
}

// ========================================================================
// Grid Calculation for Percentages - https://github.com/zurb/foundation/blob/master/scss/foundation/functions/_grid-calc.scss
// ========================================================================

@function gridCalc($colNumber, $totalColumns) {
  @return percentage(($colNumber / $totalColumns));
}

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
plinth-0.0.1.beta.4 vendor/assets/stylesheets/_functions.scss
sb-styleguide-1.2.2 vendor/assets/stylesheets/_functions.scss
sb-styleguide-1.2.1 vendor/assets/stylesheets/_functions.scss
sb-styleguide-1.2.0 vendor/assets/stylesheets/_functions.scss
plinth-0.0.1.beta.3 vendor/assets/stylesheets/_functions.scss
plinth-0.0.1.beta.2 vendor/assets/stylesheets/_functions.scss
plinth-0.0.1.beta.1 vendor/assets/stylesheets/_functions.scss
plinth-0.0.1.pre vendor/assets/stylesheets/_functions.scss
sb-styleguide-1.1.0 vendor/assets/stylesheets/_functions.scss
sb-styleguide-1.0.1 vendor/assets/stylesheets/_functions.scss
sb-styleguide-1.0.0 vendor/assets/stylesheets/_functions.scss
sb-styleguide-0.0.9 vendor/assets/stylesheets/_functions.scss
sb-styleguide-0.0.8 vendor/assets/stylesheets/_functions.scss
sb-styleguide-0.0.7 vendor/assets/stylesheets/_functions.scss
sb-styleguide-0.0.6 vendor/assets/stylesheets/_functions.scss
sb-styleguide-0.0.5 vendor/assets/stylesheets/_functions.scss
sb-styleguide-0.0.4 vendor/assets/stylesheets/_functions.scss
sb-styleguide-0.0.3 vendor/assets/stylesheets/_functions.scss
sb-styleguide-0.0.2 vendor/assets/stylesheets/_functions.scss