Sha256: d3a57df3047910578c462b4cb08272caad7f55304d4f16737f8d4b1c40a3ab7c
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 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 support-syntax($syntax, $selectors) { $syntax: to-lower-case($syntax); // Make sure syntax is supported // ---- @if function-exists(support-syntax-#{$syntax}) { // Support syntax // ---- // @warning : be sure you have created a custom function to support an unknown syntax // ---- @return call("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 `support-syntax`: #{$syntax}. Either specify a custom `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
4 entries across 4 versions & 1 rubygems