/**
 * Copyright IBM Corp. 2020
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

@use 'sass:math';

// Aspect Ratio
// function to reuse the aspect ratio
// @param $height
//   height of the element
// @param $width
//   width of the element
//
// @return percentage of height vs width
@function aspect-ratio($width, $height) {
  $ratio: math.div($height, $width) * 100%;
  @return $ratio;
}
