Sha256: 1322797ca51e3d6e291080cf3d0dac6149c707b21abb72fa9561f8bf423e4049
Contents?: true
Size: 505 Bytes
Versions: 23
Compression:
Stored size: 505 Bytes
Contents
'use strict'; const rangeOperators = ['>=', '<=', '>', '<', '=']; const styleSearch = require('style-search'); module.exports = function (atRule, cb) { if (atRule.name.toLowerCase() !== 'media') { return; } const params = atRule.raws.params ? atRule.raws.params.raw : atRule.params; styleSearch({ source: params, target: rangeOperators }, (match) => { const before = params[match.startIndex - 1]; if (before === '>' || before === '<') { return; } cb(match, params, atRule); }); };
Version data entries
23 entries across 23 versions & 1 rubygems