From 3519efc4683587e79fe3eca2437e545f46519e8d Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Sun, 3 Mar 2019 09:46:21 +0100 Subject: [PATCH] Update _functions.sass --- sass/abstracts/_functions.sass | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/sass/abstracts/_functions.sass b/sass/abstracts/_functions.sass index 4760e47..ab659f7 100644 --- a/sass/abstracts/_functions.sass +++ b/sass/abstracts/_functions.sass @@ -1,27 +1,3 @@ // ----------------------------------------------------------------------------- // This file contains all application-wide Sass functions. // ----------------------------------------------------------------------------- - -/// Native `url(..)` function wrapper -/// @param {String} $base - base URL for the asset -/// @param {String} $type - asset type folder (e.g. `fonts/`) -/// @param {String} $path - asset path -/// @return {Url} -@function asset($base, $type, $path) - @return url($base + $type + $path) - -/// Returns URL to an image based on its path -/// @param {String} $path - image path -/// @param {String} $base [$base-url] - base URL -/// @return {Url} -/// @require $base-url -@function image($path, $base: $base-url) - @return asset($base, "images/", $path) - -/// Returns URL to a font based on its path -/// @param {String} $path - font path -/// @param {String} $base [$base-url] - base URL -/// @return {Url} -/// @require $base-url -@function font($path, $base: $base-url) - @return asset($base, "fonts/", $path)