mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 20:29:31 +08:00
15 lines
332 B
Text
15 lines
332 B
Text
'use strict';
|
|
/**
|
|
* @param {import('postcss').Rule} node
|
|
* @return {boolean}
|
|
*/
|
|
module.exports = function isMixin(node) {
|
|
const { selector } = node;
|
|
|
|
// If the selector ends with a ':' it is likely a part of a custom mixin.
|
|
if (!selector || selector[selector.length - 1] === ':') {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
};
|