Sha256: b49c6e0918fad8ee01b16a52e92135cd35bf40db3f0e858601724eb3dc94be56
Contents?: true
Size: 719 Bytes
Versions: 127
Compression:
Stored size: 719 Bytes
Contents
//// /// @group tools/assets //// /// Font URL /// /// If a custom font-url handler is defined ($govuk-font-url-function) then /// it will be called, otherwise a url will be returned with the filename /// appended to the font path. /// /// @param {String} $filename - Font filename /// @return {String} URL for the filename, wrapped in `url()` /// @access public @function govuk-font-url($filename) { $use-custom-function: variable-exists("govuk-font-url-function") and $govuk-font-url-function and function-exists($govuk-font-url-function); @if $use-custom-function { @return call(get-function($govuk-font-url-function), $filename); } @else { @return url($govuk-fonts-path + $filename); } }
Version data entries
127 entries across 127 versions & 4 rubygems