node_modules/jss-plugin-global/dist/jss-plugin-global.js
/**
   * Convert nested rules to separate, remove them from original styles.
   *
   * @param {Rule} rule
   * @api public
   */
Convert nested rules to separate, remove them from original styles.
@param {Rule} rule
@api public
Convert nested rules to separate remove them from original styles . @param { Rule } rule @api public
function jssGlobal() {
    function onCreateRule(name, styles, options) {
      if (!name) return null;
      if (name === at) {
        return new GlobalContainerRule(name, styles, options);
      }
      if (name[0] === '@' && name.substr(0, atPrefix.length) === atPrefix) {
        return new GlobalPrefixedRule(name, styles, options);
      }
      var parent = options.parent;
      if (parent) {
        if (parent.type === 'global' || parent.options.parent && parent.options.parent.type === 'global') {
          options.scoped = false;
        }
      }
      if (options.scoped === false) {
        options.selector = name;
      }
      return null;
    }
    function onProcessRule(rule) {
      if (rule.type !== 'style') return;
      handleNestedGlobalContainerRule(rule);
      handlePrefixedGlobalRule(rule);
    }
    return {
      onCreateRule: onCreateRule,
      onProcessRule: onProcessRule
    };
  }
function jssGlobal ( ) { function onCreateRule ( name , styles , options ) { if ( ! name ) return null ; if ( name === at ) { return new GlobalContainerRule ( name , styles , options ) ; } if ( name [ 0 ] === '@' && name . substr ( 0 , atPrefix . length ) === atPrefix ) { return new GlobalPrefixedRule ( name , styles , options ) ; } var parent = options . parent ; if ( parent ) { if ( parent . type === 'global' || parent . options . parent && parent . options . parent . type === 'global' ) { options . scoped = false ; } } if ( options . scoped === false ) { options . selector = name ; } return null ; } function onProcessRule ( rule ) { if ( rule . type !== 'style' ) return ; handleNestedGlobalContainerRule ( rule ) ; handlePrefixedGlobalRule ( rule ) ; } return { onCreateRule : onCreateRule , onProcessRule : onProcessRule } ; }
Convert nested rules to separate, remove them from original styles.
Convert nested rules to separate remove them from original styles .