Sha256: c8dd0279bb8309d0436702f7c52af9b8a3c83eeded9ba1727d100447e2354370
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
// ----------------------------------------------------------------------------- // 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); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mancalledmountain-theme-0.1.2 | _sass/abstracts/_functions.scss |
mancalledmountain-theme-0.1.1 | _sass/abstracts/_functions.scss |
mancalledmountain-theme-0.1.0 | _sass/abstracts/_functions.scss |