This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-01 22:46:04 +00:00

15 lines
320 B
JavaScript

'use strict';
const hasBlock = require('./hasBlock');
/**
* @param {import('postcss').AtRule | import('postcss-less').AtRule} atRule
* @returns {boolean}
*/
module.exports = function (atRule) {
return (
(atRule.type === 'atrule' && 'variable' in atRule && atRule.variable && !hasBlock(atRule)) ||
false
);
};