Sha256: 121446ec5ec6d7921702b060c39f9c208ce92f467616a7e7d2644b1f64332d1b

Contents?: true

Size: 976 Bytes

Versions: 5

Compression:

Stored size: 976 Bytes

Contents

// Foundation for Emails by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

/// Calculates a percentage value for a grid column width.
/// @access private
/// @param {number} $colNumber - Column count of the column.
/// @param {number} $totalColumns - Column count of the entire row.
/// @returns {number} A percentage width value.
@function -zf-grid-calc-pct($colNumber, $totalColumns) {
  @return floor(percentage(($colNumber / $totalColumns)) * 1000000) / 1000000;
}

/// Calculates a pixel value for a grid column width.
/// @access private
/// @param {number} $columnNumber - Column count of the column.
/// @param {number} $totalColumns - Column count of the entire row.
/// @param {number} $containerWidth - Width of the surrounding container, in pixels.
/// @returns {number} A pixel width value.
@function -zf-grid-calc-px($columnNumber, $totalColumns, $containerWidth) {
  @return ($containerWidth / $totalColumns * $columnNumber - $global-gutter);
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
malvolio-0.1.0 lib/generators/malvolio/templates/base_with_inky/scss/foundation_emails/util/_util.scss
foundation_emails-2.2.1.0 vendor/assets/stylesheets/foundation-emails/util/_util.scss
foundation_emails-2.2.0.0 vendor/assets/stylesheets/foundation-emails/util/_util.scss
foundation_emails-2.1.0.1 vendor/assets/stylesheets/foundation-emails/util/_util.scss
foundation_emails-2.1.0 vendor/assets/stylesheets/foundation-emails/util/_util.scss