Sha256: 2844b38ef73f23f7b0546fe703b21b4f790c41d6de50ff676daca17b18a832c9
Contents?: true
Size: 1.15 KB
Versions: 7
Compression:
Stored size: 1.15 KB
Contents
// Support syntax // ------------------------------------------------------------------------------- // @param $syntax [string] : alias of syntax to support // @param $selectors [string] : string of selectors to parse // ------------------------------------------------------------------------------- // @return [list] : list of parsed selectors according to syntax @function flint-support-syntax($syntax, $selectors) { $syntax: to-lower-case($syntax); // Make sure syntax is supported // ---- @if function-exists("flint-support-syntax-#{$syntax}") { // Support syntax // ---- // @warning : be sure you have created a custom function to support an unknown syntax // ---- @return call("flint-support-syntax-#{$syntax}", $selectors); } @else { // Throw error if the syntax does not exist and a function to call cannot be found @warn "You did not pass a valid syntax to `flint-support-syntax`: #{$syntax}. Either specify a custom `flint-support-syntax-<syntax>` function to call, or use one of the offically supported syntaxes. For more info, please visit the docs."; @return null; } }
Version data entries
7 entries across 7 versions & 1 rubygems