UNPKG

329 BJavaScriptView Raw
1'use strict';
2
3const hasBlock = require('./hasBlock');
4
5/**
6 * @param {import('postcss').AtRule} atRule
7 * @returns {boolean}
8 */
9module.exports = function (atRule) {
10 // @ts-ignore TODO TYPES LESS property variable does not exists in types
11 return (atRule.type === 'atrule' && atRule.variable && !hasBlock(atRule)) || false;
12};