Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

isBlocklessAtRuleAfterBlocklessAtRule.js 528B

12345678910111213141516171819202122
  1. 'use strict';
  2. const getPreviousNonSharedLineCommentNode = require('./getPreviousNonSharedLineCommentNode');
  3. const hasBlock = require('./hasBlock');
  4. /**
  5. * @param {import('postcss').AtRule} atRule
  6. * @returns {boolean}
  7. */
  8. module.exports = function (atRule) {
  9. if (atRule.type !== 'atrule') {
  10. return false;
  11. }
  12. const previousNode = getPreviousNonSharedLineCommentNode(atRule);
  13. if (previousNode === undefined) {
  14. return false;
  15. }
  16. return previousNode.type === 'atrule' && !hasBlock(previousNode) && !hasBlock(atRule);
  17. };