This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Description: Get new width or height while preserving the aspect ratio | |
// TODO: Add AspectRatio related methods | |
var AspectRatio = { | |
getScaled: function ( currentW, currentH, newSize, property ) { | |
return ( property === 'width' )? ((currentH / currentW) * newSize) : (currentW / currentH) * newSize) | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$base-font-size: 16px; | |
// Calculate rem value | |
@function calculateRem($size) { | |
$remSize: $size / $base-font-size; | |
@return $remSize * 1rem; | |
} | |
// Calculate Viewport-Width dependent value | |
@function calculateVW($size) { |
NewerOlder