Sha256: 4efd9009144e78f104a0df52be6af44c8fedc92bc9a96403b6a23c2e6cc7f8ba
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 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."; @return null; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flint-gs-1.6.0 | stylesheets/flint/functions/lib/_support-syntax.scss |