// -----------------------------------------------------------------------------
// This file contains all application-wide Sass functions.
// -----------------------------------------------------------------------------

// Convert pixel to rem

// Base Font Size according to template
$base-font-size: 16 !default;

@function rem($px,$base:$base-font-size) {
  @return ($px / $base) * 1rem;
}

// Function for calculating padding bottom value for non square images
@function nonsquare($imageWidth,$imageHeight) {
  @return ($imageHeight / $imageWidth) * 100%;
}