source: frontend/node_modules/stylehacks/src/isMixin.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 332 bytes
Line 
1'use strict';
2/**
3 * @param {import('postcss').Rule} node
4 * @return {boolean}
5 */
6module.exports = function isMixin(node) {
7 const { selector } = node;
8
9 // If the selector ends with a ':' it is likely a part of a custom mixin.
10 if (!selector || selector[selector.length - 1] === ':') {
11 return true;
12 }
13
14 return false;
15};
Note: See TracBrowser for help on using the repository browser.