Sha256: cf2067b314cfef8151670bdbabe1bfa2f2b10f3d5eeb2081ef8f13223ddbba5a
Contents?: true
Size: 1.11 KB
Versions: 7
Compression:
Stored size: 1.11 KB
Contents
/// /// Support syntax /// /// @access private /// /// @param {String} $syntax - alias of syntax to support /// @param {List} $selectors - string of selectors to parse /// /// @return {List} - list of parsed selectors according to syntax /// /// @group Internal Functions /// @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 { @if not $flint__development-mode { // Throw error if the syntax does not exist and a function to call cannot be found @error "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."; } @else { @return false; } } }
Version data entries
7 entries across 7 versions & 1 rubygems