vendor/assets/stylesheets/alom/_functions.scss in alom-0.1.0 vs vendor/assets/stylesheets/alom/_functions.scss in alom-0.1.1
- old
+ new
@@ -23,9 +23,22 @@
@function calc-percent($target, $container) {
@return ($target / $container) * 100%;
}
//############################################//
+//##### Pixels to Percentage Function ######//
+//###########################################//
+//Example background: image('logo.png');
+
+@function asset($type, $file) {
+ @return url($asset-base-path + '/' + $type + '/' + $file);
+}
+
+@function image($file) {
+ @return asset('images', $file);
+}
+
+//############################################//
//####### Get next value on maps ########/////
//###########################################//
@function next($map, $key, $fallback: null) {
$i: 0;